From 95d7c7b00b30a8b8550e7c16c79533e9b4295d2f Mon Sep 17 00:00:00 2001 From: omkieit Date: Thu, 10 Oct 2024 20:46:02 +0530 Subject: [PATCH] done --- ef-api/models/property.js | 32 ++ ef-ui/dist/assets/index-CJfbdL2a.js | 85 +++++ ef-ui/dist/assets/index-GLZpwqbK.js | 85 ----- ef-ui/dist/index.html | 2 +- ef-ui/src/components/Addproperty.jsx | 483 ++++++++++++++++++++++++++- 5 files changed, 597 insertions(+), 90 deletions(-) create mode 100644 ef-ui/dist/assets/index-CJfbdL2a.js delete mode 100644 ef-ui/dist/assets/index-GLZpwqbK.js diff --git a/ef-api/models/property.js b/ef-api/models/property.js index c211aac..a7a3561 100644 --- a/ef-api/models/property.js +++ b/ef-api/models/property.js @@ -254,6 +254,38 @@ const propertySchema = mongoose.Schema({ type: Number, required: true, // Set to true if this field is mandatory }, + fundspriortoclosing:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + shorttermrental:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + OtherIncome:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + InsuranceClaim:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + LongTermRental:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + netprofitbeforefinancingcosts:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + FinancingCostClosingCost:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + NetProfit:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, }); const PropertyModal = mongoose.model("property", propertySchema); diff --git a/ef-ui/dist/assets/index-CJfbdL2a.js b/ef-ui/dist/assets/index-CJfbdL2a.js new file mode 100644 index 0000000..14e8892 --- /dev/null +++ b/ef-ui/dist/assets/index-CJfbdL2a.js @@ -0,0 +1,85 @@ +var ev=Object.defineProperty;var tv=(e,t,n)=>t in e?ev(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var il=(e,t,n)=>tv(e,typeof t!="symbol"?t+"":t,n);function nv(e,t){for(var n=0;nr[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"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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 r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var rv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gd={exports:{}},Ns={},Jd={exports:{}},se={};/** + * @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 Ai=Symbol.for("react.element"),iv=Symbol.for("react.portal"),ov=Symbol.for("react.fragment"),sv=Symbol.for("react.strict_mode"),lv=Symbol.for("react.profiler"),av=Symbol.for("react.provider"),cv=Symbol.for("react.context"),uv=Symbol.for("react.forward_ref"),dv=Symbol.for("react.suspense"),fv=Symbol.for("react.memo"),pv=Symbol.for("react.lazy"),lu=Symbol.iterator;function mv(e){return e===null||typeof e!="object"?null:(e=lu&&e[lu]||e["@@iterator"],typeof e=="function"?e:null)}var Xd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zd=Object.assign,ef={};function Pr(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Xd}Pr.prototype.isReactComponent={};Pr.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")};Pr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tf(){}tf.prototype=Pr.prototype;function Za(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Xd}var ec=Za.prototype=new tf;ec.constructor=Za;Zd(ec,Pr.prototype);ec.isPureReactComponent=!0;var au=Array.isArray,nf=Object.prototype.hasOwnProperty,tc={current:null},rf={key:!0,ref:!0,__self:!0,__source:!0};function of(e,t,n){var r,o={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)nf.call(t,r)&&!rf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,z=O[L];if(0>>1;Lo(X,D))eeo(te,X)?(O[L]=te,O[ee]=D,L=ee):(O[L]=X,O[K]=D,L=K);else if(eeo(te,D))O[L]=te,O[ee]=D,L=ee;else break e}}return P}function o(O,P){var D=O.sortIndex-P.sortIndex;return D!==0?D:O.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],c=[],d=1,p=null,y=3,N=!1,v=!1,x=!1,j=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(O){for(var P=n(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=O)r(c),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(c)}}function g(O){if(x=!1,f(O),!v)if(n(u)!==null)v=!0,B(b);else{var P=n(c);P!==null&&Q(g,P.startTime-O)}}function b(O,P){v=!1,x&&(x=!1,m(S),S=-1),N=!0;var D=y;try{for(f(P),p=n(u);p!==null&&(!(p.expirationTime>P)||O&&!U());){var L=p.callback;if(typeof L=="function"){p.callback=null,y=p.priorityLevel;var z=L(p.expirationTime<=P);P=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(u)&&r(u),f(P)}else r(u);p=n(u)}if(p!==null)var q=!0;else{var K=n(c);K!==null&&Q(g,K.startTime-P),q=!1}return q}finally{p=null,y=D,N=!1}}var E=!1,_=null,S=-1,M=5,F=-1;function U(){return!(e.unstable_now()-FO||125L?(O.sortIndex=D,t(c,O),n(u)===null&&O===n(c)&&(x?(m(S),S=-1):x=!0,Q(g,D-L))):(O.sortIndex=z,t(u,O),v||N||(v=!0,B(b))),O},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(O){var P=y;return function(){var D=y;y=P;try{return O.apply(this,arguments)}finally{y=D}}}})(uf);cf.exports=uf;var Sv=cf.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 Ev=R,st=Sv;function $(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"),Ul=Object.prototype.hasOwnProperty,kv=/^[: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]*$/,uu={},du={};function _v(e){return Ul.call(du,e)?!0:Ul.call(uu,e)?!1:kv.test(e)?du[e]=!0:(uu[e]=!0,!1)}function Pv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ov(e,t,n,r){if(t===null||typeof t>"u"||Pv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,o,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[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];Ae[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[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){Ae[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var rc=/[\-:]([a-z])/g;function ic(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(rc,ic);Ae[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(rc,ic);Ae[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(rc,ic);Ae[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function oc(e,t,n,r){var o=Ae.hasOwnProperty(t)?Ae[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==s[a]){var u=` +`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{ll=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hr(e):""}function Tv(e){switch(e.tag){case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 2:case 15:return e=al(e.type,!1),e;case 11:return e=al(e.type.render,!1),e;case 1:return e=al(e.type,!0),e;default:return""}}function Hl(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 Xn:return"Fragment";case Jn:return"Portal";case Wl:return"Profiler";case sc:return"StrictMode";case Vl:return"Suspense";case ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pf:return(e.displayName||"Context")+".Consumer";case ff:return(e._context.displayName||"Context")+".Provider";case lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ac:return t=e.displayName||null,t!==null?t:Hl(e.type)||"Memo";case Jt:t=e._payload,e=e._init;try{return Hl(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 Hl(t);case 8:return t===sc?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iv(e){var t=hf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qi(e){e._valueTracker||(e._valueTracker=Iv(e))}function vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zo(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 Kl(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yf(e,t){t=t.checked,t!=null&&oc(e,"checked",t,!1)}function Yl(e,t){yf(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ql(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ql(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ql(e,t,n){(t!=="number"||zo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Gi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function di(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={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},Av=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){Av.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function Nf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function wf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Nf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Dv=xe({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 Xl(e,t){if(t){if(Dv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function Zl(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 ea=null;function cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ta=null,hr=null,vr=null;function yu(e){if(e=Li(e)){if(typeof ta!="function")throw Error($(280));var t=e.stateNode;t&&(t=Es(t),ta(e.stateNode,e.type,t))}}function Cf(e){hr?vr?vr.push(e):vr=[e]:hr=e}function bf(){if(hr){var e=hr,t=vr;if(vr=hr=null,yu(e),t)for(e=0;e>>=0,e===0?32:31-(Hv(e)/Kv|0)|0}var Ji=64,Xi=4194304;function Yr(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 Wo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Yr(a):(s&=l,s!==0&&(r=Yr(s)))}else l=n&~o,l!==0?r=Yr(l):s!==0&&(r=Yr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function Jv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zr),Eu=" ",ku=!1;function Vf(e,t){switch(e){case"keyup":return Sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function ky(e,t){switch(e){case"compositionend":return qf(t);case"keypress":return t.which!==32?null:(ku=!0,Eu);case"textInput":return e=t.data,e===Eu&&ku?null:e;default:return null}}function _y(e,t){if(Zn)return e==="compositionend"||!yc&&Vf(e,t)?(e=Uf(),yo=mc=on=null,Zn=!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=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tu(n)}}function Qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gf(){for(var e=window,t=zo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zo(e.document)}return t}function gc(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 Ly(e){var t=Gf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qf(n.ownerDocument.documentElement,n)){if(r!==null&&gc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Ru(n,s);var l=Ru(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,er=null,la=null,ti=null,aa=!1;function Iu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;aa||er==null||er!==zo(r)||(r=er,"selectionStart"in r&&gc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&yi(ti,r)||(ti=r,r=Ho(la,"onSelect"),0rr||(e.current=ma[rr],ma[rr]=null,rr--)}function de(e,t){rr++,ma[rr]=e.current,e.current=t}var xn={},Fe=wn(xn),Ye=wn(!1),Fn=xn;function Nr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qe(e){return e=e.childContextTypes,e!=null}function Yo(){me(Ye),me(Fe)}function Bu(e,t,n){if(Fe.current!==xn)throw Error($(168));de(Fe,t),de(Ye,n)}function op(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error($(108,Rv(e)||"Unknown",o));return xe({},n,r)}function Qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Fn=Fe.current,de(Fe,e),de(Ye,Ye.current),!0}function $u(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=op(e,t,Fn),r.__reactInternalMemoizedMergedChildContext=e,me(Ye),me(Fe),de(Fe,e)):me(Ye),de(Ye,n)}var Ft=null,ks=!1,wl=!1;function sp(e){Ft===null?Ft=[e]:Ft.push(e)}function Qy(e){ks=!0,sp(e)}function Cn(){if(!wl&&Ft!==null){wl=!0;var e=0,t=ue;try{var n=Ft;for(ue=1;e>=l,o-=l,zt=1<<32-wt(t)+o|n<S?(M=_,_=null):M=_.sibling;var F=y(m,_,f[S],g);if(F===null){_===null&&(_=M);break}e&&_&&F.alternate===null&&t(m,_),h=s(F,h,S),E===null?b=F:E.sibling=F,E=F,_=M}if(S===f.length)return n(m,_),ve&&En(m,S),b;if(_===null){for(;SS?(M=_,_=null):M=_.sibling;var U=y(m,_,F.value,g);if(U===null){_===null&&(_=M);break}e&&_&&U.alternate===null&&t(m,_),h=s(U,h,S),E===null?b=U:E.sibling=U,E=U,_=M}if(F.done)return n(m,_),ve&&En(m,S),b;if(_===null){for(;!F.done;S++,F=f.next())F=p(m,F.value,g),F!==null&&(h=s(F,h,S),E===null?b=F:E.sibling=F,E=F);return ve&&En(m,S),b}for(_=r(m,_);!F.done;S++,F=f.next())F=N(_,m,S,F.value,g),F!==null&&(e&&F.alternate!==null&&_.delete(F.key===null?S:F.key),h=s(F,h,S),E===null?b=F:E.sibling=F,E=F);return e&&_.forEach(function(Z){return t(m,Z)}),ve&&En(m,S),b}function j(m,h,f,g){if(typeof f=="object"&&f!==null&&f.type===Xn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Yi:e:{for(var b=f.key,E=h;E!==null;){if(E.key===b){if(b=f.type,b===Xn){if(E.tag===7){n(m,E.sibling),h=o(E,f.props.children),h.return=m,m=h;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Jt&&Vu(b)===E.type){n(m,E.sibling),h=o(E,f.props),h.ref=Ur(m,E,f),h.return=m,m=h;break e}n(m,E);break}else t(m,E);E=E.sibling}f.type===Xn?(h=Dn(f.props.children,m.mode,g,f.key),h.return=m,m=h):(g=So(f.type,f.key,f.props,null,m.mode,g),g.ref=Ur(m,h,f),g.return=m,m=g)}return l(m);case Jn:e:{for(E=f.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===f.containerInfo&&h.stateNode.implementation===f.implementation){n(m,h.sibling),h=o(h,f.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Ol(f,m.mode,g),h.return=m,m=h}return l(m);case Jt:return E=f._init,j(m,h,E(f._payload),g)}if(Kr(f))return v(m,h,f,g);if(Lr(f))return x(m,h,f,g);oo(m,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,f),h.return=m,m=h):(n(m,h),h=Pl(f,m.mode,g),h.return=m,m=h),l(m)):n(m,h)}return j}var Cr=up(!0),dp=up(!1),Xo=wn(null),Zo=null,sr=null,wc=null;function Cc(){wc=sr=Zo=null}function bc(e){var t=Xo.current;me(Xo),e._currentValue=t}function ya(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function gr(e,t){Zo=e,wc=sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(wc!==e)if(e={context:e,memoizedValue:t,next:null},sr===null){if(Zo===null)throw Error($(308));sr=e,Zo.dependencies={lanes:0,firstContext:e}}else sr=sr.next=e;return t}var Tn=null;function Sc(e){Tn===null?Tn=[e]:Tn.push(e)}function fp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Sc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vt(e,r)}function Vt(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 Xt=!1;function Ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pp(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 $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vt(e,n)}return o=r.interleaved,o===null?(t.next=t,Sc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vt(e,n)}function xo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dc(e,n)}}function qu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function es(e,t,n,r){var o=e.updateQueue;Xt=!1;var s=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,c=u.next;u.next=null,l===null?s=c:l.next=c,l=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==l&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(s!==null){var p=o.baseState;l=0,d=c=u=null,a=s;do{var y=a.lane,N=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:N,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(y=t,N=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){p=v.call(N,p,y);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,y=typeof v=="function"?v.call(N,p,y):v,y==null)break e;p=xe({},p,y);break e;case 2:Xt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[a]:y.push(a))}else N={eventTime:N,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=N,u=p):d=d.next=N,l|=y;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;y=a,a=y.next,y.next=null,o.lastBaseUpdate=y,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 l|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);$n|=l,e.lanes=l,e.memoizedState=p}}function Hu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=bl.transition;bl.transition={};try{e(!1),t()}finally{ue=n,bl.transition=r}}function Op(){return vt().memoizedState}function Zy(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tp(e))Rp(t,n);else if(n=fp(e,t,n,r),n!==null){var o=Ue();Ct(n,e,r,o),Ip(n,t,r)}}function eg(e,t,n){var r=hn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tp(e))Rp(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,a=s(l,n);if(o.hasEagerState=!0,o.eagerState=a,St(a,l)){var u=t.interleaved;u===null?(o.next=o,Sc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=fp(e,t,o,r),n!==null&&(o=Ue(),Ct(n,e,r,o),Ip(n,t,r))}}function Tp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Rp(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 Ip(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dc(e,n)}}var rs={readContext:ht,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},tg={readContext:ht,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Yu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,No(4194308,4,Sp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return No(4194308,4,e,t)},useInsertionEffect:function(e,t){return No(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Zy.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Ku,useDebugValue:Ac,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Ku(!1),t=e[0];return e=Xy.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,o=Pt();if(ve){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Pe===null)throw Error($(349));Bn&30||yp(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Yu(xp.bind(null,r,s,e),[e]),r.flags|=2048,Si(9,gp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Pe.identifierPrefix;if(ve){var n=Bt,r=zt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ci++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Tt]=t,e[ji]=r,Wp(e,t,!1,!1),t.stateNode=e;e:{switch(l=Zl(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;oEr&&(t.flags|=128,r=!0,Wr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ts(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!ve)return Me(t),null}else 2*Ce()-s.renderingStartTime>Er&&n!==1073741824&&(t.flags|=128,r=!0,Wr(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ce(),t.sibling=null,n=ye.current,de(ye,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Bc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?et&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function cg(e,t){switch(jc(t),t.tag){case 1:return Qe(t.type)&&Yo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return br(),me(Ye),me(Fe),Pc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _c(t),null;case 13:if(me(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ye),null;case 4:return br(),null;case 10:return bc(t.type._context),null;case 22:case 23:return Bc(),null;case 24:return null;default:return null}}var lo=!1,Le=!1,ug=typeof WeakSet=="function"?WeakSet:Set,Y=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function Ea(e,t,n){try{n()}catch(r){je(e,t,r)}}var od=!1;function dg(e,t){if(ca=Vo,e=Gf(),gc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,c=0,d=0,p=e,y=null;t:for(;;){for(var N;p!==n||o!==0&&p.nodeType!==3||(a=l+o),p!==s||r!==0&&p.nodeType!==3||(u=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(N=p.firstChild)!==null;)y=p,p=N;for(;;){if(p===e)break t;if(y===n&&++c===o&&(a=l),y===s&&++d===r&&(u=l),(N=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=N}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ua={focusedElem:e,selectionRange:n},Vo=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,j=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:gt(t.type,x),j);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(g){je(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return v=od,od=!1,v}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ea(t,n,s)}o=o.next}while(o!==r)}}function Os(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ka(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 Hp(e){var t=e.alternate;t!==null&&(e.alternate=null,Hp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[ji],delete t[pa],delete t[Ky],delete t[Yy])),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 Kp(e){return e.tag===5||e.tag===3||e.tag===4}function sd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kp(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 _a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ko));else if(r!==4&&(e=e.child,e!==null))for(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}function Pa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pa(e,t,n),e=e.sibling;e!==null;)Pa(e,t,n),e=e.sibling}var Re=null,xt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Yp(e,t,n),n=n.sibling}function Yp(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(ws,n)}catch{}switch(n.tag){case 5:Le||lr(n,t);case 6:var r=Re,o=xt;Re=null,Qt(e,t,n),Re=r,xt=o,Re!==null&&(xt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(xt?(e=Re,n=n.stateNode,e.nodeType===8?Nl(e.parentNode,n):e.nodeType===1&&Nl(e,n),hi(e)):Nl(Re,n.stateNode));break;case 4:r=Re,o=xt,Re=n.stateNode.containerInfo,xt=!0,Qt(e,t,n),Re=r,xt=o;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Ea(n,t,l),o=o.next}while(o!==r)}Qt(e,t,n);break;case 1:if(!Le&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){je(n,t,a)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,Qt(e,t,n),Le=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function ld(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ug),t.forEach(function(r){var o=jg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~s}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pg(r/1960))-r,10e?16:e,sn===null)var r=!1;else{if(e=sn,sn=null,ss=0,le&6)throw Error($(331));var o=le;for(le|=4,Y=e.current;Y!==null;){var s=Y,l=s.child;if(Y.flags&16){var a=s.deletions;if(a!==null){for(var u=0;uCe()-Fc?An(e,0):Lc|=n),Ge(e,t)}function nm(e,t){t===0&&(e.mode&1?(t=Xi,Xi<<=1,!(Xi&130023424)&&(Xi=4194304)):t=1);var n=Ue();e=Vt(e,t),e!==null&&(Di(e,t,n),Ge(e,n))}function xg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nm(e,n)}function jg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),nm(e,n)}var rm;rm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,lg(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,ve&&t.flags&1048576&&lp(t,Jo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wo(e,t),e=t.pendingProps;var o=Nr(t,Fe.current);gr(t,n),o=Tc(null,t,r,e,o,n);var s=Rc();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,Qe(r)?(s=!0,Qo(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ec(t),o.updater=Ps,t.stateNode=o,o._reactInternals=t,xa(t,r,e,n),t=wa(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&xc(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=wg(r),e=gt(r,e),o){case 0:t=Na(null,t,r,e,n);break e;case 1:t=nd(null,t,r,e,n);break e;case 11:t=ed(null,t,r,e,n);break e;case 14:t=td(null,t,r,gt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Na(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),nd(e,t,r,o,n);case 3:e:{if(Bp(t),e===null)throw Error($(387));r=t.pendingProps,s=t.memoizedState,o=s.element,pp(e,t),es(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Sr(Error($(423)),t),t=rd(e,t,r,n,o);break e}else if(r!==o){o=Sr(Error($(424)),t),t=rd(e,t,r,n,o);break e}else for(tt=fn(t.stateNode.containerInfo.firstChild),it=t,ve=!0,jt=null,n=dp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wr(),r===o){t=qt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return mp(t),e===null&&va(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,l=o.children,da(r,o)?l=null:s!==null&&da(r,s)&&(t.flags|=32),zp(e,t),Be(e,t,l,n),t.child;case 6:return e===null&&va(t),null;case 13:return $p(e,t,n);case 4:return kc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cr(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),ed(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,l=o.value,de(Xo,r._currentValue),r._currentValue=l,s!==null)if(St(s.value,l)){if(s.children===o.children&&!Ye.current){t=qt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){l=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=$t(-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),ya(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error($(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ya(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,gr(t,n),o=ht(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),td(e,t,r,o,n);case 15:return Lp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),wo(e,t),t.tag=1,Qe(r)?(e=!0,Qo(t)):e=!1,gr(t,n),Ap(t,r,o),xa(t,r,o,n),wa(null,t,r,!0,e,n);case 19:return Up(e,t,n);case 22:return Fp(e,t,n)}throw Error($(156,t.tag))};function im(e,t){return Tf(e,t)}function Ng(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new Ng(e,t,n,r)}function Uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wg(e){if(typeof e=="function")return Uc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lc)return 11;if(e===ac)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=pt(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 So(e,t,n,r,o,s){var l=2;if(r=e,typeof e=="function")Uc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Xn:return Dn(n.children,o,s,t);case sc:l=8,o|=8;break;case Wl:return e=pt(12,n,t,o|2),e.elementType=Wl,e.lanes=s,e;case Vl:return e=pt(13,n,t,o),e.elementType=Vl,e.lanes=s,e;case ql:return e=pt(19,n,t,o),e.elementType=ql,e.lanes=s,e;case mf:return Rs(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ff:l=10;break e;case pf:l=9;break e;case lc:l=11;break e;case ac:l=14;break e;case Jt:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=pt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Dn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Rs(e,t,n,r){return e=pt(22,e,r,t),e.elementType=mf,e.lanes=n,e.stateNode={isHidden:!1},e}function Pl(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Ol(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cg(e,t,n,r,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=ul(0),this.expirationTimes=ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wc(e,t,n,r,o,s,l,a,u){return e=new Cg(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=pt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ec(s),e}function bg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(am)}catch(e){console.error(e)}}am(),af.exports=ct;var Pg=af.exports,cm,hd=Pg;cm=hd.createRoot,hd.hydrateRoot;var um={exports:{}},dm={};/** + * @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 zi=R;function Og(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tg=typeof Object.is=="function"?Object.is:Og,Rg=zi.useSyncExternalStore,Ig=zi.useRef,Ag=zi.useEffect,Dg=zi.useMemo,Mg=zi.useDebugValue;dm.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=Ig(null);if(s.current===null){var l={hasValue:!1,value:null};s.current=l}else l=s.current;s=Dg(function(){function u(N){if(!c){if(c=!0,d=N,N=r(N),o!==void 0&&l.hasValue){var v=l.value;if(o(v,N))return p=v}return p=N}if(v=p,Tg(d,N))return v;var x=r(N);return o!==void 0&&o(v,x)?v:(d=N,p=x)}var c=!1,d,p,y=n===void 0?null:n;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,n,r,o]);var a=Rg(e,s[0],s[1]);return Ag(function(){l.hasValue=!0,l.value=a},[a]),Mg(a),a};um.exports=dm;var Lg=um.exports,nt="default"in $l?T:$l,vd=Symbol.for("react-redux-context"),yd=typeof globalThis<"u"?globalThis:{};function Fg(){if(!nt.createContext)return{};const e=yd[vd]??(yd[vd]=new Map);let t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var jn=Fg(),zg=()=>{throw new Error("uSES not initialized!")};function Kc(e=jn){return function(){return nt.useContext(e)}}var fm=Kc(),pm=zg,Bg=e=>{pm=e},$g=(e,t)=>e===t;function Ug(e=jn){const t=e===jn?fm:Kc(e),n=(r,o={})=>{const{equalityFn:s=$g,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:p}=t();nt.useRef(!0);const y=nt.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,l.stabilityCheck]),N=pm(u.addNestedSub,a.getState,c||a.getState,y,s);return nt.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var Ze=Ug();function Wg(e){e()}function Vg(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Wg(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var gd={notify(){},get:()=>[]};function qg(e,t){let n,r=gd,o=0,s=!1;function l(x){d();const j=r.subscribe(x);let m=!1;return()=>{m||(m=!0,j(),p())}}function a(){r.notify()}function u(){v.onStateChange&&v.onStateChange()}function c(){return s}function d(){o++,n||(n=e.subscribe(u),r=Vg())}function p(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=gd)}function y(){s||(s=!0,d())}function N(){s&&(s=!1,p())}const v={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:c,trySubscribe:y,tryUnsubscribe:N,getListeners:()=>r};return v}var Hg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kg=typeof navigator<"u"&&navigator.product==="ReactNative",Yg=Hg||Kg?nt.useLayoutEffect:nt.useEffect;function Qg({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:s="once"}){const l=nt.useMemo(()=>{const c=qg(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:s}},[e,r,o,s]),a=nt.useMemo(()=>e.getState(),[e]);Yg(()=>{const{subscription:c}=l;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[l,a]);const u=t||jn;return nt.createElement(u.Provider,{value:l},n)}var Gg=Qg;function mm(e=jn){const t=e===jn?fm:Kc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Jg=mm();function Xg(e=jn){const t=e===jn?Jg:mm(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Et=Xg();Bg(Lg.useSyncExternalStoreWithSelector);function Te(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 Zg=typeof Symbol=="function"&&Symbol.observable||"@@observable",xd=Zg,Tl=()=>Math.random().toString(36).substring(7).split("").join("."),ex={INIT:`@@redux/INIT${Tl()}`,REPLACE:`@@redux/REPLACE${Tl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Tl()}`},cs=ex;function Yc(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 hm(e,t,n){if(typeof e!="function")throw new Error(Te(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Te(1));return n(hm)(e,t)}let r=e,o=t,s=new Map,l=s,a=0,u=!1;function c(){l===s&&(l=new Map,s.forEach((j,m)=>{l.set(m,j)}))}function d(){if(u)throw new Error(Te(3));return o}function p(j){if(typeof j!="function")throw new Error(Te(4));if(u)throw new Error(Te(5));let m=!0;c();const h=a++;return l.set(h,j),function(){if(m){if(u)throw new Error(Te(6));m=!1,c(),l.delete(h),s=null}}}function y(j){if(!Yc(j))throw new Error(Te(7));if(typeof j.type>"u")throw new Error(Te(8));if(typeof j.type!="string")throw new Error(Te(17));if(u)throw new Error(Te(9));try{u=!0,o=r(o,j)}finally{u=!1}return(s=l).forEach(h=>{h()}),j}function N(j){if(typeof j!="function")throw new Error(Te(10));r=j,y({type:cs.REPLACE})}function v(){const j=p;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Te(11));function h(){const g=m;g.next&&g.next(d())}return h(),{unsubscribe:j(h)}},[xd](){return this}}}return y({type:cs.INIT}),{dispatch:y,subscribe:p,getState:d,replaceReducer:N,[xd]:v}}function tx(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:cs.INIT})>"u")throw new Error(Te(12));if(typeof n(void 0,{type:cs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function nx(e){const t=Object.keys(e),n={};for(let s=0;s"u")throw a&&a.type,new Error(Te(14));c[p]=v,u=u||v!==N}return u=u||r.length!==Object.keys(l).length,u?c:l}}function us(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function rx(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(Te(15))};const l={getState:o.getState,dispatch:(u,...c)=>s(u,...c)},a=e.map(u=>u(l));return s=us(...a)(o.dispatch),{...o,dispatch:s}}}function ix(e){return Yc(e)&&"type"in e&&typeof e.type=="string"}var vm=Symbol.for("immer-nothing"),jd=Symbol.for("immer-draftable"),lt=Symbol.for("immer-state");function Nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kr=Object.getPrototypeOf;function Wn(e){return!!e&&!!e[lt]}function Ht(e){var t;return e?ym(e)||Array.isArray(e)||!!e[jd]||!!((t=e.constructor)!=null&&t[jd])||Fs(e)||zs(e):!1}var ox=Object.prototype.constructor.toString();function ym(e){if(!e||typeof e!="object")return!1;const t=kr(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)===ox}function ds(e,t){Ls(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ls(e){const t=e[lt];return t?t.type_:Array.isArray(e)?1:Fs(e)?2:zs(e)?3:0}function Aa(e,t){return Ls(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function gm(e,t,n){const r=Ls(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function sx(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Fs(e){return e instanceof Map}function zs(e){return e instanceof Set}function _n(e){return e.copy_||e.base_}function Da(e,t){if(Fs(e))return new Map(e);if(zs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=ym(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[lt];let o=Reflect.ownKeys(r);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=lx),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Qc(r,!0))),e}function lx(){Nt(2)}function Bs(e){return Object.isFrozen(e)}var ax={};function Vn(e){const t=ax[e];return t||Nt(0,e),t}var ki;function xm(){return ki}function cx(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Nd(e,t){t&&(Vn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ma(e){La(e),e.drafts_.forEach(ux),e.drafts_=null}function La(e){e===ki&&(ki=e.parent_)}function wd(e){return ki=cx(ki,e)}function ux(e){const t=e[lt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Cd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[lt].modified_&&(Ma(t),Nt(4)),Ht(e)&&(e=fs(t,e),t.parent_||ps(t,e)),t.patches_&&Vn("Patches").generateReplacementPatches_(n[lt].base_,e,t.patches_,t.inversePatches_)):e=fs(t,n,[]),Ma(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==vm?e:void 0}function fs(e,t,n){if(Bs(t))return t;const r=t[lt];if(!r)return ds(t,(o,s)=>bd(e,r,t,o,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ps(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let s=o,l=!1;r.type_===3&&(s=new Set(o),o.clear(),l=!0),ds(s,(a,u)=>bd(e,r,o,a,u,n,l)),ps(e,o,!1),n&&e.patches_&&Vn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function bd(e,t,n,r,o,s,l){if(Wn(o)){const a=s&&t&&t.type_!==3&&!Aa(t.assigned_,r)?s.concat(r):void 0,u=fs(e,o,a);if(gm(n,r,u),Wn(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(Ht(o)&&!Bs(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fs(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ps(e,o)}}function ps(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qc(t,n)}function dx(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:xm(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=Gc;n&&(o=[r],s=_i);const{revoke:l,proxy:a}=Proxy.revocable(o,s);return r.draft_=a,r.revoke_=l,a}var Gc={get(e,t){if(t===lt)return e;const n=_n(e);if(!Aa(n,t))return fx(e,n,t);const r=n[t];return e.finalized_||!Ht(r)?r:r===Rl(e.base_,t)?(Il(e),e.copy_[t]=za(r,e)):r},has(e,t){return t in _n(e)},ownKeys(e){return Reflect.ownKeys(_n(e))},set(e,t,n){const r=jm(_n(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Rl(_n(e),t),s=o==null?void 0:o[lt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(sx(n,o)&&(n!==void 0||Aa(e.base_,t)))return!0;Il(e),Fa(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 Rl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Il(e),Fa(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_n(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Nt(11)},getPrototypeOf(e){return kr(e.base_)},setPrototypeOf(){Nt(12)}},_i={};ds(Gc,(e,t)=>{_i[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});_i.deleteProperty=function(e,t){return _i.set.call(this,e,t,void 0)};_i.set=function(e,t,n){return Gc.set.call(this,e[0],t,n,e[0])};function Rl(e,t){const n=e[lt];return(n?_n(n):e)[t]}function fx(e,t,n){var o;const r=jm(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function jm(e,t){if(!(t in e))return;let n=kr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=kr(n)}}function Fa(e){e.modified_||(e.modified_=!0,e.parent_&&Fa(e.parent_))}function Il(e){e.copy_||(e.copy_=Da(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var px=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const l=this;return function(u=s,...c){return l.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&Nt(6),r!==void 0&&typeof r!="function"&&Nt(7);let o;if(Ht(t)){const s=wd(this),l=za(t,void 0);let a=!0;try{o=n(l),a=!1}finally{a?Ma(s):La(s)}return Nd(s,r),Cd(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===vm&&(o=void 0),this.autoFreeze_&&Qc(o,!0),r){const s=[],l=[];Vn("Patches").generateReplacementPatches_(t,o,s,l),r(s,l)}return o}else Nt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...a)=>this.produceWithPatches(l,u=>t(u,...a));let r,o;return[this.produce(t,n,(l,a)=>{r=l,o=a}),r,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){Ht(e)||Nt(8),Wn(e)&&(e=mx(e));const t=wd(this),n=za(e,void 0);return n[lt].isManual_=!0,La(t),n}finishDraft(e,t){const n=e&&e[lt];(!n||!n.isManual_)&&Nt(9);const{scope_:r}=n;return Nd(r,t),Cd(void 0,r)}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 r=Vn("Patches").applyPatches_;return Wn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function za(e,t){const n=Fs(e)?Vn("MapSet").proxyMap_(e,t):zs(e)?Vn("MapSet").proxySet_(e,t):dx(e,t);return(t?t.scope_:xm()).drafts_.push(n),n}function mx(e){return Wn(e)||Nt(10,e),Nm(e)}function Nm(e){if(!Ht(e)||Bs(e))return e;const t=e[lt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Da(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Da(e,!0);return ds(n,(r,o)=>{gm(n,r,Nm(o))}),t&&(t.finalized_=!1),n}var at=new px,wm=at.produce;at.produceWithPatches.bind(at);at.setAutoFreeze.bind(at);at.setUseStrictShallowCopy.bind(at);at.applyPatches.bind(at);at.createDraft.bind(at);at.finishDraft.bind(at);function Cm(e){return({dispatch:n,getState:r})=>o=>s=>typeof s=="function"?s(n,r,e):o(s)}var hx=Cm(),vx=Cm,yx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?us:us.apply(null,arguments)},gx=e=>e&&typeof e.match=="function";function si(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(bt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>ix(r)&&r.type===e,n}var bm=class Gr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Gr.prototype)}static get[Symbol.species](){return Gr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Gr(...t[0].concat(this)):new Gr(...t.concat(this))}};function Sd(e){return Ht(e)?wm(e,()=>{}):e}function Ed(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(bt(10));const r=n.insert(t,e);return e.set(t,r),r}function xx(e){return typeof e=="boolean"}var jx=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let l=new bm;return n&&(xx(n)?l.push(hx):l.push(vx(n.extraArgument))),l},Nx="RTK_autoBatch",Sm=e=>t=>{setTimeout(t,e)},wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Sm(10),Cx=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,l=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?wx:e.type==="callback"?e.queueNotification:Sm(e.timeout),c=()=>{l=!1,s&&(s=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const p=()=>o&&d(),y=r.subscribe(p);return a.add(d),()=>{y(),a.delete(d)}},dispatch(d){var p;try{return o=!((p=d==null?void 0:d.meta)!=null&&p[Nx]),s=!o,s&&(l||(l=!0,u(c))),r.dispatch(d)}finally{o=!0}}})},bx=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new bm(e);return r&&o.push(Cx(typeof r=="object"?r:void 0)),o};function Sx(e){const t=jx(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Yc(n))a=nx(n);else throw new Error(bt(1));let u;typeof r=="function"?u=r(t):u=t();let c=us;o&&(c=yx({trace:!1,...typeof o=="object"&&o}));const d=rx(...u),p=bx(d);let y=typeof l=="function"?l(p):p();const N=c(...y);return hm(a,s,N)}function Em(e){const t={},n=[];let r;const o={addCase(s,l){const a=typeof s=="string"?s:s.type;if(!a)throw new Error(bt(28));if(a in t)throw new Error(bt(29));return t[a]=l,o},addMatcher(s,l){return n.push({matcher:s,reducer:l}),o},addDefaultCase(s){return r=s,o}};return e(o),[t,n,r]}function Ex(e){return typeof e=="function"}function kx(e,t){let[n,r,o]=Em(t),s;if(Ex(e))s=()=>Sd(e());else{const a=Sd(e);s=()=>a}function l(a=s(),u){let c=[n[u.type],...r.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(Wn(d)){const N=p(d,u);return N===void 0?d:N}else{if(Ht(d))return wm(d,y=>p(y,u));{const y=p(d,u);if(y===void 0){if(d===null)return d;throw new Error(bt(9))}return y}}return d},a)}return l.getInitialState=s,l}var _x=(e,t)=>gx(e)?e.match(t):e(t);function Px(...e){return t=>e.some(n=>_x(n,t))}var Ox="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Tx=(e=21)=>{let t="",n=e;for(;n--;)t+=Ox[Math.random()*64|0];return t},Rx=["name","message","stack","code"],Al=class{constructor(e,t){il(this,"_type");this.payload=e,this.meta=t}},kd=class{constructor(e,t){il(this,"_type");this.payload=e,this.meta=t}},Ix=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Rx)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Dt=(()=>{function e(t,n,r){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"}})),l=si(t+"/rejected",(u,c,d,p,y)=>({payload:p,error:(r&&r.serializeError||Ix)(u||"Rejected"),meta:{...y||{},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 a(u){return(c,d,p)=>{const y=r!=null&&r.idGenerator?r.idGenerator(u):Tx(),N=new AbortController;let v,x;function j(h){x=h,N.abort()}const m=async function(){var g,b;let h;try{let E=(g=r==null?void 0:r.condition)==null?void 0:g.call(r,u,{getState:d,extra:p});if(Dx(E)&&(E=await E),E===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const _=new Promise((S,M)=>{v=()=>{M({name:"AbortError",message:x||"Aborted"})},N.signal.addEventListener("abort",v)});c(s(y,u,(b=r==null?void 0:r.getPendingMeta)==null?void 0:b.call(r,{requestId:y,arg:u},{getState:d,extra:p}))),h=await Promise.race([_,Promise.resolve(n(u,{dispatch:c,getState:d,extra:p,requestId:y,signal:N.signal,abort:j,rejectWithValue:(S,M)=>new Al(S,M),fulfillWithValue:(S,M)=>new kd(S,M)})).then(S=>{if(S instanceof Al)throw S;return S instanceof kd?o(S.payload,y,u,S.meta):o(S,y,u)})])}catch(E){h=E instanceof Al?l(null,y,u,E.payload,E.meta):l(E,y,u)}finally{v&&N.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&l.match(h)&&h.meta.condition||c(h),h}();return Object.assign(m,{abort:j,requestId:y,arg:u,unwrap(){return m.then(Ax)}})}}return Object.assign(a,{pending:s,rejected:l,fulfilled:o,settled:Px(l,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Ax(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Dx(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Mx=Symbol.for("rtk-slice-createasyncthunk");function Lx(e,t){return`${e}/${t}`}function Fx({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Mx];return function(o){const{name:s,reducerPath:l=s}=o;if(!s)throw new Error(bt(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(Bx()):o.reducers)||{},u=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(f,g){const b=typeof f=="string"?f:f.type;if(!b)throw new Error(bt(12));if(b in c.sliceCaseReducersByType)throw new Error(bt(13));return c.sliceCaseReducersByType[b]=g,d},addMatcher(f,g){return c.sliceMatchers.push({matcher:f,reducer:g}),d},exposeAction(f,g){return c.actionCreators[f]=g,d},exposeCaseReducer(f,g){return c.sliceCaseReducersByName[f]=g,d}};u.forEach(f=>{const g=a[f],b={reducerName:f,type:Lx(s,f),createNotation:typeof o.reducers=="function"};Ux(g)?Vx(b,g,d,t):$x(b,g,d)});function p(){const[f={},g=[],b=void 0]=typeof o.extraReducers=="function"?Em(o.extraReducers):[o.extraReducers],E={...f,...c.sliceCaseReducersByType};return kx(o.initialState,_=>{for(let S in E)_.addCase(S,E[S]);for(let S of c.sliceMatchers)_.addMatcher(S.matcher,S.reducer);for(let S of g)_.addMatcher(S.matcher,S.reducer);b&&_.addDefaultCase(b)})}const y=f=>f,N=new Map;let v;function x(f,g){return v||(v=p()),v(f,g)}function j(){return v||(v=p()),v.getInitialState()}function m(f,g=!1){function b(_){let S=_[f];return typeof S>"u"&&g&&(S=j()),S}function E(_=y){const S=Ed(N,g,{insert:()=>new WeakMap});return Ed(S,_,{insert:()=>{const M={};for(const[F,U]of Object.entries(o.selectors??{}))M[F]=zx(U,_,j,g);return M}})}return{reducerPath:f,getSelectors:E,get selectors(){return E(b)},selectSlice:b}}const h={name:s,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:j,...m(l),injectInto(f,{reducerPath:g,...b}={}){const E=g??l;return f.inject({reducerPath:E,reducer:x},b),{...h,...m(E,!0)}}};return h}}function zx(e,t,n,r){function o(s,...l){let a=t(s);return typeof a>"u"&&r&&(a=n()),e(a,...l)}return o.unwrapped=e,o}var Jc=Fx();function Bx(){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 $x({type:e,reducerName:t,createNotation:n},r,o){let s,l;if("reducer"in r){if(n&&!Wx(r))throw new Error(bt(17));s=r.reducer,l=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,l?si(e,l):si(e))}function Ux(e){return e._reducerDefinitionType==="asyncThunk"}function Wx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Vx({type:e,reducerName:t},n,r,o){if(!o)throw new Error(bt(18));const{payloadCreator:s,fulfilled:l,pending:a,rejected:u,settled:c,options:d}=n,p=o(e,s,d);r.exposeAction(t,p),l&&r.addCase(p.fulfilled,l),a&&r.addCase(p.pending,a),u&&r.addCase(p.rejected,u),c&&r.addMatcher(p.settled,c),r.exposeCaseReducer(t,{fulfilled:l||uo,pending:a||uo,rejected:u||uo,settled:c||uo})}function uo(){}function bt(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 km(e,t){return function(){return e.apply(t,arguments)}}const{toString:qx}=Object.prototype,{getPrototypeOf:Xc}=Object,$s=(e=>t=>{const n=qx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kt=e=>(e=e.toLowerCase(),t=>$s(t)===e),Us=e=>t=>typeof t===e,{isArray:Rr}=Array,Pi=Us("undefined");function Hx(e){return e!==null&&!Pi(e)&&e.constructor!==null&&!Pi(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _m=kt("ArrayBuffer");function Kx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_m(e.buffer),t}const Yx=Us("string"),ot=Us("function"),Pm=Us("number"),Ws=e=>e!==null&&typeof e=="object",Qx=e=>e===!0||e===!1,Eo=e=>{if($s(e)!=="object")return!1;const t=Xc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Gx=kt("Date"),Jx=kt("File"),Xx=kt("Blob"),Zx=kt("FileList"),e0=e=>Ws(e)&&ot(e.pipe),t0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=$s(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},n0=kt("URLSearchParams"),[r0,i0,o0,s0]=["ReadableStream","Request","Response","Headers"].map(kt),l0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Rr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const In=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tm=e=>!Pi(e)&&e!==In;function Ba(){const{caseless:e}=Tm(this)&&this||{},t={},n=(r,o)=>{const s=e&&Om(t,o)||o;Eo(t[s])&&Eo(r)?t[s]=Ba(t[s],r):Eo(r)?t[s]=Ba({},r):Rr(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(Bi(t,(o,s)=>{n&&ot(o)?e[s]=km(o,n):e[s]=o},{allOwnKeys:r}),e),c0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),u0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},d0=(e,t,n,r)=>{let o,s,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Xc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},f0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},p0=e=>{if(!e)return null;if(Rr(e))return e;let t=e.length;if(!Pm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},m0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xc(Uint8Array)),h0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},v0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},y0=kt("HTMLFormElement"),g0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),_d=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),x0=kt("RegExp"),Rm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bi(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},j0=e=>{Rm(e,(t,n)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ot(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},N0=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Rr(e)?r(e):r(String(e).split(t)),n},w0=()=>{},C0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dl="abcdefghijklmnopqrstuvwxyz",Pd="0123456789",Im={DIGIT:Pd,ALPHA:Dl,ALPHA_DIGIT:Dl+Dl.toUpperCase()+Pd},b0=(e=16,t=Im.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function S0(e){return!!(e&&ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const E0=e=>{const t=new Array(10),n=(r,o)=>{if(Ws(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=Rr(r)?[]:{};return Bi(r,(l,a)=>{const u=n(l,o+1);!Pi(u)&&(s[a]=u)}),t[o]=void 0,s}}return r};return n(e,0)},k0=kt("AsyncFunction"),_0=e=>e&&(Ws(e)||ot(e))&&ot(e.then)&&ot(e.catch),Am=((e,t)=>e?setImmediate:t?((n,r)=>(In.addEventListener("message",({source:o,data:s})=>{o===In&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),In.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ot(In.postMessage)),P0=typeof queueMicrotask<"u"?queueMicrotask.bind(In):typeof process<"u"&&process.nextTick||Am,A={isArray:Rr,isArrayBuffer:_m,isBuffer:Hx,isFormData:t0,isArrayBufferView:Kx,isString:Yx,isNumber:Pm,isBoolean:Qx,isObject:Ws,isPlainObject:Eo,isReadableStream:r0,isRequest:i0,isResponse:o0,isHeaders:s0,isUndefined:Pi,isDate:Gx,isFile:Jx,isBlob:Xx,isRegExp:x0,isFunction:ot,isStream:e0,isURLSearchParams:n0,isTypedArray:m0,isFileList:Zx,forEach:Bi,merge:Ba,extend:a0,trim:l0,stripBOM:c0,inherits:u0,toFlatObject:d0,kindOf:$s,kindOfTest:kt,endsWith:f0,toArray:p0,forEachEntry:h0,matchAll:v0,isHTMLForm:y0,hasOwnProperty:_d,hasOwnProp:_d,reduceDescriptors:Rm,freezeMethods:j0,toObjectSet:N0,toCamelCase:g0,noop:w0,toFiniteNumber:C0,findKey:Om,global:In,isContextDefined:Tm,ALPHABET:Im,generateString:b0,isSpecCompliantForm:S0,toJSONObject:E0,isAsyncFn:k0,isThenable:_0,setImmediate:Am,asap:P0};function ne(e,t,n,r,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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}A.inherits(ne,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:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Dm=ne.prototype,Mm={};["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=>{Mm[e]={value:e}});Object.defineProperties(ne,Mm);Object.defineProperty(Dm,"isAxiosError",{value:!0});ne.from=(e,t,n,r,o,s)=>{const l=Object.create(Dm);return A.toFlatObject(e,l,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),ne.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const O0=null;function $a(e){return A.isPlainObject(e)||A.isArray(e)}function Lm(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Od(e,t,n){return e?e.concat(t).map(function(o,s){return o=Lm(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function T0(e){return A.isArray(e)&&!e.some($a)}const R0=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Vs(e,t,n){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,j){return!A.isUndefined(j[x])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(o))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(A.isDate(v))return v.toISOString();if(!u&&A.isBlob(v))throw new ne("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(v)||A.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,x,j){let m=v;if(v&&!j&&typeof v=="object"){if(A.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=JSON.stringify(v);else if(A.isArray(v)&&T0(v)||(A.isFileList(v)||A.endsWith(x,"[]"))&&(m=A.toArray(v)))return x=Lm(x),m.forEach(function(f,g){!(A.isUndefined(f)||f===null)&&t.append(l===!0?Od([x],g,s):l===null?x:x+"[]",c(f))}),!1}return $a(v)?!0:(t.append(Od(j,x,s),c(v)),!1)}const p=[],y=Object.assign(R0,{defaultVisitor:d,convertValue:c,isVisitable:$a});function N(v,x){if(!A.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(v),A.forEach(v,function(m,h){(!(A.isUndefined(m)||m===null)&&o.call(t,m,A.isString(h)?h.trim():h,x,y))===!0&&N(m,x?x.concat(h):[h])}),p.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return N(e),t}function Td(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Zc(e,t){this._pairs=[],e&&Vs(e,this,t)}const Fm=Zc.prototype;Fm.append=function(t,n){this._pairs.push([t,n])};Fm.toString=function(t){const n=t?function(r){return t.call(this,r,Td)}:Td;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function I0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zm(e,t,n){if(!t)return e;const r=n&&n.encode||I0,o=n&&n.serialize;let s;if(o?s=o(t,n):s=A.isURLSearchParams(t)?t.toString():new Zc(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Rd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Bm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},A0=typeof URLSearchParams<"u"?URLSearchParams:Zc,D0=typeof FormData<"u"?FormData:null,M0=typeof Blob<"u"?Blob:null,L0={isBrowser:!0,classes:{URLSearchParams:A0,FormData:D0,Blob:M0},protocols:["http","https","file","blob","url","data"]},eu=typeof window<"u"&&typeof document<"u",Ua=typeof navigator=="object"&&navigator||void 0,F0=eu&&(!Ua||["ReactNative","NativeScript","NS"].indexOf(Ua.product)<0),z0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",B0=eu&&window.location.href||"http://localhost",$0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eu,hasStandardBrowserEnv:F0,hasStandardBrowserWebWorkerEnv:z0,navigator:Ua,origin:B0},Symbol.toStringTag,{value:"Module"})),Je={...$0,...L0};function U0(e,t){return Vs(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Je.isNode&&A.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function W0(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function V0(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return l=!l&&A.isArray(o)?o.length:l,u?(A.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!A.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&A.isArray(o[l])&&(o[l]=V0(o[l])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const n={};return A.forEachEntry(e,(r,o)=>{t(W0(r),o,n,0)}),n}return null}function q0(e,t,n){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const $i={transitional:Bm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=A.isObject(t);if(s&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o?JSON.stringify($m(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return U0(t,this.formSerializer).toString();if((a=A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Vs(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),q0(t)):t}],transformResponse:[function(t){const n=this.transitional||$i.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?ne.from(a,ne.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{$i.headers[e]={}});const H0=A.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"]),K0=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&H0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Id=Symbol("internals");function qr(e){return e&&String(e).trim().toLowerCase()}function ko(e){return e===!1||e==null?e:A.isArray(e)?e.map(ko):String(e)}function Y0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Q0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ml(e,t,n,r,o){if(A.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!A.isString(t)){if(A.isString(r))return t.indexOf(r)!==-1;if(A.isRegExp(r))return r.test(t)}}function G0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function J0(e,t){const n=A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}class Xe{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,u,c){const d=qr(u);if(!d)throw new Error("header name must be a non-empty string");const p=A.findKey(o,d);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||u]=ko(a))}const l=(a,u)=>A.forEach(a,(c,d)=>s(c,d,u));if(A.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(A.isString(t)&&(t=t.trim())&&!Q0(t))l(K0(t),n);else if(A.isHeaders(t))for(const[a,u]of t.entries())s(u,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=qr(t),t){const r=A.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Y0(o);if(A.isFunction(n))return n.call(this,o,r);if(A.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qr(t),t){const r=A.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ml(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=qr(l),l){const a=A.findKey(r,l);a&&(!n||Ml(r,r[a],a,n))&&(delete r[a],o=!0)}}return A.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Ml(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return A.forEach(this,(o,s)=>{const l=A.findKey(r,s);if(l){n[l]=ko(o),delete n[s];return}const a=t?G0(s):String(s).trim();a!==s&&delete n[s],n[a]=ko(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return A.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&A.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Id]=this[Id]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=qr(l);r[a]||(J0(o,l),r[a]=!0)}return A.isArray(t)?t.forEach(s):s(t),this}}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(Xe);function Ll(e,t){const n=this||$i,r=t||n,o=Xe.from(r.headers);let s=r.data;return A.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Um(e){return!!(e&&e.__CANCEL__)}function Ir(e,t,n){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(Ir,ne,{__CANCEL__:!0});function Wm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ne("Request failed with status code "+n.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function X0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Z0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[s];l||(l=c),n[o]=u,r[o]=c;let p=s,y=0;for(;p!==o;)y+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-l{n=d,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=r?l(c,d):(o=c,s||(s=setTimeout(()=>{s=null,l(o)},r-p)))},()=>o&&l(o)]}const ms=(e,t,n=3)=>{let r=0;const o=Z0(50,250);return e1(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,u=l-r,c=o(u),d=l<=a;r=l;const p={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-l)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Ad=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Dd=e=>(...t)=>A.asap(()=>e(...t)),t1=Je.hasStandardBrowserEnv?function(){const t=Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent),n=document.createElement("a");let r;function o(s){let l=s;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{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 r=o(window.location.href),function(l){const a=A.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),n1=Je.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),A.isString(r)&&l.push("path="+r),A.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.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 r1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vm(e,t){return e&&!r1(t)?i1(e,t):t}const Md=e=>e instanceof Xe?{...e}:e;function qn(e,t){t=t||{};const n={};function r(c,d,p){return A.isPlainObject(c)&&A.isPlainObject(d)?A.merge.call({caseless:p},c,d):A.isPlainObject(d)?A.merge({},d):A.isArray(d)?d.slice():d}function o(c,d,p){if(A.isUndefined(d)){if(!A.isUndefined(c))return r(void 0,c,p)}else return r(c,d,p)}function s(c,d){if(!A.isUndefined(d))return r(void 0,d)}function l(c,d){if(A.isUndefined(d)){if(!A.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const u={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(c,d)=>o(Md(c),Md(d),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=u[d]||o,y=p(e[d],t[d],d);A.isUndefined(y)&&p!==a||(n[d]=y)}),n}const qm=e=>{const t=qn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=Xe.from(l),t.url=zm(Vm(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(A.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((u=l.getContentType())!==!1){const[c,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Je.hasStandardBrowserEnv&&(r&&A.isFunction(r)&&(r=r(t)),r||r!==!1&&t1(t.url))){const c=o&&s&&n1.read(s);c&&l.set(o,c)}return t},o1=typeof XMLHttpRequest<"u",s1=o1&&function(e){return new Promise(function(n,r){const o=qm(e);let s=o.data;const l=Xe.from(o.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=o,d,p,y,N,v;function x(){N&&N(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let j=new XMLHttpRequest;j.open(o.method.toUpperCase(),o.url,!0),j.timeout=o.timeout;function m(){if(!j)return;const f=Xe.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:f,config:e,request:j};Wm(function(_){n(_),x()},function(_){r(_),x()},b),j=null}"onloadend"in j?j.onloadend=m:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(m)},j.onabort=function(){j&&(r(new ne("Request aborted",ne.ECONNABORTED,e,j)),j=null)},j.onerror=function(){r(new ne("Network Error",ne.ERR_NETWORK,e,j)),j=null},j.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||Bm;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),r(new ne(g,b.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,j)),j=null},s===void 0&&l.setContentType(null),"setRequestHeader"in j&&A.forEach(l.toJSON(),function(g,b){j.setRequestHeader(b,g)}),A.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),a&&a!=="json"&&(j.responseType=o.responseType),c&&([y,v]=ms(c,!0),j.addEventListener("progress",y)),u&&j.upload&&([p,N]=ms(u),j.upload.addEventListener("progress",p),j.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(d=f=>{j&&(r(!f||f.type?new Ir(null,e,j):f),j.abort(),j=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const h=X0(o.url);if(h&&Je.protocols.indexOf(h)===-1){r(new ne("Unsupported protocol "+h+":",ne.ERR_BAD_REQUEST,e));return}j.send(s||null)})},l1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(c){if(!o){o=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof ne?d:new Ir(d instanceof Error?d.message:d))}};let l=t&&setTimeout(()=>{l=null,s(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=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}=r;return u.unsubscribe=()=>A.asap(a),u}},a1=function*(e,t){let n=e.byteLength;if(!t||n{const o=c1(e,t);let s=0,l,a=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){a(),u.close();return}let p=d.byteLength;if(n){let y=s+=p;n(y)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),o.return()}},{highWaterMark:2})},qs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hm=qs&&typeof ReadableStream=="function",d1=qs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Km=(e,...t)=>{try{return!!e(...t)}catch{return!1}},f1=Hm&&Km(()=>{let e=!1;const t=new Request(Je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Fd=64*1024,Wa=Hm&&Km(()=>A.isReadableStream(new Response("").body)),hs={stream:Wa&&(e=>e.body)};qs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!hs[t]&&(hs[t]=A.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ne(`Response type '${t}' is not supported`,ne.ERR_NOT_SUPPORT,r)})})})(new Response);const p1=async e=>{if(e==null)return 0;if(A.isBlob(e))return e.size;if(A.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(A.isArrayBufferView(e)||A.isArrayBuffer(e))return e.byteLength;if(A.isURLSearchParams(e)&&(e=e+""),A.isString(e))return(await d1(e)).byteLength},m1=async(e,t)=>{const n=A.toFiniteNumber(e.getContentLength());return n??p1(t)},h1=qs&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:y}=qm(e);c=c?(c+"").toLowerCase():"text";let N=l1([o,s&&s.toAbortSignal()],l),v;const x=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let j;try{if(u&&f1&&n!=="get"&&n!=="head"&&(j=await m1(d,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(A.isFormData(r)&&(E=b.headers.get("content-type"))&&d.setContentType(E),b.body){const[_,S]=Ad(j,ms(Dd(u)));r=Ld(b.body,Fd,_,S)}}A.isString(p)||(p=p?"include":"omit");const m="credentials"in Request.prototype;v=new Request(t,{...y,signal:N,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m?p:void 0});let h=await fetch(v);const f=Wa&&(c==="stream"||c==="response");if(Wa&&(a||f&&x)){const b={};["status","statusText","headers"].forEach(M=>{b[M]=h[M]});const E=A.toFiniteNumber(h.headers.get("content-length")),[_,S]=a&&Ad(E,ms(Dd(a),!0))||[];h=new Response(Ld(h.body,Fd,_,()=>{S&&S(),x&&x()}),b)}c=c||"text";let g=await hs[A.findKey(hs,c)||"text"](h,e);return!f&&x&&x(),await new Promise((b,E)=>{Wm(b,E,{data:g,headers:Xe.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:v})})}catch(m){throw x&&x(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ne("Network Error",ne.ERR_NETWORK,e,v),{cause:m.cause||m}):ne.from(m,m&&m.code,e,v)}}),Va={http:O0,xhr:s1,fetch:h1};A.forEach(Va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zd=e=>`- ${e}`,v1=e=>A.isFunction(e)||e===null||e===!1,Ym={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since : +`+s.map(zd).join(` +`):" "+zd(s[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Va};function Fl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ir(null,e)}function Bd(e){return Fl(e),e.headers=Xe.from(e.headers),e.data=Ll.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ym.getAdapter(e.adapter||$i.adapter)(e).then(function(r){return Fl(e),r.data=Ll.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return Um(r)||(Fl(e),r&&r.response&&(r.response.data=Ll.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const Qm="1.7.7",tu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $d={};tu.transitional=function(t,n,r){function o(s,l){return"[Axios v"+Qm+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,a)=>{if(t===!1)throw new ne(o(l," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!$d[l]&&($d[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,a):!0}};function y1(e,t,n){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const a=e[s],u=a===void 0||l(a,s,e);if(u!==!0)throw new ne("option "+s+" must be "+u,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+s,ne.ERR_BAD_OPTION)}}const qa={assertOptions:y1,validators:tu},Gt=qa.validators;class Mn{constructor(t){this.defaults=t,this.interceptors={request:new Rd,response:new Rd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&qa.assertOptions(r,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),o!=null&&(A.isFunction(o)?n.paramsSerializer={serialize:o}:qa.assertOptions(o,{encode:Gt.function,serialize:Gt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&A.merge(s.common,s[n.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=Xe.concat(l,s);const a=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let d,p=0,y;if(!u){const v=[Bd.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);p{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(a=>{r.subscribe(a),s=a}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,a){r.reason||(r.reason=new Ir(s,l,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new nu(function(o){t=o}),cancel:t}}}function g1(e){return function(n){return e.apply(null,n)}}function x1(e){return A.isObject(e)&&e.isAxiosError===!0}const Ha={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(Ha).forEach(([e,t])=>{Ha[t]=e});function Gm(e){const t=new Mn(e),n=km(Mn.prototype.request,t);return A.extend(n,Mn.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Gm(qn(e,o))},n}const fe=Gm($i);fe.Axios=Mn;fe.CanceledError=Ir;fe.CancelToken=nu;fe.isCancel=Um;fe.VERSION=Qm;fe.toFormData=Vs;fe.AxiosError=ne;fe.Cancel=fe.CanceledError;fe.all=function(t){return Promise.all(t)};fe.spread=g1;fe.isAxiosError=x1;fe.mergeConfig=qn;fe.AxiosHeaders=Xe;fe.formToJSON=e=>$m(A.isHTMLForm(e)?new FormData(e):e);fe.getAdapter=Ym.getAdapter;fe.HttpStatusCode=Ha;fe.default=fe;const j1="http://67.225.129.127:3002",Yt=fe.create({baseURL:j1});Yt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const N1=e=>Yt.post("/users/signup",e),w1=e=>Yt.post("/users/signin",e),C1=(e,t,n)=>Yt.get(`/users/${e}/verify/${t}`,n),b1=e=>Yt.post("/properties",e),S1=(e,t,n)=>Yt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),E1=e=>Yt.get(`/properties/${e}`,e),k1=(e,t)=>Yt.put(`/properties/${e}`,t),_1=e=>Yt.get(`/users/${e}`),_o=Dt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await w1(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),Po=Dt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const o=await N1(e);return n.success("Register Successfully"),t("/registrationsuccess"),o.data}catch(o){return r(o.response.data)}}),Oo=Dt("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await fe.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),Jm=Jc({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(_o.pending,t=>{t.loading=!0}).addCase(_o.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(_o.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Po.pending,t=>{t.loading=!0}).addCase(Po.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Po.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Oo.pending,t=>{t.isLoading=!0}).addCase(Oo.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Oo.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:XN,setLogout:P1,setUserDetails:ZN}=Jm.actions,O1=Jm.reducer,To=Dt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await _1(e)).data}catch(n){return t(n.response.data)}}),Ro=Dt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await C1(e,t,n)).data.message}catch(o){return r(o.response.data)}}),T1=Jc({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(To.pending,t=>{t.loading=!0,t.error=null}).addCase(To.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(To.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Ro.pending,t=>{t.loading=!0,t.error=null}).addCase(Ro.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Ro.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),R1=T1.reducer,Io=Dt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await b1(e)).data}catch(n){return t(n.response.data)}}),Ao=Dt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:r})=>{try{return(await S1(e,t,n)).data}catch(o){return r(o.response.data)}}),li=Dt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await E1(e)).data}catch(n){return t(n.response.data)}}),Do=Dt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await k1(e,t)).data}catch(r){return n(r.response.data)}}),ai=Dt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await fe.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),I1=Jc({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Io.pending,t=>{t.status="loading"}).addCase(Io.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Io.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ao.pending,t=>{t.loading=!0}).addCase(Ao.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Ao.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(li.pending,t=>{t.status="loading"}).addCase(li.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(li.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Do.pending,t=>{t.status="loading"}).addCase(Do.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Do.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ai.pending,t=>{t.loading=!0}).addCase(ai.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(ai.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),A1=I1.reducer,D1=Sx({reducer:{auth:O1,user:R1,property:A1}});/** + * @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 Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Xm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function L1(){return Math.random().toString(36).substr(2,8)}function Wd(e,t){return{usr:e.state,key:e.key,idx:t}}function Ka(e,t,n,r){return n===void 0&&(n=null),Oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ar(t):t,{state:n,key:t&&t.key||r||L1()})}function vs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ar(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function F1(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,a=ln.Pop,u=null,c=d();c==null&&(c=0,l.replaceState(Oi({},l.state,{idx:c}),""));function d(){return(l.state||{idx:null}).idx}function p(){a=ln.Pop;let j=d(),m=j==null?null:j-c;c=j,u&&u({action:a,location:x.location,delta:m})}function y(j,m){a=ln.Push;let h=Ka(x.location,j,m);c=d()+1;let f=Wd(h,c),g=x.createHref(h);try{l.pushState(f,"",g)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(g)}s&&u&&u({action:a,location:x.location,delta:1})}function N(j,m){a=ln.Replace;let h=Ka(x.location,j,m);c=d();let f=Wd(h,c),g=x.createHref(h);l.replaceState(f,"",g),s&&u&&u({action:a,location:x.location,delta:0})}function v(j){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof j=="string"?j:vs(j);return h=h.replace(/ $/,"%20"),Ne(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let x={get action(){return a},get location(){return e(o,l)},listen(j){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Ud,p),u=j,()=>{o.removeEventListener(Ud,p),u=null}},createHref(j){return t(o,j)},createURL:v,encodeLocation(j){let m=v(j);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:N,go(j){return l.go(j)}};return x}var Vd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vd||(Vd={}));function z1(e,t,n){return n===void 0&&(n="/"),B1(e,t,n,!1)}function B1(e,t,n,r){let o=typeof t=="string"?Ar(t):t,s=_r(o.pathname||"/",n);if(s==null)return null;let l=Zm(e);$1(l);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};u.relativePath.startsWith("/")&&(Ne(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=yn([r,u.relativePath]),d=n.concat(u);s.children&&s.children.length>0&&(Ne(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Zm(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Y1(c,s.index),routesMeta:d})};return e.forEach((s,l)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,l);else for(let u of eh(s.path))o(s,l,u)}),t}function eh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=eh(r.join("/")),a=[];return a.push(...l.map(u=>u===""?s:[s,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function $1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Q1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const U1=/^:[\w-]+$/,W1=3,V1=2,q1=1,H1=10,K1=-2,qd=e=>e==="*";function Y1(e,t){let n=e.split("/"),r=n.length;return n.some(qd)&&(r+=K1),t&&(r+=V1),n.filter(o=>!qd(o)).reduce((o,s)=>o+(U1.test(s)?W1:s===""?q1:H1),r)}function Q1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function G1(e,t,n){let{routesMeta:r}=e,o={},s="/",l=[];for(let a=0;a{let{paramName:y,isOptional:N}=d;if(y==="*"){let x=a[p]||"";l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const v=a[p];return N&&!v?c[y]=void 0:c[y]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:l,pattern:e}}function J1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xm(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function X1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xm(!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 _r(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Z1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ar(e):e;return{pathname:n?n.startsWith("/")?n:ej(n,t):t,search:rj(r),hash:ij(o)}}function ej(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 zl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. 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 tj(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function th(e,t){let n=tj(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function nh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ar(e):(o=Oi({},e),Ne(!o.pathname||!o.pathname.includes("?"),zl("?","pathname","search",o)),Ne(!o.pathname||!o.pathname.includes("#"),zl("#","pathname","hash",o)),Ne(!o.search||!o.search.includes("#"),zl("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,a;if(l==null)a=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),p-=1;o.pathname=y.join("/")}a=p>=0?t[p]:"/"}let u=Z1(o,a),c=l&&l!=="/"&&l.endsWith("/"),d=(s||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const yn=e=>e.join("/").replace(/\/\/+/g,"/"),nj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ij=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rh=["post","put","patch","delete"];new Set(rh);const sj=["get",...rh];new Set(sj);/** + * 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 Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),R.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let p=nh(c,JSON.parse(l),s,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:yn([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,l,s,e])}function Mr(){let{matches:e}=R.useContext(Sn),t=e[e.length-1];return t?t.params:{}}function Ys(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(bn),{matches:o}=R.useContext(Sn),{pathname:s}=Wi(),l=JSON.stringify(th(o,r.v7_relativeSplatPath));return R.useMemo(()=>nh(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function cj(e,t){return uj(e,t)}function uj(e,t,n,r){Ui()||Ne(!1);let{navigator:o}=R.useContext(bn),{matches:s}=R.useContext(Sn),l=s[s.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let c=Wi(),d;if(t){var p;let j=typeof t=="string"?Ar(t):t;u==="/"||(p=j.pathname)!=null&&p.startsWith(u)||Ne(!1),d=j}else d=c;let y=d.pathname||"/",N=y;if(u!=="/"){let j=u.replace(/^\//,"").split("/");N="/"+y.replace(/^\//,"").split("/").slice(j.length).join("/")}let v=z1(e,{pathname:N}),x=hj(v&&v.map(j=>Object.assign({},j,{params:Object.assign({},a,j.params),pathname:yn([u,o.encodeLocation?o.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?u:yn([u,o.encodeLocation?o.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),s,n,r);return t&&x?R.createElement(Ks.Provider,{value:{location:Ti({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ln.Pop}},x):x}function dj(){let e=xj(),t=oj(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 fj=R.createElement(dj,null);class pj 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(Sn.Provider,{value:this.props.routeContext},R.createElement(oh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mj(e){let{routeContext:t,match:n,children:r}=e,o=R.useContext(Hs);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(Sn.Provider,{value:t},r)}function hj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=l.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||Ne(!1),l=l.slice(0,Math.min(l.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?l=l.slice(0,c+1):l=[l[0]];break}}}return l.reduceRight((d,p,y)=>{let N,v=!1,x=null,j=null;n&&(N=a&&p.route.id?a[p.route.id]:void 0,x=p.route.errorElement||fj,u&&(c<0&&y===0?(v=!0,j=null):c===y&&(v=!0,j=p.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,y+1)),h=()=>{let f;return N?f=x:v?f=j:p.route.Component?f=R.createElement(p.route.Component,null):p.route.element?f=p.route.element:f=d,R.createElement(mj,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:f})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?R.createElement(pj,{location:n.location,revalidation:n.revalidation,component:x,error:N,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var lh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(lh||{}),gs=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}(gs||{});function vj(e){let t=R.useContext(Hs);return t||Ne(!1),t}function yj(e){let t=R.useContext(ih);return t||Ne(!1),t}function gj(e){let t=R.useContext(Sn);return t||Ne(!1),t}function ah(e){let t=gj(),n=t.matches[t.matches.length-1];return n.route.id||Ne(!1),n.route.id}function xj(){var e;let t=R.useContext(oh),n=yj(gs.UseRouteError),r=ah(gs.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jj(){let{router:e}=vj(lh.UseNavigateStable),t=ah(gs.UseNavigateStable),n=R.useRef(!1);return sh(()=>{n.current=!0}),R.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ti({fromRouteId:t},s)))},[e,t])}function ke(e){Ne(!1)}function Nj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ln.Pop,navigator:s,static:l=!1,future:a}=e;Ui()&&Ne(!1);let u=t.replace(/^\/*/,"/"),c=R.useMemo(()=>({basename:u,navigator:s,static:l,future:Ti({v7_relativeSplatPath:!1},a)}),[u,a,s,l]);typeof r=="string"&&(r=Ar(r));let{pathname:d="/",search:p="",hash:y="",state:N=null,key:v="default"}=r,x=R.useMemo(()=>{let j=_r(d,u);return j==null?null:{location:{pathname:j,search:p,hash:y,state:N,key:v},navigationType:o}},[u,d,p,y,N,v,o]);return x==null?null:R.createElement(bn.Provider,{value:c},R.createElement(Ks.Provider,{children:n,value:x}))}function wj(e){let{children:t,location:n}=e;return cj(Ya(t),n)}new Promise(()=>{});function Ya(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,o)=>{if(!R.isValidElement(r))return;let s=[...t,o];if(r.type===R.Fragment){n.push.apply(n,Ya(r.props.children,s));return}r.type!==ke&&Ne(!1),!r.props.index||!r.props.children||Ne(!1);let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ya(r.props.children,s)),n.push(l)}),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 xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Cj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bj(e,t){return e.button===0&&(!t||t==="_self")&&!Cj(e)}const Sj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ej=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],kj="6";try{window.__reactRouterVersion=kj}catch{}const _j=R.createContext({isTransitioning:!1}),Pj="startTransition",Hd=$l[Pj];function Oj(e){let{basename:t,children:n,future:r,window:o}=e,s=R.useRef();s.current==null&&(s.current=M1({window:o,v5Compat:!0}));let l=s.current,[a,u]=R.useState({action:l.action,location:l.location}),{v7_startTransition:c}=r||{},d=R.useCallback(p=>{c&&Hd?Hd(()=>u(p)):u(p)},[u,c]);return R.useLayoutEffect(()=>l.listen(d),[l,d]),R.createElement(Nj,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l,future:r})}const Tj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ij=R.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:l,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:p}=t,y=ch(t,Sj),{basename:N}=R.useContext(bn),v,x=!1;if(typeof c=="string"&&Rj.test(c)&&(v=c,Tj))try{let f=new URL(window.location.href),g=c.startsWith("//")?new URL(f.protocol+c):new URL(c),b=_r(g.pathname,N);g.origin===f.origin&&b!=null?c=b+g.search+g.hash:x=!0}catch{}let j=lj(c,{relative:o}),m=Dj(c,{replace:l,state:a,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:p});function h(f){r&&r(f),f.defaultPrevented||m(f)}return R.createElement("a",xs({},y,{href:v||j,onClick:x||s?r:h,ref:n,target:u}))}),he=R.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:l=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,p=ch(t,Ej),y=Ys(u,{relative:p.relative}),N=Wi(),v=R.useContext(ih),{navigator:x,basename:j}=R.useContext(bn),m=v!=null&&Mj(y)&&c===!0,h=x.encodeLocation?x.encodeLocation(y).pathname:y.pathname,f=N.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(f=f.toLowerCase(),g=g?g.toLowerCase():null,h=h.toLowerCase()),g&&j&&(g=_r(g,j)||g);const b=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=f===h||!l&&f.startsWith(h)&&f.charAt(b)==="/",_=g!=null&&(g===h||!l&&g.startsWith(h)&&g.charAt(h.length)==="/"),S={isActive:E,isPending:_,isTransitioning:m},M=E?r:void 0,F;typeof s=="function"?F=s(S):F=[s,E?"active":null,_?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let U=typeof a=="function"?a(S):a;return R.createElement(Ij,xs({},p,{"aria-current":M,className:F,ref:n,style:U,to:u,unstable_viewTransition:c}),typeof d=="function"?d(S):d)});var Qa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qa||(Qa={}));var Kd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kd||(Kd={}));function Aj(e){let t=R.useContext(Hs);return t||Ne(!1),t}function Dj(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=Dr(),c=Wi(),d=Ys(e,{relative:l});return R.useCallback(p=>{if(bj(p,n)){p.preventDefault();let y=r!==void 0?r:vs(c)===vs(d);u(e,{replace:y,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:a})}},[c,u,d,r,o,n,e,s,l,a])}function Mj(e,t){t===void 0&&(t={});let n=R.useContext(_j);n==null&&Ne(!1);let{basename:r}=Aj(Qa.useViewTransitionState),o=Ys(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=_r(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=_r(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ys(o.pathname,l)!=null||ys(o.pathname,s)!=null}function uh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Ln=e=>typeof e=="string",rt=e=>typeof e=="function",Mo=e=>Ln(e)||rt(e)?e:null,Ga=e=>R.isValidElement(e)||Ln(e)||rt(e)||Ri(e);function Lj(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Qs(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(l){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:p,isIn:y,playToast:N}=l;const v=r?`${t}--${u}`:t,x=r?`${n}--${u}`:n,j=R.useRef(0);return R.useLayoutEffect(()=>{const m=p.current,h=v.split(" "),f=g=>{g.target===p.current&&(N(),m.removeEventListener("animationend",f),m.removeEventListener("animationcancel",f),j.current===0&&g.type!=="animationcancel"&&m.classList.remove(...h))};m.classList.add(...h),m.addEventListener("animationend",f),m.addEventListener("animationcancel",f)},[]),R.useEffect(()=>{const m=p.current,h=()=>{m.removeEventListener("animationend",h),o?Lj(m,d,s):d()};y||(c?h():(j.current=1,m.className+=` ${x}`,m.addEventListener("animationend",h)))},[y]),T.createElement(T.Fragment,null,a)}}function Yd(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 Ii=[];const Ja=new Set,Fj=e=>Ja.forEach(t=>t(e)),dh=()=>$e.size>0;function fh(e,t){var n;if(t)return!((n=$e.get(t))==null||!n.isToastActive(e));let r=!1;return $e.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function ph(e,t){Ga(e)&&(dh()||Ii.push({content:e,options:t}),$e.forEach(n=>{n.buildToast(e,t)}))}function Qd(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 zj(e){const{subscribe:t,getSnapshot:n,setProps:r}=R.useRef(function(s){const l=s.containerId||1;return{subscribe(a){const u=function(d,p,y){let N=1,v=0,x=[],j=[],m=[],h=p;const f=new Map,g=new Set,b=()=>{m=Array.from(f.values()),g.forEach(S=>S())},E=S=>{j=S==null?[]:j.filter(M=>M!==S),b()},_=S=>{const{toastId:M,onOpen:F,updateId:U,children:Z}=S.props,G=U==null;S.staleId&&f.delete(S.staleId),f.set(M,S),j=[...j,S.props.toastId].filter(J=>J!==S.staleId),b(),y(Yd(S,G?"added":"updated")),G&&rt(F)&&F(R.isValidElement(Z)&&Z.props)};return{id:d,props:h,observe:S=>(g.add(S),()=>g.delete(S)),toggle:(S,M)=>{f.forEach(F=>{M!=null&&M!==F.props.toastId||rt(F.toggle)&&F.toggle(S)})},removeToast:E,toasts:f,clearQueue:()=>{v-=x.length,x=[]},buildToast:(S,M)=>{if((z=>{let{containerId:q,toastId:K,updateId:X}=z;const ee=q?q!==d:d!==1,te=f.has(K)&&X==null;return ee||te})(M))return;const{toastId:F,updateId:U,data:Z,staleId:G,delay:J}=M,I=()=>{E(F)},B=U==null;B&&v++;const Q={...h,style:h.toastStyle,key:N++,...Object.fromEntries(Object.entries(M).filter(z=>{let[q,K]=z;return K!=null})),toastId:F,updateId:U,data:Z,closeToast:I,isIn:!1,className:Mo(M.className||h.toastClassName),bodyClassName:Mo(M.bodyClassName||h.bodyClassName),progressClassName:Mo(M.progressClassName||h.progressClassName),autoClose:!M.isLoading&&(O=M.autoClose,P=h.autoClose,O===!1||Ri(O)&&O>0?O:P),deleteToast(){const z=f.get(F),{onClose:q,children:K}=z.props;rt(q)&&q(R.isValidElement(K)&&K.props),y(Yd(z,"removed")),f.delete(F),v--,v<0&&(v=0),x.length>0?_(x.shift()):b()}};var O,P;Q.closeButton=h.closeButton,M.closeButton===!1||Ga(M.closeButton)?Q.closeButton=M.closeButton:M.closeButton===!0&&(Q.closeButton=!Ga(h.closeButton)||h.closeButton);let D=S;R.isValidElement(S)&&!Ln(S.type)?D=R.cloneElement(S,{closeToast:I,toastProps:Q,data:Z}):rt(S)&&(D=S({closeToast:I,toastProps:Q,data:Z}));const L={content:D,props:Q,staleId:G};h.limit&&h.limit>0&&v>h.limit&&B?x.push(L):Ri(J)?setTimeout(()=>{_(L)},J):_(L)},setProps(S){h=S},setToggle:(S,M)=>{f.get(S).toggle=M},isToastActive:S=>j.some(M=>M===S),getSnapshot:()=>h.newestOnTop?m.reverse():m}}(l,s,Fj);$e.set(l,u);const c=u.observe(a);return Ii.forEach(d=>ph(d.content,d.options)),Ii=[],()=>{c(),$e.delete(l)}},setProps(a){var u;(u=$e.get(l))==null||u.setProps(a)},getSnapshot(){var a;return(a=$e.get(l))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=R.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!o)return[];const l=new Map;return o.forEach(a=>{const{position:u}=a.props;l.has(u)||l.set(u,[]),l.get(u).push(a)}),Array.from(l,a=>s(a[0],a[1]))},isToastActive:fh,count:o==null?void 0:o.length}}function Bj(e){const[t,n]=R.useState(!1),[r,o]=R.useState(!1),s=R.useRef(null),l=R.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:p}=e;var y,N;function v(){n(!0)}function x(){n(!1)}function j(f){const g=s.current;l.canDrag&&g&&(l.didMove=!0,t&&x(),l.delta=e.draggableDirection==="x"?f.clientX-l.start:f.clientY-l.start,l.start!==f.clientX&&(l.canCloseOnClick=!1),g.style.transform=`translate3d(${e.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,g.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function m(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",m);const f=s.current;if(l.canDrag&&l.didMove&&f){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();f.style.transition="transform 0.2s, opacity 0.2s",f.style.removeProperty("transform"),f.style.removeProperty("opacity")}}(N=$e.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(y.id,y.fn),R.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||x(),window.addEventListener("focus",v),window.addEventListener("blur",x),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",x)}},[e.pauseOnFocusLoss]);const h={onPointerDown:function(f){if(e.draggable===!0||e.draggable===f.pointerType){l.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",m);const g=s.current;l.canCloseOnClick=!0,l.canDrag=!0,g.style.transition="none",e.draggableDirection==="x"?(l.start=f.clientX,l.removalDistance=g.offsetWidth*(e.draggablePercent/100)):(l.start=f.clientY,l.removalDistance=g.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(f){const{top:g,bottom:b,left:E,right:_}=s.current.getBoundingClientRect();f.nativeEvent.type!=="touchend"&&e.pauseOnHover&&f.clientX>=E&&f.clientX<=_&&f.clientY>=g&&f.clientY<=b?x():v()}};return a&&u&&(h.onMouseEnter=x,e.stacked||(h.onMouseLeave=v)),p&&(h.onClick=f=>{d&&d(f),l.canCloseOnClick&&c()}),{playToast:v,pauseToast:x,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:h}}function $j(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:s,className:l,style:a,controlledProgress:u,progress:c,rtl:d,isIn:p,theme:y}=e;const N=s||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const x=an("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),j=rt(l)?l({rtl:d,type:o,defaultClassName:x}):an(x,l),m={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{p&&r()}};return T.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},T.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${o}`}),T.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:j,style:v,...m}))}let Uj=1;const mh=()=>""+Uj++;function Wj(e){return e&&(Ln(e.toastId)||Ri(e.toastId))?e.toastId:mh()}function ci(e,t){return ph(e,t),t.toastId}function js(e,t){return{...t,type:t&&t.type||e,toastId:Wj(t)}}function fo(e){return(t,n)=>ci(t,js(e,n))}function ie(e,t){return ci(e,js("default",t))}ie.loading=(e,t)=>ci(e,js("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ie.promise=function(e,t,n){let r,{pending:o,error:s,success:l}=t;o&&(r=Ln(o)?ie.loading(o,n):ie.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,p,y)=>{if(p==null)return void ie.dismiss(r);const N={type:d,...a,...n,data:y},v=Ln(p)?{render:p}:p;return r?ie.update(r,{...N,...v}):ie(v.render,{...N,...v}),y},c=rt(e)?e():e;return c.then(d=>u("success",l,d)).catch(d=>u("error",s,d)),c},ie.success=fo("success"),ie.info=fo("info"),ie.error=fo("error"),ie.warning=fo("warning"),ie.warn=ie.warning,ie.dark=(e,t)=>ci(e,js("default",{theme:"dark",...t})),ie.dismiss=function(e){(function(t){var n;if(dh()){if(t==null||Ln(n=t)||Ri(n))$e.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=$e.get(t.containerId);r?r.removeToast(t.id):$e.forEach(o=>{o.removeToast(t.id)})}}else Ii=Ii.filter(r=>t!=null&&r.options.toastId!==t)})(e)},ie.clearWaitingQueue=function(e){e===void 0&&(e={}),$e.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ie.isActive=fh,ie.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var s;let{containerId:l}=o;return(s=$e.get(l||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:mh()};s.toastId!==e&&(s.staleId=e);const l=s.render||o;delete s.render,ci(l,s)}},ie.done=e=>{ie.update(e,{progress:1})},ie.onChange=function(e){return Ja.add(e),()=>{Ja.delete(e)}},ie.play=e=>Qd(!0,e),ie.pause=e=>Qd(!1,e);const Vj=typeof window<"u"?R.useLayoutEffect:R.useEffect,po=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return T.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Bl={info:function(e){return T.createElement(po,{...e},T.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 T.createElement(po,{...e},T.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 T.createElement(po,{...e},T.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 T.createElement(po,{...e},T.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 T.createElement("div",{className:"Toastify__spinner"})}},qj=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:s}=Bj(e),{closeButton:l,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:p,closeToast:y,transition:N,position:v,className:x,style:j,bodyClassName:m,bodyStyle:h,progressClassName:f,progressStyle:g,updateId:b,role:E,progress:_,rtl:S,toastId:M,deleteToast:F,isIn:U,isLoading:Z,closeOnClick:G,theme:J}=e,I=an("Toastify__toast",`Toastify__toast-theme--${J}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":G}),B=rt(x)?x({rtl:S,position:v,type:d,defaultClassName:I}):an(I,x),Q=function(L){let{theme:z,type:q,isLoading:K,icon:X}=L,ee=null;const te={theme:z,type:q};return X===!1||(rt(X)?ee=X({...te,isLoading:K}):R.isValidElement(X)?ee=R.cloneElement(X,te):K?ee=Bl.spinner():(re=>re in Bl)(q)&&(ee=Bl[q](te))),ee}(e),O=!!_||!u,P={closeToast:y,type:d,theme:J};let D=null;return l===!1||(D=rt(l)?l(P):R.isValidElement(l)?R.cloneElement(l,P):function(L){let{closeToast:z,theme:q,ariaLabel:K="close"}=L;return T.createElement("button",{className:`Toastify__close-button Toastify__close-button--${q}`,type:"button",onClick:X=>{X.stopPropagation(),z(X)},"aria-label":K},T.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},T.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"})))}(P)),T.createElement(N,{isIn:U,done:F,position:v,preventExitTransition:n,nodeRef:r,playToast:s},T.createElement("div",{id:M,onClick:c,"data-in":U,className:B,...o,style:j,ref:r},T.createElement("div",{...U&&{role:E},className:rt(m)?m({type:d}):an("Toastify__toast-body",m),style:h},Q!=null&&T.createElement("div",{className:an("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Z})},Q),T.createElement("div",null,a)),D,T.createElement($j,{...b&&!O?{key:`pb-${b}`}:{},rtl:S,theme:J,delay:u,isRunning:t,isIn:U,closeToast:y,hide:p,type:d,style:g,className:f,controlledProgress:O,progress:_||0})))},Gs=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Hj=Qs(Gs("bounce",!0));Qs(Gs("slide",!0));Qs(Gs("zoom"));Qs(Gs("flip"));const Kj={position:"top-right",transition:Hj,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Yj(e){let t={...Kj,...e};const n=e.stacked,[r,o]=R.useState(!0),s=R.useRef(null),{getToastToRender:l,isToastActive:a,count:u}=zj(t),{className:c,style:d,rtl:p,containerId:y}=t;function N(x){const j=an("Toastify__toast-container",`Toastify__toast-container--${x}`,{"Toastify__toast-container--rtl":p});return rt(c)?c({position:x,rtl:p,defaultClassName:j}):an(j,Mo(c))}function v(){n&&(o(!0),ie.play())}return Vj(()=>{if(n){var x;const j=s.current.querySelectorAll('[data-in="true"]'),m=12,h=(x=t.position)==null?void 0:x.includes("top");let f=0,g=0;Array.from(j).reverse().forEach((b,E)=>{const _=b;_.classList.add("Toastify__toast--stacked"),E>0&&(_.dataset.collapsed=`${r}`),_.dataset.pos||(_.dataset.pos=h?"top":"bot");const S=f*(r?.2:1)+(r?0:m*E);_.style.setProperty("--y",`${h?S:-1*S}px`),_.style.setProperty("--g",`${m}`),_.style.setProperty("--s",""+(1-(r?g:0))),f+=_.offsetHeight,g+=.025})}},[r,u,n]),T.createElement("div",{ref:s,className:"Toastify",id:y,onMouseEnter:()=>{n&&(o(!1),ie.pause())},onMouseLeave:v},l((x,j)=>{const m=j.length?{...d}:{...d,pointerEvents:"none"};return T.createElement("div",{className:N(x),style:m,key:`container-${x}`},j.map(h=>{let{content:f,props:g}=h;return T.createElement(qj,{...g,stacked:n,collapseAll:v,isIn:a(g.toastId,g.containerId),style:g.style,key:`toast-${g.key}`},f)}))}))}const ze=()=>{const e=new Date().getFullYear();return i.jsx(i.Fragment,{children:i.jsxs("div",{children:[i.jsx("div",{className:"footer_section layout_padding",children:i.jsxs("div",{className:"container",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12"})}),i.jsx("div",{className:"footer_section_2",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),i.jsx("div",{className:"footer_menu",children:i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx(he,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),i.jsx("li",{children:i.jsx(he,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),i.jsx("li",{children:i.jsx(he,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),i.jsx("li",{children:i.jsx(he,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),i.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"})]}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),i.jsxs("div",{className:"form-group",children:[i.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),i.jsx("div",{className:"subscribe_bt",children:i.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),i.jsx("div",{className:"social_icon",children:i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),i.jsx("div",{className:"copyright_section",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},Qj="/assets/logo-Cb1x1exd.png",Oe=()=>{var o,s;const{user:e}=Ze(l=>({...l.auth})),t=Et(),n=Dr(),r=()=>{t(P1()),n("/")};return i.jsx(i.Fragment,{children:i.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:i.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[i.jsxs("div",{className:"d-flex align-items-center",children:[i.jsx("img",{src:Qj,alt:"logo",width:"75",height:"75",className:"img-fluid"}),i.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),i.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[i.jsxs("ul",{className:"navbar-nav ml-auto",children:[i.jsx("li",{className:"nav-item active",children:i.jsx(he,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(o=e==null?void 0:e.result)!=null&&o._id?i.jsx(he,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):i.jsx(he,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(s=e==null?void 0:e.result)!=null&&s._id?i.jsx(he,{to:"/login",children:i.jsx("p",{className:"header-text",onClick:r,style:{fontWeight:"bold"},children:"Logout"})}):i.jsx(he,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},Gj=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{children:[i.jsx("div",{className:"header_section",children:i.jsx("div",{className:"banner_section layout_padding",children:i.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[i.jsxs("div",{className:"carousel-inner",children:[i.jsx("div",{className:"carousel-item active",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),i.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),i.jsx("div",{className:"carousel-item",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),i.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),i.jsx("div",{className:"carousel-item",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),i.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),i.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:i.jsx("i",{className:"fa fa-angle-left"})}),i.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:i.jsx("i",{className:"fa fa-angle-right"})})]})})}),i.jsx("div",{className:"services_section layout_padding",children:i.jsxs("div",{className:"container-fluid",children:[i.jsx("div",{className:"row",children:i.jsxs("div",{className:"col-sm-12",children:[i.jsx("h1",{className:"services_taital",children:"Our Services"}),i.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),i.jsx("div",{className:"services_section_2",children:i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main active",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-1.png"})}),i.jsx("h4",{className:"development_text",children:"Dedication Services"}),i.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"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-2.png"})}),i.jsx("h4",{className:"development_text",children:"Building work Reports"}),i.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-3.png"})}),i.jsx("h4",{className:"development_text",children:"Reporting continuously"}),i.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-4.png"})}),i.jsx("h4",{className:"development_text",children:"Manage your investment "}),i.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"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),i.jsx(ze,{})]}),Jj=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsxs("div",{className:"about_section layout_padding",children:[i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-6",children:[i.jsx("h1",{className:"about_taital",children:"About Us"}),i.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"," "]}),i.jsx("div",{className:"read_bt_1",children:i.jsx("a",{href:"#",children:"Read More"})})]}),i.jsx("div",{className:"col-md-6",children:i.jsx("div",{className:"about_img",children:i.jsx("div",{className:"video_bt",children:i.jsx("div",{className:"play_icon",children:i.jsx("img",{src:"images/play-icon.png"})})})})})]})}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{})]}),i.jsx(ze,{})]}),Xj=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsxs("div",{className:"contact_section layout_padding",children:[i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12",children:i.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),i.jsx("div",{className:"container-fluid",children:i.jsx("div",{className:"contact_section_2",children:i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-6",children:i.jsx("form",{action:!0,children:i.jsxs("div",{className:"mail_section_1",children:[i.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),i.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),i.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),i.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),i.jsx("div",{className:"send_bt",children:i.jsx("a",{href:"#",children:"SEND"})})]})})}),i.jsx("div",{className:"col-md-6 padding_left_15",children:i.jsx("div",{className:"contact_img",children:i.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),i.jsx(ze,{})]});var Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=R.useState(CN),[n,r]=R.useState(!1),{loading:o,error:s}=Ze(b=>({...b.auth})),{title:l,email:a,password:u,firstName:c,middleName:d,lastName:p,confirmPassword:y,termsconditions:N,userType:v}=e,x=Et(),j=Dr();R.useEffect(()=>{s&&ie.error(s)},[s]),R.useEffect(()=>{r(l!=="None"&&a&&u&&c&&d&&p&&y&&N&&v!=="")},[l,a,u,c,d,p,y,N,v]);const m=b=>{if(b.preventDefault(),u!==y)return ie.error("Password should match");n?x(Po({formValue:e,navigate:j,toast:ie})):ie.error("Please fill in all fields and select all checkboxes")},h=b=>b.charAt(0).toUpperCase()+b.slice(1),f=b=>{const{name:E,value:_,type:S,checked:M}=b.target;t(S==="checkbox"?F=>({...F,[E]:M}):F=>({...F,[E]:E==="email"||E==="password"||E==="confirmPassword"?_:h(_)}))},g=b=>{t(E=>({...E,userType:b.target.value}))};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"mb-4",children:[i.jsx("h2",{className:"h3",children:"Registration"}),i.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),i.jsx("hr",{})]})})}),i.jsx("form",{onSubmit:m,children:i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsxs("label",{className:"form-label",children:["Please select the role. ",i.jsx("br",{}),i.jsx("br",{})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:g,required:!0}),i.jsx("label",{className:"form-check-label",children:"Lender"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:g,required:!0}),i.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),i.jsx("br",{}),i.jsx("br",{})]})]})}),i.jsxs("div",{className:"col-12",children:[i.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l,onChange:f,children:[i.jsx("option",{value:"None",children:"Please Select Title"}),i.jsx("option",{value:"Dr",children:"Dr"}),i.jsx("option",{value:"Prof",children:"Prof"}),i.jsx("option",{value:"Mr",children:"Mr"}),i.jsx("option",{value:"Miss",children:"Miss"})]}),i.jsx("br",{})]}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:f,placeholder:"First Name",required:"required"}),i.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:f,placeholder:"Middle Name",required:"required"}),i.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:f,placeholder:"Last Name",required:"required"}),i.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:f,placeholder:"name@example.com",required:"required"}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:f,placeholder:"Password",required:"required"}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:f,placeholder:"confirmPassword",required:"required"}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-check",children:[i.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:f,required:!0}),i.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",i.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||o,children:[o&&i.jsx(hh.Bars,{}),"Sign up"]})})})]})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",i.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})})}),i.jsx(ze,{})]})},SN={email:"",password:""},EN=()=>{const[e,t]=R.useState(SN),{loading:n,error:r}=Ze(d=>({...d.auth})),{email:o,password:s}=e,l=Et(),a=Dr();R.useEffect(()=>{r&&ie.error(r)},[r]);const u=d=>{d.preventDefault(),o&&s&&l(_o({formValue:e,navigate:a,toast:ie}))},c=d=>{let{name:p,value:y}=d.target;t({...e,[p]:y})};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:i.jsx("div",{className:"text-bg-primary",children:i.jsxs("div",{className:"px-4",children:[i.jsx("hr",{className:"border-primary-subtle mb-4"}),i.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),i.jsx("div",{className:"text-endx",children:i.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:i.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"})})})]})})}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"mb-4",children:i.jsx("h2",{className:"h3",children:"Please Login"})})})}),i.jsx("form",{method:"POST",children:i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12"}),i.jsx("div",{className:"col-12"}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:o,name:"email",onChange:c,required:!0}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:s,name:"password",onChange:c,required:!0}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-check",children:[i.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),i.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&i.jsx(hh.Bars,{}),"Sign In"]})})})]})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",i.jsx(he,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),i.jsx(he,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})})}),i.jsx(ze,{})]})},Lo="/assets/samplepic-BM_cnzgz.jpg";var vh={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(rv,function(){return function(n){function r(s){if(o[s])return o[s].exports;var l=o[s]={exports:{},id:s,loaded:!1};return n[s].call(l.exports,l,l.exports,r),l.loaded=!0,l.exports}var o={};return r.m=n,r.c=o,r.p="",r(0)}([function(n,r,o){function s(N){return N&&N.__esModule?N:{default:N}}function l(N,v){if(!(N instanceof v))throw new TypeError("Cannot call a class as a function")}function a(N,v){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?N:v}function u(N,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);N.prototype=Object.create(v&&v.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(N,v):N.__proto__=v)}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function N(v,x){for(var j=0;j1)for(var b=1;b1?d-1:0),y=1;y2?p-2:0),N=2;N1){for(var J=Array(G),I=0;I"u"||S.$$typeof!==m)){var Q=typeof g=="function"?g.displayName||g.name||"Unknown":g;M&&u(S,Q),F&&c(S,Q)}return f(g,M,F,U,Z,N.current,S)},f.createFactory=function(g){var b=f.createElement.bind(null,g);return b.type=g,b},f.cloneAndReplaceKey=function(g,b){var E=f(g.type,b,g.ref,g._self,g._source,g._owner,g.props);return E},f.cloneElement=function(g,b,E){var _,S=y({},g.props),M=g.key,F=g.ref,U=g._self,Z=g._source,G=g._owner;if(b!=null){l(b)&&(F=b.ref,G=N.current),a(b)&&(M=""+b.key);var J;g.type&&g.type.defaultProps&&(J=g.type.defaultProps);for(_ in b)j.call(b,_)&&!h.hasOwnProperty(_)&&(b[_]===void 0&&J!==void 0?S[_]=J[_]:S[_]=b[_])}var I=arguments.length-2;if(I===1)S.children=E;else if(I>1){for(var B=Array(I),Q=0;Q1?c-1:0),p=1;p2?d-2:0),y=2;y.")}return _}function c(E,_){if(E._store&&!E._store.validated&&E.key==null){E._store.validated=!0;var S=g.uniqueKey||(g.uniqueKey={}),M=u(_);if(!S[M]){S[M]=!0;var F="";E&&E._owner&&E._owner!==y.current&&(F=" It was passed a child from "+E._owner.getName()+"."),s.env.NODE_ENV!=="production"&&h(!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,F,N.getCurrentStackAddendum(E))}}}function d(E,_){if(typeof E=="object"){if(Array.isArray(E))for(var S=0;S1?K-1:0),ee=1;ee"u"||L===null)return""+L;var z=G(L);if(z==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return z}function I(L){var z=J(L);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function B(L){return L.constructor&&L.constructor.name?L.constructor.name:P}var Q=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator",P="<>",D={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(),arrayOf:f,element:g(),instanceOf:b,node:M(),objectOf:_,oneOf:E,oneOfType:S,shape:F};return x.prototype=Error.prototype,D.checkPropTypes=d,D.PropTypes=D,D}}).call(r,o(1))},function(n,r){function o(a){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+a).replace(u,function(p){return c[p]});return"$"+d}function s(a){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=a[0]==="."&&a[1]==="$"?a.substring(2):a.substring(1);return(""+d).replace(u,function(p){return c[p]})}var l={escape:o,unescape:s};n.exports=l},function(n,r,o){(function(s){var l=o(5),a=o(2),u=function(m){var h=this;if(h.instancePool.length){var f=h.instancePool.pop();return h.call(f,m),f}return new h(m)},c=function(m,h){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,m,h),g}return new f(m,h)},d=function(m,h,f){var g=this;if(g.instancePool.length){var b=g.instancePool.pop();return g.call(b,m,h,f),b}return new g(m,h,f)},p=function(m,h,f,g){var b=this;if(b.instancePool.length){var E=b.instancePool.pop();return b.call(E,m,h,f,g),E}return new b(m,h,f,g)},y=function(m){var h=this;m instanceof h||(s.env.NODE_ENV!=="production"?a(!1,"Trying to release an instance into a pool of a different type."):l("25")),m.destructor(),h.instancePool.length{const[e,t]=R.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},r=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},o=Et(),{status:s,error:l}=Ze(w=>w.property),{user:a}=Ze(w=>({...w.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=R.useState({propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],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,y]=R.useState(!1),N=(w,C)=>{const k=[...c.images];k[C].file=w.base64,d({...c,images:k})},v=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},x=w=>{const C=c.images.filter((k,W)=>W!==w);d({...c,images:C})},j=(w,C)=>{const k=[...c.images];k[w].title=C.target.value,d({...c,images:k})},m=(w,C,k)=>{const{name:W,value:V}=w.target;if(k==="propertyTaxInfo"){const H=[...c.propertyTaxInfo];H[C][W]=V,d({...c,propertyTaxInfo:H})}else d({...c,[W]:V})},h=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},f=w=>{const C=c.propertyTaxInfo.filter((k,W)=>W!==w);d({...c,propertyTaxInfo:C})},g=()=>{d(w=>({...w,costPaidAtoB:[...w.costPaidAtoB,{title:"",price:""}]}))},b=w=>{const C=c.costPaidAtoB.filter((k,W)=>W!==w);d(k=>({...k,costPaidAtoB:C}))},E=(w,C,k)=>{const W=[...c.costPaidAtoB];W[w][C]=k,d(V=>({...V,costPaidAtoB:W}))},_=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.costPaidAtoB.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,costPaidAtoB:V})}else{const V=c.costPaidAtoB.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,costPaidAtoB:V})}},S=()=>{const w=c.costPaidAtoB.reduce((k,W)=>{const V=parseFloat(W.price)||0;return k+V},0),C=parseFloat(c.purchaseCost)||0;return w+C},M=()=>{d(w=>({...w,credits:[...w.credits,{title:"",price:""}]}))},F=w=>{const C=c.credits.filter((k,W)=>W!==w);d(k=>({...k,credits:C}))},U=(w,C,k)=>{const W=[...c.credits];W[w][C]=k,d(V=>({...V,credits:W}))},Z=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.credits.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,credits:V})}else{const V=c.credits.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,credits:V})}},G=()=>c.credits.reduce((w,C)=>{const k=parseFloat(C.price);return w+(isNaN(k)?0:k)},0),J=()=>{const w=c.costPaidAtoB.reduce((W,V)=>{const H=parseFloat(V.price)||0;return W+H},0),C=c.credits.reduce((W,V)=>{const H=parseFloat(V.price)||0;return W+H},0),k=parseFloat(c.purchaseCost)||0;return w+C+k},I=()=>{d(w=>({...w,cashAdjustments:[...w.cashAdjustments,{title:"",price:""}]}))},B=w=>{const C=c.cashAdjustments.filter((k,W)=>W!==w);d(k=>({...k,cashAdjustments:C}))},Q=(w,C,k)=>{const W=[...c.cashAdjustments];W[w][C]=k,d(V=>({...V,cashAdjustments:W}))},O=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.cashAdjustments.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,cashAdjustments:V})}else{const V=c.cashAdjustments.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,cashAdjustments:V})}},P=()=>c.cashAdjustments.reduce((w,C)=>{const k=parseFloat(C.price);return w+(isNaN(k)?0:k)},0),D=()=>{const w=P(),C=G(),k=S();return w+C+k},L=()=>{d(w=>({...w,incidentalCost:[...w.incidentalCost,{title:"",price:""}]}))},z=w=>{const C=c.incidentalCost.filter((k,W)=>W!==w);d(k=>({...k,incidentalCost:C}))},q=(w,C,k)=>{const W=[...c.incidentalCost];W[w][C]=k,d(V=>({...V,incidentalCost:W}))},K=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.incidentalCost.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,incidentalCost:V})}else{const V=c.incidentalCost.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,incidentalCost:V})}},X=()=>c.incidentalCost.reduce((w,C)=>{const k=parseFloat(C.price);return w+(isNaN(k)?0:k)},0),ee=()=>{d(w=>({...w,carryCosts:[...w.carryCosts,{title:"",price:""}]}))},te=w=>{const C=c.carryCosts.filter((k,W)=>W!==w);d(k=>({...k,carryCosts:C}))},re=(w,C,k)=>{const W=[...c.carryCosts];W[w][C]=k,d(V=>({...V,carryCosts:W}))},ae=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.carryCosts.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,carryCosts:V})}else{const V=c.carryCosts.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,carryCosts:V})}},ce=()=>c.carryCosts.reduce((w,C)=>{const k=parseFloat(C.price);return w+(isNaN(k)?0:k)},0),we=()=>{d(w=>({...w,renovationCost:[...w.renovationCost,{title:"",price:""}]}))},Yn=w=>{const C=c.renovationCost.filter((k,W)=>W!==w);d(k=>({...k,renovationCost:C}))},Vi=(w,C,k)=>{const W=[...c.renovationCost];W[w][C]=k,d(V=>({...V,renovationCost:W}))},Nh=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.renovationCost.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,renovationCost:V})}else{const V=c.renovationCost.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,renovationCost:V})}},Js=()=>c.renovationCost.reduce((w,C)=>{const k=parseFloat(C.price);return w+(isNaN(k)?0:k)},0),Xs=()=>{const w=X(),C=ce(),k=Js();return w+C+k},qi=()=>{const w=Xs(),C=D();return w+C},wh=()=>{d(w=>({...w,costPaidOutofClosing:[...w.costPaidOutofClosing,{title:"",price:""}]}))},Ch=w=>{const C=c.costPaidOutofClosing.filter((k,W)=>W!==w);d(k=>({...k,costPaidOutofClosing:C}))},bh=(w,C,k)=>{const W=[...c.costPaidOutofClosing];W[w][C]=k,d(V=>({...V,costPaidOutofClosing:W}))},Sh=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.costPaidOutofClosing.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,costPaidOutofClosing:V})}else{const V=c.costPaidOutofClosing.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,costPaidOutofClosing:V})}},Zs=()=>c.costPaidOutofClosing.reduce((w,C)=>{const k=parseFloat(C.price);return w+(isNaN(k)?0:k)},0),Qn=()=>{const w=c.sellingPriceBtoC,C=Zs();return w-C},Eh=()=>{d(w=>({...w,adjustments:[...w.adjustments,{title:"",price:""}]}))},kh=w=>{const C=c.adjustments.filter((k,W)=>W!==w);d(k=>({...k,adjustments:C}))},_h=(w,C,k)=>{const W=[...c.adjustments];W[w][C]=k,d(V=>({...V,adjustments:W}))},Ph=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.adjustments.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,adjustments:V})}else{const V=c.adjustments.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,adjustments:V})}},el=()=>c.adjustments.reduce((w,C)=>{const k=parseFloat(C.price);return w+(isNaN(k)?0:k)},0),ru=()=>{const w=Qn(),C=el();return w+C},Oh=()=>{d(w=>({...w,incomestatement:[...w.incomestatement,{title:"",price:""}]}))},Th=w=>{const C=c.incomestatement.filter((k,W)=>W!==w);d(k=>({...k,incomestatement:C}))},Rh=(w,C,k)=>{const W=[...c.incomestatement];W[w][C]=k,d(V=>({...V,incomestatement:W}))},Ih=(w,C)=>{const k=w.target.value;if(/^\d*\.?\d*$/.test(k)||k===""){const V=c.incomestatement.map((H,oe)=>oe===C?{...H,price:k,isInvalid:!1}:H);d({...c,incomestatement:V})}else{const V=c.incomestatement.map((H,oe)=>oe===C?{...H,isInvalid:!0}:H);d({...c,incomestatement:V})}},tl=()=>c.incomestatement.reduce((w,C)=>{const k=parseFloat(C.price);return w+(isNaN(k)?0:k)},0),Hi=()=>{const w=tl(),C=Qn();return w+C},nl=()=>{const w=Hi(),C=c.shorttermrental,k=c.OtherIncome,W=c.InsuranceClaim,V=c.LongTermRental,H=qi();return w+C+k+W+V-H},iu=()=>{const w=nl(),C=c.FinancingCostClosingCost;return w-C},Ah=()=>{var w,C,k,W,V,H;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 oe=S(),Mh=J(),Lh=P(),Fh=X(),zh=G(),Bh=D(),$h=ce(),Uh=Js(),Wh=Xs(),Vh=qi(),qh=Zs(),Hh=el(),Kh=ru(),Yh=Qn(),Qh=Qn(),Gh=tl(),Jh=Hi(),Xh=nl(),Zh=iu(),rl={...c,userfirstname:(w=a==null?void 0:a.result)==null?void 0:w.firstName,usermiddlename:(C=a==null?void 0:a.result)==null?void 0:C.middleName,userlastname:(k=a==null?void 0:a.result)==null?void 0:k.lastName,usertitle:(W=a==null?void 0:a.result)==null?void 0:W.title,useremail:(V=a==null?void 0:a.result)==null?void 0:V.email,userId:(H=a==null?void 0:a.result)==null?void 0:H.userId,totalPurchaseCosts:oe,totalcredits:zh,totalPurchaseCostsaftercredits:Mh,totalcashAdjustments:Lh,totalcashrequiredonsettlement:Bh,totalincidentalCost:Fh,totalcarryCosts:$h,totalrenovationCost:Uh,totalRenovationsandHoldingCost:Wh,totalCoststoBuyAtoB:Vh,costPaidOutofClosing:qh,totaladjustments:Hh,fundsavailablefordistribution:Kh,grossproceedsperHUD:Yh,totalCosttoSellBtoC:Qh,totalincomestatement:Gh,netBtoCsalevalue:Jh,netprofitbeforefinancingcosts:Xh,NetProfit:Zh};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?rl.propertyTaxInfo=c.propertyTaxInfo:rl.propertyTaxInfo=[],o(Io(rl)),y(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};R.useEffect(()=>{p&&(s==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),y(!1)):s==="failed"&&(ie.error(`Failed to submit: ${l}`,{position:"top-right",autoClose:3e3}),y(!1)))},[s,l,p]);const[Dh,ou]=R.useState("0 days"),su=(w,C)=>{if(w&&C){const k=new Date(w),W=new Date(C),V=Math.abs(W-k),H=Math.ceil(V/(1e3*60*60*24));ou(`${H} days`)}else ou("0 days")};return i.jsx(i.Fragment,{children:i.jsxs("div",{className:"container tabs-wrap",children:[i.jsx(Oe,{}),i.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[i.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),i.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),i.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),i.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&i.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[i.jsxs("form",{children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Property Address",i.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["City",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["State",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"Alaska",children:"Alaska"}),i.jsx("option",{value:"Alabama",children:"Alabama"}),i.jsx("option",{value:"Arkansas",children:"Arkansas"}),i.jsx("option",{value:"Arizona",children:"Arizona"}),i.jsx("option",{value:"California",children:"California"}),i.jsx("option",{value:"Colorado",children:"Colorado"}),i.jsx("option",{value:"Connecticut",children:"Connecticut"}),i.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),i.jsx("option",{value:"Delaware",children:"Delaware"}),i.jsx("option",{value:"Florida",children:"Florida"}),i.jsx("option",{value:"Georgia",children:"Georgia"}),i.jsx("option",{value:"Hawaii",children:"Hawaii"}),i.jsx("option",{value:"Iowa",children:"Iowa"}),i.jsx("option",{value:"Idaho",children:"Idaho"}),i.jsx("option",{value:"Illinois",children:"Illinois"}),i.jsx("option",{value:"Indiana",children:"Indiana"}),i.jsx("option",{value:"Kansas",children:"Kansas"}),i.jsx("option",{value:"Kentucky",children:"Kentucky"}),i.jsx("option",{value:"Louisiana",children:"Louisiana"}),i.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),i.jsx("option",{value:"Maryland",children:"Maryland"}),i.jsx("option",{value:"Michigan",children:"Michigan"}),i.jsx("option",{value:"Minnesota",children:"Minnesota"}),i.jsx("option",{value:"Missouri",children:"Missouri"}),i.jsx("option",{value:"Mississippi",children:"Mississippi"}),i.jsx("option",{value:"Montana",children:"Montana"}),i.jsx("option",{value:"North Carolina",children:"North Carolina"}),i.jsx("option",{value:"North Dakota",children:"North Dakota"}),i.jsx("option",{value:"Nebraska",children:"Nebraska"}),i.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),i.jsx("option",{value:"New Jersey",children:"New Jersey"}),i.jsx("option",{value:"New Mexico",children:"New Mexico"}),i.jsx("option",{value:"Nevada",children:"Nevada"}),i.jsx("option",{value:"New York",children:"New York"}),i.jsx("option",{value:"Ohio",children:"Ohio"}),i.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),i.jsx("option",{value:"Oregon",children:"Oregon"}),i.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),i.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),i.jsx("option",{value:"South Carolina",children:"South Carolina"}),i.jsx("option",{value:"South Dakota",children:"South Dakota"}),i.jsx("option",{value:"Tennessee",children:"Tennessee"}),i.jsx("option",{value:"Texas",children:"Texas"}),i.jsx("option",{value:"Texas",children:"Travis"}),i.jsx("option",{value:"Utah",children:"Utah"}),i.jsx("option",{value:"Virginia",children:"Virginia"}),i.jsx("option",{value:"Vermont",children:"Vermont"}),i.jsx("option",{value:"Washington",children:"Washington"}),i.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),i.jsx("option",{value:"West Virginia",children:"West Virginia"}),i.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["County",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"Abbeville",children:"Abbeville"}),i.jsx("option",{value:"Aiken",children:"Aiken"}),i.jsx("option",{value:"Allendale",children:"Allendale"}),i.jsx("option",{value:"Anderson",children:"Anderson"}),i.jsx("option",{value:"Bamberg",children:"Bamberg"}),i.jsx("option",{value:"Barnwell",children:"Barnwell"}),i.jsx("option",{value:"Beaufort",children:"Beaufort"}),i.jsx("option",{value:"Berkeley",children:"Berkeley"}),i.jsx("option",{value:"Calhoun",children:"Calhoun"}),i.jsx("option",{value:"Charleston",children:"Charleston"}),i.jsx("option",{value:"Cherokee",children:"Cherokee"}),i.jsx("option",{value:"Chester",children:"Chester"}),i.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),i.jsx("option",{value:"Clarendon",children:"Clarendon"}),i.jsx("option",{value:"Colleton",children:"Colleton"}),i.jsx("option",{value:"Darlington",children:"Darlington"}),i.jsx("option",{value:"Dillon",children:"Dillon"}),i.jsx("option",{value:"Dorchester",children:"Dorchester"}),i.jsx("option",{value:"Edgefield",children:"Edgefield"}),i.jsx("option",{value:"Fairfield",children:"Fairfield"}),i.jsx("option",{value:"Florence",children:"Florence"}),i.jsx("option",{value:"Georgetown",children:"Georgetown"}),i.jsx("option",{value:"Greenville",children:"Greenville"}),i.jsx("option",{value:"Greenwood",children:"Greenwood"}),i.jsx("option",{value:"Hampton",children:"Hampton"}),i.jsx("option",{value:"Horry",children:"Horry"}),i.jsx("option",{value:"Jasper",children:"Jasper"}),i.jsx("option",{value:"Kershaw",children:"Kershaw"}),i.jsx("option",{value:"Lancaster",children:"Lancaster"}),i.jsx("option",{value:"Laurens",children:"Laurens"}),i.jsx("option",{value:"Lee",children:"Lee"}),i.jsx("option",{value:"Lexington",children:"Lexington"}),i.jsx("option",{value:"Marion",children:"Marion"}),i.jsx("option",{value:"Marlboro",children:"Marlboro"}),i.jsx("option",{value:"McCormick",children:"McCormick"}),i.jsx("option",{value:"Newberry",children:"Newberry"}),i.jsx("option",{value:"Oconee",children:"Oconee"}),i.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),i.jsx("option",{value:"Pickens",children:"Pickens"}),i.jsx("option",{value:"Richland",children:"Richland"}),i.jsx("option",{value:"Saluda",children:"Saluda"}),i.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),i.jsx("option",{value:"Sumter",children:"Sumter"}),i.jsx("option",{value:"Union",children:"Union"}),i.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),i.jsx("option",{value:"York",children:"York"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Zip",i.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Parcel",i.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Sub division",i.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",i.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",i.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Property Type",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"Residential",children:"Residential"}),i.jsx("option",{value:"Land",children:"Land"}),i.jsx("option",{value:"Commercial",children:"Commercial"}),i.jsx("option",{value:"Industrial",children:"Industrial"}),i.jsx("option",{value:"Water",children:"Water"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",i.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Year Build",i.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",i.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Beds",i.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Baths",i.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Stories",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"0",children:"0"}),i.jsx("option",{value:"1",children:"1"}),i.jsx("option",{value:"2",children:"2"}),i.jsx("option",{value:"3",children:"3"}),i.jsx("option",{value:"4",children:"4"}),i.jsx("option",{value:"5",children:"5"}),i.jsx("option",{value:"6",children:"6"}),i.jsx("option",{value:"7",children:"7"}),i.jsx("option",{value:"8",children:"8"}),i.jsx("option",{value:"9",children:"9"}),i.jsx("option",{value:"10",children:"10"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Garage",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"0",children:"0"}),i.jsx("option",{value:"1",children:"1"}),i.jsx("option",{value:"2",children:"2"}),i.jsx("option",{value:"3",children:"3"}),i.jsx("option",{value:"4",children:"4"}),i.jsx("option",{value:"5",children:"5"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",i.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Pool/SPA",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),i.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),i.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),i.jsx("option",{value:"4",children:"None"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Fire places",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"yes",children:"Yes"}),i.jsx("option",{value:"no",children:"No"})]})]}),i.jsxs("div",{className:"col-md-4",children:["A/C",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Central",children:"Central"}),i.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),i.jsx("option",{value:"Warm Air",children:"Warm Air"}),i.jsx("option",{value:"Forced Air",children:"Forced Air"}),i.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Heating",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Central",children:"Central"}),i.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),i.jsx("option",{value:"Warm Air",children:"Warm Air"}),i.jsx("option",{value:"Forced Air",children:"Forced Air"}),i.jsx("option",{value:"Gas",children:"Gas"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Building Style",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"One Story",children:"One Story"}),i.jsx("option",{value:"Craftsman",children:"Craftsman"}),i.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),i.jsx("option",{value:"Split-Level",children:"Split-Level"}),i.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),i.jsx("option",{value:"Stick Built",children:"Stick Built"}),i.jsx("option",{value:"Single wide",children:"Single wide"}),i.jsx("option",{value:"Double wide",children:"Double wide"}),i.jsx("option",{value:"Duplex",children:"Duplex"}),i.jsx("option",{value:"Triplex",children:"Triplex"}),i.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),i.jsx("option",{value:"Two Story",children:"Two Story"}),i.jsx("option",{value:"Victorian",children:"Victorian"}),i.jsx("option",{value:"Tudor",children:"Tudor"}),i.jsx("option",{value:"Modern",children:"Modern"}),i.jsx("option",{value:"Art Deco",children:"Art Deco"}),i.jsx("option",{value:"Bungalow",children:"Bungalow"}),i.jsx("option",{value:"Mansion",children:"Mansion"}),i.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),i.jsx("option",{value:"Conventional",children:"Conventional"}),i.jsx("option",{value:"Ranch",children:"Ranch"}),i.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),i.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),i.jsx("option",{value:"Contemporary",children:"Contemporary"}),i.jsx("option",{value:"Colonial",children:"Colonial"}),i.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Site Vacant",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please select"}),i.jsx("option",{value:"Yes",children:"Yes"}),i.jsx("option",{value:"No",children:"No"})]})]})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Ext Wall",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Brick",children:"Brick"}),i.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),i.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),i.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),i.jsx("option",{value:"Stone",children:"Stone"}),i.jsx("option",{value:"Masonry",children:"Masonry"}),i.jsx("option",{value:"Metal",children:"Metal"}),i.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),i.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),i.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),i.jsx("option",{value:"Gable",children:"Gable"}),i.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),i.jsx("option",{value:"Frame",children:"Frame"}),i.jsx("option",{value:"Siding",children:"Siding"}),i.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),i.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),i.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),i.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),i.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),i.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Roofing",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),i.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),i.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),i.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),i.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),i.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),i.jsx("option",{value:"Metal",children:"Metal"}),i.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),i.jsx("option",{value:"Slate",children:"Slate"}),i.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),i.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",i.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[i.jsx("br",{}),"Property Tax Information"]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((w,C)=>i.jsxs("div",{className:"row gy-4",children:[i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",i.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:w.propertytaxowned,onChange:k=>m(k,C,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",i.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:w.ownedyear,onChange:k=>m(k,C,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",i.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:w.taxassessed,onChange:k=>m(k,C,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",i.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:w.taxyear,onChange:k=>m(k,C,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"form-floating mb-2",children:[i.jsx("br",{}),i.jsx("button",{className:"btn btn-danger",onClick:()=>f(C),style:{height:"25px",width:"35px"},children:"X"})]})})]},C)),i.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),i.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&i.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),i.jsxs("form",{children:[c.images.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,placeholder:"Image Title",onChange:k=>j(C,k)})}),i.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[i.jsx(yh,{multiple:!1,onDone:k=>N(k,C)}),i.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>x(C),style:{marginLeft:"5px"},children:"Delete"})]}),w.file&&i.jsx("div",{className:"col-md-12",children:i.jsx("img",{src:w.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},C)),i.jsx("button",{type:"button",className:"btn btn-primary",onClick:v,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),i.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&i.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})]}),i.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",i.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:w=>{const C=w.target.value;d({...c,closeDateAtoB:C}),su(C,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:w=>{const C=w.target.value;d({...c,closeDateBtoC:C}),su(c.closeDateAtoB,C)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:Dh,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),i.jsx("div",{className:"col-md-7",children:u.map(w=>i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${w}`,value:w,checked:c.renovationRisk===w,onChange:C=>{const k=parseInt(C.target.value,10);d({...c,renovationRisk:k})}}),i.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${w}`,children:w})]},w))})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.purchaseCost,name:"purchaseCost",onChange:w=>{const C=w.target.value,k=/^\d*\.?\d*$/.test(C);d({...c,purchaseCost:C,isPurchaseCostInvalid:!k})},onKeyPress:w=>{const C=w.charCode;(C<48||C>57)&&C!==46&&(w.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>E(C,"title",k.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>_(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>b(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{onClick:g,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:S(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>U(C,"title",k.target.value),placeholder:"credits",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>Z(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>F(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:M,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:G(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:J(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>Q(C,"title",k.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>O(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>B(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:I,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:P(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>q(C,"title",k.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>K(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>z(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:X(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>re(C,"title",k.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>ae(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>te(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:ee,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:ce(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno and Holding Costs"}),c.renovationCost.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>Vi(C,"title",k.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>Nh(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>Yn(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:we,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Renovation and Holding cost"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Js(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Xs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:qi(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:w=>{const C=w.target.value,k=/^\d*\.?\d*$/.test(C);d({...c,sellingPriceBtoC:C,isPurchaseCostInvalid:!k})},onKeyPress:w=>{const C=w.charCode;(C<48||C>57)&&C!==46&&(w.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>bh(C,"title",k.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>Sh(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>Ch(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:wh,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"costPaidOutofClosing",value:Zs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>_h(C,"title",k.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>Ph(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>kh(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:Eh,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:el(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:ru(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((w,C)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:w.title,onChange:k=>Rh(C,"title",k.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${w.isInvalid?"is-invalid":""}`,value:w.price,onChange:k=>Ih(k,C),placeholder:"Price",style:{textAlign:"right"},required:!0}),w.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>Th(C),style:{marginLeft:"5px"},children:"x"})})]},C)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:Oh,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:tl(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Hi(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:qi(),style:{textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:w=>{const C=w.target.value,k=/^\d*\.?\d*$/.test(C);d({...c,fundspriortoclosing:C,isfundspriortoclosingInvalid:!k})},onKeyPress:w=>{const C=w.charCode;(C<48||C>57)&&C!==46&&(w.preventDefault(),d({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Hi(),style:{textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:w=>{const C=w.target.value,k=/^\d*\.?\d*$/.test(C);d({...c,shorttermrental:C,isPurchaseCostInvalid:!k})},onKeyPress:w=>{const C=w.charCode;(C<48||C>57)&&C!==46&&(w.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:w=>{const C=w.target.value,k=/^\d*\.?\d*$/.test(C);d({...c,OtherIncome:C,isPurchaseCostInvalid:!k})},onKeyPress:w=>{const C=w.charCode;(C<48||C>57)&&C!==46&&(w.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:w=>{const C=w.target.value,k=/^\d*\.?\d*$/.test(C);d({...c,InsuranceClaim:C,isPurchaseCostInvalid:!k})},onKeyPress:w=>{const C=w.charCode;(C<48||C>57)&&C!==46&&(w.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:w=>{const C=w.target.value,k=/^\d*\.?\d*$/.test(C);d({...c,LongTermRental:C,isPurchaseCostInvalid:!k})},onKeyPress:w=>{const C=w.charCode;(C<48||C>57)&&C!==46&&(w.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:nl(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:w=>{const C=w.target.value,k=/^\d*\.?\d*$/.test(C);d({...c,FinancingCostClosingCost:C,isFinancingCostClosingCostInvalid:!k})},onKeyPress:w=>{const C=w.charCode;(C<48||C>57)&&C!==46&&(w.preventDefault(),d({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:iu(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",i.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:Ah,children:"Submit"})," "]}),i.jsx("br",{})]})]})]})})},Rt="/assets/propertydummy-DhVEZ7jN.jpg",PN=()=>{var u;const e=Et(),{user:t}=Ze(c=>({...c.auth})),{userProperties:n,totalPages:r}=Ze(c=>c.property),[o,s]=R.useState(1),l=5;R.useEffect(()=>{e(Ao({userId:t.result.userId,page:o,limit:l}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,o]);const a=c=>{s(c)};return i.jsx(i.Fragment,{children:n.length>0?i.jsxs(i.Fragment,{children:[i.jsx("ul",{children:n.map(c=>i.jsx("li",{children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"col-md-12",children:i.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[i.jsx("div",{className:"col-md-3 mt-1",children:i.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),i.jsxs("div",{className:"col-md-6 mt-1",children:[i.jsxs("h5",{children:[" ",i.jsxs(he,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),i.jsx("div",{className:"d-flex flex-row"}),i.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[i.jsx("span",{children:"100% cotton"}),i.jsx("span",{className:"dot"}),i.jsx("span",{children:"Light weight"}),i.jsx("span",{className:"dot"}),i.jsxs("span",{children:["Best finish",i.jsx("br",{})]})]}),i.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[i.jsx("span",{children:"Unique design"}),i.jsx("span",{className:"dot"}),i.jsx("span",{children:"For men"}),i.jsx("span",{className:"dot"}),i.jsxs("span",{children:["Casual",i.jsx("br",{})]})]}),i.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",i.jsx("br",{}),i.jsx("br",{})]})]}),i.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:i.jsxs("div",{className:"d-flex flex-column mt-4",children:[i.jsx(he,{to:`/property/${c.propertyId}`,target:"_blank",children:i.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),i.jsx(he,{to:`/editproperty/${c.propertyId}`,children:i.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),i.jsxs("div",{className:"pagination",children:[i.jsx("button",{onClick:()=>a(o-1),disabled:o===1,children:"Previous"}),Array.from({length:r},(c,d)=>d+1).map(c=>c===o||c===1||c===r||c>=o-1&&c<=o+1?i.jsx("button",{onClick:()=>a(c),disabled:o===c,children:c},c):c===2||c===r-1?i.jsx("span",{children:"..."},c):null),i.jsx("button",{onClick:()=>a(o+1),disabled:o===r,children:"Next"})]})]}):i.jsx("p",{children:"No active properties found."})})},ON=()=>{var d,p,y,N,v,x,j,m,h,f,g,b;const{user:e,isLoading:t,error:n}=Ze(E=>E.auth),r=Et(),o=Dr(),[s,l]=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:((y=e==null?void 0:e.result)==null?void 0:y.firstName)||"",middleName:((N=e==null?void 0:e.result)==null?void 0:N.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((j=e==null?void 0:e.result)==null?void 0:j.aboutme)||"",city:((m=e==null?void 0:e.result)==null?void 0:m.city)||"",state:((h=e==null?void 0:e.result)==null?void 0:h.state)||"",county:((f=e==null?void 0:e.result)==null?void 0:f.county)||"",zip:((g=e==null?void 0:e.result)==null?void 0:g.zip)||"",profileImage:((b=e==null?void 0:e.result)==null?void 0:b.profileImage)||""});R.useEffect(()=>{e&&l({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=E=>{l({...s,[E.target.name]:E.target.value})},u=()=>{l({...s,profileImage:""})},c=E=>{E.preventDefault(),r(Oo(s)),o("/login")};return i.jsx(i.Fragment,{children:i.jsxs("form",{onSubmit:c,children:[i.jsxs("div",{className:"col-4",children:["Title",i.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s.title,onChange:a,children:[i.jsx("option",{value:"None",children:"Please Select Title"}),i.jsx("option",{value:"Dr",children:"Dr"}),i.jsx("option",{value:"Prof",children:"Prof"}),i.jsx("option",{value:"Mr",children:"Mr"}),i.jsx("option",{value:"Miss",children:"Miss"})]})]}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["First Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:s.firstName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:s.middleName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Last Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:s.lastName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Email",i.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:s.email,onChange:a,disabled:!0})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["About me",i.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:s.aboutme,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["City",i.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:s.city,onChange:a,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["State",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:s.state,onChange:a,required:!0,children:[i.jsx("option",{value:"",children:"Please Select State"}),i.jsx("option",{value:"Alaska",children:"Alaska"}),i.jsx("option",{value:"Alabama",children:"Alabama"}),i.jsx("option",{value:"Arkansas",children:"Arkansas"}),i.jsx("option",{value:"Arizona",children:"Arizona"}),i.jsx("option",{value:"California",children:"California"}),i.jsx("option",{value:"Colorado",children:"Colorado"}),i.jsx("option",{value:"Connecticut",children:"Connecticut"}),i.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),i.jsx("option",{value:"Delaware",children:"Delaware"}),i.jsx("option",{value:"Florida",children:"Florida"}),i.jsx("option",{value:"Georgia",children:"Georgia"}),i.jsx("option",{value:"Hawaii",children:"Hawaii"}),i.jsx("option",{value:"Iowa",children:"Iowa"}),i.jsx("option",{value:"Idaho",children:"Idaho"}),i.jsx("option",{value:"Illinois",children:"Illinois"}),i.jsx("option",{value:"Indiana",children:"Indiana"}),i.jsx("option",{value:"Kansas",children:"Kansas"}),i.jsx("option",{value:"Kentucky",children:"Kentucky"}),i.jsx("option",{value:"Louisiana",children:"Louisiana"}),i.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),i.jsx("option",{value:"Maryland",children:"Maryland"}),i.jsx("option",{value:"Michigan",children:"Michigan"}),i.jsx("option",{value:"Minnesota",children:"Minnesota"}),i.jsx("option",{value:"Missouri",children:"Missouri"}),i.jsx("option",{value:"Mississippi",children:"Mississippi"}),i.jsx("option",{value:"Montana",children:"Montana"}),i.jsx("option",{value:"North Carolina",children:"North Carolina"}),i.jsx("option",{value:"North Dakota",children:"North Dakota"}),i.jsx("option",{value:"Nebraska",children:"Nebraska"}),i.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),i.jsx("option",{value:"New Jersey",children:"New Jersey"}),i.jsx("option",{value:"New Mexico",children:"New Mexico"}),i.jsx("option",{value:"Nevada",children:"Nevada"}),i.jsx("option",{value:"New York",children:"New York"}),i.jsx("option",{value:"Ohio",children:"Ohio"}),i.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),i.jsx("option",{value:"Oregon",children:"Oregon"}),i.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),i.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),i.jsx("option",{value:"South Carolina",children:"South Carolina"}),i.jsx("option",{value:"South Dakota",children:"South Dakota"}),i.jsx("option",{value:"Tennessee",children:"Tennessee"}),i.jsx("option",{value:"Texas",children:"Texas"}),i.jsx("option",{value:"Utah",children:"Utah"}),i.jsx("option",{value:"Virginia",children:"Virginia"}),i.jsx("option",{value:"Vermont",children:"Vermont"}),i.jsx("option",{value:"Washington",children:"Washington"}),i.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),i.jsx("option",{value:"West Virginia",children:"West Virginia"}),i.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),i.jsxs("div",{className:"col-md-4",children:["County",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:s.county,onChange:a,required:!0,children:[i.jsx("option",{value:"",children:"Please Select County"}),i.jsx("option",{value:"Abbeville",children:"Abbeville"}),i.jsx("option",{value:"Aiken",children:"Aiken"}),i.jsx("option",{value:"Allendale",children:"Allendale"}),i.jsx("option",{value:"Anderson",children:"Anderson"}),i.jsx("option",{value:"Bamberg",children:"Bamberg"}),i.jsx("option",{value:"Barnwell",children:"Barnwell"}),i.jsx("option",{value:"Beaufort",children:"Beaufort"}),i.jsx("option",{value:"Berkeley",children:"Berkeley"}),i.jsx("option",{value:"Calhoun",children:"Calhoun"}),i.jsx("option",{value:"Charleston",children:"Charleston"}),i.jsx("option",{value:"Cherokee",children:"Cherokee"}),i.jsx("option",{value:"Chester",children:"Chester"}),i.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),i.jsx("option",{value:"Clarendon",children:"Clarendon"}),i.jsx("option",{value:"Colleton",children:"Colleton"}),i.jsx("option",{value:"Darlington",children:"Darlington"}),i.jsx("option",{value:"Dillon",children:"Dillon"}),i.jsx("option",{value:"Dorchester",children:"Dorchester"}),i.jsx("option",{value:"Edgefield",children:"Edgefield"}),i.jsx("option",{value:"Fairfield",children:"Fairfield"}),i.jsx("option",{value:"Florence",children:"Florence"}),i.jsx("option",{value:"Georgetown",children:"Georgetown"}),i.jsx("option",{value:"Greenville",children:"Greenville"}),i.jsx("option",{value:"Greenwood",children:"Greenwood"}),i.jsx("option",{value:"Hampton",children:"Hampton"}),i.jsx("option",{value:"Horry",children:"Horry"}),i.jsx("option",{value:"Jasper",children:"Jasper"}),i.jsx("option",{value:"Kershaw",children:"Kershaw"}),i.jsx("option",{value:"Lancaster",children:"Lancaster"}),i.jsx("option",{value:"Laurens",children:"Laurens"}),i.jsx("option",{value:"Lee",children:"Lee"}),i.jsx("option",{value:"Lexington",children:"Lexington"}),i.jsx("option",{value:"Marion",children:"Marion"}),i.jsx("option",{value:"Marlboro",children:"Marlboro"}),i.jsx("option",{value:"McCormick",children:"McCormick"}),i.jsx("option",{value:"Newberry",children:"Newberry"}),i.jsx("option",{value:"Oconee",children:"Oconee"}),i.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),i.jsx("option",{value:"Pickens",children:"Pickens"}),i.jsx("option",{value:"Richland",children:"Richland"}),i.jsx("option",{value:"Saluda",children:"Saluda"}),i.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),i.jsx("option",{value:"Sumter",children:"Sumter"}),i.jsx("option",{value:"Union",children:"Union"}),i.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),i.jsx("option",{value:"York",children:"York"})]})]}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Zip",i.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:s.zip,onChange:a,required:!0})]})}),i.jsxs("div",{className:"col-4",children:[i.jsx("label",{children:"Profile Image"}),i.jsx("div",{className:"mb-3",children:i.jsx(yh,{type:"file",multiple:!1,onDone:({base64:E})=>l({...s,profileImage:E})})})]}),s.profileImage&&i.jsxs("div",{className:"col-4 mb-3",children:[i.jsx("img",{src:s.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),i.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:u,children:"Delete Image"})]}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})}),n&&i.jsx("p",{children:n})]})})},TN=()=>{const[e,t]=R.useState("dashboard"),{user:n}=Ze(o=>o.auth),r=()=>{switch(e){case"Userdetails":return i.jsx(ON,{});case"addProperty":return i.jsx(_N,{});case"activeProperties":return i.jsxs("div",{children:[i.jsx("h3",{children:"Active Properties"}),i.jsx(PN,{})]});case"closedProperties":return i.jsx("p",{children:"These are your closed properties."});default:return i.jsx(i.Fragment,{})}};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("div",{className:"d-flex flex-row",children:[i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"card card1 p-5",children:[i.jsx("img",{className:"img-fluid",src:n.result.profileImage||Lo,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),i.jsx("hr",{className:"hline"}),i.jsxs("div",{className:"d-flex flex-column align-items-center",children:[i.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[i.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),i.jsx("span",{children:"Dashboard"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"User Profile"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Add Property"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Active Properties"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Closed Properties"})]})]})]})}),i.jsx("div",{className:"col-md-9",children:i.jsxs("div",{className:"card card2 p-1",children:[i.jsx("br",{}),i.jsxs("span",{children:["Welcome to"," ",i.jsx("span",{style:{color:"#067ADC"},children:i.jsxs(he,{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]})})]}),i.jsx("br",{}),r()]})})]}),i.jsx(ze,{})]})};var gh={exports:{}},RN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",IN=RN,AN=IN;function xh(){}function jh(){}jh.resetWarningCache=xh;var DN=function(){function e(r,o,s,l,a,u){if(u!==AN){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:jh,resetWarningCache:xh};return n.PropTypes=n,n};gh.exports=DN();var MN=gh.exports;const LN=Xa(MN),FN=()=>{const[e,t]=R.useState(3),n=Dr();return R.useEffect(()=>{const r=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),i.jsx("div",{style:{marginTop:"100px"},children:i.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Fo=({children:e})=>{const{user:t}=Ze(n=>({...n.auth}));return t?e:i.jsx(FN,{})};Fo.propTypes={children:LN.node.isRequired};const zN=()=>{const e=Et(),{id:t,token:n}=Mr();return R.useEffect(()=>{e(Ro({id:t,token:n}))},[e,t,n]),i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsxs("div",{className:"contact_section layout_padding",children:[i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12",children:i.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),i.jsx("div",{className:"container-fluid",children:i.jsx("div",{className:"contact_section_2",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-6",children:[i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("h1",{className:"card-title text-center",children:i.jsxs(he,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",i.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),i.jsx("div",{className:"col-md-6 padding_left_15",children:i.jsx("div",{className:"contact_img"})})]})})})]}),i.jsx(ze,{})]})},BN=()=>{const[e,t]=R.useState(""),[n,r]=R.useState(""),o="http://67.225.129.127:3002",s=async()=>{try{const l=await fe.post(`${o}/users/forgotpassword`,{email:e});r(l.data.message)}catch(l){console.error("Forgot Password Error:",l),r(l.response.data.message)}};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"mb-4",children:[i.jsx("h2",{className:"h3",children:"Forgot Password"}),i.jsx("hr",{})]})})}),i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",value:e,onChange:l=>t(l.target.value),placeholder:"name@example.com",required:"required"}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),i.jsxs("div",{className:"col-12",children:[i.jsx("div",{className:"d-grid",children:i.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:s,children:"Reset Password"})}),i.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",i.jsx(he,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})}),i.jsx(ze,{})]})]})},$N=()=>{const{userId:e,token:t}=Mr(),[n,r]=R.useState(""),[o,s]=R.useState(""),[l,a]=R.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),ie.error("Password not entered");return}const d=await fe.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){a("Passwords do not match."),ie.error("Passwords do not match.");return}else a("Password reset successfull"),ie.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return R.useEffect(()=>{ie.dismiss()},[]),i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"card mb-0 vh-100",children:i.jsx("div",{className:"container py-10 h-100",children:i.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:i.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[i.jsx("br",{}),i.jsxs("h2",{children:["Reset Password",i.jsx("hr",{}),i.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),i.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>r(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),i.jsx("br",{}),i.jsx("input",{className:"form-control",type:"password",value:o,onChange:d=>s(d.target.value),placeholder:"Confirm your new password"}),i.jsx("br",{}),i.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"}),i.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:l})]})})})}),i.jsx(ze,{})]})},UN=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"col-md-18",children:[i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),i.jsxs("h2",{children:["We reqest you to kindly ",i.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",i.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx(ze,{})]}),WN=()=>{const{id:e}=Mr(),t=Et(),{selectedProperty:n,status:r,error:o}=Ze(a=>a.property),[s,l]=R.useState(!0);return R.useEffect(()=>{e&&(t(li(e)),l(!1))},[e,t]),r==="loading"?i.jsx("p",{children:"Loading property details..."}):r==="failed"?i.jsxs("p",{children:["Error loading property: ",o]}):i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container col-12",children:s?i.jsx("div",{className:"loader",children:"Loading..."}):n?i.jsx("div",{className:"py-3 py-md-5 bg-light",children:i.jsxs("div",{className:"card-header bg-white",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-5 mt-3",children:i.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?i.jsx("img",{src:n.images[0].file||Rt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):i.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),i.jsx("div",{className:"col-md-7 mt-3",children:i.jsxs("div",{className:"product-view",children:[i.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,i.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),i.jsx("hr",{}),i.jsxs("p",{className:"product-path",children:[i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",i.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),i.jsxs("div",{children:[i.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),i.jsxs("div",{className:"mt-3 card bg-white",children:[i.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),i.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12 mt-3",children:i.jsxs("div",{className:"card",children:[i.jsx("div",{className:"card-header bg-white",children:i.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),i.jsx("div",{className:"card-body",children:i.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."})})]})})})]})}):i.jsx("p",{children:"No property details found."})}),i.jsx(ze,{})]})},VN=()=>{const[e,t]=R.useState([]),[n,r]=R.useState(0),[o,s]=R.useState(0),[l]=R.useState(10),[a,u]=R.useState(""),[c,d]=R.useState(!1),[p,y]=R.useState(!1),N=async()=>{d(!0),y(!1);try{const m=await fe.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:l,offset:o*l,search:a},headers:{"Cache-Control":"no-cache"}});t(m.data.data),r(m.data.totalRecords),a.trim()&&y(!0)}catch(m){console.log("Error fetching data:",m)}finally{d(!1)}},v=m=>{u(m.target.value),m.target.value.trim()===""&&(s(0),t([]),r(0),y(!1),N())},x=m=>{m.key==="Enter"&&(m.preventDefault(),N())};R.useEffect(()=>{N()},[a,o]);const j=Math.ceil(n/l);return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"container col-12",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-lg-12 card-margin col-12",children:i.jsx("div",{className:"card search-form col-12",children:i.jsx("div",{className:"card-body p-0",children:i.jsx("form",{id:"search-form",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"row no-gutters",children:i.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:i.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:x})})})})})})})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"card card-margin",children:i.jsxs("div",{className:"card-body",children:[p&&e.length>0&&i.jsxs("div",{children:["Showing search results for the keyword"," ",i.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),i.jsx("div",{className:"table-responsive",children:i.jsxs("table",{className:"table widget-26",children:[i.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:i.jsxs("tr",{children:[i.jsx("th",{children:"Details"}),i.jsx("th",{children:"Total Living Square Foot"}),i.jsx("th",{children:"Year Built"}),i.jsx("th",{children:"Cost per Square Foot"})]})}),i.jsx("tbody",{children:e.length>0?e.map((m,h)=>i.jsxs("tr",{children:[i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-title",children:[i.jsx(he,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),i.jsxs("p",{className:"m-0",children:[i.jsxs("span",{className:"employer-name",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),i.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),i.jsx("td",{children:i.jsx("div",{className:"widget-26-job-info",children:i.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),i.jsx("td",{children:i.jsx("div",{className:"widget-26-job-info",children:i.jsx("p",{className:"m-0",children:m.year_built})})}),i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},h)):i.jsx("tr",{children:i.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),i.jsxs("div",{children:[i.jsx("button",{onClick:()=>s(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),i.jsxs("span",{children:[" ","Page ",o+1," of ",j," "]}),i.jsx("button",{onClick:()=>s(o+1),disabled:o+1>=j||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),i.jsx(ze,{})]})},qN=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),"This page will show the list of services offered by the company",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx(ze,{})]}),HN=()=>{const{house_id:e}=Mr();console.log("house_id",e);const[t,n]=R.useState(null),[r,o]=R.useState(!0);return R.useEffect(()=>{(async()=>{try{const l=await fe.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(l.data)}catch(l){console.log("Error fetching property details:",l)}finally{o(!1)}})()},[e]),i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container col-12",children:r?i.jsx("div",{className:"loader",children:"Loading..."}):t?i.jsx("div",{className:"py-3 py-md-5 bg-light",children:i.jsxs("div",{className:"card-header bg-white",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-5 mt-3",children:i.jsx("div",{className:"bg-white border",children:i.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),i.jsx("div",{className:"col-md-7 mt-3",children:i.jsxs("div",{className:"product-view",children:[i.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,i.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),i.jsx("hr",{}),i.jsxs("p",{className:"product-path",children:[i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",i.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),i.jsxs("div",{children:[i.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),i.jsxs("div",{className:"mt-3 card bg-white",children:[i.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),i.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12 mt-3",children:i.jsxs("div",{className:"card",children:[i.jsx("div",{className:"card-header bg-white",children:i.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),i.jsx("div",{className:"card-body",children:i.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."})})]})})})]})}):i.jsx("p",{children:"No property details found."})}),i.jsx(ze,{})]})},KN=()=>{const{id:e}=Mr(),t=Et(),{selectedProperty:n}=Ze(a=>a.property),[r,o]=R.useState({propertyType:"",yearBuild:"",totalSqft:""});R.useEffect(()=>{t(li(e))},[t,e]),R.useEffect(()=>{n&&o({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const s=a=>{o({...r,[a.target.name]:a.target.value})},l=a=>{a.preventDefault(),t(Do({id:e,propertyData:r}))};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"edit-property-form",children:[i.jsx("h2",{children:"Edit Property"}),i.jsxs("form",{onSubmit:l,children:[i.jsx("div",{children:i.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:s,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Property Type"}),i.jsx("option",{value:"Residential",children:"Residential"}),i.jsx("option",{value:"Land",children:"Land"}),i.jsx("option",{value:"Commercial",children:"Commercial"}),i.jsx("option",{value:"Industrial",children:"Industrial"}),i.jsx("option",{value:"Water",children:"Water"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:s,placeholder:"Year build",required:!0}),i.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:s,placeholder:"Total SQFT",required:!0}),i.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),i.jsx("button",{type:"submit",children:"Update Property"})]})]}),i.jsx(ze,{})]})},YN=()=>{const e=Et(),{properties:t,loading:n,totalPages:r,currentPage:o}=Ze(x=>x.property),[s,l]=R.useState(""),[a,u]=R.useState([]),[c,d]=R.useState(1),p=10;R.useEffect(()=>{e(ai({page:c,limit:p,keyword:s}))},[e,c,s]),R.useEffect(()=>{s.trim()?u(t.filter(x=>x.address.toLowerCase().includes(s.toLowerCase()))):u(t)},[s,t]);const y=x=>{l(x.target.value)},N=x=>{x.preventDefault()},v=x=>{d(x),e(ai({page:x,limit:p,keyword:s}))};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("div",{className:"container col-12",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-lg-12 card-margin col-12",children:i.jsx("div",{className:"card search-form col-12",children:i.jsx("div",{className:"card-body p-0",children:i.jsx("form",{id:"search-form",onSubmit:N,children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"row no-gutters",children:i.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:i.jsx("input",{type:"text",value:s,onChange:y,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"card card-margin",children:i.jsx("div",{className:"card-body",children:n?i.jsx("div",{children:"Loading..."}):i.jsx("div",{className:"table-responsive",children:i.jsxs("table",{className:"table widget-26",children:[i.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:i.jsxs("tr",{children:[i.jsx("th",{children:"Image"}),i.jsx("th",{children:"Details"}),i.jsx("th",{children:"Total Living Square Foot"}),i.jsx("th",{children:"Year Built"}),i.jsx("th",{children:"Cost per Square Foot"})]})}),i.jsx("tbody",{children:a.length>0?a.map(x=>i.jsxs("tr",{children:[i.jsx("td",{children:x.images&&x.images[0]?i.jsx("img",{src:x.images[0].file||Rt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):i.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-title",children:[i.jsx(he,{to:`/property/${x.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:x.address}),i.jsxs("p",{className:"m-0",children:[i.jsxs("span",{className:"employer-name",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),x.city,", ",x.county,","," ",x.state]}),i.jsxs("p",{className:"text-muted m-0",children:["House Id: ",x.propertyId]})]})]})}),i.jsx("td",{children:x.totallivingsqft}),i.jsx("td",{children:x.yearBuild}),i.jsx("td",{children:x.costpersqft})]},x.id)):i.jsx("tr",{children:i.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),i.jsx("nav",{"aria-label":"Page navigation",children:i.jsxs("ul",{className:"pagination justify-content-center",children:[i.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(o-1),children:"Previous"})}),Array.from({length:r},(x,j)=>i.jsx("li",{className:`page-item ${o===j+1?"active":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(j+1),children:j+1})},j+1)),i.jsx("li",{className:`page-item ${o===r?"disabled":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(o+1),children:"Next"})})]})})]}),i.jsx(ze,{})]})},QN=()=>{const{userId:e}=Mr(),t=Et(),{user:n,loading:r}=Ze(o=>o.user);return console.log("user",n),R.useEffect(()=>{e&&t(To(e))},[e,t]),r?i.jsx("div",{children:"Loading..."}):i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("div",{className:"main-body",children:i.jsxs("div",{className:"row gutters-sm",children:[i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[i.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),i.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),i.jsxs("span",{className:"text-muted font-size-sm",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),i.jsx("br",{})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),i.jsx("hr",{}),i.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:i.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),i.jsx("hr",{}),i.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:i.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),i.jsx("hr",{}),i.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("hr",{}),i.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("br",{})," ",i.jsx("br",{})]})})}),i.jsx("div",{className:"col-md-4",children:i.jsx("div",{className:"card mb-3",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",i.jsx("hr",{}),n.aboutme]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),i.jsx("hr",{}),i.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),i.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:i.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),i.jsx("hr",{}),i.jsxs("div",{className:"card-body",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-sm-3",children:i.jsx("span",{className:"mb-0",children:"Email"})}),n.email,i.jsx("div",{className:"col-sm-9 text-secondary"})]}),i.jsx("hr",{}),i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-sm-3",children:i.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",i.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),i.jsxs("ul",{className:"list-group list-group-flush",children:[i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:Lo,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:Lo,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:Lo,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},GN=()=>i.jsxs(Oj,{children:[i.jsx(Yj,{}),i.jsxs(wj,{children:[i.jsx(ke,{path:"/",element:i.jsx(Gj,{})}),i.jsx(ke,{path:"/about",element:i.jsx(Jj,{})}),i.jsx(ke,{path:"/services",element:i.jsx(qN,{})}),i.jsx(ke,{path:"/contact",element:i.jsx(Xj,{})}),i.jsx(ke,{path:"/register",element:i.jsx(bN,{})}),i.jsx(ke,{path:"/registrationsuccess",element:i.jsx(Fo,{children:i.jsx(UN,{})})}),i.jsx(ke,{path:"/login",element:i.jsx(EN,{})}),i.jsx(ke,{path:"/dashboard",element:i.jsx(Fo,{children:i.jsx(TN,{})})}),i.jsx(ke,{path:"/users/:id/verify/:token",element:i.jsx(zN,{})}),i.jsx(ke,{path:"/forgotpassword",element:i.jsx(BN,{})}),i.jsx(ke,{path:"/users/resetpassword/:userId/:token",element:i.jsx($N,{})}),i.jsx(ke,{path:"/property/:id",element:i.jsx(WN,{})}),i.jsx(ke,{path:"/properties/:house_id",element:i.jsx(HN,{})}),i.jsx(ke,{path:"/searchmyproperties",element:i.jsx(VN,{})}),i.jsx(ke,{path:"/searchproperties",element:i.jsx(YN,{})}),i.jsx(ke,{path:"/editproperty/:id",element:i.jsx(Fo,{children:i.jsx(KN,{})})}),i.jsx(ke,{path:"/profile/:userId",element:i.jsx(QN,{})})]})]});cm(document.getElementById("root")).render(i.jsx(R.StrictMode,{children:i.jsx(Gg,{store:D1,children:i.jsx(GN,{})})})); diff --git a/ef-ui/dist/assets/index-GLZpwqbK.js b/ef-ui/dist/assets/index-GLZpwqbK.js deleted file mode 100644 index f62dc64..0000000 --- a/ef-ui/dist/assets/index-GLZpwqbK.js +++ /dev/null @@ -1,85 +0,0 @@ -var Gh=Object.defineProperty;var Jh=(e,t,n)=>t in e?Gh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tl=(e,t,n)=>Jh(e,typeof t!="symbol"?t+"":t,n);function Xh(e,t){for(var n=0;nr[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"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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 r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Zh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kd={exports:{}},xs={},Qd={exports:{}},se={};/** - * @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 Ii=Symbol.for("react.element"),ev=Symbol.for("react.portal"),tv=Symbol.for("react.fragment"),nv=Symbol.for("react.strict_mode"),rv=Symbol.for("react.profiler"),iv=Symbol.for("react.provider"),ov=Symbol.for("react.context"),sv=Symbol.for("react.forward_ref"),lv=Symbol.for("react.suspense"),av=Symbol.for("react.memo"),cv=Symbol.for("react.lazy"),ou=Symbol.iterator;function uv(e){return e===null||typeof e!="object"?null:(e=ou&&e[ou]||e["@@iterator"],typeof e=="function"?e:null)}var Gd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jd=Object.assign,Xd={};function Pr(e,t,n){this.props=e,this.context=t,this.refs=Xd,this.updater=n||Gd}Pr.prototype.isReactComponent={};Pr.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")};Pr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zd(){}Zd.prototype=Pr.prototype;function Ga(e,t,n){this.props=e,this.context=t,this.refs=Xd,this.updater=n||Gd}var Ja=Ga.prototype=new Zd;Ja.constructor=Ga;Jd(Ja,Pr.prototype);Ja.isPureReactComponent=!0;var su=Array.isArray,ef=Object.prototype.hasOwnProperty,Xa={current:null},tf={key:!0,ref:!0,__self:!0,__source:!0};function nf(e,t,n){var r,o={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)ef.call(t,r)&&!tf.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,z=O[L];if(0>>1;Lo(X,D))eeo(te,X)?(O[L]=te,O[ee]=D,L=ee):(O[L]=X,O[H]=D,L=H);else if(eeo(te,D))O[L]=te,O[ee]=D,L=ee;else break e}}return P}function o(O,P){var D=O.sortIndex-P.sortIndex;return D!==0?D:O.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],c=[],d=1,p=null,y=3,N=!1,v=!1,x=!1,j=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(O){for(var P=n(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=O)r(c),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(c)}}function g(O){if(x=!1,f(O),!v)if(n(u)!==null)v=!0,B(w);else{var P=n(c);P!==null&&K(g,P.startTime-O)}}function w(O,P){v=!1,x&&(x=!1,m(C),C=-1),N=!0;var D=y;try{for(f(P),p=n(u);p!==null&&(!(p.expirationTime>P)||O&&!$());){var L=p.callback;if(typeof L=="function"){p.callback=null,y=p.priorityLevel;var z=L(p.expirationTime<=P);P=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(u)&&r(u),f(P)}else r(u);p=n(u)}if(p!==null)var V=!0;else{var H=n(c);H!==null&&K(g,H.startTime-P),V=!1}return V}finally{p=null,y=D,N=!1}}var b=!1,k=null,C=-1,M=5,F=-1;function $(){return!(e.unstable_now()-FO||125L?(O.sortIndex=D,t(c,O),n(u)===null&&O===n(c)&&(x?(m(C),C=-1):x=!0,K(g,D-L))):(O.sortIndex=z,t(u,O),v||N||(v=!0,B(w))),O},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(O){var P=y;return function(){var D=y;y=P;try{return O.apply(this,arguments)}finally{y=D}}}})(af);lf.exports=af;var Nv=lf.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 wv=R,st=Nv;function U(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"),zl=Object.prototype.hasOwnProperty,Cv=/^[: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]*$/,au={},cu={};function bv(e){return zl.call(cu,e)?!0:zl.call(au,e)?!1:Cv.test(e)?cu[e]=!0:(au[e]=!0,!1)}function Ev(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Sv(e,t,n,r){if(t===null||typeof t>"u"||Ev(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,o,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[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];Ie[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[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){Ie[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var ec=/[\-:]([a-z])/g;function tc(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(ec,tc);Ie[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(ec,tc);Ie[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(ec,tc);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function nc(e,t,n,r){var o=Ie.hasOwnProperty(t)?Ie[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==s[a]){var u=` -`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hr(e):""}function kv(e){switch(e.tag){case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 2:case 15:return e=ol(e.type,!1),e;case 11:return e=ol(e.type.render,!1),e;case 1:return e=ol(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 Xn:return"Fragment";case Jn:return"Portal";case Bl:return"Profiler";case rc:return"StrictMode";case Ul:return"Suspense";case $l:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case df:return(e.displayName||"Context")+".Consumer";case uf:return(e._context.displayName||"Context")+".Provider";case ic:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oc:return t=e.displayName||null,t!==null?t:Wl(e.type)||"Memo";case Jt:t=e._payload,e=e._init;try{return Wl(e(t))}catch{}}return null}function _v(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===rc?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pv(e){var t=pf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yi(e){e._valueTracker||(e._valueTracker=Pv(e))}function mf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Lo(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 Vl(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hf(e,t){t=t.checked,t!=null&&nc(e,"checked",t,!1)}function ql(e,t){hf(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hl(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hl(e,t,n){(t!=="number"||Lo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yr=Array.isArray;function mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function di(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={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},Ov=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){Ov.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function xf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function jf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=xf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Tv=xe({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 Ql(e,t){if(t){if(Tv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Gl(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 Jl=null;function sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xl=null,hr=null,vr=null;function hu(e){if(e=Li(e)){if(typeof Xl!="function")throw Error(U(280));var t=e.stateNode;t&&(t=bs(t),Xl(e.stateNode,e.type,t))}}function Nf(e){hr?vr?vr.push(e):vr=[e]:hr=e}function wf(){if(hr){var e=hr,t=vr;if(vr=hr=null,hu(e),t)for(e=0;e>>=0,e===0?32:31-($v(e)/Wv|0)|0}var Qi=64,Gi=4194304;function Kr(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 Uo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Kr(a):(s&=l,s!==0&&(r=Kr(s)))}else l=n&~o,l!==0?r=Kr(l):s!==0&&(r=Kr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function Yv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zr),bu=" ",Eu=!1;function $f(e,t){switch(e){case"keyup":return Ny.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function Cy(e,t){switch(e){case"compositionend":return Wf(t);case"keypress":return t.which!==32?null:(Eu=!0,bu);case"textInput":return e=t.data,e===bu&&Eu?null:e;default:return null}}function by(e,t){if(Zn)return e==="compositionend"||!mc&&$f(e,t)?(e=Bf(),ho=dc=on=null,Zn=!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=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pu(n)}}function Yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kf(){for(var e=window,t=Lo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lo(e.document)}return t}function hc(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 Ay(e){var t=Kf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yf(n.ownerDocument.documentElement,n)){if(r!==null&&hc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Ou(n,s);var l=Ou(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,er=null,ia=null,ti=null,oa=!1;function Tu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oa||er==null||er!==Lo(r)||(r=er,"selectionStart"in r&&hc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&yi(ti,r)||(ti=r,r=Vo(ia,"onSelect"),0rr||(e.current=da[rr],da[rr]=null,rr--)}function de(e,t){rr++,da[rr]=e.current,e.current=t}var xn={},Fe=wn(xn),Ke=wn(!1),Fn=xn;function Nr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qe(e){return e=e.childContextTypes,e!=null}function Ho(){me(Ke),me(Fe)}function Fu(e,t,n){if(Fe.current!==xn)throw Error(U(168));de(Fe,t),de(Ke,n)}function rp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,_v(e)||"Unknown",o));return xe({},n,r)}function Yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Fn=Fe.current,de(Fe,e),de(Ke,Ke.current),!0}function zu(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=rp(e,t,Fn),r.__reactInternalMemoizedMergedChildContext=e,me(Ke),me(Fe),de(Fe,e)):me(Ke),de(Ke,n)}var Ft=null,Es=!1,xl=!1;function ip(e){Ft===null?Ft=[e]:Ft.push(e)}function qy(e){Es=!0,ip(e)}function Cn(){if(!xl&&Ft!==null){xl=!0;var e=0,t=ue;try{var n=Ft;for(ue=1;e>=l,o-=l,zt=1<<32-wt(t)+o|n<C?(M=k,k=null):M=k.sibling;var F=y(m,k,f[C],g);if(F===null){k===null&&(k=M);break}e&&k&&F.alternate===null&&t(m,k),h=s(F,h,C),b===null?w=F:b.sibling=F,b=F,k=M}if(C===f.length)return n(m,k),ve&&Sn(m,C),w;if(k===null){for(;CC?(M=k,k=null):M=k.sibling;var $=y(m,k,F.value,g);if($===null){k===null&&(k=M);break}e&&k&&$.alternate===null&&t(m,k),h=s($,h,C),b===null?w=$:b.sibling=$,b=$,k=M}if(F.done)return n(m,k),ve&&Sn(m,C),w;if(k===null){for(;!F.done;C++,F=f.next())F=p(m,F.value,g),F!==null&&(h=s(F,h,C),b===null?w=F:b.sibling=F,b=F);return ve&&Sn(m,C),w}for(k=r(m,k);!F.done;C++,F=f.next())F=N(k,m,C,F.value,g),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?C:F.key),h=s(F,h,C),b===null?w=F:b.sibling=F,b=F);return e&&k.forEach(function(Z){return t(m,Z)}),ve&&Sn(m,C),w}function j(m,h,f,g){if(typeof f=="object"&&f!==null&&f.type===Xn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Hi:e:{for(var w=f.key,b=h;b!==null;){if(b.key===w){if(w=f.type,w===Xn){if(b.tag===7){n(m,b.sibling),h=o(b,f.props.children),h.return=m,m=h;break e}}else if(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Jt&&$u(w)===b.type){n(m,b.sibling),h=o(b,f.props),h.ref=$r(m,b,f),h.return=m,m=h;break e}n(m,b);break}else t(m,b);b=b.sibling}f.type===Xn?(h=Dn(f.props.children,m.mode,g,f.key),h.return=m,m=h):(g=Co(f.type,f.key,f.props,null,m.mode,g),g.ref=$r(m,h,f),g.return=m,m=g)}return l(m);case Jn:e:{for(b=f.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===f.containerInfo&&h.stateNode.implementation===f.implementation){n(m,h.sibling),h=o(h,f.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=kl(f,m.mode,g),h.return=m,m=h}return l(m);case Jt:return b=f._init,j(m,h,b(f._payload),g)}if(Yr(f))return v(m,h,f,g);if(Lr(f))return x(m,h,f,g);ro(m,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,f),h.return=m,m=h):(n(m,h),h=Sl(f,m.mode,g),h.return=m,m=h),l(m)):n(m,h)}return j}var Cr=ap(!0),cp=ap(!1),Go=wn(null),Jo=null,sr=null,xc=null;function jc(){xc=sr=Jo=null}function Nc(e){var t=Go.current;me(Go),e._currentValue=t}function ma(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function gr(e,t){Jo=e,xc=sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ye=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(xc!==e)if(e={context:e,memoizedValue:t,next:null},sr===null){if(Jo===null)throw Error(U(308));sr=e,Jo.dependencies={lanes:0,firstContext:e}}else sr=sr.next=e;return t}var Tn=null;function wc(e){Tn===null?Tn=[e]:Tn.push(e)}function up(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,wc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vt(e,r)}function Vt(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 Xt=!1;function Cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dp(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vt(e,n)}return o=r.interleaved,o===null?(t.next=t,wc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vt(e,n)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ac(e,n)}}function Wu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xo(e,t,n,r){var o=e.updateQueue;Xt=!1;var s=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,c=u.next;u.next=null,l===null?s=c:l.next=c,l=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==l&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(s!==null){var p=o.baseState;l=0,d=c=u=null,a=s;do{var y=a.lane,N=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:N,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(y=t,N=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){p=v.call(N,p,y);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,y=typeof v=="function"?v.call(N,p,y):v,y==null)break e;p=xe({},p,y);break e;case 2:Xt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[a]:y.push(a))}else N={eventTime:N,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=N,u=p):d=d.next=N,l|=y;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;y=a,a=y.next,y.next=null,o.lastBaseUpdate=y,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 l|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Un|=l,e.lanes=l,e.memoizedState=p}}function Vu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Nl.transition;Nl.transition={};try{e(!1),t()}finally{ue=n,Nl.transition=r}}function _p(){return vt().memoizedState}function Qy(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pp(e))Op(t,n);else if(n=up(e,t,n,r),n!==null){var o=$e();Ct(n,e,r,o),Tp(n,t,r)}}function Gy(e,t,n){var r=hn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pp(e))Op(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,a=s(l,n);if(o.hasEagerState=!0,o.eagerState=a,Et(a,l)){var u=t.interleaved;u===null?(o.next=o,wc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=up(e,t,o,r),n!==null&&(o=$e(),Ct(n,e,r,o),Tp(n,t,r))}}function Pp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Op(e,t){ni=es=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ac(e,n)}}var ts={readContext:ht,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Jy={readContext:ht,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Hu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xo(4194308,4,Cp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xo(4194308,4,e,t)},useInsertionEffect:function(e,t){return xo(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qy.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:qu,useDebugValue:Tc,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=qu(!1),t=e[0];return e=Ky.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,o=Pt();if(ve){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Pe===null)throw Error(U(349));Bn&30||hp(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Hu(yp.bind(null,r,s,e),[e]),r.flags|=2048,Ei(9,vp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Pe.identifierPrefix;if(ve){var n=Bt,r=zt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ci++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Tt]=t,e[ji]=r,Up(e,t,!1,!1),t.stateNode=e;e:{switch(l=Gl(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;oSr&&(t.flags|=128,r=!0,Wr(s,!1),t.lanes=4194304)}else{if(!r)if(e=Zo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!ve)return Me(t),null}else 2*Ce()-s.renderingStartTime>Sr&&n!==1073741824&&(t.flags|=128,r=!0,Wr(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ce(),t.sibling=null,n=ye.current,de(ye,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Lc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?et&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function og(e,t){switch(yc(t),t.tag){case 1:return Qe(t.type)&&Ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return br(),me(Ke),me(Fe),Sc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ec(t),null;case 13:if(me(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ye),null;case 4:return br(),null;case 10:return Nc(t.type._context),null;case 22:case 23:return Lc(),null;case 24:return null;default:return null}}var oo=!1,Le=!1,sg=typeof WeakSet=="function"?WeakSet:Set,Y=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function Ca(e,t,n){try{n()}catch(r){je(e,t,r)}}var rd=!1;function lg(e,t){if(sa=$o,e=Kf(),hc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,c=0,d=0,p=e,y=null;t:for(;;){for(var N;p!==n||o!==0&&p.nodeType!==3||(a=l+o),p!==s||r!==0&&p.nodeType!==3||(u=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(N=p.firstChild)!==null;)y=p,p=N;for(;;){if(p===e)break t;if(y===n&&++c===o&&(a=l),y===s&&++d===r&&(u=l),(N=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=N}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(la={focusedElem:e,selectionRange:n},$o=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,j=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:gt(t.type,x),j);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(g){je(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return v=rd,rd=!1,v}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ca(t,n,s)}o=o.next}while(o!==r)}}function _s(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ba(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 Vp(e){var t=e.alternate;t!==null&&(e.alternate=null,Vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[ji],delete t[ua],delete t[Wy],delete t[Vy])),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 qp(e){return e.tag===5||e.tag===3||e.tag===4}function id(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qp(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 Ea(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qo));else if(r!==4&&(e=e.child,e!==null))for(Ea(e,t,n),e=e.sibling;e!==null;)Ea(e,t,n),e=e.sibling}function Sa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Sa(e,t,n),e=e.sibling;e!==null;)Sa(e,t,n),e=e.sibling}var Re=null,xt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Hp(e,t,n),n=n.sibling}function Hp(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(js,n)}catch{}switch(n.tag){case 5:Le||lr(n,t);case 6:var r=Re,o=xt;Re=null,Qt(e,t,n),Re=r,xt=o,Re!==null&&(xt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(xt?(e=Re,n=n.stateNode,e.nodeType===8?gl(e.parentNode,n):e.nodeType===1&&gl(e,n),hi(e)):gl(Re,n.stateNode));break;case 4:r=Re,o=xt,Re=n.stateNode.containerInfo,xt=!0,Qt(e,t,n),Re=r,xt=o;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Ca(n,t,l),o=o.next}while(o!==r)}Qt(e,t,n);break;case 1:if(!Le&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){je(n,t,a)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,Qt(e,t,n),Le=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function od(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sg),t.forEach(function(r){var o=vg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~s}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cg(r/1960))-r,10e?16:e,sn===null)var r=!1;else{if(e=sn,sn=null,is=0,le&6)throw Error(U(331));var o=le;for(le|=4,Y=e.current;Y!==null;){var s=Y,l=s.child;if(Y.flags&16){var a=s.deletions;if(a!==null){for(var u=0;uCe()-Dc?In(e,0):Ic|=n),Ge(e,t)}function em(e,t){t===0&&(e.mode&1?(t=Gi,Gi<<=1,!(Gi&130023424)&&(Gi=4194304)):t=1);var n=$e();e=Vt(e,t),e!==null&&(Di(e,t,n),Ge(e,n))}function hg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),em(e,n)}function vg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),em(e,n)}var tm;tm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)Ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ye=!1,rg(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,ve&&t.flags&1048576&&op(t,Qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jo(e,t),e=t.pendingProps;var o=Nr(t,Fe.current);gr(t,n),o=_c(null,t,r,e,o,n);var s=Pc();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,Qe(r)?(s=!0,Yo(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Cc(t),o.updater=ks,t.stateNode=o,o._reactInternals=t,va(t,r,e,n),t=xa(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&vc(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=gg(r),e=gt(r,e),o){case 0:t=ga(null,t,r,e,n);break e;case 1:t=ed(null,t,r,e,n);break e;case 11:t=Xu(null,t,r,e,n);break e;case 14:t=Zu(null,t,r,gt(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),ga(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),ed(e,t,r,o,n);case 3:e:{if(Fp(t),e===null)throw Error(U(387));r=t.pendingProps,s=t.memoizedState,o=s.element,dp(e,t),Xo(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Er(Error(U(423)),t),t=td(e,t,r,n,o);break e}else if(r!==o){o=Er(Error(U(424)),t),t=td(e,t,r,n,o);break e}else for(tt=fn(t.stateNode.containerInfo.firstChild),it=t,ve=!0,jt=null,n=cp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wr(),r===o){t=qt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return fp(t),e===null&&pa(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,l=o.children,aa(r,o)?l=null:s!==null&&aa(r,s)&&(t.flags|=32),Lp(e,t),Be(e,t,l,n),t.child;case 6:return e===null&&pa(t),null;case 13:return zp(e,t,n);case 4:return bc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cr(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Xu(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,l=o.value,de(Go,r._currentValue),r._currentValue=l,s!==null)if(Et(s.value,l)){if(s.children===o.children&&!Ke.current){t=qt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){l=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Ut(-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),ma(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(U(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ma(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,gr(t,n),o=ht(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),Zu(e,t,r,o,n);case 15:return Dp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),jo(e,t),t.tag=1,Qe(r)?(e=!0,Yo(t)):e=!1,gr(t,n),Rp(t,r,o),va(t,r,o,n),xa(null,t,r,!0,e,n);case 19:return Bp(e,t,n);case 22:return Mp(e,t,n)}throw Error(U(156,t.tag))};function nm(e,t){return Pf(e,t)}function yg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new yg(e,t,n,r)}function zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gg(e){if(typeof e=="function")return zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ic)return 11;if(e===oc)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=pt(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 Co(e,t,n,r,o,s){var l=2;if(r=e,typeof e=="function")zc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Xn:return Dn(n.children,o,s,t);case rc:l=8,o|=8;break;case Bl:return e=pt(12,n,t,o|2),e.elementType=Bl,e.lanes=s,e;case Ul:return e=pt(13,n,t,o),e.elementType=Ul,e.lanes=s,e;case $l:return e=pt(19,n,t,o),e.elementType=$l,e.lanes=s,e;case ff:return Os(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uf:l=10;break e;case df:l=9;break e;case ic:l=11;break e;case oc:l=14;break e;case Jt:l=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=pt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Dn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Os(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ff,e.lanes=n,e.stateNode={isHidden:!1},e}function Sl(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function kl(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xg(e,t,n,r,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=ll(0),this.expirationTimes=ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ll(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,s,l,a,u){return e=new xg(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=pt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cc(s),e}function jg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sm)}catch(e){console.error(e)}}sm(),sf.exports=ct;var Eg=sf.exports,lm,pd=Eg;lm=pd.createRoot,pd.hydrateRoot;var am={exports:{}},cm={};/** - * @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 zi=R;function Sg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kg=typeof Object.is=="function"?Object.is:Sg,_g=zi.useSyncExternalStore,Pg=zi.useRef,Og=zi.useEffect,Tg=zi.useMemo,Rg=zi.useDebugValue;cm.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=Pg(null);if(s.current===null){var l={hasValue:!1,value:null};s.current=l}else l=s.current;s=Tg(function(){function u(N){if(!c){if(c=!0,d=N,N=r(N),o!==void 0&&l.hasValue){var v=l.value;if(o(v,N))return p=v}return p=N}if(v=p,kg(d,N))return v;var x=r(N);return o!==void 0&&o(v,x)?v:(d=N,p=x)}var c=!1,d,p,y=n===void 0?null:n;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,n,r,o]);var a=_g(e,s[0],s[1]);return Og(function(){l.hasValue=!0,l.value=a},[a]),Rg(a),a};am.exports=cm;var Ag=am.exports,nt="default"in Fl?T:Fl,md=Symbol.for("react-redux-context"),hd=typeof globalThis<"u"?globalThis:{};function Ig(){if(!nt.createContext)return{};const e=hd[md]??(hd[md]=new Map);let t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var jn=Ig(),Dg=()=>{throw new Error("uSES not initialized!")};function Vc(e=jn){return function(){return nt.useContext(e)}}var um=Vc(),dm=Dg,Mg=e=>{dm=e},Lg=(e,t)=>e===t;function Fg(e=jn){const t=e===jn?um:Vc(e),n=(r,o={})=>{const{equalityFn:s=Lg,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:p}=t();nt.useRef(!0);const y=nt.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,l.stabilityCheck]),N=dm(u.addNestedSub,a.getState,c||a.getState,y,s);return nt.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var Ze=Fg();function zg(e){e()}function Bg(){let e=null,t=null;return{clear(){e=null,t=null},notify(){zg(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var vd={notify(){},get:()=>[]};function Ug(e,t){let n,r=vd,o=0,s=!1;function l(x){d();const j=r.subscribe(x);let m=!1;return()=>{m||(m=!0,j(),p())}}function a(){r.notify()}function u(){v.onStateChange&&v.onStateChange()}function c(){return s}function d(){o++,n||(n=e.subscribe(u),r=Bg())}function p(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=vd)}function y(){s||(s=!0,d())}function N(){s&&(s=!1,p())}const v={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:c,trySubscribe:y,tryUnsubscribe:N,getListeners:()=>r};return v}var $g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wg=typeof navigator<"u"&&navigator.product==="ReactNative",Vg=$g||Wg?nt.useLayoutEffect:nt.useEffect;function qg({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:s="once"}){const l=nt.useMemo(()=>{const c=Ug(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:s}},[e,r,o,s]),a=nt.useMemo(()=>e.getState(),[e]);Vg(()=>{const{subscription:c}=l;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[l,a]);const u=t||jn;return nt.createElement(u.Provider,{value:l},n)}var Hg=qg;function fm(e=jn){const t=e===jn?um:Vc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Yg=fm();function Kg(e=jn){const t=e===jn?Yg:fm(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var St=Kg();Mg(Ag.useSyncExternalStoreWithSelector);function Te(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 Qg=typeof Symbol=="function"&&Symbol.observable||"@@observable",yd=Qg,_l=()=>Math.random().toString(36).substring(7).split("").join("."),Gg={INIT:`@@redux/INIT${_l()}`,REPLACE:`@@redux/REPLACE${_l()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${_l()}`},ls=Gg;function qc(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 pm(e,t,n){if(typeof e!="function")throw new Error(Te(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Te(1));return n(pm)(e,t)}let r=e,o=t,s=new Map,l=s,a=0,u=!1;function c(){l===s&&(l=new Map,s.forEach((j,m)=>{l.set(m,j)}))}function d(){if(u)throw new Error(Te(3));return o}function p(j){if(typeof j!="function")throw new Error(Te(4));if(u)throw new Error(Te(5));let m=!0;c();const h=a++;return l.set(h,j),function(){if(m){if(u)throw new Error(Te(6));m=!1,c(),l.delete(h),s=null}}}function y(j){if(!qc(j))throw new Error(Te(7));if(typeof j.type>"u")throw new Error(Te(8));if(typeof j.type!="string")throw new Error(Te(17));if(u)throw new Error(Te(9));try{u=!0,o=r(o,j)}finally{u=!1}return(s=l).forEach(h=>{h()}),j}function N(j){if(typeof j!="function")throw new Error(Te(10));r=j,y({type:ls.REPLACE})}function v(){const j=p;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Te(11));function h(){const g=m;g.next&&g.next(d())}return h(),{unsubscribe:j(h)}},[yd](){return this}}}return y({type:ls.INIT}),{dispatch:y,subscribe:p,getState:d,replaceReducer:N,[yd]:v}}function Jg(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ls.INIT})>"u")throw new Error(Te(12));if(typeof n(void 0,{type:ls.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function Xg(e){const t=Object.keys(e),n={};for(let s=0;s"u")throw a&&a.type,new Error(Te(14));c[p]=v,u=u||v!==N}return u=u||r.length!==Object.keys(l).length,u?c:l}}function as(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Zg(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(Te(15))};const l={getState:o.getState,dispatch:(u,...c)=>s(u,...c)},a=e.map(u=>u(l));return s=as(...a)(o.dispatch),{...o,dispatch:s}}}function ex(e){return qc(e)&&"type"in e&&typeof e.type=="string"}var mm=Symbol.for("immer-nothing"),gd=Symbol.for("immer-draftable"),lt=Symbol.for("immer-state");function Nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kr=Object.getPrototypeOf;function Wn(e){return!!e&&!!e[lt]}function Ht(e){var t;return e?hm(e)||Array.isArray(e)||!!e[gd]||!!((t=e.constructor)!=null&&t[gd])||Ms(e)||Ls(e):!1}var tx=Object.prototype.constructor.toString();function hm(e){if(!e||typeof e!="object")return!1;const t=kr(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)===tx}function cs(e,t){Ds(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ds(e){const t=e[lt];return t?t.type_:Array.isArray(e)?1:Ms(e)?2:Ls(e)?3:0}function Ta(e,t){return Ds(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vm(e,t,n){const r=Ds(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function nx(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ms(e){return e instanceof Map}function Ls(e){return e instanceof Set}function _n(e){return e.copy_||e.base_}function Ra(e,t){if(Ms(e))return new Map(e);if(Ls(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 r=Object.getOwnPropertyDescriptors(e);delete r[lt];let o=Reflect.ownKeys(r);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=rx),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Hc(r,!0))),e}function rx(){Nt(2)}function Fs(e){return Object.isFrozen(e)}var ix={};function Vn(e){const t=ix[e];return t||Nt(0,e),t}var ki;function ym(){return ki}function ox(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xd(e,t){t&&(Vn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Aa(e){Ia(e),e.drafts_.forEach(sx),e.drafts_=null}function Ia(e){e===ki&&(ki=e.parent_)}function jd(e){return ki=ox(ki,e)}function sx(e){const t=e[lt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Nd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[lt].modified_&&(Aa(t),Nt(4)),Ht(e)&&(e=us(t,e),t.parent_||ds(t,e)),t.patches_&&Vn("Patches").generateReplacementPatches_(n[lt].base_,e,t.patches_,t.inversePatches_)):e=us(t,n,[]),Aa(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==mm?e:void 0}function us(e,t,n){if(Fs(t))return t;const r=t[lt];if(!r)return cs(t,(o,s)=>wd(e,r,t,o,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ds(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let s=o,l=!1;r.type_===3&&(s=new Set(o),o.clear(),l=!0),cs(s,(a,u)=>wd(e,r,o,a,u,n,l)),ds(e,o,!1),n&&e.patches_&&Vn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function wd(e,t,n,r,o,s,l){if(Wn(o)){const a=s&&t&&t.type_!==3&&!Ta(t.assigned_,r)?s.concat(r):void 0,u=us(e,o,a);if(vm(n,r,u),Wn(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(Ht(o)&&!Fs(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;us(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ds(e,o)}}function ds(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hc(t,n)}function lx(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ym(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=Yc;n&&(o=[r],s=_i);const{revoke:l,proxy:a}=Proxy.revocable(o,s);return r.draft_=a,r.revoke_=l,a}var Yc={get(e,t){if(t===lt)return e;const n=_n(e);if(!Ta(n,t))return ax(e,n,t);const r=n[t];return e.finalized_||!Ht(r)?r:r===Pl(e.base_,t)?(Ol(e),e.copy_[t]=Ma(r,e)):r},has(e,t){return t in _n(e)},ownKeys(e){return Reflect.ownKeys(_n(e))},set(e,t,n){const r=gm(_n(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Pl(_n(e),t),s=o==null?void 0:o[lt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(nx(n,o)&&(n!==void 0||Ta(e.base_,t)))return!0;Ol(e),Da(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 Pl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ol(e),Da(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_n(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Nt(11)},getPrototypeOf(e){return kr(e.base_)},setPrototypeOf(){Nt(12)}},_i={};cs(Yc,(e,t)=>{_i[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});_i.deleteProperty=function(e,t){return _i.set.call(this,e,t,void 0)};_i.set=function(e,t,n){return Yc.set.call(this,e[0],t,n,e[0])};function Pl(e,t){const n=e[lt];return(n?_n(n):e)[t]}function ax(e,t,n){var o;const r=gm(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function gm(e,t){if(!(t in e))return;let n=kr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=kr(n)}}function Da(e){e.modified_||(e.modified_=!0,e.parent_&&Da(e.parent_))}function Ol(e){e.copy_||(e.copy_=Ra(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var cx=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const l=this;return function(u=s,...c){return l.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&Nt(6),r!==void 0&&typeof r!="function"&&Nt(7);let o;if(Ht(t)){const s=jd(this),l=Ma(t,void 0);let a=!0;try{o=n(l),a=!1}finally{a?Aa(s):Ia(s)}return xd(s,r),Nd(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===mm&&(o=void 0),this.autoFreeze_&&Hc(o,!0),r){const s=[],l=[];Vn("Patches").generateReplacementPatches_(t,o,s,l),r(s,l)}return o}else Nt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...a)=>this.produceWithPatches(l,u=>t(u,...a));let r,o;return[this.produce(t,n,(l,a)=>{r=l,o=a}),r,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){Ht(e)||Nt(8),Wn(e)&&(e=ux(e));const t=jd(this),n=Ma(e,void 0);return n[lt].isManual_=!0,Ia(t),n}finishDraft(e,t){const n=e&&e[lt];(!n||!n.isManual_)&&Nt(9);const{scope_:r}=n;return xd(r,t),Nd(void 0,r)}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 r=Vn("Patches").applyPatches_;return Wn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Ma(e,t){const n=Ms(e)?Vn("MapSet").proxyMap_(e,t):Ls(e)?Vn("MapSet").proxySet_(e,t):lx(e,t);return(t?t.scope_:ym()).drafts_.push(n),n}function ux(e){return Wn(e)||Nt(10,e),xm(e)}function xm(e){if(!Ht(e)||Fs(e))return e;const t=e[lt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ra(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ra(e,!0);return cs(n,(r,o)=>{vm(n,r,xm(o))}),t&&(t.finalized_=!1),n}var at=new cx,jm=at.produce;at.produceWithPatches.bind(at);at.setAutoFreeze.bind(at);at.setUseStrictShallowCopy.bind(at);at.applyPatches.bind(at);at.createDraft.bind(at);at.finishDraft.bind(at);function Nm(e){return({dispatch:n,getState:r})=>o=>s=>typeof s=="function"?s(n,r,e):o(s)}var dx=Nm(),fx=Nm,px=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?as:as.apply(null,arguments)},mx=e=>e&&typeof e.match=="function";function si(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(bt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>ex(r)&&r.type===e,n}var wm=class Gr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Gr.prototype)}static get[Symbol.species](){return Gr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Gr(...t[0].concat(this)):new Gr(...t.concat(this))}};function Cd(e){return Ht(e)?jm(e,()=>{}):e}function bd(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(bt(10));const r=n.insert(t,e);return e.set(t,r),r}function hx(e){return typeof e=="boolean"}var vx=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let l=new wm;return n&&(hx(n)?l.push(dx):l.push(fx(n.extraArgument))),l},yx="RTK_autoBatch",Cm=e=>t=>{setTimeout(t,e)},gx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Cm(10),xx=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,l=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?gx:e.type==="callback"?e.queueNotification:Cm(e.timeout),c=()=>{l=!1,s&&(s=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const p=()=>o&&d(),y=r.subscribe(p);return a.add(d),()=>{y(),a.delete(d)}},dispatch(d){var p;try{return o=!((p=d==null?void 0:d.meta)!=null&&p[yx]),s=!o,s&&(l||(l=!0,u(c))),r.dispatch(d)}finally{o=!0}}})},jx=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new wm(e);return r&&o.push(xx(typeof r=="object"?r:void 0)),o};function Nx(e){const t=vx(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(qc(n))a=Xg(n);else throw new Error(bt(1));let u;typeof r=="function"?u=r(t):u=t();let c=as;o&&(c=px({trace:!1,...typeof o=="object"&&o}));const d=Zg(...u),p=jx(d);let y=typeof l=="function"?l(p):p();const N=c(...y);return pm(a,s,N)}function bm(e){const t={},n=[];let r;const o={addCase(s,l){const a=typeof s=="string"?s:s.type;if(!a)throw new Error(bt(28));if(a in t)throw new Error(bt(29));return t[a]=l,o},addMatcher(s,l){return n.push({matcher:s,reducer:l}),o},addDefaultCase(s){return r=s,o}};return e(o),[t,n,r]}function wx(e){return typeof e=="function"}function Cx(e,t){let[n,r,o]=bm(t),s;if(wx(e))s=()=>Cd(e());else{const a=Cd(e);s=()=>a}function l(a=s(),u){let c=[n[u.type],...r.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(Wn(d)){const N=p(d,u);return N===void 0?d:N}else{if(Ht(d))return jm(d,y=>p(y,u));{const y=p(d,u);if(y===void 0){if(d===null)return d;throw new Error(bt(9))}return y}}return d},a)}return l.getInitialState=s,l}var bx=(e,t)=>mx(e)?e.match(t):e(t);function Ex(...e){return t=>e.some(n=>bx(n,t))}var Sx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",kx=(e=21)=>{let t="",n=e;for(;n--;)t+=Sx[Math.random()*64|0];return t},_x=["name","message","stack","code"],Tl=class{constructor(e,t){tl(this,"_type");this.payload=e,this.meta=t}},Ed=class{constructor(e,t){tl(this,"_type");this.payload=e,this.meta=t}},Px=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of _x)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Dt=(()=>{function e(t,n,r){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"}})),l=si(t+"/rejected",(u,c,d,p,y)=>({payload:p,error:(r&&r.serializeError||Px)(u||"Rejected"),meta:{...y||{},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 a(u){return(c,d,p)=>{const y=r!=null&&r.idGenerator?r.idGenerator(u):kx(),N=new AbortController;let v,x;function j(h){x=h,N.abort()}const m=async function(){var g,w;let h;try{let b=(g=r==null?void 0:r.condition)==null?void 0:g.call(r,u,{getState:d,extra:p});if(Tx(b)&&(b=await b),b===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const k=new Promise((C,M)=>{v=()=>{M({name:"AbortError",message:x||"Aborted"})},N.signal.addEventListener("abort",v)});c(s(y,u,(w=r==null?void 0:r.getPendingMeta)==null?void 0:w.call(r,{requestId:y,arg:u},{getState:d,extra:p}))),h=await Promise.race([k,Promise.resolve(n(u,{dispatch:c,getState:d,extra:p,requestId:y,signal:N.signal,abort:j,rejectWithValue:(C,M)=>new Tl(C,M),fulfillWithValue:(C,M)=>new Ed(C,M)})).then(C=>{if(C instanceof Tl)throw C;return C instanceof Ed?o(C.payload,y,u,C.meta):o(C,y,u)})])}catch(b){h=b instanceof Tl?l(null,y,u,b.payload,b.meta):l(b,y,u)}finally{v&&N.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&l.match(h)&&h.meta.condition||c(h),h}();return Object.assign(m,{abort:j,requestId:y,arg:u,unwrap(){return m.then(Ox)}})}}return Object.assign(a,{pending:s,rejected:l,fulfilled:o,settled:Ex(l,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Ox(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Tx(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Rx=Symbol.for("rtk-slice-createasyncthunk");function Ax(e,t){return`${e}/${t}`}function Ix({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Rx];return function(o){const{name:s,reducerPath:l=s}=o;if(!s)throw new Error(bt(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(Mx()):o.reducers)||{},u=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(f,g){const w=typeof f=="string"?f:f.type;if(!w)throw new Error(bt(12));if(w in c.sliceCaseReducersByType)throw new Error(bt(13));return c.sliceCaseReducersByType[w]=g,d},addMatcher(f,g){return c.sliceMatchers.push({matcher:f,reducer:g}),d},exposeAction(f,g){return c.actionCreators[f]=g,d},exposeCaseReducer(f,g){return c.sliceCaseReducersByName[f]=g,d}};u.forEach(f=>{const g=a[f],w={reducerName:f,type:Ax(s,f),createNotation:typeof o.reducers=="function"};Fx(g)?Bx(w,g,d,t):Lx(w,g,d)});function p(){const[f={},g=[],w=void 0]=typeof o.extraReducers=="function"?bm(o.extraReducers):[o.extraReducers],b={...f,...c.sliceCaseReducersByType};return Cx(o.initialState,k=>{for(let C in b)k.addCase(C,b[C]);for(let C of c.sliceMatchers)k.addMatcher(C.matcher,C.reducer);for(let C of g)k.addMatcher(C.matcher,C.reducer);w&&k.addDefaultCase(w)})}const y=f=>f,N=new Map;let v;function x(f,g){return v||(v=p()),v(f,g)}function j(){return v||(v=p()),v.getInitialState()}function m(f,g=!1){function w(k){let C=k[f];return typeof C>"u"&&g&&(C=j()),C}function b(k=y){const C=bd(N,g,{insert:()=>new WeakMap});return bd(C,k,{insert:()=>{const M={};for(const[F,$]of Object.entries(o.selectors??{}))M[F]=Dx($,k,j,g);return M}})}return{reducerPath:f,getSelectors:b,get selectors(){return b(w)},selectSlice:w}}const h={name:s,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:j,...m(l),injectInto(f,{reducerPath:g,...w}={}){const b=g??l;return f.inject({reducerPath:b,reducer:x},w),{...h,...m(b,!0)}}};return h}}function Dx(e,t,n,r){function o(s,...l){let a=t(s);return typeof a>"u"&&r&&(a=n()),e(a,...l)}return o.unwrapped=e,o}var Kc=Ix();function Mx(){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 Lx({type:e,reducerName:t,createNotation:n},r,o){let s,l;if("reducer"in r){if(n&&!zx(r))throw new Error(bt(17));s=r.reducer,l=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,l?si(e,l):si(e))}function Fx(e){return e._reducerDefinitionType==="asyncThunk"}function zx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bx({type:e,reducerName:t},n,r,o){if(!o)throw new Error(bt(18));const{payloadCreator:s,fulfilled:l,pending:a,rejected:u,settled:c,options:d}=n,p=o(e,s,d);r.exposeAction(t,p),l&&r.addCase(p.fulfilled,l),a&&r.addCase(p.pending,a),u&&r.addCase(p.rejected,u),c&&r.addMatcher(p.settled,c),r.exposeCaseReducer(t,{fulfilled:l||ao,pending:a||ao,rejected:u||ao,settled:c||ao})}function ao(){}function bt(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 Em(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ux}=Object.prototype,{getPrototypeOf:Qc}=Object,zs=(e=>t=>{const n=Ux.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kt=e=>(e=e.toLowerCase(),t=>zs(t)===e),Bs=e=>t=>typeof t===e,{isArray:Rr}=Array,Pi=Bs("undefined");function $x(e){return e!==null&&!Pi(e)&&e.constructor!==null&&!Pi(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sm=kt("ArrayBuffer");function Wx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sm(e.buffer),t}const Vx=Bs("string"),ot=Bs("function"),km=Bs("number"),Us=e=>e!==null&&typeof e=="object",qx=e=>e===!0||e===!1,bo=e=>{if(zs(e)!=="object")return!1;const t=Qc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hx=kt("Date"),Yx=kt("File"),Kx=kt("Blob"),Qx=kt("FileList"),Gx=e=>Us(e)&&ot(e.pipe),Jx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=zs(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},Xx=kt("URLSearchParams"),[Zx,e0,t0,n0]=["ReadableStream","Request","Response","Headers"].map(kt),r0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Rr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pm=e=>!Pi(e)&&e!==An;function La(){const{caseless:e}=Pm(this)&&this||{},t={},n=(r,o)=>{const s=e&&_m(t,o)||o;bo(t[s])&&bo(r)?t[s]=La(t[s],r):bo(r)?t[s]=La({},r):Rr(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(Bi(t,(o,s)=>{n&&ot(o)?e[s]=Em(o,n):e[s]=o},{allOwnKeys:r}),e),o0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},l0=(e,t,n,r)=>{let o,s,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Qc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},a0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},c0=e=>{if(!e)return null;if(Rr(e))return e;let t=e.length;if(!km(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},u0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qc(Uint8Array)),d0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},f0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},p0=kt("HTMLFormElement"),m0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Sd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),h0=kt("RegExp"),Om=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bi(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},v0=e=>{Om(e,(t,n)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ot(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},y0=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Rr(e)?r(e):r(String(e).split(t)),n},g0=()=>{},x0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Rl="abcdefghijklmnopqrstuvwxyz",kd="0123456789",Tm={DIGIT:kd,ALPHA:Rl,ALPHA_DIGIT:Rl+Rl.toUpperCase()+kd},j0=(e=16,t=Tm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function N0(e){return!!(e&&ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const w0=e=>{const t=new Array(10),n=(r,o)=>{if(Us(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=Rr(r)?[]:{};return Bi(r,(l,a)=>{const u=n(l,o+1);!Pi(u)&&(s[a]=u)}),t[o]=void 0,s}}return r};return n(e,0)},C0=kt("AsyncFunction"),b0=e=>e&&(Us(e)||ot(e))&&ot(e.then)&&ot(e.catch),Rm=((e,t)=>e?setImmediate:t?((n,r)=>(An.addEventListener("message",({source:o,data:s})=>{o===An&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),An.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ot(An.postMessage)),E0=typeof queueMicrotask<"u"?queueMicrotask.bind(An):typeof process<"u"&&process.nextTick||Rm,I={isArray:Rr,isArrayBuffer:Sm,isBuffer:$x,isFormData:Jx,isArrayBufferView:Wx,isString:Vx,isNumber:km,isBoolean:qx,isObject:Us,isPlainObject:bo,isReadableStream:Zx,isRequest:e0,isResponse:t0,isHeaders:n0,isUndefined:Pi,isDate:Hx,isFile:Yx,isBlob:Kx,isRegExp:h0,isFunction:ot,isStream:Gx,isURLSearchParams:Xx,isTypedArray:u0,isFileList:Qx,forEach:Bi,merge:La,extend:i0,trim:r0,stripBOM:o0,inherits:s0,toFlatObject:l0,kindOf:zs,kindOfTest:kt,endsWith:a0,toArray:c0,forEachEntry:d0,matchAll:f0,isHTMLForm:p0,hasOwnProperty:Sd,hasOwnProp:Sd,reduceDescriptors:Om,freezeMethods:v0,toObjectSet:y0,toCamelCase:m0,noop:g0,toFiniteNumber:x0,findKey:_m,global:An,isContextDefined:Pm,ALPHABET:Tm,generateString:j0,isSpecCompliantForm:N0,toJSONObject:w0,isAsyncFn:C0,isThenable:b0,setImmediate:Rm,asap:E0};function ne(e,t,n,r,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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(ne,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:I.toJSONObject(this.config),code:this.code,status:this.status}}});const Am=ne.prototype,Im={};["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=>{Im[e]={value:e}});Object.defineProperties(ne,Im);Object.defineProperty(Am,"isAxiosError",{value:!0});ne.from=(e,t,n,r,o,s)=>{const l=Object.create(Am);return I.toFlatObject(e,l,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),ne.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const S0=null;function Fa(e){return I.isPlainObject(e)||I.isArray(e)}function Dm(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function _d(e,t,n){return e?e.concat(t).map(function(o,s){return o=Dm(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function k0(e){return I.isArray(e)&&!e.some(Fa)}const _0=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function $s(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,j){return!I.isUndefined(j[x])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(I.isDate(v))return v.toISOString();if(!u&&I.isBlob(v))throw new ne("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(v)||I.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,x,j){let m=v;if(v&&!j&&typeof v=="object"){if(I.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=JSON.stringify(v);else if(I.isArray(v)&&k0(v)||(I.isFileList(v)||I.endsWith(x,"[]"))&&(m=I.toArray(v)))return x=Dm(x),m.forEach(function(f,g){!(I.isUndefined(f)||f===null)&&t.append(l===!0?_d([x],g,s):l===null?x:x+"[]",c(f))}),!1}return Fa(v)?!0:(t.append(_d(j,x,s),c(v)),!1)}const p=[],y=Object.assign(_0,{defaultVisitor:d,convertValue:c,isVisitable:Fa});function N(v,x){if(!I.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(v),I.forEach(v,function(m,h){(!(I.isUndefined(m)||m===null)&&o.call(t,m,I.isString(h)?h.trim():h,x,y))===!0&&N(m,x?x.concat(h):[h])}),p.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return N(e),t}function Pd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Gc(e,t){this._pairs=[],e&&$s(e,this,t)}const Mm=Gc.prototype;Mm.append=function(t,n){this._pairs.push([t,n])};Mm.toString=function(t){const n=t?function(r){return t.call(this,r,Pd)}:Pd;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function P0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lm(e,t,n){if(!t)return e;const r=n&&n.encode||P0,o=n&&n.serialize;let s;if(o?s=o(t,n):s=I.isURLSearchParams(t)?t.toString():new Gc(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Od{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Fm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},O0=typeof URLSearchParams<"u"?URLSearchParams:Gc,T0=typeof FormData<"u"?FormData:null,R0=typeof Blob<"u"?Blob:null,A0={isBrowser:!0,classes:{URLSearchParams:O0,FormData:T0,Blob:R0},protocols:["http","https","file","blob","url","data"]},Jc=typeof window<"u"&&typeof document<"u",za=typeof navigator=="object"&&navigator||void 0,I0=Jc&&(!za||["ReactNative","NativeScript","NS"].indexOf(za.product)<0),D0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",M0=Jc&&window.location.href||"http://localhost",L0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jc,hasStandardBrowserEnv:I0,hasStandardBrowserWebWorkerEnv:D0,navigator:za,origin:M0},Symbol.toStringTag,{value:"Module"})),Je={...L0,...A0};function F0(e,t){return $s(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Je.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function z0(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B0(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return l=!l&&I.isArray(o)?o.length:l,u?(I.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!I.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&I.isArray(o[l])&&(o[l]=B0(o[l])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,o)=>{t(z0(r),o,n,0)}),n}return null}function U0(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ui={transitional:Fm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=I.isObject(t);if(s&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(zm(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return F0(t,this.formSerializer).toString();if((a=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return $s(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),U0(t)):t}],transformResponse:[function(t){const n=this.transitional||Ui.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?ne.from(a,ne.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Ui.headers[e]={}});const $0=I.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"]),W0=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&$0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Td=Symbol("internals");function qr(e){return e&&String(e).trim().toLowerCase()}function Eo(e){return e===!1||e==null?e:I.isArray(e)?e.map(Eo):String(e)}function V0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const q0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Al(e,t,n,r,o){if(I.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function H0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Y0(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}class Xe{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,u,c){const d=qr(u);if(!d)throw new Error("header name must be a non-empty string");const p=I.findKey(o,d);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||u]=Eo(a))}const l=(a,u)=>I.forEach(a,(c,d)=>s(c,d,u));if(I.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(I.isString(t)&&(t=t.trim())&&!q0(t))l(W0(t),n);else if(I.isHeaders(t))for(const[a,u]of t.entries())s(u,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=qr(t),t){const r=I.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return V0(o);if(I.isFunction(n))return n.call(this,o,r);if(I.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qr(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Al(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=qr(l),l){const a=I.findKey(r,l);a&&(!n||Al(r,r[a],a,n))&&(delete r[a],o=!0)}}return I.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Al(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return I.forEach(this,(o,s)=>{const l=I.findKey(r,s);if(l){n[l]=Eo(o),delete n[s];return}const a=t?H0(s):String(s).trim();a!==s&&delete n[s],n[a]=Eo(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&I.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Td]=this[Td]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=qr(l);r[a]||(Y0(o,l),r[a]=!0)}return I.isArray(t)?t.forEach(s):s(t),this}}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(Xe);function Il(e,t){const n=this||Ui,r=t||n,o=Xe.from(r.headers);let s=r.data;return I.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Bm(e){return!!(e&&e.__CANCEL__)}function Ar(e,t,n){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(Ar,ne,{__CANCEL__:!0});function Um(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ne("Request failed with status code "+n.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function K0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Q0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[s];l||(l=c),n[o]=u,r[o]=c;let p=s,y=0;for(;p!==o;)y+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-l{n=d,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=r?l(c,d):(o=c,s||(s=setTimeout(()=>{s=null,l(o)},r-p)))},()=>o&&l(o)]}const fs=(e,t,n=3)=>{let r=0;const o=Q0(50,250);return G0(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,u=l-r,c=o(u),d=l<=a;r=l;const p={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-l)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Rd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ad=e=>(...t)=>I.asap(()=>e(...t)),J0=Je.hasStandardBrowserEnv?function(){const t=Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent),n=document.createElement("a");let r;function o(s){let l=s;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{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 r=o(window.location.href),function(l){const a=I.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),X0=Je.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),I.isString(r)&&l.push("path="+r),I.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.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 Z0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function e1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $m(e,t){return e&&!Z0(t)?e1(e,t):t}const Id=e=>e instanceof Xe?{...e}:e;function qn(e,t){t=t||{};const n={};function r(c,d,p){return I.isPlainObject(c)&&I.isPlainObject(d)?I.merge.call({caseless:p},c,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function o(c,d,p){if(I.isUndefined(d)){if(!I.isUndefined(c))return r(void 0,c,p)}else return r(c,d,p)}function s(c,d){if(!I.isUndefined(d))return r(void 0,d)}function l(c,d){if(I.isUndefined(d)){if(!I.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const u={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(c,d)=>o(Id(c),Id(d),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=u[d]||o,y=p(e[d],t[d],d);I.isUndefined(y)&&p!==a||(n[d]=y)}),n}const Wm=e=>{const t=qn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=Xe.from(l),t.url=Lm($m(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(I.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((u=l.getContentType())!==!1){const[c,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Je.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&J0(t.url))){const c=o&&s&&X0.read(s);c&&l.set(o,c)}return t},t1=typeof XMLHttpRequest<"u",n1=t1&&function(e){return new Promise(function(n,r){const o=Wm(e);let s=o.data;const l=Xe.from(o.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=o,d,p,y,N,v;function x(){N&&N(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let j=new XMLHttpRequest;j.open(o.method.toUpperCase(),o.url,!0),j.timeout=o.timeout;function m(){if(!j)return;const f=Xe.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:f,config:e,request:j};Um(function(k){n(k),x()},function(k){r(k),x()},w),j=null}"onloadend"in j?j.onloadend=m:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(m)},j.onabort=function(){j&&(r(new ne("Request aborted",ne.ECONNABORTED,e,j)),j=null)},j.onerror=function(){r(new ne("Network Error",ne.ERR_NETWORK,e,j)),j=null},j.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Fm;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),r(new ne(g,w.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,j)),j=null},s===void 0&&l.setContentType(null),"setRequestHeader"in j&&I.forEach(l.toJSON(),function(g,w){j.setRequestHeader(w,g)}),I.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),a&&a!=="json"&&(j.responseType=o.responseType),c&&([y,v]=fs(c,!0),j.addEventListener("progress",y)),u&&j.upload&&([p,N]=fs(u),j.upload.addEventListener("progress",p),j.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(d=f=>{j&&(r(!f||f.type?new Ar(null,e,j):f),j.abort(),j=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const h=K0(o.url);if(h&&Je.protocols.indexOf(h)===-1){r(new ne("Unsupported protocol "+h+":",ne.ERR_BAD_REQUEST,e));return}j.send(s||null)})},r1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(c){if(!o){o=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof ne?d:new Ar(d instanceof Error?d.message:d))}};let l=t&&setTimeout(()=>{l=null,s(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=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}=r;return u.unsubscribe=()=>I.asap(a),u}},i1=function*(e,t){let n=e.byteLength;if(!t||n{const o=o1(e,t);let s=0,l,a=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){a(),u.close();return}let p=d.byteLength;if(n){let y=s+=p;n(y)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),o.return()}},{highWaterMark:2})},Ws=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vm=Ws&&typeof ReadableStream=="function",l1=Ws&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},a1=Vm&&qm(()=>{let e=!1;const t=new Request(Je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Md=64*1024,Ba=Vm&&qm(()=>I.isReadableStream(new Response("").body)),ps={stream:Ba&&(e=>e.body)};Ws&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ps[t]&&(ps[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ne(`Response type '${t}' is not supported`,ne.ERR_NOT_SUPPORT,r)})})})(new Response);const c1=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await l1(e)).byteLength},u1=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??c1(t)},d1=Ws&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:y}=Wm(e);c=c?(c+"").toLowerCase():"text";let N=r1([o,s&&s.toAbortSignal()],l),v;const x=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let j;try{if(u&&a1&&n!=="get"&&n!=="head"&&(j=await u1(d,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(I.isFormData(r)&&(b=w.headers.get("content-type"))&&d.setContentType(b),w.body){const[k,C]=Rd(j,fs(Ad(u)));r=Dd(w.body,Md,k,C)}}I.isString(p)||(p=p?"include":"omit");const m="credentials"in Request.prototype;v=new Request(t,{...y,signal:N,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m?p:void 0});let h=await fetch(v);const f=Ba&&(c==="stream"||c==="response");if(Ba&&(a||f&&x)){const w={};["status","statusText","headers"].forEach(M=>{w[M]=h[M]});const b=I.toFiniteNumber(h.headers.get("content-length")),[k,C]=a&&Rd(b,fs(Ad(a),!0))||[];h=new Response(Dd(h.body,Md,k,()=>{C&&C(),x&&x()}),w)}c=c||"text";let g=await ps[I.findKey(ps,c)||"text"](h,e);return!f&&x&&x(),await new Promise((w,b)=>{Um(w,b,{data:g,headers:Xe.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:v})})}catch(m){throw x&&x(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ne("Network Error",ne.ERR_NETWORK,e,v),{cause:m.cause||m}):ne.from(m,m&&m.code,e,v)}}),Ua={http:S0,xhr:n1,fetch:d1};I.forEach(Ua,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ld=e=>`- ${e}`,f1=e=>I.isFunction(e)||e===null||e===!1,Hm={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since : -`+s.map(Ld).join(` -`):" "+Ld(s[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Ua};function Dl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ar(null,e)}function Fd(e){return Dl(e),e.headers=Xe.from(e.headers),e.data=Il.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Hm.getAdapter(e.adapter||Ui.adapter)(e).then(function(r){return Dl(e),r.data=Il.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return Bm(r)||(Dl(e),r&&r.response&&(r.response.data=Il.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const Ym="1.7.7",Xc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const zd={};Xc.transitional=function(t,n,r){function o(s,l){return"[Axios v"+Ym+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,a)=>{if(t===!1)throw new ne(o(l," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!zd[l]&&(zd[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,a):!0}};function p1(e,t,n){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const a=e[s],u=a===void 0||l(a,s,e);if(u!==!0)throw new ne("option "+s+" must be "+u,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+s,ne.ERR_BAD_OPTION)}}const $a={assertOptions:p1,validators:Xc},Gt=$a.validators;class Mn{constructor(t){this.defaults=t,this.interceptors={request:new Od,response:new Od}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&$a.assertOptions(r,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),o!=null&&(I.isFunction(o)?n.paramsSerializer={serialize:o}:$a.assertOptions(o,{encode:Gt.function,serialize:Gt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&I.merge(s.common,s[n.method]);s&&I.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=Xe.concat(l,s);const a=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let d,p=0,y;if(!u){const v=[Fd.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);p{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(a=>{r.subscribe(a),s=a}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,a){r.reason||(r.reason=new Ar(s,l,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Zc(function(o){t=o}),cancel:t}}}function m1(e){return function(n){return e.apply(null,n)}}function h1(e){return I.isObject(e)&&e.isAxiosError===!0}const Wa={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(Wa).forEach(([e,t])=>{Wa[t]=e});function Km(e){const t=new Mn(e),n=Em(Mn.prototype.request,t);return I.extend(n,Mn.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Km(qn(e,o))},n}const fe=Km(Ui);fe.Axios=Mn;fe.CanceledError=Ar;fe.CancelToken=Zc;fe.isCancel=Bm;fe.VERSION=Ym;fe.toFormData=$s;fe.AxiosError=ne;fe.Cancel=fe.CanceledError;fe.all=function(t){return Promise.all(t)};fe.spread=m1;fe.isAxiosError=h1;fe.mergeConfig=qn;fe.AxiosHeaders=Xe;fe.formToJSON=e=>zm(I.isHTMLForm(e)?new FormData(e):e);fe.getAdapter=Hm.getAdapter;fe.HttpStatusCode=Wa;fe.default=fe;const v1="http://67.225.129.127:3002",Kt=fe.create({baseURL:v1});Kt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const y1=e=>Kt.post("/users/signup",e),g1=e=>Kt.post("/users/signin",e),x1=(e,t,n)=>Kt.get(`/users/${e}/verify/${t}`,n),j1=e=>Kt.post("/properties",e),N1=(e,t,n)=>Kt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),w1=e=>Kt.get(`/properties/${e}`,e),C1=(e,t)=>Kt.put(`/properties/${e}`,t),b1=e=>Kt.get(`/users/${e}`),So=Dt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await g1(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),ko=Dt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const o=await y1(e);return n.success("Register Successfully"),t("/registrationsuccess"),o.data}catch(o){return r(o.response.data)}}),_o=Dt("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await fe.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),Qm=Kc({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(So.pending,t=>{t.loading=!0}).addCase(So.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(So.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(_o.pending,t=>{t.isLoading=!0}).addCase(_o.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(_o.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:KN,setLogout:E1,setUserDetails:QN}=Qm.actions,S1=Qm.reducer,Po=Dt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await b1(e)).data}catch(n){return t(n.response.data)}}),Oo=Dt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await x1(e,t,n)).data.message}catch(o){return r(o.response.data)}}),k1=Kc({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(Po.pending,t=>{t.loading=!0,t.error=null}).addCase(Po.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Po.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Oo.pending,t=>{t.loading=!0,t.error=null}).addCase(Oo.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Oo.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),_1=k1.reducer,To=Dt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await j1(e)).data}catch(n){return t(n.response.data)}}),Ro=Dt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:r})=>{try{return(await N1(e,t,n)).data}catch(o){return r(o.response.data)}}),li=Dt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await w1(e)).data}catch(n){return t(n.response.data)}}),Ao=Dt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await C1(e,t)).data}catch(r){return n(r.response.data)}}),ai=Dt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await fe.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),P1=Kc({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(To.pending,t=>{t.status="loading"}).addCase(To.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(To.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ro.pending,t=>{t.loading=!0}).addCase(Ro.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Ro.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(li.pending,t=>{t.status="loading"}).addCase(li.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(li.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ao.pending,t=>{t.status="loading"}).addCase(Ao.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ao.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ai.pending,t=>{t.loading=!0}).addCase(ai.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(ai.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),O1=P1.reducer,T1=Nx({reducer:{auth:S1,user:_1,property:O1}});/** - * @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 Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A1(){return Math.random().toString(36).substr(2,8)}function Ud(e,t){return{usr:e.state,key:e.key,idx:t}}function Va(e,t,n,r){return n===void 0&&(n=null),Oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ir(t):t,{state:n,key:t&&t.key||r||A1()})}function ms(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ir(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function I1(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,a=ln.Pop,u=null,c=d();c==null&&(c=0,l.replaceState(Oi({},l.state,{idx:c}),""));function d(){return(l.state||{idx:null}).idx}function p(){a=ln.Pop;let j=d(),m=j==null?null:j-c;c=j,u&&u({action:a,location:x.location,delta:m})}function y(j,m){a=ln.Push;let h=Va(x.location,j,m);c=d()+1;let f=Ud(h,c),g=x.createHref(h);try{l.pushState(f,"",g)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(g)}s&&u&&u({action:a,location:x.location,delta:1})}function N(j,m){a=ln.Replace;let h=Va(x.location,j,m);c=d();let f=Ud(h,c),g=x.createHref(h);l.replaceState(f,"",g),s&&u&&u({action:a,location:x.location,delta:0})}function v(j){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof j=="string"?j:ms(j);return h=h.replace(/ $/,"%20"),Ne(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let x={get action(){return a},get location(){return e(o,l)},listen(j){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Bd,p),u=j,()=>{o.removeEventListener(Bd,p),u=null}},createHref(j){return t(o,j)},createURL:v,encodeLocation(j){let m=v(j);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:N,go(j){return l.go(j)}};return x}var $d;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($d||($d={}));function D1(e,t,n){return n===void 0&&(n="/"),M1(e,t,n,!1)}function M1(e,t,n,r){let o=typeof t=="string"?Ir(t):t,s=_r(o.pathname||"/",n);if(s==null)return null;let l=Jm(e);L1(l);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};u.relativePath.startsWith("/")&&(Ne(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=yn([r,u.relativePath]),d=n.concat(u);s.children&&s.children.length>0&&(Ne(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Jm(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:V1(c,s.index),routesMeta:d})};return e.forEach((s,l)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,l);else for(let u of Xm(s.path))o(s,l,u)}),t}function Xm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=Xm(r.join("/")),a=[];return a.push(...l.map(u=>u===""?s:[s,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function L1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:q1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const F1=/^:[\w-]+$/,z1=3,B1=2,U1=1,$1=10,W1=-2,Wd=e=>e==="*";function V1(e,t){let n=e.split("/"),r=n.length;return n.some(Wd)&&(r+=W1),t&&(r+=B1),n.filter(o=>!Wd(o)).reduce((o,s)=>o+(F1.test(s)?z1:s===""?U1:$1),r)}function q1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function H1(e,t,n){let{routesMeta:r}=e,o={},s="/",l=[];for(let a=0;a{let{paramName:y,isOptional:N}=d;if(y==="*"){let x=a[p]||"";l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const v=a[p];return N&&!v?c[y]=void 0:c[y]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:l,pattern:e}}function Y1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Gm(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function K1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gm(!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 _r(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Q1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ir(e):e;return{pathname:n?n.startsWith("/")?n:G1(n,t):t,search:Z1(r),hash:ej(o)}}function G1(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 Ml(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. 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 J1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zm(e,t){let n=J1(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function eh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ir(e):(o=Oi({},e),Ne(!o.pathname||!o.pathname.includes("?"),Ml("?","pathname","search",o)),Ne(!o.pathname||!o.pathname.includes("#"),Ml("#","pathname","hash",o)),Ne(!o.search||!o.search.includes("#"),Ml("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,a;if(l==null)a=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),p-=1;o.pathname=y.join("/")}a=p>=0?t[p]:"/"}let u=Q1(o,a),c=l&&l!=="/"&&l.endsWith("/"),d=(s||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const yn=e=>e.join("/").replace(/\/\/+/g,"/"),X1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Z1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ej=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const th=["post","put","patch","delete"];new Set(th);const nj=["get",...th];new Set(nj);/** - * 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 Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),R.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let p=eh(c,JSON.parse(l),s,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:yn([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,l,s,e])}function Mr(){let{matches:e}=R.useContext(En),t=e[e.length-1];return t?t.params:{}}function Hs(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(bn),{matches:o}=R.useContext(En),{pathname:s}=Wi(),l=JSON.stringify(Zm(o,r.v7_relativeSplatPath));return R.useMemo(()=>eh(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function oj(e,t){return sj(e,t)}function sj(e,t,n,r){$i()||Ne(!1);let{navigator:o}=R.useContext(bn),{matches:s}=R.useContext(En),l=s[s.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let c=Wi(),d;if(t){var p;let j=typeof t=="string"?Ir(t):t;u==="/"||(p=j.pathname)!=null&&p.startsWith(u)||Ne(!1),d=j}else d=c;let y=d.pathname||"/",N=y;if(u!=="/"){let j=u.replace(/^\//,"").split("/");N="/"+y.replace(/^\//,"").split("/").slice(j.length).join("/")}let v=D1(e,{pathname:N}),x=dj(v&&v.map(j=>Object.assign({},j,{params:Object.assign({},a,j.params),pathname:yn([u,o.encodeLocation?o.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?u:yn([u,o.encodeLocation?o.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),s,n,r);return t&&x?R.createElement(qs.Provider,{value:{location:Ti({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ln.Pop}},x):x}function lj(){let e=hj(),t=tj(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 aj=R.createElement(lj,null);class cj 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(En.Provider,{value:this.props.routeContext},R.createElement(rh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uj(e){let{routeContext:t,match:n,children:r}=e,o=R.useContext(Vs);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(En.Provider,{value:t},r)}function dj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=l.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||Ne(!1),l=l.slice(0,Math.min(l.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?l=l.slice(0,c+1):l=[l[0]];break}}}return l.reduceRight((d,p,y)=>{let N,v=!1,x=null,j=null;n&&(N=a&&p.route.id?a[p.route.id]:void 0,x=p.route.errorElement||aj,u&&(c<0&&y===0?(v=!0,j=null):c===y&&(v=!0,j=p.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,y+1)),h=()=>{let f;return N?f=x:v?f=j:p.route.Component?f=R.createElement(p.route.Component,null):p.route.element?f=p.route.element:f=d,R.createElement(uj,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:f})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?R.createElement(cj,{location:n.location,revalidation:n.revalidation,component:x,error:N,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var oh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(oh||{}),vs=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}(vs||{});function fj(e){let t=R.useContext(Vs);return t||Ne(!1),t}function pj(e){let t=R.useContext(nh);return t||Ne(!1),t}function mj(e){let t=R.useContext(En);return t||Ne(!1),t}function sh(e){let t=mj(),n=t.matches[t.matches.length-1];return n.route.id||Ne(!1),n.route.id}function hj(){var e;let t=R.useContext(rh),n=pj(vs.UseRouteError),r=sh(vs.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vj(){let{router:e}=fj(oh.UseNavigateStable),t=sh(vs.UseNavigateStable),n=R.useRef(!1);return ih(()=>{n.current=!0}),R.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ti({fromRouteId:t},s)))},[e,t])}function ke(e){Ne(!1)}function yj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ln.Pop,navigator:s,static:l=!1,future:a}=e;$i()&&Ne(!1);let u=t.replace(/^\/*/,"/"),c=R.useMemo(()=>({basename:u,navigator:s,static:l,future:Ti({v7_relativeSplatPath:!1},a)}),[u,a,s,l]);typeof r=="string"&&(r=Ir(r));let{pathname:d="/",search:p="",hash:y="",state:N=null,key:v="default"}=r,x=R.useMemo(()=>{let j=_r(d,u);return j==null?null:{location:{pathname:j,search:p,hash:y,state:N,key:v},navigationType:o}},[u,d,p,y,N,v,o]);return x==null?null:R.createElement(bn.Provider,{value:c},R.createElement(qs.Provider,{children:n,value:x}))}function gj(e){let{children:t,location:n}=e;return oj(qa(t),n)}new Promise(()=>{});function qa(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,o)=>{if(!R.isValidElement(r))return;let s=[...t,o];if(r.type===R.Fragment){n.push.apply(n,qa(r.props.children,s));return}r.type!==ke&&Ne(!1),!r.props.index||!r.props.children||Ne(!1);let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=qa(r.props.children,s)),n.push(l)}),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 ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function xj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jj(e,t){return e.button===0&&(!t||t==="_self")&&!xj(e)}const Nj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],wj=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Cj="6";try{window.__reactRouterVersion=Cj}catch{}const bj=R.createContext({isTransitioning:!1}),Ej="startTransition",Vd=Fl[Ej];function Sj(e){let{basename:t,children:n,future:r,window:o}=e,s=R.useRef();s.current==null&&(s.current=R1({window:o,v5Compat:!0}));let l=s.current,[a,u]=R.useState({action:l.action,location:l.location}),{v7_startTransition:c}=r||{},d=R.useCallback(p=>{c&&Vd?Vd(()=>u(p)):u(p)},[u,c]);return R.useLayoutEffect(()=>l.listen(d),[l,d]),R.createElement(yj,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l,future:r})}const kj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_j=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pj=R.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:l,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:p}=t,y=lh(t,Nj),{basename:N}=R.useContext(bn),v,x=!1;if(typeof c=="string"&&_j.test(c)&&(v=c,kj))try{let f=new URL(window.location.href),g=c.startsWith("//")?new URL(f.protocol+c):new URL(c),w=_r(g.pathname,N);g.origin===f.origin&&w!=null?c=w+g.search+g.hash:x=!0}catch{}let j=rj(c,{relative:o}),m=Tj(c,{replace:l,state:a,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:p});function h(f){r&&r(f),f.defaultPrevented||m(f)}return R.createElement("a",ys({},y,{href:v||j,onClick:x||s?r:h,ref:n,target:u}))}),he=R.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:l=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,p=lh(t,wj),y=Hs(u,{relative:p.relative}),N=Wi(),v=R.useContext(nh),{navigator:x,basename:j}=R.useContext(bn),m=v!=null&&Rj(y)&&c===!0,h=x.encodeLocation?x.encodeLocation(y).pathname:y.pathname,f=N.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(f=f.toLowerCase(),g=g?g.toLowerCase():null,h=h.toLowerCase()),g&&j&&(g=_r(g,j)||g);const w=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let b=f===h||!l&&f.startsWith(h)&&f.charAt(w)==="/",k=g!=null&&(g===h||!l&&g.startsWith(h)&&g.charAt(h.length)==="/"),C={isActive:b,isPending:k,isTransitioning:m},M=b?r:void 0,F;typeof s=="function"?F=s(C):F=[s,b?"active":null,k?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let $=typeof a=="function"?a(C):a;return R.createElement(Pj,ys({},p,{"aria-current":M,className:F,ref:n,style:$,to:u,unstable_viewTransition:c}),typeof d=="function"?d(C):d)});var Ha;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ha||(Ha={}));var qd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qd||(qd={}));function Oj(e){let t=R.useContext(Vs);return t||Ne(!1),t}function Tj(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=Dr(),c=Wi(),d=Hs(e,{relative:l});return R.useCallback(p=>{if(jj(p,n)){p.preventDefault();let y=r!==void 0?r:ms(c)===ms(d);u(e,{replace:y,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:a})}},[c,u,d,r,o,n,e,s,l,a])}function Rj(e,t){t===void 0&&(t={});let n=R.useContext(bj);n==null&&Ne(!1);let{basename:r}=Oj(Ha.useViewTransitionState),o=Hs(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=_r(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=_r(n.nextLocation.pathname,r)||n.nextLocation.pathname;return hs(o.pathname,l)!=null||hs(o.pathname,s)!=null}function ah(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Ln=e=>typeof e=="string",rt=e=>typeof e=="function",Io=e=>Ln(e)||rt(e)?e:null,Ya=e=>R.isValidElement(e)||Ln(e)||rt(e)||Ri(e);function Aj(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Ys(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(l){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:p,isIn:y,playToast:N}=l;const v=r?`${t}--${u}`:t,x=r?`${n}--${u}`:n,j=R.useRef(0);return R.useLayoutEffect(()=>{const m=p.current,h=v.split(" "),f=g=>{g.target===p.current&&(N(),m.removeEventListener("animationend",f),m.removeEventListener("animationcancel",f),j.current===0&&g.type!=="animationcancel"&&m.classList.remove(...h))};m.classList.add(...h),m.addEventListener("animationend",f),m.addEventListener("animationcancel",f)},[]),R.useEffect(()=>{const m=p.current,h=()=>{m.removeEventListener("animationend",h),o?Aj(m,d,s):d()};y||(c?h():(j.current=1,m.className+=` ${x}`,m.addEventListener("animationend",h)))},[y]),T.createElement(T.Fragment,null,a)}}function Hd(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 Ue=new Map;let Ai=[];const Ka=new Set,Ij=e=>Ka.forEach(t=>t(e)),ch=()=>Ue.size>0;function uh(e,t){var n;if(t)return!((n=Ue.get(t))==null||!n.isToastActive(e));let r=!1;return Ue.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function dh(e,t){Ya(e)&&(ch()||Ai.push({content:e,options:t}),Ue.forEach(n=>{n.buildToast(e,t)}))}function Yd(e,t){Ue.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 Dj(e){const{subscribe:t,getSnapshot:n,setProps:r}=R.useRef(function(s){const l=s.containerId||1;return{subscribe(a){const u=function(d,p,y){let N=1,v=0,x=[],j=[],m=[],h=p;const f=new Map,g=new Set,w=()=>{m=Array.from(f.values()),g.forEach(C=>C())},b=C=>{j=C==null?[]:j.filter(M=>M!==C),w()},k=C=>{const{toastId:M,onOpen:F,updateId:$,children:Z}=C.props,G=$==null;C.staleId&&f.delete(C.staleId),f.set(M,C),j=[...j,C.props.toastId].filter(J=>J!==C.staleId),w(),y(Hd(C,G?"added":"updated")),G&&rt(F)&&F(R.isValidElement(Z)&&Z.props)};return{id:d,props:h,observe:C=>(g.add(C),()=>g.delete(C)),toggle:(C,M)=>{f.forEach(F=>{M!=null&&M!==F.props.toastId||rt(F.toggle)&&F.toggle(C)})},removeToast:b,toasts:f,clearQueue:()=>{v-=x.length,x=[]},buildToast:(C,M)=>{if((z=>{let{containerId:V,toastId:H,updateId:X}=z;const ee=V?V!==d:d!==1,te=f.has(H)&&X==null;return ee||te})(M))return;const{toastId:F,updateId:$,data:Z,staleId:G,delay:J}=M,A=()=>{b(F)},B=$==null;B&&v++;const K={...h,style:h.toastStyle,key:N++,...Object.fromEntries(Object.entries(M).filter(z=>{let[V,H]=z;return H!=null})),toastId:F,updateId:$,data:Z,closeToast:A,isIn:!1,className:Io(M.className||h.toastClassName),bodyClassName:Io(M.bodyClassName||h.bodyClassName),progressClassName:Io(M.progressClassName||h.progressClassName),autoClose:!M.isLoading&&(O=M.autoClose,P=h.autoClose,O===!1||Ri(O)&&O>0?O:P),deleteToast(){const z=f.get(F),{onClose:V,children:H}=z.props;rt(V)&&V(R.isValidElement(H)&&H.props),y(Hd(z,"removed")),f.delete(F),v--,v<0&&(v=0),x.length>0?k(x.shift()):w()}};var O,P;K.closeButton=h.closeButton,M.closeButton===!1||Ya(M.closeButton)?K.closeButton=M.closeButton:M.closeButton===!0&&(K.closeButton=!Ya(h.closeButton)||h.closeButton);let D=C;R.isValidElement(C)&&!Ln(C.type)?D=R.cloneElement(C,{closeToast:A,toastProps:K,data:Z}):rt(C)&&(D=C({closeToast:A,toastProps:K,data:Z}));const L={content:D,props:K,staleId:G};h.limit&&h.limit>0&&v>h.limit&&B?x.push(L):Ri(J)?setTimeout(()=>{k(L)},J):k(L)},setProps(C){h=C},setToggle:(C,M)=>{f.get(C).toggle=M},isToastActive:C=>j.some(M=>M===C),getSnapshot:()=>h.newestOnTop?m.reverse():m}}(l,s,Ij);Ue.set(l,u);const c=u.observe(a);return Ai.forEach(d=>dh(d.content,d.options)),Ai=[],()=>{c(),Ue.delete(l)}},setProps(a){var u;(u=Ue.get(l))==null||u.setProps(a)},getSnapshot(){var a;return(a=Ue.get(l))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=R.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!o)return[];const l=new Map;return o.forEach(a=>{const{position:u}=a.props;l.has(u)||l.set(u,[]),l.get(u).push(a)}),Array.from(l,a=>s(a[0],a[1]))},isToastActive:uh,count:o==null?void 0:o.length}}function Mj(e){const[t,n]=R.useState(!1),[r,o]=R.useState(!1),s=R.useRef(null),l=R.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:p}=e;var y,N;function v(){n(!0)}function x(){n(!1)}function j(f){const g=s.current;l.canDrag&&g&&(l.didMove=!0,t&&x(),l.delta=e.draggableDirection==="x"?f.clientX-l.start:f.clientY-l.start,l.start!==f.clientX&&(l.canCloseOnClick=!1),g.style.transform=`translate3d(${e.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,g.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function m(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",m);const f=s.current;if(l.canDrag&&l.didMove&&f){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();f.style.transition="transform 0.2s, opacity 0.2s",f.style.removeProperty("transform"),f.style.removeProperty("opacity")}}(N=Ue.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(y.id,y.fn),R.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||x(),window.addEventListener("focus",v),window.addEventListener("blur",x),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",x)}},[e.pauseOnFocusLoss]);const h={onPointerDown:function(f){if(e.draggable===!0||e.draggable===f.pointerType){l.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",m);const g=s.current;l.canCloseOnClick=!0,l.canDrag=!0,g.style.transition="none",e.draggableDirection==="x"?(l.start=f.clientX,l.removalDistance=g.offsetWidth*(e.draggablePercent/100)):(l.start=f.clientY,l.removalDistance=g.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(f){const{top:g,bottom:w,left:b,right:k}=s.current.getBoundingClientRect();f.nativeEvent.type!=="touchend"&&e.pauseOnHover&&f.clientX>=b&&f.clientX<=k&&f.clientY>=g&&f.clientY<=w?x():v()}};return a&&u&&(h.onMouseEnter=x,e.stacked||(h.onMouseLeave=v)),p&&(h.onClick=f=>{d&&d(f),l.canCloseOnClick&&c()}),{playToast:v,pauseToast:x,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:h}}function Lj(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:s,className:l,style:a,controlledProgress:u,progress:c,rtl:d,isIn:p,theme:y}=e;const N=s||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const x=an("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),j=rt(l)?l({rtl:d,type:o,defaultClassName:x}):an(x,l),m={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{p&&r()}};return T.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},T.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${o}`}),T.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:j,style:v,...m}))}let Fj=1;const fh=()=>""+Fj++;function zj(e){return e&&(Ln(e.toastId)||Ri(e.toastId))?e.toastId:fh()}function ci(e,t){return dh(e,t),t.toastId}function gs(e,t){return{...t,type:t&&t.type||e,toastId:zj(t)}}function co(e){return(t,n)=>ci(t,gs(e,n))}function ie(e,t){return ci(e,gs("default",t))}ie.loading=(e,t)=>ci(e,gs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ie.promise=function(e,t,n){let r,{pending:o,error:s,success:l}=t;o&&(r=Ln(o)?ie.loading(o,n):ie.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,p,y)=>{if(p==null)return void ie.dismiss(r);const N={type:d,...a,...n,data:y},v=Ln(p)?{render:p}:p;return r?ie.update(r,{...N,...v}):ie(v.render,{...N,...v}),y},c=rt(e)?e():e;return c.then(d=>u("success",l,d)).catch(d=>u("error",s,d)),c},ie.success=co("success"),ie.info=co("info"),ie.error=co("error"),ie.warning=co("warning"),ie.warn=ie.warning,ie.dark=(e,t)=>ci(e,gs("default",{theme:"dark",...t})),ie.dismiss=function(e){(function(t){var n;if(ch()){if(t==null||Ln(n=t)||Ri(n))Ue.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Ue.get(t.containerId);r?r.removeToast(t.id):Ue.forEach(o=>{o.removeToast(t.id)})}}else Ai=Ai.filter(r=>t!=null&&r.options.toastId!==t)})(e)},ie.clearWaitingQueue=function(e){e===void 0&&(e={}),Ue.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ie.isActive=uh,ie.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var s;let{containerId:l}=o;return(s=Ue.get(l||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:fh()};s.toastId!==e&&(s.staleId=e);const l=s.render||o;delete s.render,ci(l,s)}},ie.done=e=>{ie.update(e,{progress:1})},ie.onChange=function(e){return Ka.add(e),()=>{Ka.delete(e)}},ie.play=e=>Yd(!0,e),ie.pause=e=>Yd(!1,e);const Bj=typeof window<"u"?R.useLayoutEffect:R.useEffect,uo=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return T.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Ll={info:function(e){return T.createElement(uo,{...e},T.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 T.createElement(uo,{...e},T.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 T.createElement(uo,{...e},T.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 T.createElement(uo,{...e},T.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 T.createElement("div",{className:"Toastify__spinner"})}},Uj=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:s}=Mj(e),{closeButton:l,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:p,closeToast:y,transition:N,position:v,className:x,style:j,bodyClassName:m,bodyStyle:h,progressClassName:f,progressStyle:g,updateId:w,role:b,progress:k,rtl:C,toastId:M,deleteToast:F,isIn:$,isLoading:Z,closeOnClick:G,theme:J}=e,A=an("Toastify__toast",`Toastify__toast-theme--${J}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":G}),B=rt(x)?x({rtl:C,position:v,type:d,defaultClassName:A}):an(A,x),K=function(L){let{theme:z,type:V,isLoading:H,icon:X}=L,ee=null;const te={theme:z,type:V};return X===!1||(rt(X)?ee=X({...te,isLoading:H}):R.isValidElement(X)?ee=R.cloneElement(X,te):H?ee=Ll.spinner():(re=>re in Ll)(V)&&(ee=Ll[V](te))),ee}(e),O=!!k||!u,P={closeToast:y,type:d,theme:J};let D=null;return l===!1||(D=rt(l)?l(P):R.isValidElement(l)?R.cloneElement(l,P):function(L){let{closeToast:z,theme:V,ariaLabel:H="close"}=L;return T.createElement("button",{className:`Toastify__close-button Toastify__close-button--${V}`,type:"button",onClick:X=>{X.stopPropagation(),z(X)},"aria-label":H},T.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},T.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"})))}(P)),T.createElement(N,{isIn:$,done:F,position:v,preventExitTransition:n,nodeRef:r,playToast:s},T.createElement("div",{id:M,onClick:c,"data-in":$,className:B,...o,style:j,ref:r},T.createElement("div",{...$&&{role:b},className:rt(m)?m({type:d}):an("Toastify__toast-body",m),style:h},K!=null&&T.createElement("div",{className:an("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Z})},K),T.createElement("div",null,a)),D,T.createElement(Lj,{...w&&!O?{key:`pb-${w}`}:{},rtl:C,theme:J,delay:u,isRunning:t,isIn:$,closeToast:y,hide:p,type:d,style:g,className:f,controlledProgress:O,progress:k||0})))},Ks=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},$j=Ys(Ks("bounce",!0));Ys(Ks("slide",!0));Ys(Ks("zoom"));Ys(Ks("flip"));const Wj={position:"top-right",transition:$j,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Vj(e){let t={...Wj,...e};const n=e.stacked,[r,o]=R.useState(!0),s=R.useRef(null),{getToastToRender:l,isToastActive:a,count:u}=Dj(t),{className:c,style:d,rtl:p,containerId:y}=t;function N(x){const j=an("Toastify__toast-container",`Toastify__toast-container--${x}`,{"Toastify__toast-container--rtl":p});return rt(c)?c({position:x,rtl:p,defaultClassName:j}):an(j,Io(c))}function v(){n&&(o(!0),ie.play())}return Bj(()=>{if(n){var x;const j=s.current.querySelectorAll('[data-in="true"]'),m=12,h=(x=t.position)==null?void 0:x.includes("top");let f=0,g=0;Array.from(j).reverse().forEach((w,b)=>{const k=w;k.classList.add("Toastify__toast--stacked"),b>0&&(k.dataset.collapsed=`${r}`),k.dataset.pos||(k.dataset.pos=h?"top":"bot");const C=f*(r?.2:1)+(r?0:m*b);k.style.setProperty("--y",`${h?C:-1*C}px`),k.style.setProperty("--g",`${m}`),k.style.setProperty("--s",""+(1-(r?g:0))),f+=k.offsetHeight,g+=.025})}},[r,u,n]),T.createElement("div",{ref:s,className:"Toastify",id:y,onMouseEnter:()=>{n&&(o(!1),ie.pause())},onMouseLeave:v},l((x,j)=>{const m=j.length?{...d}:{...d,pointerEvents:"none"};return T.createElement("div",{className:N(x),style:m,key:`container-${x}`},j.map(h=>{let{content:f,props:g}=h;return T.createElement(Uj,{...g,stacked:n,collapseAll:v,isIn:a(g.toastId,g.containerId),style:g.style,key:`toast-${g.key}`},f)}))}))}const ze=()=>{const e=new Date().getFullYear();return i.jsx(i.Fragment,{children:i.jsxs("div",{children:[i.jsx("div",{className:"footer_section layout_padding",children:i.jsxs("div",{className:"container",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12"})}),i.jsx("div",{className:"footer_section_2",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),i.jsx("div",{className:"footer_menu",children:i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx(he,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),i.jsx("li",{children:i.jsx(he,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),i.jsx("li",{children:i.jsx(he,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),i.jsx("li",{children:i.jsx(he,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),i.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"})]}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),i.jsxs("div",{className:"form-group",children:[i.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),i.jsx("div",{className:"subscribe_bt",children:i.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),i.jsx("div",{className:"social_icon",children:i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),i.jsx("div",{className:"copyright_section",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},qj="/assets/logo-Cb1x1exd.png",Oe=()=>{var o,s;const{user:e}=Ze(l=>({...l.auth})),t=St(),n=Dr(),r=()=>{t(E1()),n("/")};return i.jsx(i.Fragment,{children:i.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:i.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[i.jsxs("div",{className:"d-flex align-items-center",children:[i.jsx("img",{src:qj,alt:"logo",width:"75",height:"75",className:"img-fluid"}),i.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),i.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[i.jsxs("ul",{className:"navbar-nav ml-auto",children:[i.jsx("li",{className:"nav-item active",children:i.jsx(he,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),i.jsx("li",{className:"nav-item",children:i.jsx(he,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(o=e==null?void 0:e.result)!=null&&o._id?i.jsx(he,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):i.jsx(he,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(s=e==null?void 0:e.result)!=null&&s._id?i.jsx(he,{to:"/login",children:i.jsx("p",{className:"header-text",onClick:r,style:{fontWeight:"bold"},children:"Logout"})}):i.jsx(he,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},Hj=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{children:[i.jsx("div",{className:"header_section",children:i.jsx("div",{className:"banner_section layout_padding",children:i.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[i.jsxs("div",{className:"carousel-inner",children:[i.jsx("div",{className:"carousel-item active",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),i.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),i.jsx("div",{className:"carousel-item",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),i.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),i.jsx("div",{className:"carousel-item",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),i.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),i.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:i.jsx("i",{className:"fa fa-angle-left"})}),i.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:i.jsx("i",{className:"fa fa-angle-right"})})]})})}),i.jsx("div",{className:"services_section layout_padding",children:i.jsxs("div",{className:"container-fluid",children:[i.jsx("div",{className:"row",children:i.jsxs("div",{className:"col-sm-12",children:[i.jsx("h1",{className:"services_taital",children:"Our Services"}),i.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),i.jsx("div",{className:"services_section_2",children:i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main active",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-1.png"})}),i.jsx("h4",{className:"development_text",children:"Dedication Services"}),i.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"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-2.png"})}),i.jsx("h4",{className:"development_text",children:"Building work Reports"}),i.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-3.png"})}),i.jsx("h4",{className:"development_text",children:"Reporting continuously"}),i.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-4.png"})}),i.jsx("h4",{className:"development_text",children:"Manage your investment "}),i.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"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),i.jsx(ze,{})]}),Yj=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsxs("div",{className:"about_section layout_padding",children:[i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-6",children:[i.jsx("h1",{className:"about_taital",children:"About Us"}),i.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"," "]}),i.jsx("div",{className:"read_bt_1",children:i.jsx("a",{href:"#",children:"Read More"})})]}),i.jsx("div",{className:"col-md-6",children:i.jsx("div",{className:"about_img",children:i.jsx("div",{className:"video_bt",children:i.jsx("div",{className:"play_icon",children:i.jsx("img",{src:"images/play-icon.png"})})})})})]})}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{})]}),i.jsx(ze,{})]}),Kj=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsxs("div",{className:"contact_section layout_padding",children:[i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12",children:i.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),i.jsx("div",{className:"container-fluid",children:i.jsx("div",{className:"contact_section_2",children:i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-6",children:i.jsx("form",{action:!0,children:i.jsxs("div",{className:"mail_section_1",children:[i.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),i.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),i.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),i.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),i.jsx("div",{className:"send_bt",children:i.jsx("a",{href:"#",children:"SEND"})})]})})}),i.jsx("div",{className:"col-md-6 padding_left_15",children:i.jsx("div",{className:"contact_img",children:i.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),i.jsx(ze,{})]});var Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=R.useState(xN),[n,r]=R.useState(!1),{loading:o,error:s}=Ze(w=>({...w.auth})),{title:l,email:a,password:u,firstName:c,middleName:d,lastName:p,confirmPassword:y,termsconditions:N,userType:v}=e,x=St(),j=Dr();R.useEffect(()=>{s&&ie.error(s)},[s]),R.useEffect(()=>{r(l!=="None"&&a&&u&&c&&d&&p&&y&&N&&v!=="")},[l,a,u,c,d,p,y,N,v]);const m=w=>{if(w.preventDefault(),u!==y)return ie.error("Password should match");n?x(ko({formValue:e,navigate:j,toast:ie})):ie.error("Please fill in all fields and select all checkboxes")},h=w=>w.charAt(0).toUpperCase()+w.slice(1),f=w=>{const{name:b,value:k,type:C,checked:M}=w.target;t(C==="checkbox"?F=>({...F,[b]:M}):F=>({...F,[b]:b==="email"||b==="password"||b==="confirmPassword"?k:h(k)}))},g=w=>{t(b=>({...b,userType:w.target.value}))};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"mb-4",children:[i.jsx("h2",{className:"h3",children:"Registration"}),i.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),i.jsx("hr",{})]})})}),i.jsx("form",{onSubmit:m,children:i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsxs("label",{className:"form-label",children:["Please select the role. ",i.jsx("br",{}),i.jsx("br",{})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:g,required:!0}),i.jsx("label",{className:"form-check-label",children:"Lender"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:g,required:!0}),i.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),i.jsx("br",{}),i.jsx("br",{})]})]})}),i.jsxs("div",{className:"col-12",children:[i.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l,onChange:f,children:[i.jsx("option",{value:"None",children:"Please Select Title"}),i.jsx("option",{value:"Dr",children:"Dr"}),i.jsx("option",{value:"Prof",children:"Prof"}),i.jsx("option",{value:"Mr",children:"Mr"}),i.jsx("option",{value:"Miss",children:"Miss"})]}),i.jsx("br",{})]}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:f,placeholder:"First Name",required:"required"}),i.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:f,placeholder:"Middle Name",required:"required"}),i.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:f,placeholder:"Last Name",required:"required"}),i.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:f,placeholder:"name@example.com",required:"required"}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:f,placeholder:"Password",required:"required"}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:f,placeholder:"confirmPassword",required:"required"}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-check",children:[i.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:f,required:!0}),i.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",i.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||o,children:[o&&i.jsx(ph.Bars,{}),"Sign up"]})})})]})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",i.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})})}),i.jsx(ze,{})]})},NN={email:"",password:""},wN=()=>{const[e,t]=R.useState(NN),{loading:n,error:r}=Ze(d=>({...d.auth})),{email:o,password:s}=e,l=St(),a=Dr();R.useEffect(()=>{r&&ie.error(r)},[r]);const u=d=>{d.preventDefault(),o&&s&&l(So({formValue:e,navigate:a,toast:ie}))},c=d=>{let{name:p,value:y}=d.target;t({...e,[p]:y})};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:i.jsx("div",{className:"text-bg-primary",children:i.jsxs("div",{className:"px-4",children:[i.jsx("hr",{className:"border-primary-subtle mb-4"}),i.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),i.jsx("div",{className:"text-endx",children:i.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:i.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"})})})]})})}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"mb-4",children:i.jsx("h2",{className:"h3",children:"Please Login"})})})}),i.jsx("form",{method:"POST",children:i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12"}),i.jsx("div",{className:"col-12"}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:o,name:"email",onChange:c,required:!0}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:s,name:"password",onChange:c,required:!0}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-check",children:[i.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),i.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&i.jsx(ph.Bars,{}),"Sign In"]})})})]})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",i.jsx(he,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),i.jsx(he,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})})}),i.jsx(ze,{})]})},Do="/assets/samplepic-BM_cnzgz.jpg";var mh={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Zh,function(){return function(n){function r(s){if(o[s])return o[s].exports;var l=o[s]={exports:{},id:s,loaded:!1};return n[s].call(l.exports,l,l.exports,r),l.loaded=!0,l.exports}var o={};return r.m=n,r.c=o,r.p="",r(0)}([function(n,r,o){function s(N){return N&&N.__esModule?N:{default:N}}function l(N,v){if(!(N instanceof v))throw new TypeError("Cannot call a class as a function")}function a(N,v){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?N:v}function u(N,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);N.prototype=Object.create(v&&v.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(N,v):N.__proto__=v)}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function N(v,x){for(var j=0;j1)for(var w=1;w1?d-1:0),y=1;y2?p-2:0),N=2;N1){for(var J=Array(G),A=0;A"u"||C.$$typeof!==m)){var K=typeof g=="function"?g.displayName||g.name||"Unknown":g;M&&u(C,K),F&&c(C,K)}return f(g,M,F,$,Z,N.current,C)},f.createFactory=function(g){var w=f.createElement.bind(null,g);return w.type=g,w},f.cloneAndReplaceKey=function(g,w){var b=f(g.type,w,g.ref,g._self,g._source,g._owner,g.props);return b},f.cloneElement=function(g,w,b){var k,C=y({},g.props),M=g.key,F=g.ref,$=g._self,Z=g._source,G=g._owner;if(w!=null){l(w)&&(F=w.ref,G=N.current),a(w)&&(M=""+w.key);var J;g.type&&g.type.defaultProps&&(J=g.type.defaultProps);for(k in w)j.call(w,k)&&!h.hasOwnProperty(k)&&(w[k]===void 0&&J!==void 0?C[k]=J[k]:C[k]=w[k])}var A=arguments.length-2;if(A===1)C.children=b;else if(A>1){for(var B=Array(A),K=0;K1?c-1:0),p=1;p2?d-2:0),y=2;y.")}return k}function c(b,k){if(b._store&&!b._store.validated&&b.key==null){b._store.validated=!0;var C=g.uniqueKey||(g.uniqueKey={}),M=u(k);if(!C[M]){C[M]=!0;var F="";b&&b._owner&&b._owner!==y.current&&(F=" It was passed a child from "+b._owner.getName()+"."),s.env.NODE_ENV!=="production"&&h(!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,F,N.getCurrentStackAddendum(b))}}}function d(b,k){if(typeof b=="object"){if(Array.isArray(b))for(var C=0;C1?H-1:0),ee=1;ee"u"||L===null)return""+L;var z=G(L);if(z==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return z}function A(L){var z=J(L);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function B(L){return L.constructor&&L.constructor.name?L.constructor.name:P}var K=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator",P="<>",D={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(),arrayOf:f,element:g(),instanceOf:w,node:M(),objectOf:k,oneOf:b,oneOfType:C,shape:F};return x.prototype=Error.prototype,D.checkPropTypes=d,D.PropTypes=D,D}}).call(r,o(1))},function(n,r){function o(a){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+a).replace(u,function(p){return c[p]});return"$"+d}function s(a){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=a[0]==="."&&a[1]==="$"?a.substring(2):a.substring(1);return(""+d).replace(u,function(p){return c[p]})}var l={escape:o,unescape:s};n.exports=l},function(n,r,o){(function(s){var l=o(5),a=o(2),u=function(m){var h=this;if(h.instancePool.length){var f=h.instancePool.pop();return h.call(f,m),f}return new h(m)},c=function(m,h){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,m,h),g}return new f(m,h)},d=function(m,h,f){var g=this;if(g.instancePool.length){var w=g.instancePool.pop();return g.call(w,m,h,f),w}return new g(m,h,f)},p=function(m,h,f,g){var w=this;if(w.instancePool.length){var b=w.instancePool.pop();return w.call(b,m,h,f,g),b}return new w(m,h,f,g)},y=function(m){var h=this;m instanceof h||(s.env.NODE_ENV!=="production"?a(!1,"Trying to release an instance into a pool of a different type."):l("25")),m.destructor(),h.instancePool.length{const[e,t]=R.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},r=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},o=St(),{status:s,error:l}=Ze(E=>E.property),{user:a}=Ze(E=>({...E.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=R.useState({propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],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"}]}),[p,y]=R.useState(!1),N=(E,S)=>{const _=[...c.images];_[S].file=E.base64,d({...c,images:_})},v=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},x=E=>{const S=c.images.filter((_,W)=>W!==E);d({...c,images:S})},j=(E,S)=>{const _=[...c.images];_[E].title=S.target.value,d({...c,images:_})},m=(E,S,_)=>{const{name:W,value:q}=E.target;if(_==="propertyTaxInfo"){const Q=[...c.propertyTaxInfo];Q[S][W]=q,d({...c,propertyTaxInfo:Q})}else d({...c,[W]:q})},h=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},f=E=>{const S=c.propertyTaxInfo.filter((_,W)=>W!==E);d({...c,propertyTaxInfo:S})},g=()=>{d(E=>({...E,costPaidAtoB:[...E.costPaidAtoB,{title:"",price:""}]}))},w=E=>{const S=c.costPaidAtoB.filter((_,W)=>W!==E);d(_=>({..._,costPaidAtoB:S}))},b=(E,S,_)=>{const W=[...c.costPaidAtoB];W[E][S]=_,d(q=>({...q,costPaidAtoB:W}))},k=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.costPaidAtoB.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,costPaidAtoB:q})}},C=()=>{const E=c.costPaidAtoB.reduce((_,W)=>{const q=parseFloat(W.price)||0;return _+q},0),S=parseFloat(c.purchaseCost)||0;return E+S},M=()=>{d(E=>({...E,credits:[...E.credits,{title:"",price:""}]}))},F=E=>{const S=c.credits.filter((_,W)=>W!==E);d(_=>({..._,credits:S}))},$=(E,S,_)=>{const W=[...c.credits];W[E][S]=_,d(q=>({...q,credits:W}))},Z=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.credits.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,credits:q})}else{const q=c.credits.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,credits:q})}},G=()=>c.credits.reduce((E,S)=>{const _=parseFloat(S.price);return E+(isNaN(_)?0:_)},0),J=()=>{const E=c.costPaidAtoB.reduce((W,q)=>{const Q=parseFloat(q.price)||0;return W+Q},0),S=c.credits.reduce((W,q)=>{const Q=parseFloat(q.price)||0;return W+Q},0),_=parseFloat(c.purchaseCost)||0;return E+S+_},A=()=>{d(E=>({...E,cashAdjustments:[...E.cashAdjustments,{title:"",price:""}]}))},B=E=>{const S=c.cashAdjustments.filter((_,W)=>W!==E);d(_=>({..._,cashAdjustments:S}))},K=(E,S,_)=>{const W=[...c.cashAdjustments];W[E][S]=_,d(q=>({...q,cashAdjustments:W}))},O=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.cashAdjustments.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,cashAdjustments:q})}},P=()=>c.cashAdjustments.reduce((E,S)=>{const _=parseFloat(S.price);return E+(isNaN(_)?0:_)},0),D=()=>{const E=P(),S=G(),_=C();return E+S+_},L=()=>{d(E=>({...E,incidentalCost:[...E.incidentalCost,{title:"",price:""}]}))},z=E=>{const S=c.incidentalCost.filter((_,W)=>W!==E);d(_=>({..._,incidentalCost:S}))},V=(E,S,_)=>{const W=[...c.incidentalCost];W[E][S]=_,d(q=>({...q,incidentalCost:W}))},H=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.incidentalCost.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,incidentalCost:q})}},X=()=>c.incidentalCost.reduce((E,S)=>{const _=parseFloat(S.price);return E+(isNaN(_)?0:_)},0),ee=()=>{d(E=>({...E,carryCosts:[...E.carryCosts,{title:"",price:""}]}))},te=E=>{const S=c.carryCosts.filter((_,W)=>W!==E);d(_=>({..._,carryCosts:S}))},re=(E,S,_)=>{const W=[...c.carryCosts];W[E][S]=_,d(q=>({...q,carryCosts:W}))},ae=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.carryCosts.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,carryCosts:q})}else{const q=c.carryCosts.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,carryCosts:q})}},ce=()=>c.carryCosts.reduce((E,S)=>{const _=parseFloat(S.price);return E+(isNaN(_)?0:_)},0),we=()=>{d(E=>({...E,renovationCost:[...E.renovationCost,{title:"",price:""}]}))},Kn=E=>{const S=c.renovationCost.filter((_,W)=>W!==E);d(_=>({..._,renovationCost:S}))},Vi=(E,S,_)=>{const W=[...c.renovationCost];W[E][S]=_,d(q=>({...q,renovationCost:W}))},xh=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.renovationCost.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,renovationCost:q})}else{const q=c.renovationCost.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,renovationCost:q})}},Qs=()=>c.renovationCost.reduce((E,S)=>{const _=parseFloat(S.price);return E+(isNaN(_)?0:_)},0),Gs=()=>{const E=X(),S=ce(),_=Qs();return E+S+_},eu=()=>{const E=Gs(),S=D();return E+S},jh=()=>{d(E=>({...E,costPaidOutofClosing:[...E.costPaidOutofClosing,{title:"",price:""}]}))},Nh=E=>{const S=c.costPaidOutofClosing.filter((_,W)=>W!==E);d(_=>({..._,costPaidOutofClosing:S}))},wh=(E,S,_)=>{const W=[...c.costPaidOutofClosing];W[E][S]=_,d(q=>({...q,costPaidOutofClosing:W}))},Ch=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.costPaidOutofClosing.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,costPaidOutofClosing:q})}},Js=()=>c.costPaidOutofClosing.reduce((E,S)=>{const _=parseFloat(S.price);return E+(isNaN(_)?0:_)},0),Qn=()=>{const E=c.sellingPriceBtoC,S=Js();return E-S},bh=()=>{d(E=>({...E,adjustments:[...E.adjustments,{title:"",price:""}]}))},Eh=E=>{const S=c.adjustments.filter((_,W)=>W!==E);d(_=>({..._,adjustments:S}))},Sh=(E,S,_)=>{const W=[...c.adjustments];W[E][S]=_,d(q=>({...q,adjustments:W}))},kh=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.adjustments.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,adjustments:q})}else{const q=c.adjustments.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,adjustments:q})}},Xs=()=>c.adjustments.reduce((E,S)=>{const _=parseFloat(S.price);return E+(isNaN(_)?0:_)},0),tu=()=>{const E=Qn(),S=Xs();return E+S},_h=()=>{d(E=>({...E,incomestatement:[...E.incomestatement,{title:"",price:""}]}))},Ph=E=>{const S=c.incomestatement.filter((_,W)=>W!==E);d(_=>({..._,incomestatement:S}))},Oh=(E,S,_)=>{const W=[...c.incomestatement];W[E][S]=_,d(q=>({...q,incomestatement:W}))},Th=(E,S)=>{const _=E.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.incomestatement.map((Q,oe)=>oe===S?{...Q,price:_,isInvalid:!1}:Q);d({...c,incomestatement:q})}else{const q=c.incomestatement.map((Q,oe)=>oe===S?{...Q,isInvalid:!0}:Q);d({...c,incomestatement:q})}},Zs=()=>c.incomestatement.reduce((E,S)=>{const _=parseFloat(S.price);return E+(isNaN(_)?0:_)},0),nu=()=>{const E=Zs(),S=Qn();return E+S},Rh=()=>{var E,S,_,W,q,Q;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){const oe=C(),Ih=J(),Dh=P(),Mh=X(),Lh=G(),Fh=D(),zh=ce(),Bh=Qs(),Uh=Gs(),$h=eu(),Wh=Js(),Vh=Xs(),qh=tu(),Hh=Qn(),Yh=Qn(),Kh=Zs(),Qh=nu(),el={...c,userfirstname:(E=a==null?void 0:a.result)==null?void 0:E.firstName,usermiddlename:(S=a==null?void 0:a.result)==null?void 0:S.middleName,userlastname:(_=a==null?void 0:a.result)==null?void 0:_.lastName,usertitle:(W=a==null?void 0:a.result)==null?void 0:W.title,useremail:(q=a==null?void 0:a.result)==null?void 0:q.email,userId:(Q=a==null?void 0:a.result)==null?void 0:Q.userId,totalPurchaseCosts:oe,totalcredits:Lh,totalPurchaseCostsaftercredits:Ih,totalcashAdjustments:Dh,totalcashrequiredonsettlement:Fh,totalincidentalCost:Mh,totalcarryCosts:zh,totalrenovationCost:Bh,totalRenovationsandHoldingCost:Uh,totalCoststoBuyAtoB:$h,costPaidOutofClosing:Wh,totaladjustments:Vh,fundsavailablefordistribution:qh,grossproceedsperHUD:Hh,totalCosttoSellBtoC:Yh,totalincomestatement:Kh,netBtoCsalevalue:Qh};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?el.propertyTaxInfo=c.propertyTaxInfo:el.propertyTaxInfo=[],o(To(el)),y(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};R.useEffect(()=>{p&&(s==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),y(!1)):s==="failed"&&(ie.error(`Failed to submit: ${l}`,{position:"top-right",autoClose:3e3}),y(!1)))},[s,l,p]);const[Ah,ru]=R.useState("0 days"),iu=(E,S)=>{if(E&&S){const _=new Date(E),W=new Date(S),q=Math.abs(W-_),Q=Math.ceil(q/(1e3*60*60*24));ru(`${Q} days`)}else ru("0 days")};return i.jsx(i.Fragment,{children:i.jsxs("div",{className:"container tabs-wrap",children:[i.jsx(Oe,{}),i.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[i.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),i.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),i.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),i.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&i.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[i.jsxs("form",{children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Property Address",i.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["City",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["State",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"Alaska",children:"Alaska"}),i.jsx("option",{value:"Alabama",children:"Alabama"}),i.jsx("option",{value:"Arkansas",children:"Arkansas"}),i.jsx("option",{value:"Arizona",children:"Arizona"}),i.jsx("option",{value:"California",children:"California"}),i.jsx("option",{value:"Colorado",children:"Colorado"}),i.jsx("option",{value:"Connecticut",children:"Connecticut"}),i.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),i.jsx("option",{value:"Delaware",children:"Delaware"}),i.jsx("option",{value:"Florida",children:"Florida"}),i.jsx("option",{value:"Georgia",children:"Georgia"}),i.jsx("option",{value:"Hawaii",children:"Hawaii"}),i.jsx("option",{value:"Iowa",children:"Iowa"}),i.jsx("option",{value:"Idaho",children:"Idaho"}),i.jsx("option",{value:"Illinois",children:"Illinois"}),i.jsx("option",{value:"Indiana",children:"Indiana"}),i.jsx("option",{value:"Kansas",children:"Kansas"}),i.jsx("option",{value:"Kentucky",children:"Kentucky"}),i.jsx("option",{value:"Louisiana",children:"Louisiana"}),i.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),i.jsx("option",{value:"Maryland",children:"Maryland"}),i.jsx("option",{value:"Michigan",children:"Michigan"}),i.jsx("option",{value:"Minnesota",children:"Minnesota"}),i.jsx("option",{value:"Missouri",children:"Missouri"}),i.jsx("option",{value:"Mississippi",children:"Mississippi"}),i.jsx("option",{value:"Montana",children:"Montana"}),i.jsx("option",{value:"North Carolina",children:"North Carolina"}),i.jsx("option",{value:"North Dakota",children:"North Dakota"}),i.jsx("option",{value:"Nebraska",children:"Nebraska"}),i.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),i.jsx("option",{value:"New Jersey",children:"New Jersey"}),i.jsx("option",{value:"New Mexico",children:"New Mexico"}),i.jsx("option",{value:"Nevada",children:"Nevada"}),i.jsx("option",{value:"New York",children:"New York"}),i.jsx("option",{value:"Ohio",children:"Ohio"}),i.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),i.jsx("option",{value:"Oregon",children:"Oregon"}),i.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),i.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),i.jsx("option",{value:"South Carolina",children:"South Carolina"}),i.jsx("option",{value:"South Dakota",children:"South Dakota"}),i.jsx("option",{value:"Tennessee",children:"Tennessee"}),i.jsx("option",{value:"Texas",children:"Texas"}),i.jsx("option",{value:"Texas",children:"Travis"}),i.jsx("option",{value:"Utah",children:"Utah"}),i.jsx("option",{value:"Virginia",children:"Virginia"}),i.jsx("option",{value:"Vermont",children:"Vermont"}),i.jsx("option",{value:"Washington",children:"Washington"}),i.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),i.jsx("option",{value:"West Virginia",children:"West Virginia"}),i.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["County",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"Abbeville",children:"Abbeville"}),i.jsx("option",{value:"Aiken",children:"Aiken"}),i.jsx("option",{value:"Allendale",children:"Allendale"}),i.jsx("option",{value:"Anderson",children:"Anderson"}),i.jsx("option",{value:"Bamberg",children:"Bamberg"}),i.jsx("option",{value:"Barnwell",children:"Barnwell"}),i.jsx("option",{value:"Beaufort",children:"Beaufort"}),i.jsx("option",{value:"Berkeley",children:"Berkeley"}),i.jsx("option",{value:"Calhoun",children:"Calhoun"}),i.jsx("option",{value:"Charleston",children:"Charleston"}),i.jsx("option",{value:"Cherokee",children:"Cherokee"}),i.jsx("option",{value:"Chester",children:"Chester"}),i.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),i.jsx("option",{value:"Clarendon",children:"Clarendon"}),i.jsx("option",{value:"Colleton",children:"Colleton"}),i.jsx("option",{value:"Darlington",children:"Darlington"}),i.jsx("option",{value:"Dillon",children:"Dillon"}),i.jsx("option",{value:"Dorchester",children:"Dorchester"}),i.jsx("option",{value:"Edgefield",children:"Edgefield"}),i.jsx("option",{value:"Fairfield",children:"Fairfield"}),i.jsx("option",{value:"Florence",children:"Florence"}),i.jsx("option",{value:"Georgetown",children:"Georgetown"}),i.jsx("option",{value:"Greenville",children:"Greenville"}),i.jsx("option",{value:"Greenwood",children:"Greenwood"}),i.jsx("option",{value:"Hampton",children:"Hampton"}),i.jsx("option",{value:"Horry",children:"Horry"}),i.jsx("option",{value:"Jasper",children:"Jasper"}),i.jsx("option",{value:"Kershaw",children:"Kershaw"}),i.jsx("option",{value:"Lancaster",children:"Lancaster"}),i.jsx("option",{value:"Laurens",children:"Laurens"}),i.jsx("option",{value:"Lee",children:"Lee"}),i.jsx("option",{value:"Lexington",children:"Lexington"}),i.jsx("option",{value:"Marion",children:"Marion"}),i.jsx("option",{value:"Marlboro",children:"Marlboro"}),i.jsx("option",{value:"McCormick",children:"McCormick"}),i.jsx("option",{value:"Newberry",children:"Newberry"}),i.jsx("option",{value:"Oconee",children:"Oconee"}),i.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),i.jsx("option",{value:"Pickens",children:"Pickens"}),i.jsx("option",{value:"Richland",children:"Richland"}),i.jsx("option",{value:"Saluda",children:"Saluda"}),i.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),i.jsx("option",{value:"Sumter",children:"Sumter"}),i.jsx("option",{value:"Union",children:"Union"}),i.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),i.jsx("option",{value:"York",children:"York"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Zip",i.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Parcel",i.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Sub division",i.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",i.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",i.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Property Type",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"Residential",children:"Residential"}),i.jsx("option",{value:"Land",children:"Land"}),i.jsx("option",{value:"Commercial",children:"Commercial"}),i.jsx("option",{value:"Industrial",children:"Industrial"}),i.jsx("option",{value:"Water",children:"Water"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",i.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Year Build",i.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",i.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Beds",i.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Baths",i.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Stories",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"0",children:"0"}),i.jsx("option",{value:"1",children:"1"}),i.jsx("option",{value:"2",children:"2"}),i.jsx("option",{value:"3",children:"3"}),i.jsx("option",{value:"4",children:"4"}),i.jsx("option",{value:"5",children:"5"}),i.jsx("option",{value:"6",children:"6"}),i.jsx("option",{value:"7",children:"7"}),i.jsx("option",{value:"8",children:"8"}),i.jsx("option",{value:"9",children:"9"}),i.jsx("option",{value:"10",children:"10"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Garage",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"0",children:"0"}),i.jsx("option",{value:"1",children:"1"}),i.jsx("option",{value:"2",children:"2"}),i.jsx("option",{value:"3",children:"3"}),i.jsx("option",{value:"4",children:"4"}),i.jsx("option",{value:"5",children:"5"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",i.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Pool/SPA",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),i.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),i.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),i.jsx("option",{value:"4",children:"None"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Fire places",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"yes",children:"Yes"}),i.jsx("option",{value:"no",children:"No"})]})]}),i.jsxs("div",{className:"col-md-4",children:["A/C",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Central",children:"Central"}),i.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),i.jsx("option",{value:"Warm Air",children:"Warm Air"}),i.jsx("option",{value:"Forced Air",children:"Forced Air"}),i.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Heating",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Central",children:"Central"}),i.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),i.jsx("option",{value:"Warm Air",children:"Warm Air"}),i.jsx("option",{value:"Forced Air",children:"Forced Air"}),i.jsx("option",{value:"Gas",children:"Gas"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Building Style",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"One Story",children:"One Story"}),i.jsx("option",{value:"Craftsman",children:"Craftsman"}),i.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),i.jsx("option",{value:"Split-Level",children:"Split-Level"}),i.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),i.jsx("option",{value:"Stick Built",children:"Stick Built"}),i.jsx("option",{value:"Single wide",children:"Single wide"}),i.jsx("option",{value:"Double wide",children:"Double wide"}),i.jsx("option",{value:"Duplex",children:"Duplex"}),i.jsx("option",{value:"Triplex",children:"Triplex"}),i.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),i.jsx("option",{value:"Two Story",children:"Two Story"}),i.jsx("option",{value:"Victorian",children:"Victorian"}),i.jsx("option",{value:"Tudor",children:"Tudor"}),i.jsx("option",{value:"Modern",children:"Modern"}),i.jsx("option",{value:"Art Deco",children:"Art Deco"}),i.jsx("option",{value:"Bungalow",children:"Bungalow"}),i.jsx("option",{value:"Mansion",children:"Mansion"}),i.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),i.jsx("option",{value:"Conventional",children:"Conventional"}),i.jsx("option",{value:"Ranch",children:"Ranch"}),i.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),i.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),i.jsx("option",{value:"Contemporary",children:"Contemporary"}),i.jsx("option",{value:"Colonial",children:"Colonial"}),i.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Site Vacant",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please select"}),i.jsx("option",{value:"Yes",children:"Yes"}),i.jsx("option",{value:"No",children:"No"})]})]})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Ext Wall",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Brick",children:"Brick"}),i.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),i.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),i.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),i.jsx("option",{value:"Stone",children:"Stone"}),i.jsx("option",{value:"Masonry",children:"Masonry"}),i.jsx("option",{value:"Metal",children:"Metal"}),i.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),i.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),i.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),i.jsx("option",{value:"Gable",children:"Gable"}),i.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),i.jsx("option",{value:"Frame",children:"Frame"}),i.jsx("option",{value:"Siding",children:"Siding"}),i.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),i.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),i.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),i.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),i.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),i.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Roofing",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[i.jsx("option",{value:"",children:"Please Select"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),i.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),i.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),i.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),i.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),i.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),i.jsx("option",{value:"Metal",children:"Metal"}),i.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),i.jsx("option",{value:"Slate",children:"Slate"}),i.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),i.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",i.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[i.jsx("br",{}),"Property Tax Information"]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((E,S)=>i.jsxs("div",{className:"row gy-4",children:[i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",i.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:E.propertytaxowned,onChange:_=>m(_,S,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",i.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:E.ownedyear,onChange:_=>m(_,S,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",i.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:E.taxassessed,onChange:_=>m(_,S,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",i.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:E.taxyear,onChange:_=>m(_,S,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"form-floating mb-2",children:[i.jsx("br",{}),i.jsx("button",{className:"btn btn-danger",onClick:()=>f(S),style:{height:"25px",width:"35px"},children:"X"})]})})]},S)),i.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),i.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&i.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),i.jsxs("form",{children:[c.images.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,placeholder:"Image Title",onChange:_=>j(S,_)})}),i.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[i.jsx(hh,{multiple:!1,onDone:_=>N(_,S)}),i.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>x(S),style:{marginLeft:"5px"},children:"Delete"})]}),E.file&&i.jsx("div",{className:"col-md-12",children:i.jsx("img",{src:E.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},S)),i.jsx("button",{type:"button",className:"btn btn-primary",onClick:v,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),i.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&i.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})]}),i.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",i.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:E=>{const S=E.target.value;d({...c,closeDateAtoB:S}),iu(S,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:E=>{const S=E.target.value;d({...c,closeDateBtoC:S}),iu(c.closeDateAtoB,S)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:Ah,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("br",{}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),i.jsx("div",{className:"col-md-7",children:u.map(E=>i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${E}`,value:E,checked:c.renovationRisk===E,onChange:S=>{const _=parseInt(S.target.value,10);d({...c,renovationRisk:_})}}),i.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${E}`,children:E})]},E))})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.purchaseCost,name:"purchaseCost",onChange:E=>{const S=E.target.value,_=/^\d*\.?\d*$/.test(S);d({...c,purchaseCost:S,isPurchaseCostInvalid:!_})},onKeyPress:E=>{const S=E.charCode;(S<48||S>57)&&S!==46&&(E.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>b(S,"title",_.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>k(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>w(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{onClick:g,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:C(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B",required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>$(S,"title",_.target.value),placeholder:"credits",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>Z(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>F(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:M,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:G(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:J(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>K(S,"title",_.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>O(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>B(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:A,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:P(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>V(S,"title",_.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>H(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>z(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:X(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>re(S,"title",_.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>ae(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>te(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:ee,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:ce(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno and Holding Costs"}),c.renovationCost.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>Vi(S,"title",_.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>xh(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>Kn(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:we,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Renovation and Holding cost"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Qs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Gs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:eu(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:E=>{const S=E.target.value,_=/^\d*\.?\d*$/.test(S);d({...c,sellingPriceBtoC:S,isPurchaseCostInvalid:!_})},onKeyPress:E=>{const S=E.charCode;(S<48||S>57)&&S!==46&&(E.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>wh(S,"title",_.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>Ch(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>Nh(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:jh,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"costPaidOutofClosing",value:Js(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>Sh(S,"title",_.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>kh(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>Eh(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:bh,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Xs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:tu(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((E,S)=>i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:_=>Oh(S,"title",_.target.value),placeholder:"Title",required:!0})}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:_=>Th(_,S),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&i.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),i.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:i.jsx("button",{className:"btn btn-danger",onClick:()=>Ph(S),style:{marginLeft:"5px"},children:"x"})})]},S)),i.jsx("div",{className:"col-md-4",children:i.jsxs("button",{className:"btn btn-primary back",onClick:_h,style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Zs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),i.jsxs("div",{className:"row gy-3 align-items-center",children:[i.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:nu(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",i.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:Rh,children:"Submit"})," "]}),i.jsx("br",{})]})]})]})})},Rt="/assets/propertydummy-DhVEZ7jN.jpg",EN=()=>{var u;const e=St(),{user:t}=Ze(c=>({...c.auth})),{userProperties:n,totalPages:r}=Ze(c=>c.property),[o,s]=R.useState(1),l=5;R.useEffect(()=>{e(Ro({userId:t.result.userId,page:o,limit:l}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,o]);const a=c=>{s(c)};return i.jsx(i.Fragment,{children:n.length>0?i.jsxs(i.Fragment,{children:[i.jsx("ul",{children:n.map(c=>i.jsx("li",{children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"col-md-12",children:i.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[i.jsx("div",{className:"col-md-3 mt-1",children:i.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),i.jsxs("div",{className:"col-md-6 mt-1",children:[i.jsxs("h5",{children:[" ",i.jsxs(he,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),i.jsx("div",{className:"d-flex flex-row"}),i.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[i.jsx("span",{children:"100% cotton"}),i.jsx("span",{className:"dot"}),i.jsx("span",{children:"Light weight"}),i.jsx("span",{className:"dot"}),i.jsxs("span",{children:["Best finish",i.jsx("br",{})]})]}),i.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[i.jsx("span",{children:"Unique design"}),i.jsx("span",{className:"dot"}),i.jsx("span",{children:"For men"}),i.jsx("span",{className:"dot"}),i.jsxs("span",{children:["Casual",i.jsx("br",{})]})]}),i.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",i.jsx("br",{}),i.jsx("br",{})]})]}),i.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:i.jsxs("div",{className:"d-flex flex-column mt-4",children:[i.jsx(he,{to:`/property/${c.propertyId}`,target:"_blank",children:i.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),i.jsx(he,{to:`/editproperty/${c.propertyId}`,children:i.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),i.jsxs("div",{className:"pagination",children:[i.jsx("button",{onClick:()=>a(o-1),disabled:o===1,children:"Previous"}),Array.from({length:r},(c,d)=>d+1).map(c=>c===o||c===1||c===r||c>=o-1&&c<=o+1?i.jsx("button",{onClick:()=>a(c),disabled:o===c,children:c},c):c===2||c===r-1?i.jsx("span",{children:"..."},c):null),i.jsx("button",{onClick:()=>a(o+1),disabled:o===r,children:"Next"})]})]}):i.jsx("p",{children:"No active properties found."})})},SN=()=>{var d,p,y,N,v,x,j,m,h,f,g,w;const{user:e,isLoading:t,error:n}=Ze(b=>b.auth),r=St(),o=Dr(),[s,l]=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:((y=e==null?void 0:e.result)==null?void 0:y.firstName)||"",middleName:((N=e==null?void 0:e.result)==null?void 0:N.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((j=e==null?void 0:e.result)==null?void 0:j.aboutme)||"",city:((m=e==null?void 0:e.result)==null?void 0:m.city)||"",state:((h=e==null?void 0:e.result)==null?void 0:h.state)||"",county:((f=e==null?void 0:e.result)==null?void 0:f.county)||"",zip:((g=e==null?void 0:e.result)==null?void 0:g.zip)||"",profileImage:((w=e==null?void 0:e.result)==null?void 0:w.profileImage)||""});R.useEffect(()=>{e&&l({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=b=>{l({...s,[b.target.name]:b.target.value})},u=()=>{l({...s,profileImage:""})},c=b=>{b.preventDefault(),r(_o(s)),o("/login")};return i.jsx(i.Fragment,{children:i.jsxs("form",{onSubmit:c,children:[i.jsxs("div",{className:"col-4",children:["Title",i.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s.title,onChange:a,children:[i.jsx("option",{value:"None",children:"Please Select Title"}),i.jsx("option",{value:"Dr",children:"Dr"}),i.jsx("option",{value:"Prof",children:"Prof"}),i.jsx("option",{value:"Mr",children:"Mr"}),i.jsx("option",{value:"Miss",children:"Miss"})]})]}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["First Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:s.firstName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:s.middleName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Last Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:s.lastName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Email",i.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:s.email,onChange:a,disabled:!0})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["About me",i.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:s.aboutme,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["City",i.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:s.city,onChange:a,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["State",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:s.state,onChange:a,required:!0,children:[i.jsx("option",{value:"",children:"Please Select State"}),i.jsx("option",{value:"Alaska",children:"Alaska"}),i.jsx("option",{value:"Alabama",children:"Alabama"}),i.jsx("option",{value:"Arkansas",children:"Arkansas"}),i.jsx("option",{value:"Arizona",children:"Arizona"}),i.jsx("option",{value:"California",children:"California"}),i.jsx("option",{value:"Colorado",children:"Colorado"}),i.jsx("option",{value:"Connecticut",children:"Connecticut"}),i.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),i.jsx("option",{value:"Delaware",children:"Delaware"}),i.jsx("option",{value:"Florida",children:"Florida"}),i.jsx("option",{value:"Georgia",children:"Georgia"}),i.jsx("option",{value:"Hawaii",children:"Hawaii"}),i.jsx("option",{value:"Iowa",children:"Iowa"}),i.jsx("option",{value:"Idaho",children:"Idaho"}),i.jsx("option",{value:"Illinois",children:"Illinois"}),i.jsx("option",{value:"Indiana",children:"Indiana"}),i.jsx("option",{value:"Kansas",children:"Kansas"}),i.jsx("option",{value:"Kentucky",children:"Kentucky"}),i.jsx("option",{value:"Louisiana",children:"Louisiana"}),i.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),i.jsx("option",{value:"Maryland",children:"Maryland"}),i.jsx("option",{value:"Michigan",children:"Michigan"}),i.jsx("option",{value:"Minnesota",children:"Minnesota"}),i.jsx("option",{value:"Missouri",children:"Missouri"}),i.jsx("option",{value:"Mississippi",children:"Mississippi"}),i.jsx("option",{value:"Montana",children:"Montana"}),i.jsx("option",{value:"North Carolina",children:"North Carolina"}),i.jsx("option",{value:"North Dakota",children:"North Dakota"}),i.jsx("option",{value:"Nebraska",children:"Nebraska"}),i.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),i.jsx("option",{value:"New Jersey",children:"New Jersey"}),i.jsx("option",{value:"New Mexico",children:"New Mexico"}),i.jsx("option",{value:"Nevada",children:"Nevada"}),i.jsx("option",{value:"New York",children:"New York"}),i.jsx("option",{value:"Ohio",children:"Ohio"}),i.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),i.jsx("option",{value:"Oregon",children:"Oregon"}),i.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),i.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),i.jsx("option",{value:"South Carolina",children:"South Carolina"}),i.jsx("option",{value:"South Dakota",children:"South Dakota"}),i.jsx("option",{value:"Tennessee",children:"Tennessee"}),i.jsx("option",{value:"Texas",children:"Texas"}),i.jsx("option",{value:"Utah",children:"Utah"}),i.jsx("option",{value:"Virginia",children:"Virginia"}),i.jsx("option",{value:"Vermont",children:"Vermont"}),i.jsx("option",{value:"Washington",children:"Washington"}),i.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),i.jsx("option",{value:"West Virginia",children:"West Virginia"}),i.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),i.jsxs("div",{className:"col-md-4",children:["County",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:s.county,onChange:a,required:!0,children:[i.jsx("option",{value:"",children:"Please Select County"}),i.jsx("option",{value:"Abbeville",children:"Abbeville"}),i.jsx("option",{value:"Aiken",children:"Aiken"}),i.jsx("option",{value:"Allendale",children:"Allendale"}),i.jsx("option",{value:"Anderson",children:"Anderson"}),i.jsx("option",{value:"Bamberg",children:"Bamberg"}),i.jsx("option",{value:"Barnwell",children:"Barnwell"}),i.jsx("option",{value:"Beaufort",children:"Beaufort"}),i.jsx("option",{value:"Berkeley",children:"Berkeley"}),i.jsx("option",{value:"Calhoun",children:"Calhoun"}),i.jsx("option",{value:"Charleston",children:"Charleston"}),i.jsx("option",{value:"Cherokee",children:"Cherokee"}),i.jsx("option",{value:"Chester",children:"Chester"}),i.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),i.jsx("option",{value:"Clarendon",children:"Clarendon"}),i.jsx("option",{value:"Colleton",children:"Colleton"}),i.jsx("option",{value:"Darlington",children:"Darlington"}),i.jsx("option",{value:"Dillon",children:"Dillon"}),i.jsx("option",{value:"Dorchester",children:"Dorchester"}),i.jsx("option",{value:"Edgefield",children:"Edgefield"}),i.jsx("option",{value:"Fairfield",children:"Fairfield"}),i.jsx("option",{value:"Florence",children:"Florence"}),i.jsx("option",{value:"Georgetown",children:"Georgetown"}),i.jsx("option",{value:"Greenville",children:"Greenville"}),i.jsx("option",{value:"Greenwood",children:"Greenwood"}),i.jsx("option",{value:"Hampton",children:"Hampton"}),i.jsx("option",{value:"Horry",children:"Horry"}),i.jsx("option",{value:"Jasper",children:"Jasper"}),i.jsx("option",{value:"Kershaw",children:"Kershaw"}),i.jsx("option",{value:"Lancaster",children:"Lancaster"}),i.jsx("option",{value:"Laurens",children:"Laurens"}),i.jsx("option",{value:"Lee",children:"Lee"}),i.jsx("option",{value:"Lexington",children:"Lexington"}),i.jsx("option",{value:"Marion",children:"Marion"}),i.jsx("option",{value:"Marlboro",children:"Marlboro"}),i.jsx("option",{value:"McCormick",children:"McCormick"}),i.jsx("option",{value:"Newberry",children:"Newberry"}),i.jsx("option",{value:"Oconee",children:"Oconee"}),i.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),i.jsx("option",{value:"Pickens",children:"Pickens"}),i.jsx("option",{value:"Richland",children:"Richland"}),i.jsx("option",{value:"Saluda",children:"Saluda"}),i.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),i.jsx("option",{value:"Sumter",children:"Sumter"}),i.jsx("option",{value:"Union",children:"Union"}),i.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),i.jsx("option",{value:"York",children:"York"})]})]}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Zip",i.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:s.zip,onChange:a,required:!0})]})}),i.jsxs("div",{className:"col-4",children:[i.jsx("label",{children:"Profile Image"}),i.jsx("div",{className:"mb-3",children:i.jsx(hh,{type:"file",multiple:!1,onDone:({base64:b})=>l({...s,profileImage:b})})})]}),s.profileImage&&i.jsxs("div",{className:"col-4 mb-3",children:[i.jsx("img",{src:s.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),i.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:u,children:"Delete Image"})]}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})}),n&&i.jsx("p",{children:n})]})})},kN=()=>{const[e,t]=R.useState("dashboard"),{user:n}=Ze(o=>o.auth),r=()=>{switch(e){case"Userdetails":return i.jsx(SN,{});case"addProperty":return i.jsx(bN,{});case"activeProperties":return i.jsxs("div",{children:[i.jsx("h3",{children:"Active Properties"}),i.jsx(EN,{})]});case"closedProperties":return i.jsx("p",{children:"These are your closed properties."});default:return i.jsx(i.Fragment,{})}};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("div",{className:"d-flex flex-row",children:[i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"card card1 p-5",children:[i.jsx("img",{className:"img-fluid",src:n.result.profileImage||Do,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),i.jsx("hr",{className:"hline"}),i.jsxs("div",{className:"d-flex flex-column align-items-center",children:[i.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[i.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),i.jsx("span",{children:"Dashboard"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"User Profile"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Add Property"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Active Properties"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Closed Properties"})]})]})]})}),i.jsx("div",{className:"col-md-9",children:i.jsxs("div",{className:"card card2 p-1",children:[i.jsx("br",{}),i.jsxs("span",{children:["Welcome to"," ",i.jsx("span",{style:{color:"#067ADC"},children:i.jsxs(he,{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]})})]}),i.jsx("br",{}),r()]})})]}),i.jsx(ze,{})]})};var vh={exports:{}},_N="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",PN=_N,ON=PN;function yh(){}function gh(){}gh.resetWarningCache=yh;var TN=function(){function e(r,o,s,l,a,u){if(u!==ON){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:gh,resetWarningCache:yh};return n.PropTypes=n,n};vh.exports=TN();var RN=vh.exports;const AN=Qa(RN),IN=()=>{const[e,t]=R.useState(3),n=Dr();return R.useEffect(()=>{const r=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),i.jsx("div",{style:{marginTop:"100px"},children:i.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Mo=({children:e})=>{const{user:t}=Ze(n=>({...n.auth}));return t?e:i.jsx(IN,{})};Mo.propTypes={children:AN.node.isRequired};const DN=()=>{const e=St(),{id:t,token:n}=Mr();return R.useEffect(()=>{e(Oo({id:t,token:n}))},[e,t,n]),i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsxs("div",{className:"contact_section layout_padding",children:[i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12",children:i.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),i.jsx("div",{className:"container-fluid",children:i.jsx("div",{className:"contact_section_2",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-6",children:[i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("h1",{className:"card-title text-center",children:i.jsxs(he,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",i.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),i.jsx("div",{className:"col-md-6 padding_left_15",children:i.jsx("div",{className:"contact_img"})})]})})})]}),i.jsx(ze,{})]})},MN=()=>{const[e,t]=R.useState(""),[n,r]=R.useState(""),o="http://67.225.129.127:3002",s=async()=>{try{const l=await fe.post(`${o}/users/forgotpassword`,{email:e});r(l.data.message)}catch(l){console.error("Forgot Password Error:",l),r(l.response.data.message)}};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"mb-4",children:[i.jsx("h2",{className:"h3",children:"Forgot Password"}),i.jsx("hr",{})]})})}),i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",value:e,onChange:l=>t(l.target.value),placeholder:"name@example.com",required:"required"}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),i.jsxs("div",{className:"col-12",children:[i.jsx("div",{className:"d-grid",children:i.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:s,children:"Reset Password"})}),i.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",i.jsx(he,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})}),i.jsx(ze,{})]})]})},LN=()=>{const{userId:e,token:t}=Mr(),[n,r]=R.useState(""),[o,s]=R.useState(""),[l,a]=R.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),ie.error("Password not entered");return}const d=await fe.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){a("Passwords do not match."),ie.error("Passwords do not match.");return}else a("Password reset successfull"),ie.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return R.useEffect(()=>{ie.dismiss()},[]),i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"card mb-0 vh-100",children:i.jsx("div",{className:"container py-10 h-100",children:i.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:i.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[i.jsx("br",{}),i.jsxs("h2",{children:["Reset Password",i.jsx("hr",{}),i.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),i.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>r(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),i.jsx("br",{}),i.jsx("input",{className:"form-control",type:"password",value:o,onChange:d=>s(d.target.value),placeholder:"Confirm your new password"}),i.jsx("br",{}),i.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"}),i.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:l})]})})})}),i.jsx(ze,{})]})},FN=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"col-md-18",children:[i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),i.jsxs("h2",{children:["We reqest you to kindly ",i.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",i.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx(ze,{})]}),zN=()=>{const{id:e}=Mr(),t=St(),{selectedProperty:n,status:r,error:o}=Ze(a=>a.property),[s,l]=R.useState(!0);return R.useEffect(()=>{e&&(t(li(e)),l(!1))},[e,t]),r==="loading"?i.jsx("p",{children:"Loading property details..."}):r==="failed"?i.jsxs("p",{children:["Error loading property: ",o]}):i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container col-12",children:s?i.jsx("div",{className:"loader",children:"Loading..."}):n?i.jsx("div",{className:"py-3 py-md-5 bg-light",children:i.jsxs("div",{className:"card-header bg-white",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-5 mt-3",children:i.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?i.jsx("img",{src:n.images[0].file||Rt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):i.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),i.jsx("div",{className:"col-md-7 mt-3",children:i.jsxs("div",{className:"product-view",children:[i.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,i.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),i.jsx("hr",{}),i.jsxs("p",{className:"product-path",children:[i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",i.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),i.jsxs("div",{children:[i.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),i.jsxs("div",{className:"mt-3 card bg-white",children:[i.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),i.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12 mt-3",children:i.jsxs("div",{className:"card",children:[i.jsx("div",{className:"card-header bg-white",children:i.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),i.jsx("div",{className:"card-body",children:i.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."})})]})})})]})}):i.jsx("p",{children:"No property details found."})}),i.jsx(ze,{})]})},BN=()=>{const[e,t]=R.useState([]),[n,r]=R.useState(0),[o,s]=R.useState(0),[l]=R.useState(10),[a,u]=R.useState(""),[c,d]=R.useState(!1),[p,y]=R.useState(!1),N=async()=>{d(!0),y(!1);try{const m=await fe.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:l,offset:o*l,search:a},headers:{"Cache-Control":"no-cache"}});t(m.data.data),r(m.data.totalRecords),a.trim()&&y(!0)}catch(m){console.log("Error fetching data:",m)}finally{d(!1)}},v=m=>{u(m.target.value),m.target.value.trim()===""&&(s(0),t([]),r(0),y(!1),N())},x=m=>{m.key==="Enter"&&(m.preventDefault(),N())};R.useEffect(()=>{N()},[a,o]);const j=Math.ceil(n/l);return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"container col-12",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-lg-12 card-margin col-12",children:i.jsx("div",{className:"card search-form col-12",children:i.jsx("div",{className:"card-body p-0",children:i.jsx("form",{id:"search-form",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"row no-gutters",children:i.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:i.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:x})})})})})})})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"card card-margin",children:i.jsxs("div",{className:"card-body",children:[p&&e.length>0&&i.jsxs("div",{children:["Showing search results for the keyword"," ",i.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),i.jsx("div",{className:"table-responsive",children:i.jsxs("table",{className:"table widget-26",children:[i.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:i.jsxs("tr",{children:[i.jsx("th",{children:"Details"}),i.jsx("th",{children:"Total Living Square Foot"}),i.jsx("th",{children:"Year Built"}),i.jsx("th",{children:"Cost per Square Foot"})]})}),i.jsx("tbody",{children:e.length>0?e.map((m,h)=>i.jsxs("tr",{children:[i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-title",children:[i.jsx(he,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),i.jsxs("p",{className:"m-0",children:[i.jsxs("span",{className:"employer-name",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),i.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),i.jsx("td",{children:i.jsx("div",{className:"widget-26-job-info",children:i.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),i.jsx("td",{children:i.jsx("div",{className:"widget-26-job-info",children:i.jsx("p",{className:"m-0",children:m.year_built})})}),i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},h)):i.jsx("tr",{children:i.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),i.jsxs("div",{children:[i.jsx("button",{onClick:()=>s(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),i.jsxs("span",{children:[" ","Page ",o+1," of ",j," "]}),i.jsx("button",{onClick:()=>s(o+1),disabled:o+1>=j||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),i.jsx(ze,{})]})},UN=()=>i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),"This page will show the list of services offered by the company",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx(ze,{})]}),$N=()=>{const{house_id:e}=Mr();console.log("house_id",e);const[t,n]=R.useState(null),[r,o]=R.useState(!0);return R.useEffect(()=>{(async()=>{try{const l=await fe.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(l.data)}catch(l){console.log("Error fetching property details:",l)}finally{o(!1)}})()},[e]),i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container col-12",children:r?i.jsx("div",{className:"loader",children:"Loading..."}):t?i.jsx("div",{className:"py-3 py-md-5 bg-light",children:i.jsxs("div",{className:"card-header bg-white",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-5 mt-3",children:i.jsx("div",{className:"bg-white border",children:i.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),i.jsx("div",{className:"col-md-7 mt-3",children:i.jsxs("div",{className:"product-view",children:[i.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,i.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),i.jsx("hr",{}),i.jsxs("p",{className:"product-path",children:[i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",i.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),i.jsxs("div",{children:[i.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),i.jsxs("div",{className:"mt-3 card bg-white",children:[i.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),i.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12 mt-3",children:i.jsxs("div",{className:"card",children:[i.jsx("div",{className:"card-header bg-white",children:i.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),i.jsx("div",{className:"card-body",children:i.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."})})]})})})]})}):i.jsx("p",{children:"No property details found."})}),i.jsx(ze,{})]})},WN=()=>{const{id:e}=Mr(),t=St(),{selectedProperty:n}=Ze(a=>a.property),[r,o]=R.useState({propertyType:"",yearBuild:"",totalSqft:""});R.useEffect(()=>{t(li(e))},[t,e]),R.useEffect(()=>{n&&o({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const s=a=>{o({...r,[a.target.name]:a.target.value})},l=a=>{a.preventDefault(),t(Ao({id:e,propertyData:r}))};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"edit-property-form",children:[i.jsx("h2",{children:"Edit Property"}),i.jsxs("form",{onSubmit:l,children:[i.jsx("div",{children:i.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:s,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Property Type"}),i.jsx("option",{value:"Residential",children:"Residential"}),i.jsx("option",{value:"Land",children:"Land"}),i.jsx("option",{value:"Commercial",children:"Commercial"}),i.jsx("option",{value:"Industrial",children:"Industrial"}),i.jsx("option",{value:"Water",children:"Water"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:s,placeholder:"Year build",required:!0}),i.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:s,placeholder:"Total SQFT",required:!0}),i.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),i.jsx("button",{type:"submit",children:"Update Property"})]})]}),i.jsx(ze,{})]})},VN=()=>{const e=St(),{properties:t,loading:n,totalPages:r,currentPage:o}=Ze(x=>x.property),[s,l]=R.useState(""),[a,u]=R.useState([]),[c,d]=R.useState(1),p=10;R.useEffect(()=>{e(ai({page:c,limit:p,keyword:s}))},[e,c,s]),R.useEffect(()=>{s.trim()?u(t.filter(x=>x.address.toLowerCase().includes(s.toLowerCase()))):u(t)},[s,t]);const y=x=>{l(x.target.value)},N=x=>{x.preventDefault()},v=x=>{d(x),e(ai({page:x,limit:p,keyword:s}))};return i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("div",{className:"container col-12",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-lg-12 card-margin col-12",children:i.jsx("div",{className:"card search-form col-12",children:i.jsx("div",{className:"card-body p-0",children:i.jsx("form",{id:"search-form",onSubmit:N,children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"row no-gutters",children:i.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:i.jsx("input",{type:"text",value:s,onChange:y,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"card card-margin",children:i.jsx("div",{className:"card-body",children:n?i.jsx("div",{children:"Loading..."}):i.jsx("div",{className:"table-responsive",children:i.jsxs("table",{className:"table widget-26",children:[i.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:i.jsxs("tr",{children:[i.jsx("th",{children:"Image"}),i.jsx("th",{children:"Details"}),i.jsx("th",{children:"Total Living Square Foot"}),i.jsx("th",{children:"Year Built"}),i.jsx("th",{children:"Cost per Square Foot"})]})}),i.jsx("tbody",{children:a.length>0?a.map(x=>i.jsxs("tr",{children:[i.jsx("td",{children:x.images&&x.images[0]?i.jsx("img",{src:x.images[0].file||Rt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):i.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-title",children:[i.jsx(he,{to:`/property/${x.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:x.address}),i.jsxs("p",{className:"m-0",children:[i.jsxs("span",{className:"employer-name",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),x.city,", ",x.county,","," ",x.state]}),i.jsxs("p",{className:"text-muted m-0",children:["House Id: ",x.propertyId]})]})]})}),i.jsx("td",{children:x.totallivingsqft}),i.jsx("td",{children:x.yearBuild}),i.jsx("td",{children:x.costpersqft})]},x.id)):i.jsx("tr",{children:i.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),i.jsx("nav",{"aria-label":"Page navigation",children:i.jsxs("ul",{className:"pagination justify-content-center",children:[i.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(o-1),children:"Previous"})}),Array.from({length:r},(x,j)=>i.jsx("li",{className:`page-item ${o===j+1?"active":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(j+1),children:j+1})},j+1)),i.jsx("li",{className:`page-item ${o===r?"disabled":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(o+1),children:"Next"})})]})})]}),i.jsx(ze,{})]})},qN=()=>{const{userId:e}=Mr(),t=St(),{user:n,loading:r}=Ze(o=>o.user);return console.log("user",n),R.useEffect(()=>{e&&t(Po(e))},[e,t]),r?i.jsx("div",{children:"Loading..."}):i.jsxs(i.Fragment,{children:[i.jsx(Oe,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("div",{className:"main-body",children:i.jsxs("div",{className:"row gutters-sm",children:[i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[i.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),i.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),i.jsxs("span",{className:"text-muted font-size-sm",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),i.jsx("br",{})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),i.jsx("hr",{}),i.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:i.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),i.jsx("hr",{}),i.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:i.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),i.jsx("hr",{}),i.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("hr",{}),i.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("br",{})," ",i.jsx("br",{})]})})}),i.jsx("div",{className:"col-md-4",children:i.jsx("div",{className:"card mb-3",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",i.jsx("hr",{}),n.aboutme]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),i.jsx("hr",{}),i.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),i.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:i.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),i.jsx("hr",{}),i.jsxs("div",{className:"card-body",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-sm-3",children:i.jsx("span",{className:"mb-0",children:"Email"})}),n.email,i.jsx("div",{className:"col-sm-9 text-secondary"})]}),i.jsx("hr",{}),i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-sm-3",children:i.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",i.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),i.jsxs("ul",{className:"list-group list-group-flush",children:[i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:Do,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:Do,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:Do,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},HN=()=>i.jsxs(Sj,{children:[i.jsx(Vj,{}),i.jsxs(gj,{children:[i.jsx(ke,{path:"/",element:i.jsx(Hj,{})}),i.jsx(ke,{path:"/about",element:i.jsx(Yj,{})}),i.jsx(ke,{path:"/services",element:i.jsx(UN,{})}),i.jsx(ke,{path:"/contact",element:i.jsx(Kj,{})}),i.jsx(ke,{path:"/register",element:i.jsx(jN,{})}),i.jsx(ke,{path:"/registrationsuccess",element:i.jsx(Mo,{children:i.jsx(FN,{})})}),i.jsx(ke,{path:"/login",element:i.jsx(wN,{})}),i.jsx(ke,{path:"/dashboard",element:i.jsx(Mo,{children:i.jsx(kN,{})})}),i.jsx(ke,{path:"/users/:id/verify/:token",element:i.jsx(DN,{})}),i.jsx(ke,{path:"/forgotpassword",element:i.jsx(MN,{})}),i.jsx(ke,{path:"/users/resetpassword/:userId/:token",element:i.jsx(LN,{})}),i.jsx(ke,{path:"/property/:id",element:i.jsx(zN,{})}),i.jsx(ke,{path:"/properties/:house_id",element:i.jsx($N,{})}),i.jsx(ke,{path:"/searchmyproperties",element:i.jsx(BN,{})}),i.jsx(ke,{path:"/searchproperties",element:i.jsx(VN,{})}),i.jsx(ke,{path:"/editproperty/:id",element:i.jsx(Mo,{children:i.jsx(WN,{})})}),i.jsx(ke,{path:"/profile/:userId",element:i.jsx(qN,{})})]})]});lm(document.getElementById("root")).render(i.jsx(R.StrictMode,{children:i.jsx(Hg,{store:T1,children:i.jsx(HN,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index 2bbddb5..33c1f99 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -45,7 +45,7 @@ - + diff --git a/ef-ui/src/components/Addproperty.jsx b/ef-ui/src/components/Addproperty.jsx index ed79773..6f50a51 100644 --- a/ef-ui/src/components/Addproperty.jsx +++ b/ef-ui/src/components/Addproperty.jsx @@ -100,7 +100,13 @@ const Addproperty = () => { incomestatement:[ { title: "income statement", price: "0"}, { title: "income statement", price: "0"}, - ] + ], + fundspriortoclosing:"0", + shorttermrental:"0", + OtherIncome:"0", + InsuranceClaim:"0", + LongTermRental:"0", + FinancingCostClosingCost:"0", }); const [submitted, setSubmitted] = useState(false); @@ -771,8 +777,25 @@ const calculatenetBtoCsalevalue = () =>{ return totalincomestatement + totalcosttosellbtoc; } + const calculateNetProfitBeforeFinancingCosts = () => { + const netBtoCsalevalue = calculatenetBtoCsalevalue(); + const shorttermrental= formData.shorttermrental; + const OtherIncome = formData.OtherIncome; + const InsuranceClaim = formData.InsuranceClaim; + const LongTermRental= formData.LongTermRental; + const totalCoststoBuyAtoB=calculatetotalCoststoBuyAtoB(); + return netBtoCsalevalue + shorttermrental + OtherIncome + InsuranceClaim + LongTermRental - totalCoststoBuyAtoB; + } + + const calculateNetProfit = () => { + const NetProfitBeforeFinancingCosts = calculateNetProfitBeforeFinancingCosts(); + const FinancingCostClosingCost = formData.FinancingCostClosingCost ; + return NetProfitBeforeFinancingCosts - FinancingCostClosingCost; + } + + const handleSubmit = () => { if ( @@ -807,7 +830,13 @@ const calculatenetBtoCsalevalue = () =>{ formData.closeDateAtoB && formData.closeDateBtoC && formData.purchaseCost && - formData.sellingPriceBtoC + formData.sellingPriceBtoC && + formData.fundspriortoclosing && + formData.shorttermrental && + formData.OtherIncome && + formData.InsuranceClaim && + formData.LongTermRental && + formData.FinancingCostClosingCost ) { const totalPurchaseCosts = calculateTotalPurchaseCosts(); const totalPurchaseCostsaftercredits = calculateTotalPurchaseCostsWithCredits(); @@ -826,6 +855,8 @@ const calculatenetBtoCsalevalue = () =>{ const totalCosttoSellBtoC = calculateTotalCosttoSellBtoC(); const totalincomestatement = calculateTotalincomestatement(); const netBtoCsalevalue = calculatenetBtoCsalevalue(); + const netprofitbeforefinancingcosts = calculateNetProfitBeforeFinancingCosts(); + const NetProfit = calculateNetProfit(); // Add user info to formData, including the propertyTaxInfo array const formDataWithUserInfo = { @@ -852,7 +883,9 @@ const calculatenetBtoCsalevalue = () =>{ grossproceedsperHUD:grossproceedsperHUD, totalCosttoSellBtoC:totalCosttoSellBtoC, totalincomestatement:totalincomestatement, - netBtoCsalevalue:netBtoCsalevalue + netBtoCsalevalue:netBtoCsalevalue, + netprofitbeforefinancingcosts:netprofitbeforefinancingcosts, + NetProfit:NetProfit }; // Check if propertyTaxInfo is an array and has values @@ -1911,6 +1944,7 @@ const calculatenetBtoCsalevalue = () =>{
+
@@ -3418,10 +3451,452 @@ Income Statement Adjustments: +
+ + Net Profit Computation + + +
+
+ +
+
+ +
+
+ +
+ +
+
+ +
+ +
+ { + const value = e.target.value; + const isValid = /^\d*\.?\d*$/.test(value); // Regex to allow only numbers and decimal points + setFormData({ + ...formData, + fundspriortoclosing: value, + isfundspriortoclosingInvalid: !isValid, // Set isPurchaseCostInvalid to true if the value is not a valid number + }); + }} + onKeyPress={(e) => { + const charCode = e.charCode; + // Allow only numbers and decimal points + if ((charCode < 48 || charCode > 57) && charCode !== 46) { + e.preventDefault(); // Prevent non-numeric input + setFormData({ + ...formData, + isfundspriortoclosingInvalid: true, // Set isPurchaseCostInvalid to true to show the alert + }); + } + }} + style={{ textAlign: "right" }} + required + /> + {formData.isfundspriortoclosingInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+ + { + const value = e.target.value; + const isValid = /^\d*\.?\d*$/.test(value); // Regex to allow only numbers and decimal points + setFormData({ + ...formData, + shorttermrental: value, + isPurchaseCostInvalid: !isValid, // Set isPurchaseCostInvalid to true if the value is not a valid number + }); + }} + onKeyPress={(e) => { + const charCode = e.charCode; + // Allow only numbers and decimal points + if ((charCode < 48 || charCode > 57) && charCode !== 46) { + e.preventDefault(); // Prevent non-numeric input + setFormData({ + ...formData, + isPurchaseCostInvalid: true, // Set isPurchaseCostInvalid to true to show the alert + }); + } + }} + style={{ textAlign: "right" }} + required + /> + {formData.isPurchaseCostInvalid && ( +
+ Please enter a valid number. +
+ )} + +
+
+
+ +
+
+ +
+ +
+ { + const value = e.target.value; + const isValid = /^\d*\.?\d*$/.test(value); // Regex to allow only numbers and decimal points + setFormData({ + ...formData, + OtherIncome: value, + isPurchaseCostInvalid: !isValid, // Set isPurchaseCostInvalid to true if the value is not a valid number + }); + }} + onKeyPress={(e) => { + const charCode = e.charCode; + // Allow only numbers and decimal points + if ((charCode < 48 || charCode > 57) && charCode !== 46) { + e.preventDefault(); // Prevent non-numeric input + setFormData({ + ...formData, + isPurchaseCostInvalid: true, // Set isPurchaseCostInvalid to true to show the alert + }); + } + }} + style={{ textAlign: "right" }} + required + /> + {formData.isPurchaseCostInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+
+ +
+
+ +
+ +
+ { + const value = e.target.value; + const isValid = /^\d*\.?\d*$/.test(value); // Regex to allow only numbers and decimal points + setFormData({ + ...formData, + InsuranceClaim: value, + isPurchaseCostInvalid: !isValid, // Set isPurchaseCostInvalid to true if the value is not a valid number + }); + }} + onKeyPress={(e) => { + const charCode = e.charCode; + // Allow only numbers and decimal points + if ((charCode < 48 || charCode > 57) && charCode !== 46) { + e.preventDefault(); // Prevent non-numeric input + setFormData({ + ...formData, + isPurchaseCostInvalid: true, // Set isPurchaseCostInvalid to true to show the alert + }); + } + }} + style={{ textAlign: "right" }} + required + /> + {formData.isPurchaseCostInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+
+ +
+
+ +
+ +
+ { + const value = e.target.value; + const isValid = /^\d*\.?\d*$/.test(value); // Regex to allow only numbers and decimal points + setFormData({ + ...formData, + LongTermRental: value, + isPurchaseCostInvalid: !isValid, // Set isPurchaseCostInvalid to true if the value is not a valid number + }); + }} + onKeyPress={(e) => { + const charCode = e.charCode; + // Allow only numbers and decimal points + if ((charCode < 48 || charCode > 57) && charCode !== 46) { + e.preventDefault(); // Prevent non-numeric input + setFormData({ + ...formData, + isPurchaseCostInvalid: true, // Set isPurchaseCostInvalid to true to show the alert + }); + } + }} + style={{ textAlign: "right" }} + required + /> + {formData.isPurchaseCostInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+
+ +
+ + Net Profit Before Financing Costs + +
+ +
+
+ +
+ +
+ + Financing Cost/Other Closing Costs + +
+ { + const value = e.target.value; + const isValid = /^\d*\.?\d*$/.test(value); // Regex to allow only numbers and decimal points + setFormData({ + ...formData, + FinancingCostClosingCost: value, + isFinancingCostClosingCostInvalid: !isValid, // Set isPurchaseCostInvalid to true if the value is not a valid number + }); + }} + onKeyPress={(e) => { + const charCode = e.charCode; + // Allow only numbers and decimal points + if ((charCode < 48 || charCode > 57) && charCode !== 46) { + e.preventDefault(); // Prevent non-numeric input + setFormData({ + ...formData, + isFinancingCostClosingCostInvalid: true, // Set isPurchaseCostInvalid to true to show the alert + }); + } + }} + style={{ textAlign: "right" }} + required + /> + {formData.isFinancingCostClosingCostInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+ + +
+ +
+ + Net Profit + +
+ + +
+
+ + + + +