From dd8f1e646336c89962b6aa4398660836554f65f6 Mon Sep 17 00:00:00 2001 From: omkieit Date: Sun, 22 Sep 2024 00:31:44 +0530 Subject: [PATCH] done --- ef-api/controllers/property.js | 25 ++++++++ ef-api/models/property.js | 1 + ef-api/routes/property.js | 3 +- .../{index-TX5YeaKV.js => index-Bn1lHNVo.js} | 36 ++++++------ ef-ui/dist/index.html | 2 +- ef-ui/src/components/EditProperty.jsx | 9 ++- ef-ui/src/redux/api.js | 2 + ef-ui/src/redux/features/propertySlice.js | 57 +++++++++---------- 8 files changed, 83 insertions(+), 52 deletions(-) rename ef-ui/dist/assets/{index-TX5YeaKV.js => index-Bn1lHNVo.js} (64%) diff --git a/ef-api/controllers/property.js b/ef-api/controllers/property.js index 8be02ba..437855f 100644 --- a/ef-api/controllers/property.js +++ b/ef-api/controllers/property.js @@ -53,4 +53,29 @@ export const getPropertyById = async (req, res) => { } }; +// Update property by ID.. +export const updatePropertyById = async (req, res) => { + const { id } = req.params; // This should be the propertyId + const updateData = req.body; + console.log("Received propertyId:", id); // Log the received propertyId + console.log("updateData", updateData); + + try { + // Find the property by propertyId instead of _id + const updatedProperty = await PropertyModal.findOneAndUpdate( + { propertyId: id }, // Search by propertyId + updateData, + { new: true } + ); + + if (!updatedProperty) { + return res.status(404).json({ message: "Property not found" }); + } + + res.status(200).json(updatedProperty); + } catch (error) { + console.error("Error updating property:", error.message); + res.status(500).json({ message: "Failed to update property", error: error.message }); + } +}; diff --git a/ef-api/models/property.js b/ef-api/models/property.js index 5827cc0..a73d714 100644 --- a/ef-api/models/property.js +++ b/ef-api/models/property.js @@ -1,6 +1,7 @@ import mongoose from "mongoose"; const propertySchema = mongoose.Schema({ + _id: { type: String, required: true }, // Allow string IDs propertyType: {type: String, required: true }, title: {type: String, required: true }, yearBuild: {type: String, required: true }, diff --git a/ef-api/routes/property.js b/ef-api/routes/property.js index dd32c1c..40829d1 100644 --- a/ef-api/routes/property.js +++ b/ef-api/routes/property.js @@ -1,10 +1,11 @@ import express from 'express'; const router = express.Router(); import auth from '../middleware/auth.js'; -import { createProperty, getUserProperties, getPropertyById} from '../controllers/property.js'; +import { createProperty, getUserProperties, getPropertyById, updatePropertyById} from '../controllers/property.js'; router.post('/', auth, createProperty); router.get('/user/:userId', getUserProperties); router.get('/:propertyId', getPropertyById); +router.put("/:id", updatePropertyById); export default router; diff --git a/ef-ui/dist/assets/index-TX5YeaKV.js b/ef-ui/dist/assets/index-Bn1lHNVo.js similarity index 64% rename from ef-ui/dist/assets/index-TX5YeaKV.js rename to ef-ui/dist/assets/index-Bn1lHNVo.js index 7613340..e76b0bf 100644 --- a/ef-ui/dist/assets/index-TX5YeaKV.js +++ b/ef-ui/dist/assets/index-Bn1lHNVo.js @@ -1,4 +1,4 @@ -var Wm=Object.defineProperty;var Hm=(e,t,n)=>t in e?Wm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Cs=(e,t,n)=>Hm(e,typeof t!="symbol"?t+"":t,n);function Vm(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xd={exports:{}},Gl={},wd={exports:{}},A={};/** +var Hm=Object.defineProperty;var Vm=(e,t,n)=>t in e?Hm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ps=(e,t,n)=>Vm(e,typeof t!="symbol"?t+"":t,n);function qm(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function xd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wd={exports:{}},Jl={},jd={exports:{}},D={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Wm=Object.defineProperty;var Hm=(e,t,n)=>t in e?Wm(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var vi=Symbol.for("react.element"),qm=Symbol.for("react.portal"),Qm=Symbol.for("react.fragment"),Km=Symbol.for("react.strict_mode"),Ym=Symbol.for("react.profiler"),Xm=Symbol.for("react.provider"),Gm=Symbol.for("react.context"),Jm=Symbol.for("react.forward_ref"),Zm=Symbol.for("react.suspense"),eh=Symbol.for("react.memo"),th=Symbol.for("react.lazy"),Ou=Symbol.iterator;function nh(e){return e===null||typeof e!="object"?null:(e=Ou&&e[Ou]||e["@@iterator"],typeof e=="function"?e:null)}var jd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nd=Object.assign,Sd={};function hr(e,t,n){this.props=e,this.context=t,this.refs=Sd,this.updater=n||jd}hr.prototype.isReactComponent={};hr.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")};hr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ed(){}Ed.prototype=hr.prototype;function ka(e,t,n){this.props=e,this.context=t,this.refs=Sd,this.updater=n||jd}var _a=ka.prototype=new Ed;_a.constructor=ka;Nd(_a,hr.prototype);_a.isPureReactComponent=!0;var Tu=Array.isArray,kd=Object.prototype.hasOwnProperty,Ca={current:null},_d={key:!0,ref:!0,__self:!0,__source:!0};function Cd(e,t,n){var r,i={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)kd.call(t,r)&&!_d.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?Wm(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var oh=E,ah=Symbol.for("react.element"),uh=Symbol.for("react.fragment"),ch=Object.prototype.hasOwnProperty,dh=oh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fh={key:!0,ref:!0,__self:!0,__source:!0};function Od(e,t,n){var r,i={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)ch.call(t,r)&&!fh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ah,type:e,key:l,ref:s,props:i,_owner:dh.current}}Gl.Fragment=uh;Gl.jsx=Od;Gl.jsxs=Od;xd.exports=Gl;var o=xd.exports,Td={exports:{}},Ve={},Rd={exports:{}},bd={};/** + */var ah=E,uh=Symbol.for("react.element"),ch=Symbol.for("react.fragment"),dh=Object.prototype.hasOwnProperty,fh=ah.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ph={key:!0,ref:!0,__self:!0,__source:!0};function Td(e,t,n){var r,i={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)dh.call(t,r)&&!ph.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:uh,type:e,key:l,ref:s,props:i,_owner:fh.current}}Jl.Fragment=ch;Jl.jsx=Td;Jl.jsxs=Td;wd.exports=Jl;var o=wd.exports,Rd={exports:{}},Ve={},bd={exports:{}},Ld={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Wm=Object.defineProperty;var Hm=(e,t,n)=>t in e?Wm(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(T,M){var F=T.length;T.push(M);e:for(;0>>1,U=T[B];if(0>>1;Bi(ke,F))gei(pt,ke)?(T[B]=pt,T[ge]=F,B=ge):(T[B]=ke,T[re]=F,B=re);else if(gei(pt,F))T[B]=pt,T[ge]=F,B=ge;else break e}}return M}function i(T,M){var F=T.sortIndex-M.sortIndex;return F!==0?F:T.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],c=[],d=1,f=null,y=3,j=!1,v=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(T){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=T)r(c),M.sortIndex=M.expirationTime,t(u,M);else break;M=n(c)}}function x(T){if(g=!1,m(T),!v)if(n(u)!==null)v=!0,Mt(k);else{var M=n(c);M!==null&&Fe(x,M.startTime-T)}}function k(T,M){v=!1,g&&(g=!1,h(_),_=-1),j=!0;var F=y;try{for(m(M),f=n(u);f!==null&&(!(f.expirationTime>M)||T&&!H());){var B=f.callback;if(typeof B=="function"){f.callback=null,y=f.priorityLevel;var U=B(f.expirationTime<=M);M=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(u)&&r(u),m(M)}else r(u);f=n(u)}if(f!==null)var ae=!0;else{var re=n(c);re!==null&&Fe(x,re.startTime-M),ae=!1}return ae}finally{f=null,y=F,j=!1}}var C=!1,P=null,_=-1,b=5,L=-1;function H(){return!(e.unstable_now()-LT||125B?(T.sortIndex=F,t(c,T),n(u)===null&&T===n(c)&&(g?(h(_),_=-1):g=!0,Fe(x,F-B))):(T.sortIndex=U,t(u,T),v||j||(v=!0,Mt(k))),T},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(T){var M=y;return function(){var F=y;y=M;try{return T.apply(this,arguments)}finally{y=F}}}})(bd);Rd.exports=bd;var ph=Rd.exports;/** + */(function(e){function t(T,M){var F=T.length;T.push(M);e:for(;0>>1,U=T[B];if(0>>1;Bi(ke,F))gei(pt,ke)?(T[B]=pt,T[ge]=F,B=ge):(T[B]=ke,T[re]=F,B=re);else if(gei(pt,F))T[B]=pt,T[ge]=F,B=ge;else break e}}return M}function i(T,M){var F=T.sortIndex-M.sortIndex;return F!==0?F:T.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],c=[],d=1,f=null,y=3,j=!1,v=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(T){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=T)r(c),M.sortIndex=M.expirationTime,t(u,M);else break;M=n(c)}}function x(T){if(g=!1,m(T),!v)if(n(u)!==null)v=!0,Mt(k);else{var M=n(c);M!==null&&Fe(x,M.startTime-T)}}function k(T,M){v=!1,g&&(g=!1,h(_),_=-1),j=!0;var F=y;try{for(m(M),f=n(u);f!==null&&(!(f.expirationTime>M)||T&&!H());){var B=f.callback;if(typeof B=="function"){f.callback=null,y=f.priorityLevel;var U=B(f.expirationTime<=M);M=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(u)&&r(u),m(M)}else r(u);f=n(u)}if(f!==null)var ae=!0;else{var re=n(c);re!==null&&Fe(x,re.startTime-M),ae=!1}return ae}finally{f=null,y=F,j=!1}}var C=!1,P=null,_=-1,b=5,L=-1;function H(){return!(e.unstable_now()-LT||125B?(T.sortIndex=F,t(c,T),n(u)===null&&T===n(c)&&(g?(h(_),_=-1):g=!0,Fe(x,F-B))):(T.sortIndex=U,t(u,T),v||j||(v=!0,Mt(k))),T},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(T){var M=y;return function(){var F=y;y=M;try{return T.apply(this,arguments)}finally{y=F}}}})(Ld);bd.exports=Ld;var mh=bd.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var Wm=Object.defineProperty;var Hm=(e,t,n)=>t in e?Wm(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var mh=E,$e=ph;function O(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"),mo=Object.prototype.hasOwnProperty,hh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bu={},Lu={};function yh(e){return mo.call(Lu,e)?!0:mo.call(bu,e)?!1:hh.test(e)?Lu[e]=!0:(bu[e]=!0,!1)}function vh(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 gh(e,t,n,r){if(t===null||typeof t>"u"||vh(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 Se(e,t,n,r,i,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new Se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fe[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oa=/[\-:]([a-z])/g;function Ta(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(Oa,Ta);fe[t]=new Se(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(Oa,Ta);fe[t]=new Se(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(Oa,Ta);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ra(e,t,n,r){var i=fe.hasOwnProperty(t)?fe[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ho=Object.prototype.hasOwnProperty,yh=/^[: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]*$/,Lu={},Mu={};function vh(e){return ho.call(Mu,e)?!0:ho.call(Lu,e)?!1:yh.test(e)?Mu[e]=!0:(Lu[e]=!0,!1)}function gh(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 xh(e,t,n,r){if(t===null||typeof t>"u"||gh(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 Se(e,t,n,r,i,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new Se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fe[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-:]([a-z])/g;function Ra(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(Ta,Ra);fe[t]=new Se(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(Ta,Ra);fe[t]=new Se(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(Ta,Ra);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function ba(e,t,n,r){var i=fe.hasOwnProperty(t)?fe[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==l[a]){var u=` -`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{Ts=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tr(e):""}function xh(e){switch(e.tag){case 5:return Tr(e.type);case 16:return Tr("Lazy");case 13:return Tr("Suspense");case 19:return Tr("SuspenseList");case 0:case 2:case 15:return e=Rs(e.type,!1),e;case 11:return e=Rs(e.type.render,!1),e;case 1:return e=Rs(e.type,!0),e;default:return""}}function go(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 An:return"Fragment";case In:return"Portal";case ho:return"Profiler";case ba:return"StrictMode";case yo:return"Suspense";case vo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fd:return(e.displayName||"Context")+".Consumer";case Md:return(e._context.displayName||"Context")+".Provider";case La:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ma:return t=e.displayName||null,t!==null?t:go(e.type)||"Memo";case It:t=e._payload,e=e._init;try{return go(e(t))}catch{}}return null}function wh(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 go(t);case 8:return t===ba?"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 rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Id(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jh(e){var t=Id(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 i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ri(e){e._valueTracker||(e._valueTracker=jh(e))}function Ad(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Id(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hl(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 xo(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(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 Dd(e,t){t=t.checked,t!=null&&Ra(e,"checked",t,!1)}function wo(e,t){Dd(e,t);var n=rn(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")?jo(e,t.type,n):t.hasOwnProperty("defaultValue")&&jo(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zu(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 jo(e,t,n){(t!=="number"||hl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rr=Array.isArray;function er(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fr={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},Nh=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){Nh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fr[t]=Fr[e]})});function Wd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+t).trim():t+"px"}function Hd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Sh=G({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 Eo(e,t){if(t){if(Sh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function ko(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 _o=null;function Fa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Co=null,tr=null,nr=null;function Du(e){if(e=wi(e)){if(typeof Co!="function")throw Error(O(280));var t=e.stateNode;t&&(t=ns(t),Co(e.stateNode,e.type,t))}}function Vd(e){tr?nr?nr.push(e):nr=[e]:tr=e}function qd(){if(tr){var e=tr,t=nr;if(nr=tr=null,Du(e),t)for(e=0;e>>=0,e===0?32:31-(Mh(e)/Fh|0)|0}var Li=64,Mi=4194304;function br(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 xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=br(a):(l&=s,l!==0&&(r=br(l)))}else s=n&~i,s!==0?r=br(s):l!==0&&(r=br(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&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 gi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function Dh(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=Ir),Ku=" ",Yu=!1;function pf(e,t){switch(e){case"keyup":return py.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function hy(e,t){switch(e){case"compositionend":return mf(t);case"keypress":return t.which!==32?null:(Yu=!0,Ku);case"textInput":return e=t.data,e===Ku&&Yu?null:e;default:return null}}function yy(e,t){if(Dn)return e==="compositionend"||!Wa&&pf(e,t)?(e=df(),Ji=Ba=Ht=null,Dn=!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=Zu(n)}}function gf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xf(){for(var e=window,t=hl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hl(e.document)}return t}function Ha(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 ky(e){var t=xf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gf(n.ownerDocument.documentElement,n)){if(r!==null&&Ha(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 i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=ec(n,l);var s=ec(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,Bn=null,Lo=null,Dr=null,Mo=!1;function tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mo||Bn==null||Bn!==hl(r)||(r=Bn,"selectionStart"in r&&Ha(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}),Dr&&ei(Dr,r)||(Dr=r,r=Nl(Lo,"onSelect"),0Wn||(e.current=Bo[Wn],Bo[Wn]=null,Wn--)}function W(e,t){Wn++,Bo[Wn]=e.current,e.current=t}var ln={},ve=an(ln),Oe=an(!1),kn=ln;function or(e,t){var n=e.type.contextTypes;if(!n)return ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Te(e){return e=e.childContextTypes,e!=null}function El(){q(Oe),q(ve)}function ac(e,t,n){if(ve.current!==ln)throw Error(O(168));W(ve,t),W(Oe,n)}function Pf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,wh(e)||"Unknown",i));return G({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,kn=ve.current,W(ve,e),W(Oe,Oe.current),!0}function uc(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Pf(e,t,kn),r.__reactInternalMemoizedMergedChildContext=e,q(Oe),q(ve),W(ve,e)):q(Oe),W(Oe,n)}var Nt=null,rs=!1,Vs=!1;function Of(e){Nt===null?Nt=[e]:Nt.push(e)}function Iy(e){rs=!0,Of(e)}function un(){if(!Vs&&Nt!==null){Vs=!0;var e=0,t=$;try{var n=Nt;for($=1;e>=s,i-=s,St=1<<32-ot(t)+i|n<_?(b=P,P=null):b=P.sibling;var L=y(h,P,m[_],x);if(L===null){P===null&&(P=b);break}e&&P&&L.alternate===null&&t(h,P),p=l(L,p,_),C===null?k=L:C.sibling=L,C=L,P=b}if(_===m.length)return n(h,P),K&&pn(h,_),k;if(P===null){for(;__?(b=P,P=null):b=P.sibling;var H=y(h,P,L.value,x);if(H===null){P===null&&(P=b);break}e&&P&&H.alternate===null&&t(h,P),p=l(H,p,_),C===null?k=H:C.sibling=H,C=H,P=b}if(L.done)return n(h,P),K&&pn(h,_),k;if(P===null){for(;!L.done;_++,L=m.next())L=f(h,L.value,x),L!==null&&(p=l(L,p,_),C===null?k=L:C.sibling=L,C=L);return K&&pn(h,_),k}for(P=r(h,P);!L.done;_++,L=m.next())L=j(P,h,_,L.value,x),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?_:L.key),p=l(L,p,_),C===null?k=L:C.sibling=L,C=L);return e&&P.forEach(function(Ee){return t(h,Ee)}),K&&pn(h,_),k}function w(h,p,m,x){if(typeof m=="object"&&m!==null&&m.type===An&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ti:e:{for(var k=m.key,C=p;C!==null;){if(C.key===k){if(k=m.type,k===An){if(C.tag===7){n(h,C.sibling),p=i(C,m.props.children),p.return=h,h=p;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===It&&fc(k)===C.type){n(h,C.sibling),p=i(C,m.props),p.ref=_r(h,C,m),p.return=h,h=p;break e}n(h,C);break}else t(h,C);C=C.sibling}m.type===An?(p=Nn(m.props.children,h.mode,x,m.key),p.return=h,h=p):(x=sl(m.type,m.key,m.props,null,h.mode,x),x.ref=_r(h,p,m),x.return=h,h=x)}return s(h);case In:e:{for(C=m.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=i(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Zs(m,h.mode,x),p.return=h,h=p}return s(h);case It:return C=m._init,w(h,p,C(m._payload),x)}if(Rr(m))return v(h,p,m,x);if(jr(m))return g(h,p,m,x);Ui(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,m),p.return=h,h=p):(n(h,p),p=Js(m,h.mode,x),p.return=h,h=p),s(h)):n(h,p)}return w}var ur=Lf(!0),Mf=Lf(!1),Pl=an(null),Ol=null,qn=null,Ka=null;function Ya(){Ka=qn=Ol=null}function Xa(e){var t=Pl.current;q(Pl),e._currentValue=t}function Wo(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 ir(e,t){Ol=e,Ka=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(Ka!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Ol===null)throw Error(O(308));qn=e,Ol.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var gn=null;function Ga(e){gn===null?gn=[e]:gn.push(e)}function Ff(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ga(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pt(e,r)}function Pt(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 At=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zf(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 kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Pt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ga(r)):(t.next=i.next,i.next=t),r.interleaved=t,Pt(e,n)}function el(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,Ia(e,n)}}function pc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,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 Tl(e,t,n,r){var i=e.updateQueue;At=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,c=u.next;u.next=null,s===null?l=c:s.next=c,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(l!==null){var f=i.baseState;s=0,d=c=u=null,a=l;do{var y=a.lane,j=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:j,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,g=a;switch(y=t,j=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){f=v.call(j,f,y);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,y=typeof v=="function"?v.call(j,f,y):v,y==null)break e;f=G({},f,y);break e;case 2:At=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else j={eventTime:j,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=j,u=f):d=d.next=j,s|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(d===null&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Pn|=s,e.lanes=s,e.memoizedState=f}}function mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Qs.transition;Qs.transition={};try{e(!1),t()}finally{$=n,Qs.transition=r}}function Zf(){return et().memoizedState}function Uy(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ep(e))tp(t,n);else if(n=Ff(e,t,n,r),n!==null){var i=je();at(n,e,r,i),np(n,t,r)}}function $y(e,t,n){var r=en(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ep(e))tp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,a=l(s,n);if(i.hasEagerState=!0,i.eagerState=a,ct(a,s)){var u=t.interleaved;u===null?(i.next=i,Ga(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Ff(e,t,i,r),n!==null&&(i=je(),at(n,e,r,i),np(n,t,r))}}function ep(e){var t=e.alternate;return e===X||t!==null&&t===X}function tp(e,t){Br=bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function np(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ia(e,n)}}var Ll={readContext:Ze,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},Wy={readContext:Ze,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:yc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,Kf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();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=Uy.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:hc,useDebugValue:su,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=hc(!1),t=e[0];return e=By.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=ht();if(K){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),oe===null)throw Error(O(349));Cn&30||Bf(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,yc($f.bind(null,r,l,e),[e]),r.flags|=2048,ai(9,Uf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=ht(),t=oe.identifierPrefix;if(K){var n=Et,r=St;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=si++,0")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{Rs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tr(e):""}function wh(e){switch(e.tag){case 5:return Tr(e.type);case 16:return Tr("Lazy");case 13:return Tr("Suspense");case 19:return Tr("SuspenseList");case 0:case 2:case 15:return e=bs(e.type,!1),e;case 11:return e=bs(e.type.render,!1),e;case 1:return e=bs(e.type,!0),e;default:return""}}function xo(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 Dn:return"Fragment";case In:return"Portal";case yo:return"Profiler";case La:return"StrictMode";case vo:return"Suspense";case go:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zd:return(e.displayName||"Context")+".Consumer";case Fd:return(e._context.displayName||"Context")+".Provider";case Ma:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fa:return t=e.displayName||null,t!==null?t:xo(e.type)||"Memo";case It:t=e._payload,e=e._init;try{return xo(e(t))}catch{}}return null}function jh(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 xo(t);case 8:return t===La?"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 rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nh(e){var t=Dd(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 i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ri(e){e._valueTracker||(e._valueTracker=Nh(e))}function Ad(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(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 wo(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(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 Bd(e,t){t=t.checked,t!=null&&ba(e,"checked",t,!1)}function jo(e,t){Bd(e,t);var n=rn(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")?No(e,t.type,n):t.hasOwnProperty("defaultValue")&&No(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Iu(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 No(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rr=Array.isArray;function er(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fr={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},Sh=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){Sh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fr[t]=Fr[e]})});function Hd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+t).trim():t+"px"}function Vd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Hd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Eh=G({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 ko(e,t){if(t){if(Eh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function _o(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 Co=null;function za(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Po=null,tr=null,nr=null;function Bu(e){if(e=wi(e)){if(typeof Po!="function")throw Error(O(280));var t=e.stateNode;t&&(t=rs(t),Po(e.stateNode,e.type,t))}}function qd(e){tr?nr?nr.push(e):nr=[e]:tr=e}function Qd(){if(tr){var e=tr,t=nr;if(nr=tr=null,Bu(e),t)for(e=0;e>>=0,e===0?32:31-(Fh(e)/zh|0)|0}var Li=64,Mi=4194304;function br(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 wl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=br(a):(l&=s,l!==0&&(r=br(l)))}else s=n&~i,s!==0?r=br(s):l!==0&&(r=br(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&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 gi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function Bh(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=Ir),Yu=" ",Xu=!1;function mf(e,t){switch(e){case"keyup":return my.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var An=!1;function yy(e,t){switch(e){case"compositionend":return hf(t);case"keypress":return t.which!==32?null:(Xu=!0,Yu);case"textInput":return e=t.data,e===Yu&&Xu?null:e;default:return null}}function vy(e,t){if(An)return e==="compositionend"||!Ha&&mf(e,t)?(e=ff(),Ji=Ua=Ht=null,An=!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=ec(n)}}function xf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wf(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function Va(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 _y(e){var t=wf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xf(n.ownerDocument.documentElement,n)){if(r!==null&&Va(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 i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=tc(n,l);var s=tc(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,Bn=null,Mo=null,Ar=null,Fo=!1;function nc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fo||Bn==null||Bn!==yl(r)||(r=Bn,"selectionStart"in r&&Va(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}),Ar&&ei(Ar,r)||(Ar=r,r=Sl(Mo,"onSelect"),0Wn||(e.current=Uo[Wn],Uo[Wn]=null,Wn--)}function W(e,t){Wn++,Uo[Wn]=e.current,e.current=t}var ln={},ve=an(ln),Oe=an(!1),_n=ln;function or(e,t){var n=e.type.contextTypes;if(!n)return ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Te(e){return e=e.childContextTypes,e!=null}function kl(){q(Oe),q(ve)}function uc(e,t,n){if(ve.current!==ln)throw Error(O(168));W(ve,t),W(Oe,n)}function Of(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,jh(e)||"Unknown",i));return G({},n,r)}function _l(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,_n=ve.current,W(ve,e),W(Oe,Oe.current),!0}function cc(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Of(e,t,_n),r.__reactInternalMemoizedMergedChildContext=e,q(Oe),q(ve),W(ve,e)):q(Oe),W(Oe,n)}var Nt=null,is=!1,qs=!1;function Tf(e){Nt===null?Nt=[e]:Nt.push(e)}function Dy(e){is=!0,Tf(e)}function un(){if(!qs&&Nt!==null){qs=!0;var e=0,t=$;try{var n=Nt;for($=1;e>=s,i-=s,St=1<<32-ot(t)+i|n<_?(b=P,P=null):b=P.sibling;var L=y(h,P,m[_],x);if(L===null){P===null&&(P=b);break}e&&P&&L.alternate===null&&t(h,P),p=l(L,p,_),C===null?k=L:C.sibling=L,C=L,P=b}if(_===m.length)return n(h,P),Q&&mn(h,_),k;if(P===null){for(;__?(b=P,P=null):b=P.sibling;var H=y(h,P,L.value,x);if(H===null){P===null&&(P=b);break}e&&P&&H.alternate===null&&t(h,P),p=l(H,p,_),C===null?k=H:C.sibling=H,C=H,P=b}if(L.done)return n(h,P),Q&&mn(h,_),k;if(P===null){for(;!L.done;_++,L=m.next())L=f(h,L.value,x),L!==null&&(p=l(L,p,_),C===null?k=L:C.sibling=L,C=L);return Q&&mn(h,_),k}for(P=r(h,P);!L.done;_++,L=m.next())L=j(P,h,_,L.value,x),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?_:L.key),p=l(L,p,_),C===null?k=L:C.sibling=L,C=L);return e&&P.forEach(function(Ee){return t(h,Ee)}),Q&&mn(h,_),k}function w(h,p,m,x){if(typeof m=="object"&&m!==null&&m.type===Dn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ti:e:{for(var k=m.key,C=p;C!==null;){if(C.key===k){if(k=m.type,k===Dn){if(C.tag===7){n(h,C.sibling),p=i(C,m.props.children),p.return=h,h=p;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===It&&pc(k)===C.type){n(h,C.sibling),p=i(C,m.props),p.ref=_r(h,C,m),p.return=h,h=p;break e}n(h,C);break}else t(h,C);C=C.sibling}m.type===Dn?(p=Sn(m.props.children,h.mode,x,m.key),p.return=h,h=p):(x=sl(m.type,m.key,m.props,null,h.mode,x),x.ref=_r(h,p,m),x.return=h,h=x)}return s(h);case In:e:{for(C=m.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=i(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=eo(m,h.mode,x),p.return=h,h=p}return s(h);case It:return C=m._init,w(h,p,C(m._payload),x)}if(Rr(m))return v(h,p,m,x);if(jr(m))return g(h,p,m,x);Ui(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,m),p.return=h,h=p):(n(h,p),p=Zs(m,h.mode,x),p.return=h,h=p),s(h)):n(h,p)}return w}var ur=Mf(!0),Ff=Mf(!1),Ol=an(null),Tl=null,qn=null,Ya=null;function Xa(){Ya=qn=Tl=null}function Ga(e){var t=Ol.current;q(Ol),e._currentValue=t}function Ho(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 ir(e,t){Tl=e,Ya=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(Ya!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Tl===null)throw Error(O(308));qn=e,Tl.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var xn=null;function Ja(e){xn===null?xn=[e]:xn.push(e)}function zf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ja(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pt(e,r)}function Pt(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 Dt=!1;function Za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function If(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 kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Pt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ja(r)):(t.next=i.next,i.next=t),r.interleaved=t,Pt(e,n)}function el(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,Da(e,n)}}function mc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,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 Rl(e,t,n,r){var i=e.updateQueue;Dt=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,c=u.next;u.next=null,s===null?l=c:s.next=c,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(l!==null){var f=i.baseState;s=0,d=c=u=null,a=l;do{var y=a.lane,j=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:j,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,g=a;switch(y=t,j=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){f=v.call(j,f,y);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,y=typeof v=="function"?v.call(j,f,y):v,y==null)break e;f=G({},f,y);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else j={eventTime:j,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=j,u=f):d=d.next=j,s|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(d===null&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);On|=s,e.lanes=s,e.memoizedState=f}}function hc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ks.transition;Ks.transition={};try{e(!1),t()}finally{$=n,Ks.transition=r}}function ep(){return et().memoizedState}function $y(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tp(e))np(t,n);else if(n=zf(e,t,n,r),n!==null){var i=je();at(n,e,r,i),rp(n,t,r)}}function Wy(e,t,n){var r=en(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tp(e))np(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,a=l(s,n);if(i.hasEagerState=!0,i.eagerState=a,ct(a,s)){var u=t.interleaved;u===null?(i.next=i,Ja(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=zf(e,t,i,r),n!==null&&(i=je(),at(n,e,r,i),rp(n,t,r))}}function tp(e){var t=e.alternate;return e===X||t!==null&&t===X}function np(e,t){Br=Ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Da(e,n)}}var Ml={readContext:Ze,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},Hy={readContext:Ze,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:vc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,Yf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();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=$y.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:yc,useDebugValue:ou,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=yc(!1),t=e[0];return e=Uy.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=ht();if(Q){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),oe===null)throw Error(O(349));Pn&30||Uf(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,vc(Wf.bind(null,r,l,e),[e]),r.flags|=2048,ai(9,$f.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=ht(),t=oe.identifierPrefix;if(Q){var n=Et,r=St;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=si++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[vt]=t,e[ri]=r,fp(e,t,!1,!1),t.stateNode=e;e:{switch(s=ko(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;ifr&&(t.flags|=128,r=!0,Cr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Rl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!K)return me(t),null}else 2*ee()-l.renderingStartTime>fr&&n!==1073741824&&(t.flags|=128,r=!0,Cr(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ee(),t.sibling=null,n=Y.current,W(Y,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return fu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Gy(e,t){switch(qa(t),t.tag){case 1:return Te(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cr(),q(Oe),q(ve),tu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return eu(t),null;case 13:if(q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Y),null;case 4:return cr(),null;case 10:return Xa(t.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var Wi=!1,ye=!1,Jy=typeof WeakSet=="function"?WeakSet:Set,R=null;function Qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function Jo(e,t,n){try{n()}catch(r){J(e,t,r)}}var Cc=!1;function Zy(e,t){if(Fo=wl,e=xf(),Ha(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 i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,c=0,d=0,f=e,y=null;t:for(;;){for(var j;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==l||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(j=f.firstChild)!==null;)y=f,f=j;for(;;){if(f===e)break t;if(y===n&&++c===i&&(a=s),y===l&&++d===r&&(u=s),(j=f.nextSibling)!==null)break;f=y,y=f.parentNode}f=j}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(zo={focusedElem:e,selectionRange:n},wl=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;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 g=v.memoizedProps,w=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:rt(t.type,g),w);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(x){J(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return v=Cc,Cc=!1,v}function Ur(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Jo(t,n,l)}i=i.next}while(i!==r)}}function ss(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 Zo(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[vt],delete t[ri],delete t[Do],delete t[Fy],delete t[zy])),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 yp(e){return e.tag===5||e.tag===3||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yp(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=Sl));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 ta(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(ta(e,t,n),e=e.sibling;e!==null;)ta(e,t,n),e=e.sibling}var ce=null,it=!1;function Ft(e,t,n){for(n=n.child;n!==null;)vp(e,t,n),n=n.sibling}function vp(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Jl,n)}catch{}switch(n.tag){case 5:ye||Qn(n,t);case 6:var r=ce,i=it;ce=null,Ft(e,t,n),ce=r,it=i,ce!==null&&(it?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(it?(e=ce,n=n.stateNode,e.nodeType===8?Hs(e.parentNode,n):e.nodeType===1&&Hs(e,n),Jr(e)):Hs(ce,n.stateNode));break;case 4:r=ce,i=it,ce=n.stateNode.containerInfo,it=!0,Ft(e,t,n),ce=r,it=i;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&Jo(n,t,s),i=i.next}while(i!==r)}Ft(e,t,n);break;case 1:if(!ye&&(Qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){J(n,t,a)}Ft(e,t,n);break;case 21:Ft(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,Ft(e,t,n),ye=r):Ft(e,t,n);break;default:Ft(e,t,n)}}function Oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jy),t.forEach(function(r){var i=a0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~l}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*t0(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,zl=0,D&6)throw Error(O(331));var i=D;for(D|=4,R=e.current;R!==null;){var l=R,s=l.child;if(R.flags&16){var a=l.deletions;if(a!==null){for(var u=0;uee()-cu?jn(e,0):uu|=n),Re(e,t)}function kp(e,t){t===0&&(e.mode&1?(t=Mi,Mi<<=1,!(Mi&130023424)&&(Mi=4194304)):t=1);var n=je();e=Pt(e,t),e!==null&&(gi(e,t,n),Re(e,n))}function o0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kp(e,n)}function a0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),kp(e,n)}var _p;_p=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,Yy(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,K&&t.flags&1048576&&Tf(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rl(e,t),e=t.pendingProps;var i=or(t,ve.current);ir(t,n),i=ru(null,t,r,e,i,n);var l=iu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Te(r)?(l=!0,kl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ja(t),i.updater=ls,t.stateNode=i,i._reactInternals=t,Vo(t,r,e,n),t=Ko(null,t,r,!0,l,n)):(t.tag=0,K&&l&&Va(t),xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=c0(r),e=rt(r,e),i){case 0:t=Qo(null,t,r,e,n);break e;case 1:t=Ec(null,t,r,e,n);break e;case 11:t=Nc(null,t,r,e,n);break e;case 14:t=Sc(null,t,r,rt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Qo(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Ec(e,t,r,i,n);case 3:e:{if(up(t),e===null)throw Error(O(387));r=t.pendingProps,l=t.memoizedState,i=l.element,zf(e,t),Tl(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=dr(Error(O(423)),t),t=kc(e,t,r,n,i);break e}else if(r!==i){i=dr(Error(O(424)),t),t=kc(e,t,r,n,i);break e}else for(Ie=Gt(t.stateNode.containerInfo.firstChild),Be=t,K=!0,lt=null,n=Mf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ar(),r===i){t=Ot(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return If(t),e===null&&$o(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,Io(r,i)?s=null:l!==null&&Io(r,l)&&(t.flags|=32),ap(e,t),xe(e,t,s,n),t.child;case 6:return e===null&&$o(t),null;case 13:return cp(e,t,n);case 4:return Za(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Nc(e,t,r,i,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,W(Pl,r._currentValue),r._currentValue=s,l!==null)if(ct(l.value,s)){if(l.children===i.children&&!Oe.current){t=Ot(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=kt(-1,n&-n),u.tag=2;var c=l.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}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Wo(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(O(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Wo(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ir(t,n),i=Ze(i),r=r(i),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),Sc(e,t,r,i,n);case 15:return sp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),rl(e,t),t.tag=1,Te(r)?(e=!0,kl(t)):e=!1,ir(t,n),rp(t,r,i),Vo(t,r,i,n),Ko(null,t,r,!0,e,n);case 19:return dp(e,t,n);case 22:return op(e,t,n)}throw Error(O(156,t.tag))};function Cp(e,t){return Zd(e,t)}function u0(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 Ge(e,t,n,r){return new u0(e,t,n,r)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function c0(e){if(typeof e=="function")return mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===La)return 11;if(e===Ma)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=Ge(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 sl(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")mu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case An:return Nn(n.children,i,l,t);case ba:s=8,i|=8;break;case ho:return e=Ge(12,n,t,i|2),e.elementType=ho,e.lanes=l,e;case yo:return e=Ge(13,n,t,i),e.elementType=yo,e.lanes=l,e;case vo:return e=Ge(19,n,t,i),e.elementType=vo,e.lanes=l,e;case zd:return as(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Md:s=10;break e;case Fd:s=9;break e;case La:s=11;break e;case Ma:s=14;break e;case It:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Ge(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Nn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function as(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=zd,e.lanes=n,e.stateNode={isHidden:!1},e}function Js(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Zs(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function d0(e,t,n,r,i){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=Ls(0),this.expirationTimes=Ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ls(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hu(e,t,n,r,i,l,s,a,u){return e=new d0(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ge(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ja(l),e}function f0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rp)}catch(e){console.error(e)}}Rp(),Td.exports=Ve;var v0=Td.exports,bp,Ic=v0;bp=Ic.createRoot,Ic.hydrateRoot;var Lp={exports:{}},Mp={};/** +`+l.stack}return{value:e,source:t,stack:i,digest:null}}function Gs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qy=typeof WeakMap=="function"?WeakMap:Map;function lp(e,t,n){n=kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zl||(zl=!0,ra=r),Qo(e,t)},n}function sp(e,t,n){n=kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Qo(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Qo(e,t),typeof r!="function"&&(Zt===null?Zt=new Set([this]):Zt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function wc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qy;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=o0.bind(null,e,t,n),t.then(e,e))}function jc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Nc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=kt(-1,1),t.tag=2,Jt(n,t,1))),n.lanes|=1),e)}var Ky=Rt.ReactCurrentOwner,Pe=!1;function xe(e,t,n,r){t.child=e===null?Ff(t,null,n,r):ur(t,e.child,n,r)}function Sc(e,t,n,r,i){n=n.render;var l=t.ref;return ir(t,i),r=iu(e,t,n,r,l,i),n=lu(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ot(e,t,i)):(Q&&n&&qa(t),t.flags|=1,xe(e,t,r,i),t.child)}function Ec(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!hu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,op(e,t,l,r,i)):(e=sl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:ei,n(s,r)&&e.ref===t.ref)return Ot(e,t,i)}return t.flags|=1,e=tn(l,r),e.ref=t.ref,e.return=t,t.child=e}function op(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ei(l,r)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Pe=!0);else return t.lanes=e.lanes,Ot(e,t,i)}return Ko(e,t,n,r,i)}function ap(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(Kn,ze),ze|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(Kn,ze),ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,W(Kn,ze),ze|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,W(Kn,ze),ze|=r;return xe(e,t,i,n),t.child}function up(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ko(e,t,n,r,i){var l=Te(n)?_n:ve.current;return l=or(t,l),ir(t,i),n=iu(e,t,n,r,l,i),r=lu(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ot(e,t,i)):(Q&&r&&qa(t),t.flags|=1,xe(e,t,n,i),t.child)}function kc(e,t,n,r,i){if(Te(n)){var l=!0;_l(t)}else l=!1;if(ir(t,i),t.stateNode===null)rl(e,t),ip(t,n,r),qo(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ze(c):(c=Te(n)?_n:ve.current,c=or(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||u!==c)&&xc(t,s,r,c),Dt=!1;var y=t.memoizedState;s.state=y,Rl(t,r,s,i),u=t.memoizedState,a!==r||y!==u||Oe.current||Dt?(typeof d=="function"&&(Vo(t,n,d,r),u=t.memoizedState),(a=Dt||gc(t,n,a,r,y,u,c))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,If(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:rt(t.type,a),s.props=c,f=t.pendingProps,y=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ze(u):(u=Te(n)?_n:ve.current,u=or(t,u));var j=n.getDerivedStateFromProps;(d=typeof j=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||y!==u)&&xc(t,s,r,u),Dt=!1,y=t.memoizedState,s.state=y,Rl(t,r,s,i);var v=t.memoizedState;a!==f||y!==v||Oe.current||Dt?(typeof j=="function"&&(Vo(t,n,j,r),v=t.memoizedState),(c=Dt||gc(t,n,c,r,y,v,u)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return Yo(e,t,n,r,l,i)}function Yo(e,t,n,r,i,l){up(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&cc(t,n,!1),Ot(e,t,l);r=t.stateNode,Ky.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ur(t,e.child,null,l),t.child=ur(t,null,a,l)):xe(e,t,a,l),t.memoizedState=r.state,i&&cc(t,n,!0),t.child}function cp(e){var t=e.stateNode;t.pendingContext?uc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uc(e,t.context,!1),eu(e,t.containerInfo)}function _c(e,t,n,r,i){return ar(),Ka(i),t.flags|=256,xe(e,t,n,r),t.child}var Xo={dehydrated:null,treeContext:null,retryLane:0};function Go(e){return{baseLanes:e,cachePool:null,transitions:null}}function dp(e,t,n){var r=t.pendingProps,i=Y.current,l=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),W(Y,i&1),e===null)return Wo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=us(s,r,0,null),e=Sn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Go(n),t.memoizedState=Xo,e):au(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Yy(e,t,s,r,a,i,n);if(l){l=r.fallback,s=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=tn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=tn(a,l):(l=Sn(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?Go(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Xo,r}return l=e.child,e=l.sibling,r=tn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function au(e,t){return t=us({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $i(e,t,n,r){return r!==null&&Ka(r),ur(t,e.child,null,n),e=au(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yy(e,t,n,r,i,l,s){if(n)return t.flags&256?(t.flags&=-257,r=Gs(Error(O(422))),$i(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=us({mode:"visible",children:r.children},i,0,null),l=Sn(l,i,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&ur(t,e.child,null,s),t.child.memoizedState=Go(s),t.memoizedState=Xo,l);if(!(t.mode&1))return $i(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(O(419)),r=Gs(l,r,void 0),$i(e,t,s,r)}if(a=(s&e.childLanes)!==0,Pe||a){if(r=oe,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Pt(e,i),at(r,e,i,-1))}return mu(),r=Gs(Error(O(421))),$i(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=a0.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Ie=Gt(i.nextSibling),Be=t,Q=!0,lt=null,e!==null&&(Ye[Xe++]=St,Ye[Xe++]=Et,Ye[Xe++]=Cn,St=e.id,Et=e.overflow,Cn=t),t=au(t,r.children),t.flags|=4096,t)}function Cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ho(e.return,t,n)}function Js(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function fp(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(xe(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cc(e,n,t);else if(e.tag===19)Cc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(W(Y,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&bl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Js(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Js(t,!0,n,null,l);break;case"together":Js(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ot(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Xy(e,t,n){switch(t.tag){case 3:cp(t),ar();break;case 5:Df(t);break;case 1:Te(t.type)&&_l(t);break;case 4:eu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;W(Ol,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?dp(e,t,n):(W(Y,Y.current&1),e=Ot(e,t,n),e!==null?e.sibling:null);W(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,ap(e,t,n)}return Ot(e,t,n)}var pp,Jo,mp,hp;pp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Jo=function(){};mp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,wn(xt.current);var l=null;switch(n){case"input":i=wo(e,i),r=wo(e,r),l=[];break;case"select":i=G({},i,{value:void 0}),r=G({},r,{value:void 0}),l=[];break;case"textarea":i=So(e,i),r=So(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=El)}ko(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Qr.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(l||(l=[]),l.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Qr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&V("scroll",e),l||a===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};hp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Cr(e,t){if(!Q)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gy(e,t,n){var r=t.pendingProps;switch(Qa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return Te(t.type)&&kl(),me(t),null;case 3:return r=t.stateNode,cr(),q(Oe),q(ve),nu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,lt!==null&&(sa(lt),lt=null))),Jo(e,t),me(t),null;case 5:tu(t);var i=wn(li.current);if(n=t.type,e!==null&&t.stateNode!=null)mp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return me(t),null}if(e=wn(xt.current),Bi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[vt]=t,r[ri]=l,e=(t.mode&1)!==0,n){case"dialog":V("cancel",r),V("close",r);break;case"iframe":case"object":case"embed":V("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[vt]=t,e[ri]=r,pp(e,t,!1,!1),t.stateNode=e;e:{switch(s=_o(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;ifr&&(t.flags|=128,r=!0,Cr(l,!1),t.lanes=4194304)}else{if(!r)if(e=bl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Q)return me(t),null}else 2*ee()-l.renderingStartTime>fr&&n!==1073741824&&(t.flags|=128,r=!0,Cr(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ee(),t.sibling=null,n=Y.current,W(Y,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Jy(e,t){switch(Qa(t),t.tag){case 1:return Te(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cr(),q(Oe),q(ve),nu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tu(t),null;case 13:if(q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Y),null;case 4:return cr(),null;case 10:return Ga(t.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var Wi=!1,ye=!1,Zy=typeof WeakSet=="function"?WeakSet:Set,R=null;function Qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function Zo(e,t,n){try{n()}catch(r){J(e,t,r)}}var Pc=!1;function e0(e,t){if(zo=jl,e=wf(),Va(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 i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,c=0,d=0,f=e,y=null;t:for(;;){for(var j;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==l||r!==0&&f.nodeType!==3||(u=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(j=f.firstChild)!==null;)y=f,f=j;for(;;){if(f===e)break t;if(y===n&&++c===i&&(a=s),y===l&&++d===r&&(u=s),(j=f.nextSibling)!==null)break;f=y,y=f.parentNode}f=j}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Io={focusedElem:e,selectionRange:n},jl=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;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 g=v.memoizedProps,w=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:rt(t.type,g),w);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(x){J(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return v=Pc,Pc=!1,v}function Ur(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Zo(t,n,l)}i=i.next}while(i!==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 ea(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 yp(e){var t=e.alternate;t!==null&&(e.alternate=null,yp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vt],delete t[ri],delete t[Bo],delete t[zy],delete t[Iy])),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 vp(e){return e.tag===5||e.tag===3||e.tag===4}function Oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vp(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 ta(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=El));else if(r!==4&&(e=e.child,e!==null))for(ta(e,t,n),e=e.sibling;e!==null;)ta(e,t,n),e=e.sibling}function na(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(na(e,t,n),e=e.sibling;e!==null;)na(e,t,n),e=e.sibling}var ce=null,it=!1;function Ft(e,t,n){for(n=n.child;n!==null;)gp(e,t,n),n=n.sibling}function gp(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Zl,n)}catch{}switch(n.tag){case 5:ye||Qn(n,t);case 6:var r=ce,i=it;ce=null,Ft(e,t,n),ce=r,it=i,ce!==null&&(it?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(it?(e=ce,n=n.stateNode,e.nodeType===8?Vs(e.parentNode,n):e.nodeType===1&&Vs(e,n),Jr(e)):Vs(ce,n.stateNode));break;case 4:r=ce,i=it,ce=n.stateNode.containerInfo,it=!0,Ft(e,t,n),ce=r,it=i;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&Zo(n,t,s),i=i.next}while(i!==r)}Ft(e,t,n);break;case 1:if(!ye&&(Qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){J(n,t,a)}Ft(e,t,n);break;case 21:Ft(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,Ft(e,t,n),ye=r):Ft(e,t,n);break;default:Ft(e,t,n)}}function Tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zy),t.forEach(function(r){var i=u0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~l}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*n0(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,Il=0,A&6)throw Error(O(331));var i=A;for(A|=4,R=e.current;R!==null;){var l=R,s=l.child;if(R.flags&16){var a=l.deletions;if(a!==null){for(var u=0;uee()-du?Nn(e,0):cu|=n),Re(e,t)}function _p(e,t){t===0&&(e.mode&1?(t=Mi,Mi<<=1,!(Mi&130023424)&&(Mi=4194304)):t=1);var n=je();e=Pt(e,t),e!==null&&(gi(e,t,n),Re(e,n))}function a0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_p(e,n)}function u0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),_p(e,n)}var Cp;Cp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,Xy(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,Q&&t.flags&1048576&&Rf(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rl(e,t),e=t.pendingProps;var i=or(t,ve.current);ir(t,n),i=iu(null,t,r,e,i,n);var l=lu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Te(r)?(l=!0,_l(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Za(t),i.updater=ss,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=Yo(null,t,r,!0,l,n)):(t.tag=0,Q&&l&&qa(t),xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=d0(r),e=rt(r,e),i){case 0:t=Ko(null,t,r,e,n);break e;case 1:t=kc(null,t,r,e,n);break e;case 11:t=Sc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,rt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Ko(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),kc(e,t,r,i,n);case 3:e:{if(cp(t),e===null)throw Error(O(387));r=t.pendingProps,l=t.memoizedState,i=l.element,If(e,t),Rl(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=dr(Error(O(423)),t),t=_c(e,t,r,n,i);break e}else if(r!==i){i=dr(Error(O(424)),t),t=_c(e,t,r,n,i);break e}else for(Ie=Gt(t.stateNode.containerInfo.firstChild),Be=t,Q=!0,lt=null,n=Ff(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ar(),r===i){t=Ot(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return Df(t),e===null&&Wo(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,Do(r,i)?s=null:l!==null&&Do(r,l)&&(t.flags|=32),up(e,t),xe(e,t,s,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return dp(e,t,n);case 4:return eu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Sc(e,t,r,i,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,W(Ol,r._currentValue),r._currentValue=s,l!==null)if(ct(l.value,s)){if(l.children===i.children&&!Oe.current){t=Ot(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=kt(-1,n&-n),u.tag=2;var c=l.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}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Ho(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(O(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ho(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ir(t,n),i=Ze(i),r=r(i),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),Ec(e,t,r,i,n);case 15:return op(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),rl(e,t),t.tag=1,Te(r)?(e=!0,_l(t)):e=!1,ir(t,n),ip(t,r,i),qo(t,r,i,n),Yo(null,t,r,!0,e,n);case 19:return fp(e,t,n);case 22:return ap(e,t,n)}throw Error(O(156,t.tag))};function Pp(e,t){return ef(e,t)}function c0(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 Ge(e,t,n,r){return new c0(e,t,n,r)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d0(e){if(typeof e=="function")return hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ma)return 11;if(e===Fa)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=Ge(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 sl(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")hu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Dn:return Sn(n.children,i,l,t);case La:s=8,i|=8;break;case yo:return e=Ge(12,n,t,i|2),e.elementType=yo,e.lanes=l,e;case vo:return e=Ge(13,n,t,i),e.elementType=vo,e.lanes=l,e;case go:return e=Ge(19,n,t,i),e.elementType=go,e.lanes=l,e;case Id:return us(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fd:s=10;break e;case zd:s=9;break e;case Ma:s=11;break e;case Fa:s=14;break e;case It:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Ge(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Sn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function us(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Id,e.lanes=n,e.stateNode={isHidden:!1},e}function Zs(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function eo(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function f0(e,t,n,r,i){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=Ms(0),this.expirationTimes=Ms(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ms(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function yu(e,t,n,r,i,l,s,a,u){return e=new f0(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ge(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Za(l),e}function p0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bp)}catch(e){console.error(e)}}bp(),Rd.exports=Ve;var g0=Rd.exports,Lp,Dc=g0;Lp=Dc.createRoot,Dc.hydrateRoot;var Mp={exports:{}},Fp={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -45,12 +45,12 @@ Error generating stack: `+l.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ni=E;function g0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var x0=typeof Object.is=="function"?Object.is:g0,w0=Ni.useSyncExternalStore,j0=Ni.useRef,N0=Ni.useEffect,S0=Ni.useMemo,E0=Ni.useDebugValue;Mp.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=j0(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=S0(function(){function u(j){if(!c){if(c=!0,d=j,j=r(j),i!==void 0&&s.hasValue){var v=s.value;if(i(v,j))return f=v}return f=j}if(v=f,x0(d,j))return v;var g=r(j);return i!==void 0&&i(v,g)?v:(d=j,f=g)}var c=!1,d,f,y=n===void 0?null:n;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,n,r,i]);var a=w0(e,l[0],l[1]);return N0(function(){s.hasValue=!0,s.value=a},[a]),E0(a),a};Lp.exports=Mp;var k0=Lp.exports,Ae="default"in po?N:po,Ac=Symbol.for("react-redux-context"),Dc=typeof globalThis<"u"?globalThis:{};function _0(){if(!Ae.createContext)return{};const e=Dc[Ac]??(Dc[Ac]=new Map);let t=e.get(Ae.createContext);return t||(t=Ae.createContext(null),e.set(Ae.createContext,t)),t}var sn=_0(),C0=()=>{throw new Error("uSES not initialized!")};function xu(e=sn){return function(){return Ae.useContext(e)}}var Fp=xu(),zp=C0,P0=e=>{zp=e},O0=(e,t)=>e===t;function T0(e=sn){const t=e===sn?Fp:xu(e),n=(r,i={})=>{const{equalityFn:l=O0,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:f}=t();Ae.useRef(!0);const y=Ae.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,s.stabilityCheck]),j=zp(u.addNestedSub,a.getState,c||a.getState,y,l);return Ae.useDebugValue(j),j};return Object.assign(n,{withTypes:()=>n}),n}var dt=T0();function R0(e){e()}function b0(){let e=null,t=null;return{clear(){e=null,t=null},notify(){R0(()=>{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 i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Bc={notify(){},get:()=>[]};function L0(e,t){let n,r=Bc,i=0,l=!1;function s(g){d();const w=r.subscribe(g);let h=!1;return()=>{h||(h=!0,w(),f())}}function a(){r.notify()}function u(){v.onStateChange&&v.onStateChange()}function c(){return l}function d(){i++,n||(n=e.subscribe(u),r=b0())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Bc)}function y(){l||(l=!0,d())}function j(){l&&(l=!1,f())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:c,trySubscribe:y,tryUnsubscribe:j,getListeners:()=>r};return v}var M0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F0=typeof navigator<"u"&&navigator.product==="ReactNative",z0=M0||F0?Ae.useLayoutEffect:Ae.useEffect;function I0({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const s=Ae.useMemo(()=>{const c=L0(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),a=Ae.useMemo(()=>e.getState(),[e]);z0(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const u=t||sn;return Ae.createElement(u.Provider,{value:s},n)}var A0=I0;function Ip(e=sn){const t=e===sn?Fp:xu(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var D0=Ip();function B0(e=sn){const t=e===sn?D0:Ip(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var cn=B0();P0(k0.useSyncExternalStoreWithSelector);function ue(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 U0=typeof Symbol=="function"&&Symbol.observable||"@@observable",Uc=U0,eo=()=>Math.random().toString(36).substring(7).split("").join("."),$0={INIT:`@@redux/INIT${eo()}`,REPLACE:`@@redux/REPLACE${eo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${eo()}`},Dl=$0;function wu(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 Ap(e,t,n){if(typeof e!="function")throw new Error(ue(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ue(1));return n(Ap)(e,t)}let r=e,i=t,l=new Map,s=l,a=0,u=!1;function c(){s===l&&(s=new Map,l.forEach((w,h)=>{s.set(h,w)}))}function d(){if(u)throw new Error(ue(3));return i}function f(w){if(typeof w!="function")throw new Error(ue(4));if(u)throw new Error(ue(5));let h=!0;c();const p=a++;return s.set(p,w),function(){if(h){if(u)throw new Error(ue(6));h=!1,c(),s.delete(p),l=null}}}function y(w){if(!wu(w))throw new Error(ue(7));if(typeof w.type>"u")throw new Error(ue(8));if(typeof w.type!="string")throw new Error(ue(17));if(u)throw new Error(ue(9));try{u=!0,i=r(i,w)}finally{u=!1}return(l=s).forEach(p=>{p()}),w}function j(w){if(typeof w!="function")throw new Error(ue(10));r=w,y({type:Dl.REPLACE})}function v(){const w=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(ue(11));function p(){const x=h;x.next&&x.next(d())}return p(),{unsubscribe:w(p)}},[Uc](){return this}}}return y({type:Dl.INIT}),{dispatch:y,subscribe:f,getState:d,replaceReducer:j,[Uc]:v}}function W0(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Dl.INIT})>"u")throw new Error(ue(12));if(typeof n(void 0,{type:Dl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function H0(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(ue(14));c[f]=v,u=u||v!==j}return u=u||r.length!==Object.keys(s).length,u?c:s}}function Bl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function V0(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(ue(15))};const s={getState:i.getState,dispatch:(u,...c)=>l(u,...c)},a=e.map(u=>u(s));return l=Bl(...a)(i.dispatch),{...i,dispatch:l}}}function q0(e){return wu(e)&&"type"in e&&typeof e.type=="string"}var Dp=Symbol.for("immer-nothing"),$c=Symbol.for("immer-draftable"),We=Symbol.for("immer-state");function st(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var pr=Object.getPrototypeOf;function Tn(e){return!!e&&!!e[We]}function Tt(e){var t;return e?Bp(e)||Array.isArray(e)||!!e[$c]||!!((t=e.constructor)!=null&&t[$c])||ms(e)||hs(e):!1}var Q0=Object.prototype.constructor.toString();function Bp(e){if(!e||typeof e!="object")return!1;const t=pr(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)===Q0}function Ul(e,t){ps(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ps(e){const t=e[We];return t?t.type_:Array.isArray(e)?1:ms(e)?2:hs(e)?3:0}function sa(e,t){return ps(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Up(e,t,n){const r=ps(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function K0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ms(e){return e instanceof Map}function hs(e){return e instanceof Set}function hn(e){return e.copy_||e.base_}function oa(e,t){if(ms(e))return new Map(e);if(hs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Bp(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[We];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=Y0),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>ju(r,!0))),e}function Y0(){st(2)}function ys(e){return Object.isFrozen(e)}var X0={};function Rn(e){const t=X0[e];return t||st(0,e),t}var ci;function $p(){return ci}function G0(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Wc(e,t){t&&(Rn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function aa(e){ua(e),e.drafts_.forEach(J0),e.drafts_=null}function ua(e){e===ci&&(ci=e.parent_)}function Hc(e){return ci=G0(ci,e)}function J0(e){const t=e[We];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[We].modified_&&(aa(t),st(4)),Tt(e)&&(e=$l(t,e),t.parent_||Wl(t,e)),t.patches_&&Rn("Patches").generateReplacementPatches_(n[We].base_,e,t.patches_,t.inversePatches_)):e=$l(t,n,[]),aa(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Dp?e:void 0}function $l(e,t,n){if(ys(t))return t;const r=t[We];if(!r)return Ul(t,(i,l)=>qc(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Wl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,s=!1;r.type_===3&&(l=new Set(i),i.clear(),s=!0),Ul(l,(a,u)=>qc(e,r,i,a,u,n,s)),Wl(e,i,!1),n&&e.patches_&&Rn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function qc(e,t,n,r,i,l,s){if(Tn(i)){const a=l&&t&&t.type_!==3&&!sa(t.assigned_,r)?l.concat(r):void 0,u=$l(e,i,a);if(Up(n,r,u),Tn(u))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Tt(i)&&!ys(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$l(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Wl(e,i)}}function Wl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ju(t,n)}function Z0(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$p(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=Nu;n&&(i=[r],l=di);const{revoke:s,proxy:a}=Proxy.revocable(i,l);return r.draft_=a,r.revoke_=s,a}var Nu={get(e,t){if(t===We)return e;const n=hn(e);if(!sa(n,t))return ev(e,n,t);const r=n[t];return e.finalized_||!Tt(r)?r:r===to(e.base_,t)?(no(e),e.copy_[t]=da(r,e)):r},has(e,t){return t in hn(e)},ownKeys(e){return Reflect.ownKeys(hn(e))},set(e,t,n){const r=Wp(hn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=to(hn(e),t),l=i==null?void 0:i[We];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(K0(n,i)&&(n!==void 0||sa(e.base_,t)))return!0;no(e),ca(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 to(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,no(e),ca(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=hn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){st(11)},getPrototypeOf(e){return pr(e.base_)},setPrototypeOf(){st(12)}},di={};Ul(Nu,(e,t)=>{di[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});di.deleteProperty=function(e,t){return di.set.call(this,e,t,void 0)};di.set=function(e,t,n){return Nu.set.call(this,e[0],t,n,e[0])};function to(e,t){const n=e[We];return(n?hn(n):e)[t]}function ev(e,t,n){var i;const r=Wp(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Wp(e,t){if(!(t in e))return;let n=pr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=pr(n)}}function ca(e){e.modified_||(e.modified_=!0,e.parent_&&ca(e.parent_))}function no(e){e.copy_||(e.copy_=oa(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var tv=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const s=this;return function(u=l,...c){return s.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&st(6),r!==void 0&&typeof r!="function"&&st(7);let i;if(Tt(t)){const l=Hc(this),s=da(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?aa(l):ua(l)}return Wc(l,r),Vc(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Dp&&(i=void 0),this.autoFreeze_&&ju(i,!0),r){const l=[],s=[];Rn("Patches").generateReplacementPatches_(t,i,l,s),r(l,s)}return i}else st(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},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){Tt(e)||st(8),Tn(e)&&(e=nv(e));const t=Hc(this),n=da(e,void 0);return n[We].isManual_=!0,ua(t),n}finishDraft(e,t){const n=e&&e[We];(!n||!n.isManual_)&&st(9);const{scope_:r}=n;return Wc(r,t),Vc(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 i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Rn("Patches").applyPatches_;return Tn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function da(e,t){const n=ms(e)?Rn("MapSet").proxyMap_(e,t):hs(e)?Rn("MapSet").proxySet_(e,t):Z0(e,t);return(t?t.scope_:$p()).drafts_.push(n),n}function nv(e){return Tn(e)||st(10,e),Hp(e)}function Hp(e){if(!Tt(e)||ys(e))return e;const t=e[We];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=oa(e,t.scope_.immer_.useStrictShallowCopy_)}else n=oa(e,!0);return Ul(n,(r,i)=>{Up(n,r,Hp(i))}),t&&(t.finalized_=!1),n}var He=new tv,Vp=He.produce;He.produceWithPatches.bind(He);He.setAutoFreeze.bind(He);He.setUseStrictShallowCopy.bind(He);He.applyPatches.bind(He);He.createDraft.bind(He);He.finishDraft.bind(He);function qp(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var rv=qp(),iv=qp,lv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bl:Bl.apply(null,arguments)},sv=e=>e&&typeof e.match=="function";function Hr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(ut(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>q0(r)&&r.type===e,n}var Qp=class Mr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Mr.prototype)}static get[Symbol.species](){return Mr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Mr(...t[0].concat(this)):new Mr(...t.concat(this))}};function Qc(e){return Tt(e)?Vp(e,()=>{}):e}function Kc(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(ut(10));const r=n.insert(t,e);return e.set(t,r),r}function ov(e){return typeof e=="boolean"}var av=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let s=new Qp;return n&&(ov(n)?s.push(rv):s.push(iv(n.extraArgument))),s},uv="RTK_autoBatch",Kp=e=>t=>{setTimeout(t,e)},cv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kp(10),dv=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,s=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?cv:e.type==="callback"?e.queueNotification:Kp(e.timeout),c=()=>{s=!1,l&&(l=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),y=r.subscribe(f);return a.add(d),()=>{y(),a.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[uv]),l=!i,l&&(s||(s=!0,u(c))),r.dispatch(d)}finally{i=!0}}})},fv=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Qp(e);return r&&i.push(dv(typeof r=="object"?r:void 0)),i};function pv(e){const t=av(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(wu(n))a=H0(n);else throw new Error(ut(1));let u;typeof r=="function"?u=r(t):u=t();let c=Bl;i&&(c=lv({trace:!1,...typeof i=="object"&&i}));const d=V0(...u),f=fv(d);let y=typeof s=="function"?s(f):f();const j=c(...y);return Ap(a,l,j)}function Yp(e){const t={},n=[];let r;const i={addCase(l,s){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(ut(28));if(a in t)throw new Error(ut(29));return t[a]=s,i},addMatcher(l,s){return n.push({matcher:l,reducer:s}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function mv(e){return typeof e=="function"}function hv(e,t){let[n,r,i]=Yp(t),l;if(mv(e))l=()=>Qc(e());else{const a=Qc(e);l=()=>a}function s(a=l(),u){let c=[n[u.type],...r.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,f)=>{if(f)if(Tn(d)){const j=f(d,u);return j===void 0?d:j}else{if(Tt(d))return Vp(d,y=>f(y,u));{const y=f(d,u);if(y===void 0){if(d===null)return d;throw new Error(ut(9))}return y}}return d},a)}return s.getInitialState=l,s}var yv=(e,t)=>sv(e)?e.match(t):e(t);function vv(...e){return t=>e.some(n=>yv(n,t))}var gv="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xv=(e=21)=>{let t="",n=e;for(;n--;)t+=gv[Math.random()*64|0];return t},wv=["name","message","stack","code"],ro=class{constructor(e,t){Cs(this,"_type");this.payload=e,this.meta=t}},Yc=class{constructor(e,t){Cs(this,"_type");this.payload=e,this.meta=t}},jv=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of wv)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},bt=(()=>{function e(t,n,r){const i=Hr(t+"/fulfilled",(u,c,d,f)=>({payload:u,meta:{...f||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),l=Hr(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),s=Hr(t+"/rejected",(u,c,d,f,y)=>({payload:f,error:(r&&r.serializeError||jv)(u||"Rejected"),meta:{...y||{},arg:d,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function a(u){return(c,d,f)=>{const y=r!=null&&r.idGenerator?r.idGenerator(u):xv(),j=new AbortController;let v,g;function w(p){g=p,j.abort()}const h=async function(){var x,k;let p;try{let C=(x=r==null?void 0:r.condition)==null?void 0:x.call(r,u,{getState:d,extra:f});if(Sv(C)&&(C=await C),C===!1||j.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((_,b)=>{v=()=>{b({name:"AbortError",message:g||"Aborted"})},j.signal.addEventListener("abort",v)});c(l(y,u,(k=r==null?void 0:r.getPendingMeta)==null?void 0:k.call(r,{requestId:y,arg:u},{getState:d,extra:f}))),p=await Promise.race([P,Promise.resolve(n(u,{dispatch:c,getState:d,extra:f,requestId:y,signal:j.signal,abort:w,rejectWithValue:(_,b)=>new ro(_,b),fulfillWithValue:(_,b)=>new Yc(_,b)})).then(_=>{if(_ instanceof ro)throw _;return _ instanceof Yc?i(_.payload,y,u,_.meta):i(_,y,u)})])}catch(C){p=C instanceof ro?s(null,y,u,C.payload,C.meta):s(C,y,u)}finally{v&&j.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&s.match(p)&&p.meta.condition||c(p),p}();return Object.assign(h,{abort:w,requestId:y,arg:u,unwrap(){return h.then(Nv)}})}}return Object.assign(a,{pending:l,rejected:s,fulfilled:i,settled:vv(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Nv(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Sv(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ev=Symbol.for("rtk-slice-createasyncthunk");function kv(e,t){return`${e}/${t}`}function _v({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Ev];return function(i){const{name:l,reducerPath:s=l}=i;if(!l)throw new Error(ut(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(Pv()):i.reducers)||{},u=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(m,x){const k=typeof m=="string"?m:m.type;if(!k)throw new Error(ut(12));if(k in c.sliceCaseReducersByType)throw new Error(ut(13));return c.sliceCaseReducersByType[k]=x,d},addMatcher(m,x){return c.sliceMatchers.push({matcher:m,reducer:x}),d},exposeAction(m,x){return c.actionCreators[m]=x,d},exposeCaseReducer(m,x){return c.sliceCaseReducersByName[m]=x,d}};u.forEach(m=>{const x=a[m],k={reducerName:m,type:kv(l,m),createNotation:typeof i.reducers=="function"};Tv(x)?bv(k,x,d,t):Ov(k,x,d)});function f(){const[m={},x=[],k=void 0]=typeof i.extraReducers=="function"?Yp(i.extraReducers):[i.extraReducers],C={...m,...c.sliceCaseReducersByType};return hv(i.initialState,P=>{for(let _ in C)P.addCase(_,C[_]);for(let _ of c.sliceMatchers)P.addMatcher(_.matcher,_.reducer);for(let _ of x)P.addMatcher(_.matcher,_.reducer);k&&P.addDefaultCase(k)})}const y=m=>m,j=new Map;let v;function g(m,x){return v||(v=f()),v(m,x)}function w(){return v||(v=f()),v.getInitialState()}function h(m,x=!1){function k(P){let _=P[m];return typeof _>"u"&&x&&(_=w()),_}function C(P=y){const _=Kc(j,x,{insert:()=>new WeakMap});return Kc(_,P,{insert:()=>{const b={};for(const[L,H]of Object.entries(i.selectors??{}))b[L]=Cv(H,P,w,x);return b}})}return{reducerPath:m,getSelectors:C,get selectors(){return C(k)},selectSlice:k}}const p={name:l,reducer:g,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:w,...h(s),injectInto(m,{reducerPath:x,...k}={}){const C=x??s;return m.inject({reducerPath:C,reducer:g},k),{...p,...h(C,!0)}}};return p}}function Cv(e,t,n,r){function i(l,...s){let a=t(l);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Su=_v();function Pv(){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 Ov({type:e,reducerName:t,createNotation:n},r,i){let l,s;if("reducer"in r){if(n&&!Rv(r))throw new Error(ut(17));l=r.reducer,s=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?Hr(e,s):Hr(e))}function Tv(e){return e._reducerDefinitionType==="asyncThunk"}function Rv(e){return e._reducerDefinitionType==="reducerWithPrepare"}function bv({type:e,reducerName:t},n,r,i){if(!i)throw new Error(ut(18));const{payloadCreator:l,fulfilled:s,pending:a,rejected:u,settled:c,options:d}=n,f=i(e,l,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),u&&r.addCase(f.rejected,u),c&&r.addMatcher(f.settled,c),r.exposeCaseReducer(t,{fulfilled:s||qi,pending:a||qi,rejected:u||qi,settled:c||qi})}function qi(){}function ut(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 Xp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Lv}=Object.prototype,{getPrototypeOf:Eu}=Object,vs=(e=>t=>{const n=Lv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ft=e=>(e=e.toLowerCase(),t=>vs(t)===e),gs=e=>t=>typeof t===e,{isArray:gr}=Array,fi=gs("undefined");function Mv(e){return e!==null&&!fi(e)&&e.constructor!==null&&!fi(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gp=ft("ArrayBuffer");function Fv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gp(e.buffer),t}const zv=gs("string"),Ue=gs("function"),Jp=gs("number"),xs=e=>e!==null&&typeof e=="object",Iv=e=>e===!0||e===!1,ol=e=>{if(vs(e)!=="object")return!1;const t=Eu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Av=ft("Date"),Dv=ft("File"),Bv=ft("Blob"),Uv=ft("FileList"),$v=e=>xs(e)&&Ue(e.pipe),Wv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ue(e.append)&&((t=vs(e))==="formdata"||t==="object"&&Ue(e.toString)&&e.toString()==="[object FormData]"))},Hv=ft("URLSearchParams"),[Vv,qv,Qv,Kv]=["ReadableStream","Request","Response","Headers"].map(ft),Yv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Si(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),gr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const wn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,em=e=>!fi(e)&&e!==wn;function fa(){const{caseless:e}=em(this)&&this||{},t={},n=(r,i)=>{const l=e&&Zp(t,i)||i;ol(t[l])&&ol(r)?t[l]=fa(t[l],r):ol(r)?t[l]=fa({},r):gr(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(Si(t,(i,l)=>{n&&Ue(i)?e[l]=Xp(i,n):e[l]=i},{allOwnKeys:r}),e),Gv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jv=(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)},Zv=(e,t,n,r)=>{let i,l,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)s=i[l],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Eu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},eg=(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},tg=e=>{if(!e)return null;if(gr(e))return e;let t=e.length;if(!Jp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ng=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Eu(Uint8Array)),rg=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},ig=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lg=ft("HTMLFormElement"),sg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Xc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),og=ft("RegExp"),tm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Si(n,(i,l)=>{let s;(s=t(i,l,e))!==!1&&(r[l]=s||i)}),Object.defineProperties(e,r)},ag=e=>{tm(e,(t,n)=>{if(Ue(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ue(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+"'")})}})},ug=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return gr(e)?r(e):r(String(e).split(t)),n},cg=()=>{},dg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,io="abcdefghijklmnopqrstuvwxyz",Gc="0123456789",nm={DIGIT:Gc,ALPHA:io,ALPHA_DIGIT:io+io.toUpperCase()+Gc},fg=(e=16,t=nm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function pg(e){return!!(e&&Ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mg=e=>{const t=new Array(10),n=(r,i)=>{if(xs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=gr(r)?[]:{};return Si(r,(s,a)=>{const u=n(s,i+1);!fi(u)&&(l[a]=u)}),t[i]=void 0,l}}return r};return n(e,0)},hg=ft("AsyncFunction"),yg=e=>e&&(xs(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),rm=((e,t)=>e?setImmediate:t?((n,r)=>(wn.addEventListener("message",({source:i,data:l})=>{i===wn&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),wn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ue(wn.postMessage)),vg=typeof queueMicrotask<"u"?queueMicrotask.bind(wn):typeof process<"u"&&process.nextTick||rm,S={isArray:gr,isArrayBuffer:Gp,isBuffer:Mv,isFormData:Wv,isArrayBufferView:Fv,isString:zv,isNumber:Jp,isBoolean:Iv,isObject:xs,isPlainObject:ol,isReadableStream:Vv,isRequest:qv,isResponse:Qv,isHeaders:Kv,isUndefined:fi,isDate:Av,isFile:Dv,isBlob:Bv,isRegExp:og,isFunction:Ue,isStream:$v,isURLSearchParams:Hv,isTypedArray:ng,isFileList:Uv,forEach:Si,merge:fa,extend:Xv,trim:Yv,stripBOM:Gv,inherits:Jv,toFlatObject:Zv,kindOf:vs,kindOfTest:ft,endsWith:eg,toArray:tg,forEachEntry:rg,matchAll:ig,isHTMLForm:lg,hasOwnProperty:Xc,hasOwnProp:Xc,reduceDescriptors:tm,freezeMethods:ag,toObjectSet:ug,toCamelCase:sg,noop:cg,toFiniteNumber:dg,findKey:Zp,global:wn,isContextDefined:em,ALPHABET:nm,generateString:fg,isSpecCompliantForm:pg,toJSONObject:mg,isAsyncFn:hg,isThenable:yg,setImmediate:rm,asap:vg};function z(e,t,n,r,i){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),i&&(this.response=i,this.status=i.status?i.status:null)}S.inherits(z,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const im=z.prototype,lm={};["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=>{lm[e]={value:e}});Object.defineProperties(z,lm);Object.defineProperty(im,"isAxiosError",{value:!0});z.from=(e,t,n,r,i,l)=>{const s=Object.create(im);return S.toFlatObject(e,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),z.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,l&&Object.assign(s,l),s};const gg=null;function pa(e){return S.isPlainObject(e)||S.isArray(e)}function sm(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Jc(e,t,n){return e?e.concat(t).map(function(i,l){return i=sm(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function xg(e){return S.isArray(e)&&!e.some(pa)}const wg=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function ws(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,w){return!S.isUndefined(w[g])});const r=n.metaTokens,i=n.visitor||d,l=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(i))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(S.isDate(v))return v.toISOString();if(!u&&S.isBlob(v))throw new z("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(v)||S.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,g,w){let h=v;if(v&&!w&&typeof v=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(S.isArray(v)&&xg(v)||(S.isFileList(v)||S.endsWith(g,"[]"))&&(h=S.toArray(v)))return g=sm(g),h.forEach(function(m,x){!(S.isUndefined(m)||m===null)&&t.append(s===!0?Jc([g],x,l):s===null?g:g+"[]",c(m))}),!1}return pa(v)?!0:(t.append(Jc(w,g,l),c(v)),!1)}const f=[],y=Object.assign(wg,{defaultVisitor:d,convertValue:c,isVisitable:pa});function j(v,g){if(!S.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),S.forEach(v,function(h,p){(!(S.isUndefined(h)||h===null)&&i.call(t,h,S.isString(p)?p.trim():p,g,y))===!0&&j(h,g?g.concat(p):[p])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return j(e),t}function Zc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ku(e,t){this._pairs=[],e&&ws(e,this,t)}const om=ku.prototype;om.append=function(t,n){this._pairs.push([t,n])};om.toString=function(t){const n=t?function(r){return t.call(this,r,Zc)}:Zc;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function jg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function am(e,t,n){if(!t)return e;const r=n&&n.encode||jg,i=n&&n.serialize;let l;if(i?l=i(t,n):l=S.isURLSearchParams(t)?t.toString():new ku(t,n).toString(r),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class ed{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){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const um={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ng=typeof URLSearchParams<"u"?URLSearchParams:ku,Sg=typeof FormData<"u"?FormData:null,Eg=typeof Blob<"u"?Blob:null,kg={isBrowser:!0,classes:{URLSearchParams:Ng,FormData:Sg,Blob:Eg},protocols:["http","https","file","blob","url","data"]},_u=typeof window<"u"&&typeof document<"u",ma=typeof navigator=="object"&&navigator||void 0,_g=_u&&(!ma||["ReactNative","NativeScript","NS"].indexOf(ma.product)<0),Cg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Pg=_u&&window.location.href||"http://localhost",Og=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_u,hasStandardBrowserEnv:_g,hasStandardBrowserWebWorkerEnv:Cg,navigator:ma,origin:Pg},Symbol.toStringTag,{value:"Module"})),be={...Og,...kg};function Tg(e,t){return ws(e,new be.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return be.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function Rg(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bg(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return s=!s&&S.isArray(i)?i.length:s,u?(S.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!S.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],l)&&S.isArray(i[s])&&(i[s]=bg(i[s])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,i)=>{t(Rg(r),i,n,0)}),n}return null}function Lg(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ei={transitional:um,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=S.isObject(t);if(l&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return i?JSON.stringify(cm(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tg(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ws(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),Lg(t)):t}],transformResponse:[function(t){const n=this.transitional||Ei.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?z.from(a,z.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:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Ei.headers[e]={}});const Mg=S.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"]),Fg=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Mg[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 Or(e){return e&&String(e).trim().toLowerCase()}function al(e){return e===!1||e==null?e:S.isArray(e)?e.map(al):String(e)}function zg(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 Ig=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lo(e,t,n,r,i){if(S.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function Ag(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Dg(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,s){return this[r].call(this,t,i,l,s)},configurable:!0})})}class Le{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(a,u,c){const d=Or(u);if(!d)throw new Error("header name must be a non-empty string");const f=S.findKey(i,d);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||u]=al(a))}const s=(a,u)=>S.forEach(a,(c,d)=>l(c,d,u));if(S.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(S.isString(t)&&(t=t.trim())&&!Ig(t))s(Fg(t),n);else if(S.isHeaders(t))for(const[a,u]of t.entries())l(u,a,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Or(t),t){const r=S.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return zg(i);if(S.isFunction(n))return n.call(this,i,r);if(S.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Or(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||lo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(s){if(s=Or(s),s){const a=S.findKey(r,s);a&&(!n||lo(r,r[a],a,n))&&(delete r[a],i=!0)}}return S.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||lo(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return S.forEach(this,(i,l)=>{const s=S.findKey(r,l);if(s){n[s]=al(i),delete n[l];return}const a=t?Ag(l):String(l).trim();a!==l&&delete n[l],n[a]=al(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&S.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(i=>r.set(i)),r}static accessor(t){const r=(this[td]=this[td]={accessors:{}}).accessors,i=this.prototype;function l(s){const a=Or(s);r[a]||(Dg(i,s),r[a]=!0)}return S.isArray(t)?t.forEach(l):l(t),this}}Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Le.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Le);function so(e,t){const n=this||Ei,r=t||n,i=Le.from(r.headers);let l=r.data;return S.forEach(e,function(a){l=a.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function dm(e){return!!(e&&e.__CANCEL__)}function xr(e,t,n){z.call(this,e??"canceled",z.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(xr,z,{__CANCEL__:!0});function fm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Bg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ug(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[l];s||(s=c),n[i]=u,r[i]=c;let f=l,y=0;for(;f!==i;)y+=n[f++],f=f%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),c-s{n=d,i=null,l&&(clearTimeout(l),l=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?s(c,d):(i=c,l||(l=setTimeout(()=>{l=null,s(i)},r-f)))},()=>i&&s(i)]}const Hl=(e,t,n=3)=>{let r=0;const i=Ug(50,250);return $g(l=>{const s=l.loaded,a=l.lengthComputable?l.total:void 0,u=s-r,c=i(u),d=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:l,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},nd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rd=e=>(...t)=>S.asap(()=>e(...t)),Wg=be.hasStandardBrowserEnv?function(){const t=be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent),n=document.createElement("a");let r;function i(l){let s=l;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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=i(window.location.href),function(s){const a=S.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Hg=be.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const s=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),S.isString(r)&&s.push("path="+r),S.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.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 Vg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pm(e,t){return e&&!Vg(t)?qg(e,t):t}const id=e=>e instanceof Le?{...e}:e;function bn(e,t){t=t||{};const n={};function r(c,d,f){return S.isPlainObject(c)&&S.isPlainObject(d)?S.merge.call({caseless:f},c,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function i(c,d,f){if(S.isUndefined(d)){if(!S.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function l(c,d){if(!S.isUndefined(d))return r(void 0,d)}function s(c,d){if(S.isUndefined(d)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const u={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>i(id(c),id(d),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||i,y=f(e[d],t[d],d);S.isUndefined(y)&&f!==a||(n[d]=y)}),n}const mm=e=>{const t=bn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:a}=t;t.headers=s=Le.from(s),t.url=am(pm(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(S.isFormData(n)){if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(be.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&Wg(t.url))){const c=i&&l&&Hg.read(l);c&&s.set(i,c)}return t},Qg=typeof XMLHttpRequest<"u",Kg=Qg&&function(e){return new Promise(function(n,r){const i=mm(e);let l=i.data;const s=Le.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,d,f,y,j,v;function g(){j&&j(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(i.method.toUpperCase(),i.url,!0),w.timeout=i.timeout;function h(){if(!w)return;const m=Le.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:m,config:e,request:w};fm(function(P){n(P),g()},function(P){r(P),g()},k),w=null}"onloadend"in w?w.onloadend=h:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(h)},w.onabort=function(){w&&(r(new z("Request aborted",z.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new z("Network Error",z.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||um;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new z(x,k.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,w)),w=null},l===void 0&&s.setContentType(null),"setRequestHeader"in w&&S.forEach(s.toJSON(),function(x,k){w.setRequestHeader(k,x)}),S.isUndefined(i.withCredentials)||(w.withCredentials=!!i.withCredentials),a&&a!=="json"&&(w.responseType=i.responseType),c&&([y,v]=Hl(c,!0),w.addEventListener("progress",y)),u&&w.upload&&([f,j]=Hl(u),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",j)),(i.cancelToken||i.signal)&&(d=m=>{w&&(r(!m||m.type?new xr(null,e,w):m),w.abort(),w=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const p=Bg(i.url);if(p&&be.protocols.indexOf(p)===-1){r(new z("Unsupported protocol "+p+":",z.ERR_BAD_REQUEST,e));return}w.send(l||null)})},Yg=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(c){if(!i){i=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof z?d:new xr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,l(new z(`timeout ${t} of ms exceeded`,z.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>S.asap(a),u}},Xg=function*(e,t){let n=e.byteLength;if(!t||n{const i=Gg(e,t);let l=0,s,a=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await i.next();if(c){a(),u.close();return}let f=d.byteLength;if(n){let y=l+=f;n(y)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},js=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hm=js&&typeof ReadableStream=="function",Zg=js&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ym=(e,...t)=>{try{return!!e(...t)}catch{return!1}},e1=hm&&ym(()=>{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),sd=64*1024,ha=hm&&ym(()=>S.isReadableStream(new Response("").body)),Vl={stream:ha&&(e=>e.body)};js&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vl[t]&&(Vl[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new z(`Response type '${t}' is not supported`,z.ERR_NOT_SUPPORT,r)})})})(new Response);const t1=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(be.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Zg(e)).byteLength},n1=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??t1(t)},r1=js&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:y}=mm(e);c=c?(c+"").toLowerCase():"text";let j=Yg([i,l&&l.toAbortSignal()],s),v;const g=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let w;try{if(u&&e1&&n!=="get"&&n!=="head"&&(w=await n1(d,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(S.isFormData(r)&&(C=k.headers.get("content-type"))&&d.setContentType(C),k.body){const[P,_]=nd(w,Hl(rd(u)));r=ld(k.body,sd,P,_)}}S.isString(f)||(f=f?"include":"omit");const h="credentials"in Request.prototype;v=new Request(t,{...y,signal:j,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:h?f:void 0});let p=await fetch(v);const m=ha&&(c==="stream"||c==="response");if(ha&&(a||m&&g)){const k={};["status","statusText","headers"].forEach(b=>{k[b]=p[b]});const C=S.toFiniteNumber(p.headers.get("content-length")),[P,_]=a&&nd(C,Hl(rd(a),!0))||[];p=new Response(ld(p.body,sd,P,()=>{_&&_(),g&&g()}),k)}c=c||"text";let x=await Vl[S.findKey(Vl,c)||"text"](p,e);return!m&&g&&g(),await new Promise((k,C)=>{fm(k,C,{data:x,headers:Le.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:v})})}catch(h){throw g&&g(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new z("Network Error",z.ERR_NETWORK,e,v),{cause:h.cause||h}):z.from(h,h&&h.code,e,v)}}),ya={http:gg,xhr:Kg,fetch:r1};S.forEach(ya,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const od=e=>`- ${e}`,i1=e=>S.isFunction(e)||e===null||e===!1,vm={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?l.length>1?`since : -`+l.map(od).join(` -`):" "+od(l[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ya};function oo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function ad(e){return oo(e),e.headers=Le.from(e.headers),e.data=so.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vm.getAdapter(e.adapter||Ei.adapter)(e).then(function(r){return oo(e),r.data=so.call(e,e.transformResponse,r),r.headers=Le.from(r.headers),r},function(r){return dm(r)||(oo(e),r&&r.response&&(r.response.data=so.call(e,e.transformResponse,r.response),r.response.headers=Le.from(r.response.headers))),Promise.reject(r)})}const gm="1.7.7",Cu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ud={};Cu.transitional=function(t,n,r){function i(l,s){return"[Axios v"+gm+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(t===!1)throw new z(i(s," has been removed"+(n?" in "+n:"")),z.ERR_DEPRECATED);return n&&!ud[s]&&(ud[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,s,a):!0}};function l1(e,t,n){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],s=t[l];if(s){const a=e[l],u=a===void 0||s(a,l,e);if(u!==!0)throw new z("option "+l+" must be "+u,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z("Unknown option "+l,z.ERR_BAD_OPTION)}}const va={assertOptions:l1,validators:Cu},zt=va.validators;class Sn{constructor(t){this.defaults=t,this.interceptors={request:new ed,response:new ed}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=bn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&va.assertOptions(r,{silentJSONParsing:zt.transitional(zt.boolean),forcedJSONParsing:zt.transitional(zt.boolean),clarifyTimeoutError:zt.transitional(zt.boolean)},!1),i!=null&&(S.isFunction(i)?n.paramsSerializer={serialize:i}:va.assertOptions(i,{encode:zt.function,serialize:zt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&S.merge(l.common,l[n.method]);l&&S.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=Le.concat(s,l);const a=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,y;if(!u){const v=[ad.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);f{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},t(function(l,s,a){r.reason||(r.reason=new xr(l,s,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 Pu(function(i){t=i}),cancel:t}}}function s1(e){return function(n){return e.apply(null,n)}}function o1(e){return S.isObject(e)&&e.isAxiosError===!0}const ga={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(ga).forEach(([e,t])=>{ga[t]=e});function xm(e){const t=new Sn(e),n=Xp(Sn.prototype.request,t);return S.extend(n,Sn.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return xm(bn(e,i))},n}const Q=xm(Ei);Q.Axios=Sn;Q.CanceledError=xr;Q.CancelToken=Pu;Q.isCancel=dm;Q.VERSION=gm;Q.toFormData=ws;Q.AxiosError=z;Q.Cancel=Q.CanceledError;Q.all=function(t){return Promise.all(t)};Q.spread=s1;Q.isAxiosError=o1;Q.mergeConfig=bn;Q.AxiosHeaders=Le;Q.formToJSON=e=>cm(S.isHTMLForm(e)?new FormData(e):e);Q.getAdapter=vm.getAdapter;Q.HttpStatusCode=ga;Q.default=Q;const a1="http://67.225.129.127:3002",Fn=Q.create({baseURL:a1});Fn.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const u1=e=>Fn.post("/users/signup",e),c1=e=>Fn.post("/users/signin",e),d1=(e,t,n)=>Fn.get(`/users/${e}/verify/${t}`,n),f1=e=>Fn.post("/properties",e),p1=e=>Fn.get(`/properties/user/${e}`,e),m1=e=>Fn.get(`/properties/${e}`,e),ul=bt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await c1(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),cl=bt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await u1(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),ao=bt("auth/updateUser",async({id:e,data:t},{rejectWithValue:n})=>{try{return(await(void 0)(t,e)).data}catch(r){return n(r.response.data)}}),wm=Su({name:"auth",initialState:{user:null,error:"",loading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload}},extraReducers:e=>{e.addCase(ul.pending,t=>{t.loading=!0}).addCase(ul.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(ul.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(cl.pending,t=>{t.loading=!0}).addCase(cl.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(cl.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(ao.pending,t=>{t.loading=!0}).addCase(ao.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(ao.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message})}}),{setUser:zw,setLogout:h1,setUserDetails:Iw}=wm.actions,y1=wm.reducer,uo=bt("user/showUser",async({id:e,data:t},{rejectWithValue:n})=>{try{const r=await(void 0)(t,e);return console.log("dsdsdsds22",r),r.data}catch(r){return n(r.response.data)}}),dl=bt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await d1(e,t,n)).data.message}catch(i){return r(i.response.data)}}),v1=Su({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1},reducers:{},extraReducers:e=>{e.addCase(uo.pending,t=>{t.loading=!0}).addCase(uo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.users=Array.isArray(n.payload)?n.payload:[]}).addCase(uo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(dl.pending,t=>{t.loading=!0,t.error=null}).addCase(dl.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(dl.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),g1=v1.reducer,fl=bt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await f1(e)).data}catch(n){return t(n.response.data)}}),pl=bt("property/fetchUserProperties",async(e,{rejectWithValue:t})=>{try{return(await p1(e)).data}catch(n){return t(n.response.data)}}),Vr=bt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await m1(e)).data}catch(n){return t(n.response.data)}});bt("property/updateProperty",async({id:e,updatedData:t},{rejectWithValue:n})=>{try{return(await Q.patch(`http://localhost:3002/properties/${e}`,t)).data}catch(r){return n(r.response.data)}});const x1=Su({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null},reducers:{},extraReducers:e=>{e.addCase(fl.pending,t=>{t.status="loading"}).addCase(fl.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(fl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(pl.pending,t=>{t.status="loading"}).addCase(pl.fulfilled,(t,n)=>{t.status="succeeded",t.userProperties=n.payload}).addCase(pl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Vr.pending,t=>{t.status="loading"}).addCase(Vr.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Vr.rejected,(t,n)=>{t.status="failed",t.error=n.payload})}}),w1=x1.reducer,j1=pv({reducer:{auth:y1,user:g1,property:w1}});/** + */var Ni=E;function x0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var w0=typeof Object.is=="function"?Object.is:x0,j0=Ni.useSyncExternalStore,N0=Ni.useRef,S0=Ni.useEffect,E0=Ni.useMemo,k0=Ni.useDebugValue;Fp.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=N0(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=E0(function(){function u(j){if(!c){if(c=!0,d=j,j=r(j),i!==void 0&&s.hasValue){var v=s.value;if(i(v,j))return f=v}return f=j}if(v=f,w0(d,j))return v;var g=r(j);return i!==void 0&&i(v,g)?v:(d=j,f=g)}var c=!1,d,f,y=n===void 0?null:n;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,n,r,i]);var a=j0(e,l[0],l[1]);return S0(function(){s.hasValue=!0,s.value=a},[a]),k0(a),a};Mp.exports=Fp;var _0=Mp.exports,De="default"in mo?N:mo,Ac=Symbol.for("react-redux-context"),Bc=typeof globalThis<"u"?globalThis:{};function C0(){if(!De.createContext)return{};const e=Bc[Ac]??(Bc[Ac]=new Map);let t=e.get(De.createContext);return t||(t=De.createContext(null),e.set(De.createContext,t)),t}var sn=C0(),P0=()=>{throw new Error("uSES not initialized!")};function wu(e=sn){return function(){return De.useContext(e)}}var zp=wu(),Ip=P0,O0=e=>{Ip=e},T0=(e,t)=>e===t;function R0(e=sn){const t=e===sn?zp:wu(e),n=(r,i={})=>{const{equalityFn:l=T0,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:f}=t();De.useRef(!0);const y=De.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,s.stabilityCheck]),j=Ip(u.addNestedSub,a.getState,c||a.getState,y,l);return De.useDebugValue(j),j};return Object.assign(n,{withTypes:()=>n}),n}var dt=R0();function b0(e){e()}function L0(){let e=null,t=null;return{clear(){e=null,t=null},notify(){b0(()=>{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 i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Uc={notify(){},get:()=>[]};function M0(e,t){let n,r=Uc,i=0,l=!1;function s(g){d();const w=r.subscribe(g);let h=!1;return()=>{h||(h=!0,w(),f())}}function a(){r.notify()}function u(){v.onStateChange&&v.onStateChange()}function c(){return l}function d(){i++,n||(n=e.subscribe(u),r=L0())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Uc)}function y(){l||(l=!0,d())}function j(){l&&(l=!1,f())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:c,trySubscribe:y,tryUnsubscribe:j,getListeners:()=>r};return v}var F0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",z0=typeof navigator<"u"&&navigator.product==="ReactNative",I0=F0||z0?De.useLayoutEffect:De.useEffect;function D0({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const s=De.useMemo(()=>{const c=M0(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),a=De.useMemo(()=>e.getState(),[e]);I0(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const u=t||sn;return De.createElement(u.Provider,{value:s},n)}var A0=D0;function Dp(e=sn){const t=e===sn?zp:wu(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var B0=Dp();function U0(e=sn){const t=e===sn?B0:Dp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var cn=U0();O0(_0.useSyncExternalStoreWithSelector);function ue(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 $0=typeof Symbol=="function"&&Symbol.observable||"@@observable",$c=$0,to=()=>Math.random().toString(36).substring(7).split("").join("."),W0={INIT:`@@redux/INIT${to()}`,REPLACE:`@@redux/REPLACE${to()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${to()}`},Bl=W0;function ju(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 Ap(e,t,n){if(typeof e!="function")throw new Error(ue(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ue(1));return n(Ap)(e,t)}let r=e,i=t,l=new Map,s=l,a=0,u=!1;function c(){s===l&&(s=new Map,l.forEach((w,h)=>{s.set(h,w)}))}function d(){if(u)throw new Error(ue(3));return i}function f(w){if(typeof w!="function")throw new Error(ue(4));if(u)throw new Error(ue(5));let h=!0;c();const p=a++;return s.set(p,w),function(){if(h){if(u)throw new Error(ue(6));h=!1,c(),s.delete(p),l=null}}}function y(w){if(!ju(w))throw new Error(ue(7));if(typeof w.type>"u")throw new Error(ue(8));if(typeof w.type!="string")throw new Error(ue(17));if(u)throw new Error(ue(9));try{u=!0,i=r(i,w)}finally{u=!1}return(l=s).forEach(p=>{p()}),w}function j(w){if(typeof w!="function")throw new Error(ue(10));r=w,y({type:Bl.REPLACE})}function v(){const w=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(ue(11));function p(){const x=h;x.next&&x.next(d())}return p(),{unsubscribe:w(p)}},[$c](){return this}}}return y({type:Bl.INIT}),{dispatch:y,subscribe:f,getState:d,replaceReducer:j,[$c]:v}}function H0(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Bl.INIT})>"u")throw new Error(ue(12));if(typeof n(void 0,{type:Bl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function V0(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(ue(14));c[f]=v,u=u||v!==j}return u=u||r.length!==Object.keys(s).length,u?c:s}}function Ul(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function q0(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(ue(15))};const s={getState:i.getState,dispatch:(u,...c)=>l(u,...c)},a=e.map(u=>u(s));return l=Ul(...a)(i.dispatch),{...i,dispatch:l}}}function Q0(e){return ju(e)&&"type"in e&&typeof e.type=="string"}var Bp=Symbol.for("immer-nothing"),Wc=Symbol.for("immer-draftable"),We=Symbol.for("immer-state");function st(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var pr=Object.getPrototypeOf;function Rn(e){return!!e&&!!e[We]}function Tt(e){var t;return e?Up(e)||Array.isArray(e)||!!e[Wc]||!!((t=e.constructor)!=null&&t[Wc])||hs(e)||ys(e):!1}var K0=Object.prototype.constructor.toString();function Up(e){if(!e||typeof e!="object")return!1;const t=pr(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)===K0}function $l(e,t){ms(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ms(e){const t=e[We];return t?t.type_:Array.isArray(e)?1:hs(e)?2:ys(e)?3:0}function oa(e,t){return ms(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $p(e,t,n){const r=ms(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Y0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function hs(e){return e instanceof Map}function ys(e){return e instanceof Set}function yn(e){return e.copy_||e.base_}function aa(e,t){if(hs(e))return new Map(e);if(ys(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Up(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[We];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=X0),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Nu(r,!0))),e}function X0(){st(2)}function vs(e){return Object.isFrozen(e)}var G0={};function bn(e){const t=G0[e];return t||st(0,e),t}var ci;function Wp(){return ci}function J0(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Hc(e,t){t&&(bn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ua(e){ca(e),e.drafts_.forEach(Z0),e.drafts_=null}function ca(e){e===ci&&(ci=e.parent_)}function Vc(e){return ci=J0(ci,e)}function Z0(e){const t=e[We];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function qc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[We].modified_&&(ua(t),st(4)),Tt(e)&&(e=Wl(t,e),t.parent_||Hl(t,e)),t.patches_&&bn("Patches").generateReplacementPatches_(n[We].base_,e,t.patches_,t.inversePatches_)):e=Wl(t,n,[]),ua(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Bp?e:void 0}function Wl(e,t,n){if(vs(t))return t;const r=t[We];if(!r)return $l(t,(i,l)=>Qc(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Hl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,s=!1;r.type_===3&&(l=new Set(i),i.clear(),s=!0),$l(l,(a,u)=>Qc(e,r,i,a,u,n,s)),Hl(e,i,!1),n&&e.patches_&&bn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Qc(e,t,n,r,i,l,s){if(Rn(i)){const a=l&&t&&t.type_!==3&&!oa(t.assigned_,r)?l.concat(r):void 0,u=Wl(e,i,a);if($p(n,r,u),Rn(u))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Tt(i)&&!vs(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Wl(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Hl(e,i)}}function Hl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Nu(t,n)}function ev(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Wp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=Su;n&&(i=[r],l=di);const{revoke:s,proxy:a}=Proxy.revocable(i,l);return r.draft_=a,r.revoke_=s,a}var Su={get(e,t){if(t===We)return e;const n=yn(e);if(!oa(n,t))return tv(e,n,t);const r=n[t];return e.finalized_||!Tt(r)?r:r===no(e.base_,t)?(ro(e),e.copy_[t]=fa(r,e)):r},has(e,t){return t in yn(e)},ownKeys(e){return Reflect.ownKeys(yn(e))},set(e,t,n){const r=Hp(yn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=no(yn(e),t),l=i==null?void 0:i[We];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Y0(n,i)&&(n!==void 0||oa(e.base_,t)))return!0;ro(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 no(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ro(e),da(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=yn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){st(11)},getPrototypeOf(e){return pr(e.base_)},setPrototypeOf(){st(12)}},di={};$l(Su,(e,t)=>{di[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});di.deleteProperty=function(e,t){return di.set.call(this,e,t,void 0)};di.set=function(e,t,n){return Su.set.call(this,e[0],t,n,e[0])};function no(e,t){const n=e[We];return(n?yn(n):e)[t]}function tv(e,t,n){var i;const r=Hp(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Hp(e,t){if(!(t in e))return;let n=pr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=pr(n)}}function da(e){e.modified_||(e.modified_=!0,e.parent_&&da(e.parent_))}function ro(e){e.copy_||(e.copy_=aa(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var nv=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const s=this;return function(u=l,...c){return s.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&st(6),r!==void 0&&typeof r!="function"&&st(7);let i;if(Tt(t)){const l=Vc(this),s=fa(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?ua(l):ca(l)}return Hc(l,r),qc(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Bp&&(i=void 0),this.autoFreeze_&&Nu(i,!0),r){const l=[],s=[];bn("Patches").generateReplacementPatches_(t,i,l,s),r(l,s)}return i}else st(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},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){Tt(e)||st(8),Rn(e)&&(e=rv(e));const t=Vc(this),n=fa(e,void 0);return n[We].isManual_=!0,ca(t),n}finishDraft(e,t){const n=e&&e[We];(!n||!n.isManual_)&&st(9);const{scope_:r}=n;return Hc(r,t),qc(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 i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=bn("Patches").applyPatches_;return Rn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function fa(e,t){const n=hs(e)?bn("MapSet").proxyMap_(e,t):ys(e)?bn("MapSet").proxySet_(e,t):ev(e,t);return(t?t.scope_:Wp()).drafts_.push(n),n}function rv(e){return Rn(e)||st(10,e),Vp(e)}function Vp(e){if(!Tt(e)||vs(e))return e;const t=e[We];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=aa(e,t.scope_.immer_.useStrictShallowCopy_)}else n=aa(e,!0);return $l(n,(r,i)=>{$p(n,r,Vp(i))}),t&&(t.finalized_=!1),n}var He=new nv,qp=He.produce;He.produceWithPatches.bind(He);He.setAutoFreeze.bind(He);He.setUseStrictShallowCopy.bind(He);He.applyPatches.bind(He);He.createDraft.bind(He);He.finishDraft.bind(He);function Qp(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var iv=Qp(),lv=Qp,sv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ul:Ul.apply(null,arguments)},ov=e=>e&&typeof e.match=="function";function Hr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(ut(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Q0(r)&&r.type===e,n}var Kp=class Mr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Mr.prototype)}static get[Symbol.species](){return Mr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Mr(...t[0].concat(this)):new Mr(...t.concat(this))}};function Kc(e){return Tt(e)?qp(e,()=>{}):e}function Yc(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(ut(10));const r=n.insert(t,e);return e.set(t,r),r}function av(e){return typeof e=="boolean"}var uv=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let s=new Kp;return n&&(av(n)?s.push(iv):s.push(lv(n.extraArgument))),s},cv="RTK_autoBatch",Yp=e=>t=>{setTimeout(t,e)},dv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Yp(10),fv=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,s=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?dv:e.type==="callback"?e.queueNotification:Yp(e.timeout),c=()=>{s=!1,l&&(l=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),y=r.subscribe(f);return a.add(d),()=>{y(),a.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[cv]),l=!i,l&&(s||(s=!0,u(c))),r.dispatch(d)}finally{i=!0}}})},pv=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Kp(e);return r&&i.push(fv(typeof r=="object"?r:void 0)),i};function mv(e){const t=uv(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(ju(n))a=V0(n);else throw new Error(ut(1));let u;typeof r=="function"?u=r(t):u=t();let c=Ul;i&&(c=sv({trace:!1,...typeof i=="object"&&i}));const d=q0(...u),f=pv(d);let y=typeof s=="function"?s(f):f();const j=c(...y);return Ap(a,l,j)}function Xp(e){const t={},n=[];let r;const i={addCase(l,s){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(ut(28));if(a in t)throw new Error(ut(29));return t[a]=s,i},addMatcher(l,s){return n.push({matcher:l,reducer:s}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function hv(e){return typeof e=="function"}function yv(e,t){let[n,r,i]=Xp(t),l;if(hv(e))l=()=>Kc(e());else{const a=Kc(e);l=()=>a}function s(a=l(),u){let c=[n[u.type],...r.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,f)=>{if(f)if(Rn(d)){const j=f(d,u);return j===void 0?d:j}else{if(Tt(d))return qp(d,y=>f(y,u));{const y=f(d,u);if(y===void 0){if(d===null)return d;throw new Error(ut(9))}return y}}return d},a)}return s.getInitialState=l,s}var vv=(e,t)=>ov(e)?e.match(t):e(t);function gv(...e){return t=>e.some(n=>vv(n,t))}var xv="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wv=(e=21)=>{let t="",n=e;for(;n--;)t+=xv[Math.random()*64|0];return t},jv=["name","message","stack","code"],io=class{constructor(e,t){Ps(this,"_type");this.payload=e,this.meta=t}},Xc=class{constructor(e,t){Ps(this,"_type");this.payload=e,this.meta=t}},Nv=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of jv)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},bt=(()=>{function e(t,n,r){const i=Hr(t+"/fulfilled",(u,c,d,f)=>({payload:u,meta:{...f||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),l=Hr(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),s=Hr(t+"/rejected",(u,c,d,f,y)=>({payload:f,error:(r&&r.serializeError||Nv)(u||"Rejected"),meta:{...y||{},arg:d,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function a(u){return(c,d,f)=>{const y=r!=null&&r.idGenerator?r.idGenerator(u):wv(),j=new AbortController;let v,g;function w(p){g=p,j.abort()}const h=async function(){var x,k;let p;try{let C=(x=r==null?void 0:r.condition)==null?void 0:x.call(r,u,{getState:d,extra:f});if(Ev(C)&&(C=await C),C===!1||j.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((_,b)=>{v=()=>{b({name:"AbortError",message:g||"Aborted"})},j.signal.addEventListener("abort",v)});c(l(y,u,(k=r==null?void 0:r.getPendingMeta)==null?void 0:k.call(r,{requestId:y,arg:u},{getState:d,extra:f}))),p=await Promise.race([P,Promise.resolve(n(u,{dispatch:c,getState:d,extra:f,requestId:y,signal:j.signal,abort:w,rejectWithValue:(_,b)=>new io(_,b),fulfillWithValue:(_,b)=>new Xc(_,b)})).then(_=>{if(_ instanceof io)throw _;return _ instanceof Xc?i(_.payload,y,u,_.meta):i(_,y,u)})])}catch(C){p=C instanceof io?s(null,y,u,C.payload,C.meta):s(C,y,u)}finally{v&&j.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&s.match(p)&&p.meta.condition||c(p),p}();return Object.assign(h,{abort:w,requestId:y,arg:u,unwrap(){return h.then(Sv)}})}}return Object.assign(a,{pending:l,rejected:s,fulfilled:i,settled:gv(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Sv(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ev(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var kv=Symbol.for("rtk-slice-createasyncthunk");function _v(e,t){return`${e}/${t}`}function Cv({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[kv];return function(i){const{name:l,reducerPath:s=l}=i;if(!l)throw new Error(ut(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(Ov()):i.reducers)||{},u=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(m,x){const k=typeof m=="string"?m:m.type;if(!k)throw new Error(ut(12));if(k in c.sliceCaseReducersByType)throw new Error(ut(13));return c.sliceCaseReducersByType[k]=x,d},addMatcher(m,x){return c.sliceMatchers.push({matcher:m,reducer:x}),d},exposeAction(m,x){return c.actionCreators[m]=x,d},exposeCaseReducer(m,x){return c.sliceCaseReducersByName[m]=x,d}};u.forEach(m=>{const x=a[m],k={reducerName:m,type:_v(l,m),createNotation:typeof i.reducers=="function"};Rv(x)?Lv(k,x,d,t):Tv(k,x,d)});function f(){const[m={},x=[],k=void 0]=typeof i.extraReducers=="function"?Xp(i.extraReducers):[i.extraReducers],C={...m,...c.sliceCaseReducersByType};return yv(i.initialState,P=>{for(let _ in C)P.addCase(_,C[_]);for(let _ of c.sliceMatchers)P.addMatcher(_.matcher,_.reducer);for(let _ of x)P.addMatcher(_.matcher,_.reducer);k&&P.addDefaultCase(k)})}const y=m=>m,j=new Map;let v;function g(m,x){return v||(v=f()),v(m,x)}function w(){return v||(v=f()),v.getInitialState()}function h(m,x=!1){function k(P){let _=P[m];return typeof _>"u"&&x&&(_=w()),_}function C(P=y){const _=Yc(j,x,{insert:()=>new WeakMap});return Yc(_,P,{insert:()=>{const b={};for(const[L,H]of Object.entries(i.selectors??{}))b[L]=Pv(H,P,w,x);return b}})}return{reducerPath:m,getSelectors:C,get selectors(){return C(k)},selectSlice:k}}const p={name:l,reducer:g,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:w,...h(s),injectInto(m,{reducerPath:x,...k}={}){const C=x??s;return m.inject({reducerPath:C,reducer:g},k),{...p,...h(C,!0)}}};return p}}function Pv(e,t,n,r){function i(l,...s){let a=t(l);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Eu=Cv();function Ov(){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 Tv({type:e,reducerName:t,createNotation:n},r,i){let l,s;if("reducer"in r){if(n&&!bv(r))throw new Error(ut(17));l=r.reducer,s=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?Hr(e,s):Hr(e))}function Rv(e){return e._reducerDefinitionType==="asyncThunk"}function bv(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Lv({type:e,reducerName:t},n,r,i){if(!i)throw new Error(ut(18));const{payloadCreator:l,fulfilled:s,pending:a,rejected:u,settled:c,options:d}=n,f=i(e,l,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),u&&r.addCase(f.rejected,u),c&&r.addMatcher(f.settled,c),r.exposeCaseReducer(t,{fulfilled:s||qi,pending:a||qi,rejected:u||qi,settled:c||qi})}function qi(){}function ut(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 Gp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mv}=Object.prototype,{getPrototypeOf:ku}=Object,gs=(e=>t=>{const n=Mv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ft=e=>(e=e.toLowerCase(),t=>gs(t)===e),xs=e=>t=>typeof t===e,{isArray:gr}=Array,fi=xs("undefined");function Fv(e){return e!==null&&!fi(e)&&e.constructor!==null&&!fi(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jp=ft("ArrayBuffer");function zv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jp(e.buffer),t}const Iv=xs("string"),Ue=xs("function"),Zp=xs("number"),ws=e=>e!==null&&typeof e=="object",Dv=e=>e===!0||e===!1,ol=e=>{if(gs(e)!=="object")return!1;const t=ku(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Av=ft("Date"),Bv=ft("File"),Uv=ft("Blob"),$v=ft("FileList"),Wv=e=>ws(e)&&Ue(e.pipe),Hv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ue(e.append)&&((t=gs(e))==="formdata"||t==="object"&&Ue(e.toString)&&e.toString()==="[object FormData]"))},Vv=ft("URLSearchParams"),[qv,Qv,Kv,Yv]=["ReadableStream","Request","Response","Headers"].map(ft),Xv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Si(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),gr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tm=e=>!fi(e)&&e!==jn;function pa(){const{caseless:e}=tm(this)&&this||{},t={},n=(r,i)=>{const l=e&&em(t,i)||i;ol(t[l])&&ol(r)?t[l]=pa(t[l],r):ol(r)?t[l]=pa({},r):gr(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(Si(t,(i,l)=>{n&&Ue(i)?e[l]=Gp(i,n):e[l]=i},{allOwnKeys:r}),e),Jv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zv=(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)},eg=(e,t,n,r)=>{let i,l,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)s=i[l],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&ku(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tg=(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},ng=e=>{if(!e)return null;if(gr(e))return e;let t=e.length;if(!Zp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ku(Uint8Array)),ig=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},lg=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sg=ft("HTMLFormElement"),og=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Gc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ag=ft("RegExp"),nm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Si(n,(i,l)=>{let s;(s=t(i,l,e))!==!1&&(r[l]=s||i)}),Object.defineProperties(e,r)},ug=e=>{nm(e,(t,n)=>{if(Ue(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ue(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+"'")})}})},cg=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return gr(e)?r(e):r(String(e).split(t)),n},dg=()=>{},fg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,lo="abcdefghijklmnopqrstuvwxyz",Jc="0123456789",rm={DIGIT:Jc,ALPHA:lo,ALPHA_DIGIT:lo+lo.toUpperCase()+Jc},pg=(e=16,t=rm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function mg(e){return!!(e&&Ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hg=e=>{const t=new Array(10),n=(r,i)=>{if(ws(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=gr(r)?[]:{};return Si(r,(s,a)=>{const u=n(s,i+1);!fi(u)&&(l[a]=u)}),t[i]=void 0,l}}return r};return n(e,0)},yg=ft("AsyncFunction"),vg=e=>e&&(ws(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),im=((e,t)=>e?setImmediate:t?((n,r)=>(jn.addEventListener("message",({source:i,data:l})=>{i===jn&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),jn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ue(jn.postMessage)),gg=typeof queueMicrotask<"u"?queueMicrotask.bind(jn):typeof process<"u"&&process.nextTick||im,S={isArray:gr,isArrayBuffer:Jp,isBuffer:Fv,isFormData:Hv,isArrayBufferView:zv,isString:Iv,isNumber:Zp,isBoolean:Dv,isObject:ws,isPlainObject:ol,isReadableStream:qv,isRequest:Qv,isResponse:Kv,isHeaders:Yv,isUndefined:fi,isDate:Av,isFile:Bv,isBlob:Uv,isRegExp:ag,isFunction:Ue,isStream:Wv,isURLSearchParams:Vv,isTypedArray:rg,isFileList:$v,forEach:Si,merge:pa,extend:Gv,trim:Xv,stripBOM:Jv,inherits:Zv,toFlatObject:eg,kindOf:gs,kindOfTest:ft,endsWith:tg,toArray:ng,forEachEntry:ig,matchAll:lg,isHTMLForm:sg,hasOwnProperty:Gc,hasOwnProp:Gc,reduceDescriptors:nm,freezeMethods:ug,toObjectSet:cg,toCamelCase:og,noop:dg,toFiniteNumber:fg,findKey:em,global:jn,isContextDefined:tm,ALPHABET:rm,generateString:pg,isSpecCompliantForm:mg,toJSONObject:hg,isAsyncFn:yg,isThenable:vg,setImmediate:im,asap:gg};function z(e,t,n,r,i){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),i&&(this.response=i,this.status=i.status?i.status:null)}S.inherits(z,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const lm=z.prototype,sm={};["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=>{sm[e]={value:e}});Object.defineProperties(z,sm);Object.defineProperty(lm,"isAxiosError",{value:!0});z.from=(e,t,n,r,i,l)=>{const s=Object.create(lm);return S.toFlatObject(e,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),z.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,l&&Object.assign(s,l),s};const xg=null;function ma(e){return S.isPlainObject(e)||S.isArray(e)}function om(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Zc(e,t,n){return e?e.concat(t).map(function(i,l){return i=om(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function wg(e){return S.isArray(e)&&!e.some(ma)}const jg=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function js(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,w){return!S.isUndefined(w[g])});const r=n.metaTokens,i=n.visitor||d,l=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(i))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(S.isDate(v))return v.toISOString();if(!u&&S.isBlob(v))throw new z("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(v)||S.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,g,w){let h=v;if(v&&!w&&typeof v=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(S.isArray(v)&&wg(v)||(S.isFileList(v)||S.endsWith(g,"[]"))&&(h=S.toArray(v)))return g=om(g),h.forEach(function(m,x){!(S.isUndefined(m)||m===null)&&t.append(s===!0?Zc([g],x,l):s===null?g:g+"[]",c(m))}),!1}return ma(v)?!0:(t.append(Zc(w,g,l),c(v)),!1)}const f=[],y=Object.assign(jg,{defaultVisitor:d,convertValue:c,isVisitable:ma});function j(v,g){if(!S.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),S.forEach(v,function(h,p){(!(S.isUndefined(h)||h===null)&&i.call(t,h,S.isString(p)?p.trim():p,g,y))===!0&&j(h,g?g.concat(p):[p])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return j(e),t}function ed(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _u(e,t){this._pairs=[],e&&js(e,this,t)}const am=_u.prototype;am.append=function(t,n){this._pairs.push([t,n])};am.toString=function(t){const n=t?function(r){return t.call(this,r,ed)}:ed;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ng(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function um(e,t,n){if(!t)return e;const r=n&&n.encode||Ng,i=n&&n.serialize;let l;if(i?l=i(t,n):l=S.isURLSearchParams(t)?t.toString():new _u(t,n).toString(r),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class td{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){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sg=typeof URLSearchParams<"u"?URLSearchParams:_u,Eg=typeof FormData<"u"?FormData:null,kg=typeof Blob<"u"?Blob:null,_g={isBrowser:!0,classes:{URLSearchParams:Sg,FormData:Eg,Blob:kg},protocols:["http","https","file","blob","url","data"]},Cu=typeof window<"u"&&typeof document<"u",ha=typeof navigator=="object"&&navigator||void 0,Cg=Cu&&(!ha||["ReactNative","NativeScript","NS"].indexOf(ha.product)<0),Pg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Og=Cu&&window.location.href||"http://localhost",Tg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cu,hasStandardBrowserEnv:Cg,hasStandardBrowserWebWorkerEnv:Pg,navigator:ha,origin:Og},Symbol.toStringTag,{value:"Module"})),be={...Tg,..._g};function Rg(e,t){return js(e,new be.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return be.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function bg(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lg(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return s=!s&&S.isArray(i)?i.length:s,u?(S.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!S.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],l)&&S.isArray(i[s])&&(i[s]=Lg(i[s])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,i)=>{t(bg(r),i,n,0)}),n}return null}function Mg(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ei={transitional:cm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=S.isObject(t);if(l&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return i?JSON.stringify(dm(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rg(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return js(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),Mg(t)):t}],transformResponse:[function(t){const n=this.transitional||Ei.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?z.from(a,z.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:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Ei.headers[e]={}});const Fg=S.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"]),zg=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Fg[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},nd=Symbol("internals");function Or(e){return e&&String(e).trim().toLowerCase()}function al(e){return e===!1||e==null?e:S.isArray(e)?e.map(al):String(e)}function Ig(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 Dg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function so(e,t,n,r,i){if(S.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function Ag(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Bg(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,s){return this[r].call(this,t,i,l,s)},configurable:!0})})}class Le{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(a,u,c){const d=Or(u);if(!d)throw new Error("header name must be a non-empty string");const f=S.findKey(i,d);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||u]=al(a))}const s=(a,u)=>S.forEach(a,(c,d)=>l(c,d,u));if(S.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(S.isString(t)&&(t=t.trim())&&!Dg(t))s(zg(t),n);else if(S.isHeaders(t))for(const[a,u]of t.entries())l(u,a,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Or(t),t){const r=S.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Ig(i);if(S.isFunction(n))return n.call(this,i,r);if(S.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Or(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||so(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(s){if(s=Or(s),s){const a=S.findKey(r,s);a&&(!n||so(r,r[a],a,n))&&(delete r[a],i=!0)}}return S.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||so(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return S.forEach(this,(i,l)=>{const s=S.findKey(r,l);if(s){n[s]=al(i),delete n[l];return}const a=t?Ag(l):String(l).trim();a!==l&&delete n[l],n[a]=al(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&S.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(i=>r.set(i)),r}static accessor(t){const r=(this[nd]=this[nd]={accessors:{}}).accessors,i=this.prototype;function l(s){const a=Or(s);r[a]||(Bg(i,s),r[a]=!0)}return S.isArray(t)?t.forEach(l):l(t),this}}Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Le.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Le);function oo(e,t){const n=this||Ei,r=t||n,i=Le.from(r.headers);let l=r.data;return S.forEach(e,function(a){l=a.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function fm(e){return!!(e&&e.__CANCEL__)}function xr(e,t,n){z.call(this,e??"canceled",z.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(xr,z,{__CANCEL__:!0});function pm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ug(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $g(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[l];s||(s=c),n[i]=u,r[i]=c;let f=l,y=0;for(;f!==i;)y+=n[f++],f=f%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),c-s{n=d,i=null,l&&(clearTimeout(l),l=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?s(c,d):(i=c,l||(l=setTimeout(()=>{l=null,s(i)},r-f)))},()=>i&&s(i)]}const Vl=(e,t,n=3)=>{let r=0;const i=$g(50,250);return Wg(l=>{const s=l.loaded,a=l.lengthComputable?l.total:void 0,u=s-r,c=i(u),d=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:l,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},rd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},id=e=>(...t)=>S.asap(()=>e(...t)),Hg=be.hasStandardBrowserEnv?function(){const t=be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent),n=document.createElement("a");let r;function i(l){let s=l;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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=i(window.location.href),function(s){const a=S.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Vg=be.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const s=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),S.isString(r)&&s.push("path="+r),S.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.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 qg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mm(e,t){return e&&!qg(t)?Qg(e,t):t}const ld=e=>e instanceof Le?{...e}:e;function Ln(e,t){t=t||{};const n={};function r(c,d,f){return S.isPlainObject(c)&&S.isPlainObject(d)?S.merge.call({caseless:f},c,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function i(c,d,f){if(S.isUndefined(d)){if(!S.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function l(c,d){if(!S.isUndefined(d))return r(void 0,d)}function s(c,d){if(S.isUndefined(d)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const u={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>i(ld(c),ld(d),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||i,y=f(e[d],t[d],d);S.isUndefined(y)&&f!==a||(n[d]=y)}),n}const hm=e=>{const t=Ln({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:a}=t;t.headers=s=Le.from(s),t.url=um(mm(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(S.isFormData(n)){if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(be.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&Hg(t.url))){const c=i&&l&&Vg.read(l);c&&s.set(i,c)}return t},Kg=typeof XMLHttpRequest<"u",Yg=Kg&&function(e){return new Promise(function(n,r){const i=hm(e);let l=i.data;const s=Le.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,d,f,y,j,v;function g(){j&&j(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(i.method.toUpperCase(),i.url,!0),w.timeout=i.timeout;function h(){if(!w)return;const m=Le.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:m,config:e,request:w};pm(function(P){n(P),g()},function(P){r(P),g()},k),w=null}"onloadend"in w?w.onloadend=h:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(h)},w.onabort=function(){w&&(r(new z("Request aborted",z.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new z("Network Error",z.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||cm;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new z(x,k.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,w)),w=null},l===void 0&&s.setContentType(null),"setRequestHeader"in w&&S.forEach(s.toJSON(),function(x,k){w.setRequestHeader(k,x)}),S.isUndefined(i.withCredentials)||(w.withCredentials=!!i.withCredentials),a&&a!=="json"&&(w.responseType=i.responseType),c&&([y,v]=Vl(c,!0),w.addEventListener("progress",y)),u&&w.upload&&([f,j]=Vl(u),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",j)),(i.cancelToken||i.signal)&&(d=m=>{w&&(r(!m||m.type?new xr(null,e,w):m),w.abort(),w=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const p=Ug(i.url);if(p&&be.protocols.indexOf(p)===-1){r(new z("Unsupported protocol "+p+":",z.ERR_BAD_REQUEST,e));return}w.send(l||null)})},Xg=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(c){if(!i){i=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof z?d:new xr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,l(new z(`timeout ${t} of ms exceeded`,z.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>S.asap(a),u}},Gg=function*(e,t){let n=e.byteLength;if(!t||n{const i=Jg(e,t);let l=0,s,a=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await i.next();if(c){a(),u.close();return}let f=d.byteLength;if(n){let y=l+=f;n(y)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},Ns=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ym=Ns&&typeof ReadableStream=="function",e1=Ns&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},t1=ym&&vm(()=>{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),od=64*1024,ya=ym&&vm(()=>S.isReadableStream(new Response("").body)),ql={stream:ya&&(e=>e.body)};Ns&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ql[t]&&(ql[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new z(`Response type '${t}' is not supported`,z.ERR_NOT_SUPPORT,r)})})})(new Response);const n1=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(be.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await e1(e)).byteLength},r1=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??n1(t)},i1=Ns&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:y}=hm(e);c=c?(c+"").toLowerCase():"text";let j=Xg([i,l&&l.toAbortSignal()],s),v;const g=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let w;try{if(u&&t1&&n!=="get"&&n!=="head"&&(w=await r1(d,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(S.isFormData(r)&&(C=k.headers.get("content-type"))&&d.setContentType(C),k.body){const[P,_]=rd(w,Vl(id(u)));r=sd(k.body,od,P,_)}}S.isString(f)||(f=f?"include":"omit");const h="credentials"in Request.prototype;v=new Request(t,{...y,signal:j,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:h?f:void 0});let p=await fetch(v);const m=ya&&(c==="stream"||c==="response");if(ya&&(a||m&&g)){const k={};["status","statusText","headers"].forEach(b=>{k[b]=p[b]});const C=S.toFiniteNumber(p.headers.get("content-length")),[P,_]=a&&rd(C,Vl(id(a),!0))||[];p=new Response(sd(p.body,od,P,()=>{_&&_(),g&&g()}),k)}c=c||"text";let x=await ql[S.findKey(ql,c)||"text"](p,e);return!m&&g&&g(),await new Promise((k,C)=>{pm(k,C,{data:x,headers:Le.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:v})})}catch(h){throw g&&g(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new z("Network Error",z.ERR_NETWORK,e,v),{cause:h.cause||h}):z.from(h,h&&h.code,e,v)}}),va={http:xg,xhr:Yg,fetch:i1};S.forEach(va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ad=e=>`- ${e}`,l1=e=>S.isFunction(e)||e===null||e===!1,gm={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?l.length>1?`since : +`+l.map(ad).join(` +`):" "+ad(l[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:va};function ao(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function ud(e){return ao(e),e.headers=Le.from(e.headers),e.data=oo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gm.getAdapter(e.adapter||Ei.adapter)(e).then(function(r){return ao(e),r.data=oo.call(e,e.transformResponse,r),r.headers=Le.from(r.headers),r},function(r){return fm(r)||(ao(e),r&&r.response&&(r.response.data=oo.call(e,e.transformResponse,r.response),r.response.headers=Le.from(r.response.headers))),Promise.reject(r)})}const xm="1.7.7",Pu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const cd={};Pu.transitional=function(t,n,r){function i(l,s){return"[Axios v"+xm+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(t===!1)throw new z(i(s," has been removed"+(n?" in "+n:"")),z.ERR_DEPRECATED);return n&&!cd[s]&&(cd[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,s,a):!0}};function s1(e,t,n){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],s=t[l];if(s){const a=e[l],u=a===void 0||s(a,l,e);if(u!==!0)throw new z("option "+l+" must be "+u,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z("Unknown option "+l,z.ERR_BAD_OPTION)}}const ga={assertOptions:s1,validators:Pu},zt=ga.validators;class En{constructor(t){this.defaults=t,this.interceptors={request:new td,response:new td}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ln(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&ga.assertOptions(r,{silentJSONParsing:zt.transitional(zt.boolean),forcedJSONParsing:zt.transitional(zt.boolean),clarifyTimeoutError:zt.transitional(zt.boolean)},!1),i!=null&&(S.isFunction(i)?n.paramsSerializer={serialize:i}:ga.assertOptions(i,{encode:zt.function,serialize:zt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&S.merge(l.common,l[n.method]);l&&S.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=Le.concat(s,l);const a=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,y;if(!u){const v=[ud.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);f{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},t(function(l,s,a){r.reason||(r.reason=new xr(l,s,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 Ou(function(i){t=i}),cancel:t}}}function o1(e){return function(n){return e.apply(null,n)}}function a1(e){return S.isObject(e)&&e.isAxiosError===!0}const xa={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(xa).forEach(([e,t])=>{xa[t]=e});function wm(e){const t=new En(e),n=Gp(En.prototype.request,t);return S.extend(n,En.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return wm(Ln(e,i))},n}const K=wm(Ei);K.Axios=En;K.CanceledError=xr;K.CancelToken=Ou;K.isCancel=fm;K.VERSION=xm;K.toFormData=js;K.AxiosError=z;K.Cancel=K.CanceledError;K.all=function(t){return Promise.all(t)};K.spread=o1;K.isAxiosError=a1;K.mergeConfig=Ln;K.AxiosHeaders=Le;K.formToJSON=e=>dm(S.isHTMLForm(e)?new FormData(e):e);K.getAdapter=gm.getAdapter;K.HttpStatusCode=xa;K.default=K;const u1="http://67.225.129.127:3002",dn=K.create({baseURL:u1});dn.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const c1=e=>dn.post("/users/signup",e),d1=e=>dn.post("/users/signin",e),f1=(e,t,n)=>dn.get(`/users/${e}/verify/${t}`,n),p1=e=>dn.post("/properties",e),m1=e=>dn.get(`/properties/user/${e}`,e),h1=e=>dn.get(`/properties/${e}`,e),y1=(e,t)=>dn.put(`/properties/${e}`,t),ul=bt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await d1(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),cl=bt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await c1(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),uo=bt("auth/updateUser",async({id:e,data:t},{rejectWithValue:n})=>{try{return(await(void 0)(t,e)).data}catch(r){return n(r.response.data)}}),jm=Eu({name:"auth",initialState:{user:null,error:"",loading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload}},extraReducers:e=>{e.addCase(ul.pending,t=>{t.loading=!0}).addCase(ul.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(ul.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(cl.pending,t=>{t.loading=!0}).addCase(cl.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(cl.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(uo.pending,t=>{t.loading=!0}).addCase(uo.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(uo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message})}}),{setUser:Dw,setLogout:v1,setUserDetails:Aw}=jm.actions,g1=jm.reducer,co=bt("user/showUser",async({id:e,data:t},{rejectWithValue:n})=>{try{const r=await(void 0)(t,e);return console.log("dsdsdsds22",r),r.data}catch(r){return n(r.response.data)}}),dl=bt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await f1(e,t,n)).data.message}catch(i){return r(i.response.data)}}),x1=Eu({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1},reducers:{},extraReducers:e=>{e.addCase(co.pending,t=>{t.loading=!0}).addCase(co.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.users=Array.isArray(n.payload)?n.payload:[]}).addCase(co.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(dl.pending,t=>{t.loading=!0,t.error=null}).addCase(dl.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(dl.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),w1=x1.reducer,fl=bt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await p1(e)).data}catch(n){return t(n.response.data)}}),pl=bt("property/fetchUserProperties",async(e,{rejectWithValue:t})=>{try{return(await m1(e)).data}catch(n){return t(n.response.data)}}),Vr=bt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await h1(e)).data}catch(n){return t(n.response.data)}}),ml=bt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await y1(e,t)).data}catch(r){return n(r.response.data)}}),j1=Eu({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null},reducers:{},extraReducers:e=>{e.addCase(fl.pending,t=>{t.status="loading"}).addCase(fl.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(fl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(pl.pending,t=>{t.status="loading"}).addCase(pl.fulfilled,(t,n)=>{t.status="succeeded",t.userProperties=n.payload}).addCase(pl.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Vr.pending,t=>{t.status="loading"}).addCase(Vr.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Vr.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ml.pending,t=>{t.status="loading"}).addCase(ml.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(ml.rejected,(t,n)=>{t.status="failed",t.error=n.payload})}}),N1=j1.reducer,S1=mv({reducer:{auth:g1,user:w1,property:N1}});/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. @@ -59,7 +59,7 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S1(){return Math.random().toString(36).substr(2,8)}function dd(e,t){return{usr:e.state,key:e.key,idx:t}}function xa(e,t,n,r){return n===void 0&&(n=null),pi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wr(t):t,{state:n,key:t&&t.key||r||S1()})}function ql(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 wr(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 E1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,a=qt.Pop,u=null,c=d();c==null&&(c=0,s.replaceState(pi({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=qt.Pop;let w=d(),h=w==null?null:w-c;c=w,u&&u({action:a,location:g.location,delta:h})}function y(w,h){a=qt.Push;let p=xa(g.location,w,h);c=d()+1;let m=dd(p,c),x=g.createHref(p);try{s.pushState(m,"",x)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(x)}l&&u&&u({action:a,location:g.location,delta:1})}function j(w,h){a=qt.Replace;let p=xa(g.location,w,h);c=d();let m=dd(p,c),x=g.createHref(p);s.replaceState(m,"",x),l&&u&&u({action:a,location:g.location,delta:0})}function v(w){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof w=="string"?w:ql(w);return p=p.replace(/ $/,"%20"),Z(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return a},get location(){return e(i,s)},listen(w){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(cd,f),u=w,()=>{i.removeEventListener(cd,f),u=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let h=v(w);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:y,replace:j,go(w){return s.go(w)}};return g}var fd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fd||(fd={}));function k1(e,t,n){return n===void 0&&(n="/"),_1(e,t,n,!1)}function _1(e,t,n,r){let i=typeof t=="string"?wr(t):t,l=mr(i.pathname||"/",n);if(l==null)return null;let s=Nm(e);C1(s);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};u.relativePath.startsWith("/")&&(Z(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=nn([r,u.relativePath]),d=n.concat(u);l.children&&l.children.length>0&&(Z(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Nm(l.children,t,d,c)),!(l.path==null&&!l.index)&&t.push({path:c,score:M1(c,l.index),routesMeta:d})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))i(l,s);else for(let u of Sm(l.path))i(l,s,u)}),t}function Sm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=Sm(r.join("/")),a=[];return a.push(...s.map(u=>u===""?l:[l,u].join("/"))),i&&a.push(...s),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function C1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:F1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const P1=/^:[\w-]+$/,O1=3,T1=2,R1=1,b1=10,L1=-2,pd=e=>e==="*";function M1(e,t){let n=e.split("/"),r=n.length;return n.some(pd)&&(r+=L1),t&&(r+=T1),n.filter(i=>!pd(i)).reduce((i,l)=>i+(P1.test(l)?O1:l===""?R1:b1),r)}function F1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function z1(e,t,n){let{routesMeta:r}=e,i={},l="/",s=[];for(let a=0;a{let{paramName:y,isOptional:j}=d;if(y==="*"){let g=a[f]||"";s=l.slice(0,l.length-g.length).replace(/(.)\/+$/,"$1")}const v=a[f];return j&&!v?c[y]=void 0:c[y]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:s,pattern:e}}function I1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jm(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function A1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function mr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function D1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?wr(e):e;return{pathname:n?n.startsWith("/")?n:B1(n,t):t,search:W1(r),hash:H1(i)}}function B1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function co(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 U1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Em(e,t){let n=U1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function km(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=wr(e):(i=pi({},e),Z(!i.pathname||!i.pathname.includes("?"),co("?","pathname","search",i)),Z(!i.pathname||!i.pathname.includes("#"),co("#","pathname","hash",i)),Z(!i.search||!i.search.includes("#"),co("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),f-=1;i.pathname=y.join("/")}a=f>=0?t[f]:"/"}let u=D1(i,a),c=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),$1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,H1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function V1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _m=["post","put","patch","delete"];new Set(_m);const q1=["get",..._m];new Set(q1);/** + */function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Nm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function k1(){return Math.random().toString(36).substr(2,8)}function fd(e,t){return{usr:e.state,key:e.key,idx:t}}function wa(e,t,n,r){return n===void 0&&(n=null),pi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wr(t):t,{state:n,key:t&&t.key||r||k1()})}function Ql(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 wr(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 _1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,a=qt.Pop,u=null,c=d();c==null&&(c=0,s.replaceState(pi({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=qt.Pop;let w=d(),h=w==null?null:w-c;c=w,u&&u({action:a,location:g.location,delta:h})}function y(w,h){a=qt.Push;let p=wa(g.location,w,h);c=d()+1;let m=fd(p,c),x=g.createHref(p);try{s.pushState(m,"",x)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(x)}l&&u&&u({action:a,location:g.location,delta:1})}function j(w,h){a=qt.Replace;let p=wa(g.location,w,h);c=d();let m=fd(p,c),x=g.createHref(p);s.replaceState(m,"",x),l&&u&&u({action:a,location:g.location,delta:0})}function v(w){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof w=="string"?w:Ql(w);return p=p.replace(/ $/,"%20"),Z(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return a},get location(){return e(i,s)},listen(w){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(dd,f),u=w,()=>{i.removeEventListener(dd,f),u=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let h=v(w);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:y,replace:j,go(w){return s.go(w)}};return g}var pd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pd||(pd={}));function C1(e,t,n){return n===void 0&&(n="/"),P1(e,t,n,!1)}function P1(e,t,n,r){let i=typeof t=="string"?wr(t):t,l=mr(i.pathname||"/",n);if(l==null)return null;let s=Sm(e);O1(s);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};u.relativePath.startsWith("/")&&(Z(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=nn([r,u.relativePath]),d=n.concat(u);l.children&&l.children.length>0&&(Z(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Sm(l.children,t,d,c)),!(l.path==null&&!l.index)&&t.push({path:c,score:z1(c,l.index),routesMeta:d})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))i(l,s);else for(let u of Em(l.path))i(l,s,u)}),t}function Em(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=Em(r.join("/")),a=[];return a.push(...s.map(u=>u===""?l:[l,u].join("/"))),i&&a.push(...s),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function O1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const T1=/^:[\w-]+$/,R1=3,b1=2,L1=1,M1=10,F1=-2,md=e=>e==="*";function z1(e,t){let n=e.split("/"),r=n.length;return n.some(md)&&(r+=F1),t&&(r+=b1),n.filter(i=>!md(i)).reduce((i,l)=>i+(T1.test(l)?R1:l===""?L1:M1),r)}function I1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function D1(e,t,n){let{routesMeta:r}=e,i={},l="/",s=[];for(let a=0;a{let{paramName:y,isOptional:j}=d;if(y==="*"){let g=a[f]||"";s=l.slice(0,l.length-g.length).replace(/(.)\/+$/,"$1")}const v=a[f];return j&&!v?c[y]=void 0:c[y]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:s,pattern:e}}function A1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nm(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function B1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function mr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function U1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?wr(e):e;return{pathname:n?n.startsWith("/")?n:$1(n,t):t,search:V1(r),hash:q1(i)}}function $1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function fo(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 W1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function km(e,t){let n=W1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _m(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=wr(e):(i=pi({},e),Z(!i.pathname||!i.pathname.includes("?"),fo("?","pathname","search",i)),Z(!i.pathname||!i.pathname.includes("#"),fo("#","pathname","hash",i)),Z(!i.search||!i.search.includes("#"),fo("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),f-=1;i.pathname=y.join("/")}a=f>=0?t[f]:"/"}let u=U1(i,a),c=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),H1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,q1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Q1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Cm=["post","put","patch","delete"];new Set(Cm);const K1=["get",...Cm];new Set(K1);/** * React Router v6.26.1 * * Copyright (c) Remix Software Inc. @@ -68,7 +68,7 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),E.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=km(c,JSON.parse(s),l,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:nn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,l,e])}function Pi(){let{matches:e}=E.useContext(fn),t=e[e.length-1];return t?t.params:{}}function Es(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(dn),{matches:i}=E.useContext(fn),{pathname:l}=_i(),s=JSON.stringify(Em(i,r.v7_relativeSplatPath));return E.useMemo(()=>km(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function Y1(e,t){return X1(e,t)}function X1(e,t,n,r){ki()||Z(!1);let{navigator:i}=E.useContext(dn),{matches:l}=E.useContext(fn),s=l[l.length-1],a=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=_i(),d;if(t){var f;let w=typeof t=="string"?wr(t):t;u==="/"||(f=w.pathname)!=null&&f.startsWith(u)||Z(!1),d=w}else d=c;let y=d.pathname||"/",j=y;if(u!=="/"){let w=u.replace(/^\//,"").split("/");j="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=k1(e,{pathname:j}),g=tx(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:nn([u,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:nn([u,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),l,n,r);return t&&g?E.createElement(Ss.Provider,{value:{location:mi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:qt.Pop}},g):g}function G1(){let e=lx(),t=V1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,null)}const J1=E.createElement(G1,null);class Z1 extends E.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?E.createElement(fn.Provider,{value:this.props.routeContext},E.createElement(Pm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ex(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(Ns);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(fn.Provider,{value:t},r)}function tx(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Z(!1),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,f,y)=>{let j,v=!1,g=null,w=null;n&&(j=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||J1,u&&(c<0&&y===0?(v=!0,w=null):c===y&&(v=!0,w=f.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,y+1)),p=()=>{let m;return j?m=g:v?m=w:f.route.Component?m=E.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=d,E.createElement(ex,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||y===0)?E.createElement(Z1,{location:n.location,revalidation:n.revalidation,component:g,error:j,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Tm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Tm||{}),Kl=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}(Kl||{});function nx(e){let t=E.useContext(Ns);return t||Z(!1),t}function rx(e){let t=E.useContext(Cm);return t||Z(!1),t}function ix(e){let t=E.useContext(fn);return t||Z(!1),t}function Rm(e){let t=ix(),n=t.matches[t.matches.length-1];return n.route.id||Z(!1),n.route.id}function lx(){var e;let t=E.useContext(Pm),n=rx(Kl.UseRouteError),r=Rm(Kl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sx(){let{router:e}=nx(Tm.UseNavigateStable),t=Rm(Kl.UseNavigateStable),n=E.useRef(!1);return Om(()=>{n.current=!0}),E.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mi({fromRouteId:t},l)))},[e,t])}function he(e){Z(!1)}function ox(e){let{basename:t="/",children:n=null,location:r,navigationType:i=qt.Pop,navigator:l,static:s=!1,future:a}=e;ki()&&Z(!1);let u=t.replace(/^\/*/,"/"),c=E.useMemo(()=>({basename:u,navigator:l,static:s,future:mi({v7_relativeSplatPath:!1},a)}),[u,a,l,s]);typeof r=="string"&&(r=wr(r));let{pathname:d="/",search:f="",hash:y="",state:j=null,key:v="default"}=r,g=E.useMemo(()=>{let w=mr(d,u);return w==null?null:{location:{pathname:w,search:f,hash:y,state:j,key:v},navigationType:i}},[u,d,f,y,j,v,i]);return g==null?null:E.createElement(dn.Provider,{value:c},E.createElement(Ss.Provider,{children:n,value:g}))}function ax(e){let{children:t,location:n}=e;return Y1(wa(t),n)}new Promise(()=>{});function wa(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let l=[...t,i];if(r.type===E.Fragment){n.push.apply(n,wa(r.props.children,l));return}r.type!==he&&Z(!1),!r.props.index||!r.props.children||Z(!1);let s={id:r.props.id||l.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&&(s.children=wa(r.props.children,l)),n.push(s)}),n}/** + */function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),E.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=_m(c,JSON.parse(s),l,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:nn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,l,e])}function Pi(){let{matches:e}=E.useContext(pn),t=e[e.length-1];return t?t.params:{}}function ks(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(fn),{matches:i}=E.useContext(pn),{pathname:l}=_i(),s=JSON.stringify(km(i,r.v7_relativeSplatPath));return E.useMemo(()=>_m(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function G1(e,t){return J1(e,t)}function J1(e,t,n,r){ki()||Z(!1);let{navigator:i}=E.useContext(fn),{matches:l}=E.useContext(pn),s=l[l.length-1],a=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=_i(),d;if(t){var f;let w=typeof t=="string"?wr(t):t;u==="/"||(f=w.pathname)!=null&&f.startsWith(u)||Z(!1),d=w}else d=c;let y=d.pathname||"/",j=y;if(u!=="/"){let w=u.replace(/^\//,"").split("/");j="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=C1(e,{pathname:j}),g=rx(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:nn([u,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:nn([u,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),l,n,r);return t&&g?E.createElement(Es.Provider,{value:{location:mi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:qt.Pop}},g):g}function Z1(){let e=ox(),t=Q1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,null)}const ex=E.createElement(Z1,null);class tx extends E.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?E.createElement(pn.Provider,{value:this.props.routeContext},E.createElement(Om.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nx(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(Ss);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(pn.Provider,{value:t},r)}function rx(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Z(!1),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,f,y)=>{let j,v=!1,g=null,w=null;n&&(j=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||ex,u&&(c<0&&y===0?(v=!0,w=null):c===y&&(v=!0,w=f.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,y+1)),p=()=>{let m;return j?m=g:v?m=w:f.route.Component?m=E.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=d,E.createElement(nx,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||y===0)?E.createElement(tx,{location:n.location,revalidation:n.revalidation,component:g,error:j,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Rm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Rm||{}),Yl=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}(Yl||{});function ix(e){let t=E.useContext(Ss);return t||Z(!1),t}function lx(e){let t=E.useContext(Pm);return t||Z(!1),t}function sx(e){let t=E.useContext(pn);return t||Z(!1),t}function bm(e){let t=sx(),n=t.matches[t.matches.length-1];return n.route.id||Z(!1),n.route.id}function ox(){var e;let t=E.useContext(Om),n=lx(Yl.UseRouteError),r=bm(Yl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ax(){let{router:e}=ix(Rm.UseNavigateStable),t=bm(Yl.UseNavigateStable),n=E.useRef(!1);return Tm(()=>{n.current=!0}),E.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mi({fromRouteId:t},l)))},[e,t])}function he(e){Z(!1)}function ux(e){let{basename:t="/",children:n=null,location:r,navigationType:i=qt.Pop,navigator:l,static:s=!1,future:a}=e;ki()&&Z(!1);let u=t.replace(/^\/*/,"/"),c=E.useMemo(()=>({basename:u,navigator:l,static:s,future:mi({v7_relativeSplatPath:!1},a)}),[u,a,l,s]);typeof r=="string"&&(r=wr(r));let{pathname:d="/",search:f="",hash:y="",state:j=null,key:v="default"}=r,g=E.useMemo(()=>{let w=mr(d,u);return w==null?null:{location:{pathname:w,search:f,hash:y,state:j,key:v},navigationType:i}},[u,d,f,y,j,v,i]);return g==null?null:E.createElement(fn.Provider,{value:c},E.createElement(Es.Provider,{children:n,value:g}))}function cx(e){let{children:t,location:n}=e;return G1(ja(t),n)}new Promise(()=>{});function ja(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let l=[...t,i];if(r.type===E.Fragment){n.push.apply(n,ja(r.props.children,l));return}r.type!==he&&Z(!1),!r.props.index||!r.props.children||Z(!1);let s={id:r.props.id||l.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&&(s.children=ja(r.props.children,l)),n.push(s)}),n}/** * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. @@ -77,4 +77,4 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function ux(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cx(e,t){return e.button===0&&(!t||t==="_self")&&!ux(e)}const dx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],fx=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],px="6";try{window.__reactRouterVersion=px}catch{}const mx=E.createContext({isTransitioning:!1}),hx="startTransition",md=po[hx];function yx(e){let{basename:t,children:n,future:r,window:i}=e,l=E.useRef();l.current==null&&(l.current=N1({window:i,v5Compat:!0}));let s=l.current,[a,u]=E.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=E.useCallback(f=>{c&&md?md(()=>u(f)):u(f)},[u,c]);return E.useLayoutEffect(()=>s.listen(d),[s,d]),E.createElement(ox,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const vx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xx=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:s,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,y=bm(t,dx),{basename:j}=E.useContext(dn),v,g=!1;if(typeof c=="string"&&gx.test(c)&&(v=c,vx))try{let m=new URL(window.location.href),x=c.startsWith("//")?new URL(m.protocol+c):new URL(c),k=mr(x.pathname,j);x.origin===m.origin&&k!=null?c=k+x.search+x.hash:g=!0}catch{}let w=Q1(c,{relative:i}),h=jx(c,{replace:s,state:a,target:u,preventScrollReset:d,relative:i,unstable_viewTransition:f});function p(m){r&&r(m),m.defaultPrevented||h(m)}return E.createElement("a",Yl({},y,{href:v||w,onClick:g||l?r:p,ref:n,target:u}))}),te=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:l="",end:s=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,f=bm(t,fx),y=Es(u,{relative:f.relative}),j=_i(),v=E.useContext(Cm),{navigator:g,basename:w}=E.useContext(dn),h=v!=null&&Nx(y)&&c===!0,p=g.encodeLocation?g.encodeLocation(y).pathname:y.pathname,m=j.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(m=m.toLowerCase(),x=x?x.toLowerCase():null,p=p.toLowerCase()),x&&w&&(x=mr(x,w)||x);const k=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let C=m===p||!s&&m.startsWith(p)&&m.charAt(k)==="/",P=x!=null&&(x===p||!s&&x.startsWith(p)&&x.charAt(p.length)==="/"),_={isActive:C,isPending:P,isTransitioning:h},b=C?r:void 0,L;typeof l=="function"?L=l(_):L=[l,C?"active":null,P?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let H=typeof a=="function"?a(_):a;return E.createElement(xx,Yl({},f,{"aria-current":b,className:L,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(_):d)});var ja;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ja||(ja={}));var hd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hd||(hd={}));function wx(e){let t=E.useContext(Ns);return t||Z(!1),t}function jx(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,u=Ci(),c=_i(),d=Es(e,{relative:s});return E.useCallback(f=>{if(cx(f,n)){f.preventDefault();let y=r!==void 0?r:ql(c)===ql(d);u(e,{replace:y,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a})}},[c,u,d,r,i,n,e,l,s,a])}function Nx(e,t){t===void 0&&(t={});let n=E.useContext(mx);n==null&&Z(!1);let{basename:r}=wx(ja.useViewTransitionState),i=Es(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=mr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=mr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ql(i.pathname,s)!=null||Ql(i.pathname,l)!=null}function Lm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),En=e=>typeof e=="string",De=e=>typeof e=="function",ml=e=>En(e)||De(e)?e:null,Na=e=>E.isValidElement(e)||En(e)||De(e)||hi(e);function Sx(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function ks(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(s){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:y,playToast:j}=s;const v=r?`${t}--${u}`:t,g=r?`${n}--${u}`:n,w=E.useRef(0);return E.useLayoutEffect(()=>{const h=f.current,p=v.split(" "),m=x=>{x.target===f.current&&(j(),h.removeEventListener("animationend",m),h.removeEventListener("animationcancel",m),w.current===0&&x.type!=="animationcancel"&&h.classList.remove(...p))};h.classList.add(...p),h.addEventListener("animationend",m),h.addEventListener("animationcancel",m)},[]),E.useEffect(()=>{const h=f.current,p=()=>{h.removeEventListener("animationend",p),i?Sx(h,d,l):d()};y||(c?p():(w.current=1,h.className+=` ${g}`,h.addEventListener("animationend",p)))},[y]),N.createElement(N.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 we=new Map;let yi=[];const Sa=new Set,Ex=e=>Sa.forEach(t=>t(e)),Mm=()=>we.size>0;function Fm(e,t){var n;if(t)return!((n=we.get(t))==null||!n.isToastActive(e));let r=!1;return we.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function zm(e,t){Na(e)&&(Mm()||yi.push({content:e,options:t}),we.forEach(n=>{n.buildToast(e,t)}))}function vd(e,t){we.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 kx(e){const{subscribe:t,getSnapshot:n,setProps:r}=E.useRef(function(l){const s=l.containerId||1;return{subscribe(a){const u=function(d,f,y){let j=1,v=0,g=[],w=[],h=[],p=f;const m=new Map,x=new Set,k=()=>{h=Array.from(m.values()),x.forEach(_=>_())},C=_=>{w=_==null?[]:w.filter(b=>b!==_),k()},P=_=>{const{toastId:b,onOpen:L,updateId:H,children:Ee}=_.props,Ke=H==null;_.staleId&&m.delete(_.staleId),m.set(b,_),w=[...w,_.props.toastId].filter(tt=>tt!==_.staleId),k(),y(yd(_,Ke?"added":"updated")),Ke&&De(L)&&L(E.isValidElement(Ee)&&Ee.props)};return{id:d,props:p,observe:_=>(x.add(_),()=>x.delete(_)),toggle:(_,b)=>{m.forEach(L=>{b!=null&&b!==L.props.toastId||De(L.toggle)&&L.toggle(_)})},removeToast:C,toasts:m,clearQueue:()=>{v-=g.length,g=[]},buildToast:(_,b)=>{if((U=>{let{containerId:ae,toastId:re,updateId:ke}=U;const ge=ae?ae!==d:d!==1,pt=m.has(re)&&ke==null;return ge||pt})(b))return;const{toastId:L,updateId:H,data:Ee,staleId:Ke,delay:tt}=b,Lt=()=>{C(L)},Mt=H==null;Mt&&v++;const Fe={...p,style:p.toastStyle,key:j++,...Object.fromEntries(Object.entries(b).filter(U=>{let[ae,re]=U;return re!=null})),toastId:L,updateId:H,data:Ee,closeToast:Lt,isIn:!1,className:ml(b.className||p.toastClassName),bodyClassName:ml(b.bodyClassName||p.bodyClassName),progressClassName:ml(b.progressClassName||p.progressClassName),autoClose:!b.isLoading&&(T=b.autoClose,M=p.autoClose,T===!1||hi(T)&&T>0?T:M),deleteToast(){const U=m.get(L),{onClose:ae,children:re}=U.props;De(ae)&&ae(E.isValidElement(re)&&re.props),y(yd(U,"removed")),m.delete(L),v--,v<0&&(v=0),g.length>0?P(g.shift()):k()}};var T,M;Fe.closeButton=p.closeButton,b.closeButton===!1||Na(b.closeButton)?Fe.closeButton=b.closeButton:b.closeButton===!0&&(Fe.closeButton=!Na(p.closeButton)||p.closeButton);let F=_;E.isValidElement(_)&&!En(_.type)?F=E.cloneElement(_,{closeToast:Lt,toastProps:Fe,data:Ee}):De(_)&&(F=_({closeToast:Lt,toastProps:Fe,data:Ee}));const B={content:F,props:Fe,staleId:Ke};p.limit&&p.limit>0&&v>p.limit&&Mt?g.push(B):hi(tt)?setTimeout(()=>{P(B)},tt):P(B)},setProps(_){p=_},setToggle:(_,b)=>{m.get(_).toggle=b},isToastActive:_=>w.some(b=>b===_),getSnapshot:()=>p.newestOnTop?h.reverse():h}}(s,l,Ex);we.set(s,u);const c=u.observe(a);return yi.forEach(d=>zm(d.content,d.options)),yi=[],()=>{c(),we.delete(s)}},setProps(a){var u;(u=we.get(s))==null||u.setProps(a)},getSnapshot(){var a;return(a=we.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=E.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:u}=a.props;s.has(u)||s.set(u,[]),s.get(u).push(a)}),Array.from(s,a=>l(a[0],a[1]))},isToastActive:Fm,count:i==null?void 0:i.length}}function _x(e){const[t,n]=E.useState(!1),[r,i]=E.useState(!1),l=E.useRef(null),s=E.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var y,j;function v(){n(!0)}function g(){n(!1)}function w(m){const x=l.current;s.canDrag&&x&&(s.didMove=!0,t&&g(),s.delta=e.draggableDirection==="x"?m.clientX-s.start:m.clientY-s.start,s.start!==m.clientX&&(s.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function h(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",h);const m=l.current;if(s.canDrag&&s.didMove&&m){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity")}}(j=we.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||j.setToggle(y.id,y.fn),E.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",v),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const p={onPointerDown:function(m){if(e.draggable===!0||e.draggable===m.pointerType){s.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",h);const x=l.current;s.canCloseOnClick=!0,s.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(s.start=m.clientX,s.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(s.start=m.clientY,s.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(m){const{top:x,bottom:k,left:C,right:P}=l.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&e.pauseOnHover&&m.clientX>=C&&m.clientX<=P&&m.clientY>=x&&m.clientY<=k?g():v()}};return a&&u&&(p.onMouseEnter=g,e.stacked||(p.onMouseLeave=v)),f&&(p.onClick=m=>{d&&d(m),s.canCloseOnClick&&c()}),{playToast:v,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:p}}function Cx(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:s,style:a,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:y}=e;const j=l||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const g=Qt("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),w=De(s)?s({rtl:d,type:i,defaultClassName:g}):Qt(g,s),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&r()}};return N.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":j},N.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),N.createElement("div",{role:"progressbar","aria-hidden":j?"true":"false","aria-label":"notification timer",className:w,style:v,...h}))}let Px=1;const Im=()=>""+Px++;function Ox(e){return e&&(En(e.toastId)||hi(e.toastId))?e.toastId:Im()}function qr(e,t){return zm(e,t),t.toastId}function Xl(e,t){return{...t,type:t&&t.type||e,toastId:Ox(t)}}function Qi(e){return(t,n)=>qr(t,Xl(e,n))}function I(e,t){return qr(e,Xl("default",t))}I.loading=(e,t)=>qr(e,Xl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),I.promise=function(e,t,n){let r,{pending:i,error:l,success:s}=t;i&&(r=En(i)?I.loading(i,n):I.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,y)=>{if(f==null)return void I.dismiss(r);const j={type:d,...a,...n,data:y},v=En(f)?{render:f}:f;return r?I.update(r,{...j,...v}):I(v.render,{...j,...v}),y},c=De(e)?e():e;return c.then(d=>u("success",s,d)).catch(d=>u("error",l,d)),c},I.success=Qi("success"),I.info=Qi("info"),I.error=Qi("error"),I.warning=Qi("warning"),I.warn=I.warning,I.dark=(e,t)=>qr(e,Xl("default",{theme:"dark",...t})),I.dismiss=function(e){(function(t){var n;if(Mm()){if(t==null||En(n=t)||hi(n))we.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=we.get(t.containerId);r?r.removeToast(t.id):we.forEach(i=>{i.removeToast(t.id)})}}else yi=yi.filter(r=>t!=null&&r.options.toastId!==t)})(e)},I.clearWaitingQueue=function(e){e===void 0&&(e={}),we.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},I.isActive=Fm,I.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=we.get(s||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:Im()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,qr(s,l)}},I.done=e=>{I.update(e,{progress:1})},I.onChange=function(e){return Sa.add(e),()=>{Sa.delete(e)}},I.play=e=>vd(!0,e),I.pause=e=>vd(!1,e);const Tx=typeof window<"u"?E.useLayoutEffect:E.useEffect,Ki=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return N.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},fo={info:function(e){return N.createElement(Ki,{...e},N.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 N.createElement(Ki,{...e},N.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 N.createElement(Ki,{...e},N.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 N.createElement(Ki,{...e},N.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 N.createElement("div",{className:"Toastify__spinner"})}},Rx=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=_x(e),{closeButton:s,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:y,transition:j,position:v,className:g,style:w,bodyClassName:h,bodyStyle:p,progressClassName:m,progressStyle:x,updateId:k,role:C,progress:P,rtl:_,toastId:b,deleteToast:L,isIn:H,isLoading:Ee,closeOnClick:Ke,theme:tt}=e,Lt=Qt("Toastify__toast",`Toastify__toast-theme--${tt}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Ke}),Mt=De(g)?g({rtl:_,position:v,type:d,defaultClassName:Lt}):Qt(Lt,g),Fe=function(B){let{theme:U,type:ae,isLoading:re,icon:ke}=B,ge=null;const pt={theme:U,type:ae};return ke===!1||(De(ke)?ge=ke({...pt,isLoading:re}):E.isValidElement(ke)?ge=E.cloneElement(ke,pt):re?ge=fo.spinner():($m=>$m in fo)(ae)&&(ge=fo[ae](pt))),ge}(e),T=!!P||!u,M={closeToast:y,type:d,theme:tt};let F=null;return s===!1||(F=De(s)?s(M):E.isValidElement(s)?E.cloneElement(s,M):function(B){let{closeToast:U,theme:ae,ariaLabel:re="close"}=B;return N.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ae}`,type:"button",onClick:ke=>{ke.stopPropagation(),U(ke)},"aria-label":re},N.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},N.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"})))}(M)),N.createElement(j,{isIn:H,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:l},N.createElement("div",{id:b,onClick:c,"data-in":H,className:Mt,...i,style:w,ref:r},N.createElement("div",{...H&&{role:C},className:De(h)?h({type:d}):Qt("Toastify__toast-body",h),style:p},Fe!=null&&N.createElement("div",{className:Qt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ee})},Fe),N.createElement("div",null,a)),F,N.createElement(Cx,{...k&&!T?{key:`pb-${k}`}:{},rtl:_,theme:tt,delay:u,isRunning:t,isIn:H,closeToast:y,hide:f,type:d,style:x,className:m,controlledProgress:T,progress:P||0})))},_s=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},bx=ks(_s("bounce",!0));ks(_s("slide",!0));ks(_s("zoom"));ks(_s("flip"));const Lx={position:"top-right",transition:bx,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Mx(e){let t={...Lx,...e};const n=e.stacked,[r,i]=E.useState(!0),l=E.useRef(null),{getToastToRender:s,isToastActive:a,count:u}=kx(t),{className:c,style:d,rtl:f,containerId:y}=t;function j(g){const w=Qt("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return De(c)?c({position:g,rtl:f,defaultClassName:w}):Qt(w,ml(c))}function v(){n&&(i(!0),I.play())}return Tx(()=>{if(n){var g;const w=l.current.querySelectorAll('[data-in="true"]'),h=12,p=(g=t.position)==null?void 0:g.includes("top");let m=0,x=0;Array.from(w).reverse().forEach((k,C)=>{const P=k;P.classList.add("Toastify__toast--stacked"),C>0&&(P.dataset.collapsed=`${r}`),P.dataset.pos||(P.dataset.pos=p?"top":"bot");const _=m*(r?.2:1)+(r?0:h*C);P.style.setProperty("--y",`${p?_:-1*_}px`),P.style.setProperty("--g",`${h}`),P.style.setProperty("--s",""+(1-(r?x:0))),m+=P.offsetHeight,x+=.025})}},[r,u,n]),N.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),I.pause())},onMouseLeave:v},s((g,w)=>{const h=w.length?{...d}:{...d,pointerEvents:"none"};return N.createElement("div",{className:j(g),style:h,key:`container-${g}`},w.map(p=>{let{content:m,props:x}=p;return N.createElement(Rx,{...x,stacked:n,collapseAll:v,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},m)}))}))}const Qe=()=>{const e=new Date().getFullYear();return o.jsx(o.Fragment,{children:o.jsxs("div",{children:[o.jsx("div",{className:"footer_section layout_padding",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12"})}),o.jsx("div",{className:"footer_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),o.jsx("div",{className:"footer_menu",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx(te,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),o.jsx("li",{children:o.jsx(te,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),o.jsx("li",{children:o.jsx(te,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),o.jsx("li",{children:o.jsx(te,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),o.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"})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),o.jsxs("div",{className:"form-group",children:[o.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),o.jsx("div",{className:"subscribe_bt",children:o.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),o.jsx("div",{className:"social_icon",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),o.jsx("div",{className:"copyright_section",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},Fx="/assets/logo-Cb1x1exd.png",Me=()=>{var i,l;const{user:e}=dt(s=>({...s.auth})),t=cn(),n=Ci(),r=()=>{t(h1()),n("/")};return o.jsx(o.Fragment,{children:o.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:o.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("img",{src:Fx,alt:"logo",width:"75",height:"75",className:"img-fluid"}),o.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),o.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[o.jsxs("ul",{className:"navbar-nav ml-auto",children:[o.jsx("li",{className:"nav-item active",children:o.jsx(te,{to:"/",className:"nav-link",children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(te,{to:"/services",className:"nav-link",children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(te,{to:"/searchmyproperties",className:"nav-link",children:"Search"})}),o.jsx("li",{className:"nav-item",children:o.jsx(te,{to:"/about",className:"nav-link",children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(te,{to:"/contact",className:"nav-link",children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(te,{to:"/dashboard",children:"Dashboard"}):o.jsx(te,{to:"/register",className:"nav-link",children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(te,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,children:"Logout"})}):o.jsx(te,{to:"/login",className:"nav-link",children:"Login"})]})]})})})},zx=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{children:[o.jsx("div",{className:"header_section",children:o.jsx("div",{className:"banner_section layout_padding",children:o.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),o.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),o.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),o.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),o.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:o.jsx("i",{className:"fa fa-angle-left"})}),o.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:o.jsx("i",{className:"fa fa-angle-right"})})]})})}),o.jsx("div",{className:"services_section layout_padding",children:o.jsxs("div",{className:"container-fluid",children:[o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-sm-12",children:[o.jsx("h1",{className:"services_taital",children:"Our Services"}),o.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),o.jsx("div",{className:"services_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main active",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-1.png"})}),o.jsx("h4",{className:"development_text",children:"Dedication Services"}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-2.png"})}),o.jsx("h4",{className:"development_text",children:"Building work Reports"}),o.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-3.png"})}),o.jsx("h4",{className:"development_text",children:"Reporting continuously"}),o.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-4.png"})}),o.jsx("h4",{className:"development_text",children:"Manage your investment "}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),o.jsx(Qe,{})]}),Ix=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsxs("div",{className:"about_section layout_padding",children:[o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("h1",{className:"about_taital",children:"About Us"}),o.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"," "]}),o.jsx("div",{className:"read_bt_1",children:o.jsx("a",{href:"#",children:"Read More"})})]}),o.jsx("div",{className:"col-md-6",children:o.jsx("div",{className:"about_img",children:o.jsx("div",{className:"video_bt",children:o.jsx("div",{className:"play_icon",children:o.jsx("img",{src:"images/play-icon.png"})})})})})]})}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{})]}),o.jsx(Qe,{})]}),Ax=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-6",children:o.jsx("form",{action:!0,children:o.jsxs("div",{className:"mail_section_1",children:[o.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),o.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),o.jsx("div",{className:"send_bt",children:o.jsx("a",{href:"#",children:"SEND"})})]})})}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img",children:o.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),o.jsx(Qe,{})]});var jt=function(){return jt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=E.useState(uw),[n,r]=E.useState(!1),{loading:i,error:l}=dt(k=>({...k.auth})),{title:s,email:a,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:y,termsconditions:j,userType:v}=e,g=cn(),w=Ci();E.useEffect(()=>{l&&I.error(l)},[l]),E.useEffect(()=>{r(s!=="None"&&a&&u&&c&&d&&f&&y&&j&&v!=="")},[s,a,u,c,d,f,y,j,v]);const h=k=>{if(k.preventDefault(),u!==y)return I.error("Password should match");n?g(cl({formValue:e,navigate:w,toast:I})):I.error("Please fill in all fields and select all checkboxes")},p=k=>k.charAt(0).toUpperCase()+k.slice(1),m=k=>{const{name:C,value:P,type:_,checked:b}=k.target;t(_==="checkbox"?L=>({...L,[C]:b}):L=>({...L,[C]:C==="email"||C==="password"||C==="confirmPassword"?P:p(P)}))},x=k=>{t(C=>({...C,userType:k.target.value}))};return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Registration"}),o.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),o.jsx("hr",{})]})})}),o.jsx("form",{onSubmit:h,children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsxs("label",{className:"form-label",children:["Please select the role. ",o.jsx("br",{}),o.jsx("br",{})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:x,required:!0}),o.jsx("label",{className:"form-check-label",children:"Lender"})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:x,required:!0}),o.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),o.jsx("br",{}),o.jsx("br",{})]})]})}),o.jsxs("div",{className:"col-12",children:[o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s,onChange:m,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]}),o.jsx("br",{})]}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:m,placeholder:"First Name",required:"required"}),o.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:m,placeholder:"Middle Name",required:"required"}),o.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:m,placeholder:"Last Name",required:"required"}),o.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:m,placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:m,placeholder:"Password",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:m,placeholder:"confirmPassword",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:j,name:"termsconditions",checked:j,onChange:m,required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&o.jsx(Am.Bars,{}),"Sign up"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(Qe,{})]})},dw={email:"",password:""},fw=()=>{const[e,t]=E.useState(dw),{loading:n,error:r}=dt(d=>({...d.auth})),{email:i,password:l}=e,s=cn(),a=Ci();E.useEffect(()=>{r&&I.error(r)},[r]);const u=d=>{d.preventDefault(),i&&l&&s(ul({formValue:e,navigate:a,toast:I}))},c=d=>{let{name:f,value:y}=d.target;t({...e,[f]:y})};return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:o.jsx("div",{className:"text-bg-primary",children:o.jsxs("div",{className:"px-4",children:[o.jsx("hr",{className:"border-primary-subtle mb-4"}),o.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),o.jsx("div",{className:"text-endx",children:o.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:o.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"})})})]})})}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"mb-4",children:o.jsx("h2",{className:"h3",children:"Please Login"})})})}),o.jsx("form",{method:"POST",children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:c,required:!0}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:c,required:!0}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&o.jsx(Am.Bars,{}),"Sign In"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",o.jsx(te,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(te,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(Qe,{})]})},pw="/assets/samplepic-BM_cnzgz.jpg",mw=()=>{const[e,t]=E.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("shipping")},r=()=>{e==="shipping"&&t("propertydetails")},i=cn(),{status:l,error:s}=dt(v=>v.property),{user:a}=dt(v=>({...v.auth})),[u,c]=E.useState({propertyType:"",title:"",yearBuild:"",totalSqft:""}),[d,f]=E.useState(!1),y=v=>{c({...u,[v.target.name]:v.target.value})},j=()=>{var v,g,w,h,p,m;if(u.propertyType&&u.title&&u.yearBuild&&u.totalSqft){const x={...u,userfirstname:(v=a==null?void 0:a.result)==null?void 0:v.firstName,usermiddlename:(g=a==null?void 0:a.result)==null?void 0:g.middleName,userlastname:(w=a==null?void 0:a.result)==null?void 0:w.lastName,usertitle:(h=a==null?void 0:a.result)==null?void 0:h.title,useremail:(p=a==null?void 0:a.result)==null?void 0:p.email,userId:(m=a==null?void 0:a.result)==null?void 0:m.userId};i(fl(x)),f(!0)}else I.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return E.useEffect(()=>{d&&(l==="succeeded"?(I.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),f(!1)):l==="failed"&&(I.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),f(!1)))},[l,s,d]),o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(Me,{}),o.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[o.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),o.jsx("li",{role:"presentation",className:e==="shipping"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("shipping"),role:"tab",children:"Delivery Address"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[o.jsx("h3",{children:"Property Details"}),o.jsx("form",{children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:u.propertyType,onChange:y,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"title",value:u.title,onChange:y,placeholder:"Property title",required:!0}),o.jsx("label",{htmlFor:"title",className:"form-label",children:"Property Title"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:u.yearBuild,onChange:y,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})})]})}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="shipping"&&o.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[o.jsx("h3",{children:"Shipping Address"}),o.jsx("form",{children:o.jsx("div",{className:"row gy-3 overflow-hidden",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:u.totalSqft,onChange:y,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]})})})}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:j,children:"Submit"})]})]})]})})},hw=()=>{var r;const e=cn(),{user:t}=dt(i=>({...i.auth})),{userProperties:n}=dt(i=>i.property);return E.useEffect(()=>{var i;e(pl((i=t==null?void 0:t.result)==null?void 0:i.userId))},[e,(r=t==null?void 0:t.result)==null?void 0:r.userId]),o.jsx(o.Fragment,{children:n.length>0?o.jsx("ul",{children:n.map(i=>o.jsxs("li",{children:[o.jsxs(te,{to:`/property/${i.propertyId}`,target:"_blank",children:[i.title,"....."]}),o.jsxs(te,{to:`/editproperty/${i.propertyId}`,target:"_blank",children:["Edit","....."]})]},i._id))}):o.jsx("p",{children:"No active properties found."})})},yw=()=>{const{user:e}=dt(i=>({...i.auth})),[t,n]=E.useState("dashboard"),r=()=>{switch(t){case"addProperty":return o.jsx(mw,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(hw,{})]});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsxs("div",{className:"d-flex justify-content-center mt-7 gap-2 p-3",children:[o.jsx("div",{className:"col-md-6",children:o.jsxs("div",{className:"card cardchildchild p-2",children:[o.jsx("div",{className:"profile1",children:o.jsx("img",{src:"https://i.imgur.com/NI5b1NX.jpg",height:90,width:90,className:"rounded-circle"})}),o.jsxs("div",{className:"d-flex flex-column justify-content-center align-items-center mt-5",children:[o.jsx("span",{className:"name",children:"Bess Wills"}),o.jsx("span",{className:"mt-1 braceletid",children:"Bracelet ID: SFG 38393"}),o.jsx("span",{className:"dummytext mt-3 p-3",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Text elit more smtit. Kimto lee."})]})]})}),o.jsx("div",{className:"col-md-6",children:o.jsxs("div",{className:"card cardchildchild p-2",children:[o.jsx("div",{className:"profile1",children:o.jsx("img",{src:"https://i.imgur.com/YyoCGsa.jpg",height:90,width:90,className:"rounded-circle"})}),o.jsxs("div",{className:"d-flex flex-column justify-content-center align-items-center mt-5",children:[o.jsx("span",{className:"name",children:"Bess Wills"}),o.jsx("span",{className:"mt-1 braceletid",children:"Bracelet ID: SFG 38393"}),o.jsx("span",{className:"dummytext mt-3 p-3",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Text elit more smtit. Kimto lee."})]})]})})]})}};return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"d-flex flex-row",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"card card1 p-5",children:[o.jsx("img",{className:"img-fluid",src:pw,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),o.jsx("hr",{className:"hline"}),o.jsxs("div",{className:"d-flex flex-column align-items-center",children:[o.jsxs("button",{className:`btn ${t==="dashboard"?"active":""}`,onClick:()=>n("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="addProperty"?"active":""}`,onClick:()=>n("addProperty"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Add Property"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="activeProperties"?"active":""}`,onClick:()=>n("activeProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Active Properties"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="closedProperties"?"active":""}`,onClick:()=>n("closedProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Closed Properties"})]})]})]})}),o.jsx("div",{className:"col-md-9",children:o.jsxs("div",{className:"card card2 p-0",children:[o.jsxs("div",{className:"hello d-flex justify-content-end align-items-center mt-3",children:[o.jsxs("span",{children:["Welcome to"," ",o.jsxs("span",{style:{color:"#067ADC"},children:[e.result.title,". ",e.result.firstName," ",e.result.middleName," ",e.result.lastName]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})]}),o.jsx("div",{className:"tab-content p-3",children:r()})]})})]}),o.jsx(Qe,{})]})};var Dm={exports:{}},vw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gw=vw,xw=gw;function Bm(){}function Um(){}Um.resetWarningCache=Bm;var ww=function(){function e(r,i,l,s,a,u){if(u!==xw){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:Um,resetWarningCache:Bm};return n.PropTypes=n,n};Dm.exports=ww();var jw=Dm.exports;const Nw=gd(jw),Sw=()=>{const[e,t]=E.useState(3),n=Ci();return E.useEffect(()=>{const r=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),o.jsx("div",{style:{marginTop:"100px"},children:o.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ea=({children:e})=>{const{user:t}=dt(n=>({...n.auth}));return t?e:o.jsx(Sw,{})};Ea.propTypes={children:Nw.node.isRequired};const Ew=()=>{const e=cn(),{id:t,token:n}=Pi();return E.useEffect(()=>{e(dl({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("h1",{className:"card-title text-center",children:o.jsxs(te,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",o.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img"})})]})})})]}),o.jsx(Qe,{})]})},kw=()=>{const[e,t]=E.useState(""),[n,r]=E.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await Q.post(`${i}/users/forgotpassword`,{email:e});r(s.data.message)}catch(s){console.error("Forgot Password Error:",s),r(s.response.data.message)}};return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Forgot Password"}),o.jsx("hr",{})]})})}),o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:e,onChange:s=>t(s.target.value),placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),o.jsxs("div",{className:"col-12",children:[o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx(te,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})}),o.jsx(Qe,{})]})]})},_w=()=>{const{userId:e,token:t}=Pi(),[n,r]=E.useState(""),[i,l]=E.useState(""),[s,a]=E.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),I.error("Password not entered");return}const d=await Q.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),I.error("Passwords do not match.");return}else a("Password reset successfull"),I.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return E.useEffect(()=>{I.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card mb-0 vh-100",children:o.jsx("div",{className:"container py-10 h-100",children:o.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:o.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[o.jsx("br",{}),o.jsxs("h2",{children:["Reset Password",o.jsx("hr",{}),o.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),o.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"}}),o.jsx("br",{}),o.jsx("input",{className:"form-control",type:"password",value:i,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),o.jsx("br",{}),o.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"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(Qe,{})]})},Cw=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"col-md-18",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),o.jsxs("h2",{children:["We reqest you to kindly ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(Qe,{})]}),Pw=()=>{const{id:e}=Pi(),t=cn(),{selectedProperty:n,status:r,error:i}=dt(l=>l.property);return E.useEffect(()=>{e&&t(Vr(e))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"container property-view",children:n?o.jsxs("div",{className:"property-details",children:[o.jsx("h1",{children:n.title}),o.jsxs("p",{children:["Email: ",n.useremail]})]}):o.jsx("p",{children:"Property not found."})})})},Ow=()=>{const[e,t]=E.useState([]),[n,r]=E.useState(0),[i,l]=E.useState(0),[s]=E.useState(10),[a,u]=E.useState(""),[c,d]=E.useState(!1),[f,y]=E.useState(!1),j=async()=>{d(!0),y(!1);try{const h=await Q.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:s,offset:i*s,search:a},headers:{"Cache-Control":"no-cache"}});t(h.data.data),r(h.data.totalRecords),a.trim()&&y(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},v=h=>{u(h.target.value),h.target.value.trim()===""&&(l(0),t([]),r(0),y(!1),j())},g=h=>{h.key==="Enter"&&(h.preventDefault(),j())};E.useEffect(()=>{j()},[a,i]);const w=Math.ceil(n/s);return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:g})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsxs("div",{className:"card-body",children:[f&&e.length>0&&o.jsxs("div",{children:["Showing search results for the keyword ",o.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:e.length>0?e.map((h,p)=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(te,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),h.city,", ",h.county,",",h.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.year_built})})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.cost_per_sqft,"/sqft"]})})]},p)):o.jsx("tr",{children:o.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),o.jsxs("div",{children:[o.jsx("button",{onClick:()=>l(i-1),disabled:i===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),o.jsxs("span",{children:[" ","Page ",i+1," of ",w," "]}),o.jsx("button",{onClick:()=>l(i+1),disabled:i+1>=w||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),o.jsx(Qe,{})]})},Tw=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),"This page will show the list of services offered by the company",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(Qe,{})]}),Rw="/assets/propertydummy-DhVEZ7jN.jpg",bw=()=>{const{house_id:e}=Pi();console.log("house_id",e);const[t,n]=E.useState(null),[r,i]=E.useState(!0);return E.useEffect(()=>{(async()=>{try{const s=await Q.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(s.data)}catch(s){console.log("Error fetching property details:",s)}finally{i(!1)}})()},[e]),o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:r?o.jsx("div",{className:"loader",children:"Loading..."}):t?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:o.jsx("img",{src:Rw,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),o.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(Qe,{})]})},Lw=()=>{const{id:e}=Pi(),t=cn(),{selectedProperty:n}=dt(s=>s.property),[r,i]=E.useState({propertyType:"",title:"",yearBuild:"",totalSqft:""});E.useEffect(()=>{t(Vr(e))},[t,e]),E.useEffect(()=>{n&&i({propertyType:n.propertyType,title:n.title,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=s=>{i({...r,[s.target.name]:s.target.value})};return o.jsxs("div",{className:"edit-property-form",children:[o.jsx("h2",{children:"Edit Property"}),o.jsxs("form",{children:[o.jsx("div",{children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"title",value:r.title,onChange:l,placeholder:"Property title",required:!0}),o.jsx("label",{htmlFor:"title",className:"form-label",children:"Property Title"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),o.jsx("button",{type:"submit",children:"Update Property"})]})]})},Mw=()=>o.jsxs(yx,{children:[o.jsx(Mx,{}),o.jsxs(ax,{children:[o.jsx(he,{path:"/",element:o.jsx(zx,{})}),o.jsx(he,{path:"/about",element:o.jsx(Ix,{})}),o.jsx(he,{path:"/services",element:o.jsx(Tw,{})}),o.jsx(he,{path:"/contact",element:o.jsx(Ax,{})}),o.jsx(he,{path:"/register",element:o.jsx(cw,{})}),o.jsx(he,{path:"/registrationsuccess",element:o.jsx(Ea,{children:o.jsx(Cw,{})})}),o.jsx(he,{path:"/login",element:o.jsx(fw,{})}),o.jsx(he,{path:"/dashboard",element:o.jsx(Ea,{children:o.jsx(yw,{})})}),o.jsx(he,{path:"/users/:id/verify/:token",element:o.jsx(Ew,{})}),o.jsx(he,{path:"/forgotpassword",element:o.jsx(kw,{})}),o.jsx(he,{path:"/users/resetpassword/:userId/:token",element:o.jsx(_w,{})}),o.jsx(he,{path:"/property/:id",element:o.jsx(Pw,{})}),o.jsx(he,{path:"/properties/:house_id",element:o.jsx(bw,{})}),o.jsx(he,{path:"/searchmyproperties",element:o.jsx(Ow,{})}),o.jsx(he,{path:"/editproperty/:id",element:o.jsx(Lw,{})})]})]});bp(document.getElementById("root")).render(o.jsx(E.StrictMode,{children:o.jsx(A0,{store:j1,children:o.jsx(Mw,{})})})); + */function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function dx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fx(e,t){return e.button===0&&(!t||t==="_self")&&!dx(e)}const px=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],mx=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],hx="6";try{window.__reactRouterVersion=hx}catch{}const yx=E.createContext({isTransitioning:!1}),vx="startTransition",hd=mo[vx];function gx(e){let{basename:t,children:n,future:r,window:i}=e,l=E.useRef();l.current==null&&(l.current=E1({window:i,v5Compat:!0}));let s=l.current,[a,u]=E.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=E.useCallback(f=>{c&&hd?hd(()=>u(f)):u(f)},[u,c]);return E.useLayoutEffect(()=>s.listen(d),[s,d]),E.createElement(ux,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const xx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jx=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:s,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,y=Lm(t,px),{basename:j}=E.useContext(fn),v,g=!1;if(typeof c=="string"&&wx.test(c)&&(v=c,xx))try{let m=new URL(window.location.href),x=c.startsWith("//")?new URL(m.protocol+c):new URL(c),k=mr(x.pathname,j);x.origin===m.origin&&k!=null?c=k+x.search+x.hash:g=!0}catch{}let w=Y1(c,{relative:i}),h=Sx(c,{replace:s,state:a,target:u,preventScrollReset:d,relative:i,unstable_viewTransition:f});function p(m){r&&r(m),m.defaultPrevented||h(m)}return E.createElement("a",Xl({},y,{href:v||w,onClick:g||l?r:p,ref:n,target:u}))}),te=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:l="",end:s=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,f=Lm(t,mx),y=ks(u,{relative:f.relative}),j=_i(),v=E.useContext(Pm),{navigator:g,basename:w}=E.useContext(fn),h=v!=null&&Ex(y)&&c===!0,p=g.encodeLocation?g.encodeLocation(y).pathname:y.pathname,m=j.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(m=m.toLowerCase(),x=x?x.toLowerCase():null,p=p.toLowerCase()),x&&w&&(x=mr(x,w)||x);const k=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let C=m===p||!s&&m.startsWith(p)&&m.charAt(k)==="/",P=x!=null&&(x===p||!s&&x.startsWith(p)&&x.charAt(p.length)==="/"),_={isActive:C,isPending:P,isTransitioning:h},b=C?r:void 0,L;typeof l=="function"?L=l(_):L=[l,C?"active":null,P?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let H=typeof a=="function"?a(_):a;return E.createElement(jx,Xl({},f,{"aria-current":b,className:L,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(_):d)});var Na;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Na||(Na={}));var yd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yd||(yd={}));function Nx(e){let t=E.useContext(Ss);return t||Z(!1),t}function Sx(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,u=Ci(),c=_i(),d=ks(e,{relative:s});return E.useCallback(f=>{if(fx(f,n)){f.preventDefault();let y=r!==void 0?r:Ql(c)===Ql(d);u(e,{replace:y,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a})}},[c,u,d,r,i,n,e,l,s,a])}function Ex(e,t){t===void 0&&(t={});let n=E.useContext(yx);n==null&&Z(!1);let{basename:r}=Nx(Na.useViewTransitionState),i=ks(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=mr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=mr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Kl(i.pathname,s)!=null||Kl(i.pathname,l)!=null}function Mm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),kn=e=>typeof e=="string",Ae=e=>typeof e=="function",hl=e=>kn(e)||Ae(e)?e:null,Sa=e=>E.isValidElement(e)||kn(e)||Ae(e)||hi(e);function kx(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function _s(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(s){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:y,playToast:j}=s;const v=r?`${t}--${u}`:t,g=r?`${n}--${u}`:n,w=E.useRef(0);return E.useLayoutEffect(()=>{const h=f.current,p=v.split(" "),m=x=>{x.target===f.current&&(j(),h.removeEventListener("animationend",m),h.removeEventListener("animationcancel",m),w.current===0&&x.type!=="animationcancel"&&h.classList.remove(...p))};h.classList.add(...p),h.addEventListener("animationend",m),h.addEventListener("animationcancel",m)},[]),E.useEffect(()=>{const h=f.current,p=()=>{h.removeEventListener("animationend",p),i?kx(h,d,l):d()};y||(c?p():(w.current=1,h.className+=` ${g}`,h.addEventListener("animationend",p)))},[y]),N.createElement(N.Fragment,null,a)}}function vd(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 we=new Map;let yi=[];const Ea=new Set,_x=e=>Ea.forEach(t=>t(e)),Fm=()=>we.size>0;function zm(e,t){var n;if(t)return!((n=we.get(t))==null||!n.isToastActive(e));let r=!1;return we.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Im(e,t){Sa(e)&&(Fm()||yi.push({content:e,options:t}),we.forEach(n=>{n.buildToast(e,t)}))}function gd(e,t){we.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 Cx(e){const{subscribe:t,getSnapshot:n,setProps:r}=E.useRef(function(l){const s=l.containerId||1;return{subscribe(a){const u=function(d,f,y){let j=1,v=0,g=[],w=[],h=[],p=f;const m=new Map,x=new Set,k=()=>{h=Array.from(m.values()),x.forEach(_=>_())},C=_=>{w=_==null?[]:w.filter(b=>b!==_),k()},P=_=>{const{toastId:b,onOpen:L,updateId:H,children:Ee}=_.props,Ke=H==null;_.staleId&&m.delete(_.staleId),m.set(b,_),w=[...w,_.props.toastId].filter(tt=>tt!==_.staleId),k(),y(vd(_,Ke?"added":"updated")),Ke&&Ae(L)&&L(E.isValidElement(Ee)&&Ee.props)};return{id:d,props:p,observe:_=>(x.add(_),()=>x.delete(_)),toggle:(_,b)=>{m.forEach(L=>{b!=null&&b!==L.props.toastId||Ae(L.toggle)&&L.toggle(_)})},removeToast:C,toasts:m,clearQueue:()=>{v-=g.length,g=[]},buildToast:(_,b)=>{if((U=>{let{containerId:ae,toastId:re,updateId:ke}=U;const ge=ae?ae!==d:d!==1,pt=m.has(re)&&ke==null;return ge||pt})(b))return;const{toastId:L,updateId:H,data:Ee,staleId:Ke,delay:tt}=b,Lt=()=>{C(L)},Mt=H==null;Mt&&v++;const Fe={...p,style:p.toastStyle,key:j++,...Object.fromEntries(Object.entries(b).filter(U=>{let[ae,re]=U;return re!=null})),toastId:L,updateId:H,data:Ee,closeToast:Lt,isIn:!1,className:hl(b.className||p.toastClassName),bodyClassName:hl(b.bodyClassName||p.bodyClassName),progressClassName:hl(b.progressClassName||p.progressClassName),autoClose:!b.isLoading&&(T=b.autoClose,M=p.autoClose,T===!1||hi(T)&&T>0?T:M),deleteToast(){const U=m.get(L),{onClose:ae,children:re}=U.props;Ae(ae)&&ae(E.isValidElement(re)&&re.props),y(vd(U,"removed")),m.delete(L),v--,v<0&&(v=0),g.length>0?P(g.shift()):k()}};var T,M;Fe.closeButton=p.closeButton,b.closeButton===!1||Sa(b.closeButton)?Fe.closeButton=b.closeButton:b.closeButton===!0&&(Fe.closeButton=!Sa(p.closeButton)||p.closeButton);let F=_;E.isValidElement(_)&&!kn(_.type)?F=E.cloneElement(_,{closeToast:Lt,toastProps:Fe,data:Ee}):Ae(_)&&(F=_({closeToast:Lt,toastProps:Fe,data:Ee}));const B={content:F,props:Fe,staleId:Ke};p.limit&&p.limit>0&&v>p.limit&&Mt?g.push(B):hi(tt)?setTimeout(()=>{P(B)},tt):P(B)},setProps(_){p=_},setToggle:(_,b)=>{m.get(_).toggle=b},isToastActive:_=>w.some(b=>b===_),getSnapshot:()=>p.newestOnTop?h.reverse():h}}(s,l,_x);we.set(s,u);const c=u.observe(a);return yi.forEach(d=>Im(d.content,d.options)),yi=[],()=>{c(),we.delete(s)}},setProps(a){var u;(u=we.get(s))==null||u.setProps(a)},getSnapshot(){var a;return(a=we.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=E.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:u}=a.props;s.has(u)||s.set(u,[]),s.get(u).push(a)}),Array.from(s,a=>l(a[0],a[1]))},isToastActive:zm,count:i==null?void 0:i.length}}function Px(e){const[t,n]=E.useState(!1),[r,i]=E.useState(!1),l=E.useRef(null),s=E.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var y,j;function v(){n(!0)}function g(){n(!1)}function w(m){const x=l.current;s.canDrag&&x&&(s.didMove=!0,t&&g(),s.delta=e.draggableDirection==="x"?m.clientX-s.start:m.clientY-s.start,s.start!==m.clientX&&(s.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function h(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",h);const m=l.current;if(s.canDrag&&s.didMove&&m){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity")}}(j=we.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||j.setToggle(y.id,y.fn),E.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",v),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const p={onPointerDown:function(m){if(e.draggable===!0||e.draggable===m.pointerType){s.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",h);const x=l.current;s.canCloseOnClick=!0,s.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(s.start=m.clientX,s.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(s.start=m.clientY,s.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(m){const{top:x,bottom:k,left:C,right:P}=l.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&e.pauseOnHover&&m.clientX>=C&&m.clientX<=P&&m.clientY>=x&&m.clientY<=k?g():v()}};return a&&u&&(p.onMouseEnter=g,e.stacked||(p.onMouseLeave=v)),f&&(p.onClick=m=>{d&&d(m),s.canCloseOnClick&&c()}),{playToast:v,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:p}}function Ox(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:s,style:a,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:y}=e;const j=l||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const g=Qt("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),w=Ae(s)?s({rtl:d,type:i,defaultClassName:g}):Qt(g,s),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&r()}};return N.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":j},N.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),N.createElement("div",{role:"progressbar","aria-hidden":j?"true":"false","aria-label":"notification timer",className:w,style:v,...h}))}let Tx=1;const Dm=()=>""+Tx++;function Rx(e){return e&&(kn(e.toastId)||hi(e.toastId))?e.toastId:Dm()}function qr(e,t){return Im(e,t),t.toastId}function Gl(e,t){return{...t,type:t&&t.type||e,toastId:Rx(t)}}function Qi(e){return(t,n)=>qr(t,Gl(e,n))}function I(e,t){return qr(e,Gl("default",t))}I.loading=(e,t)=>qr(e,Gl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),I.promise=function(e,t,n){let r,{pending:i,error:l,success:s}=t;i&&(r=kn(i)?I.loading(i,n):I.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,y)=>{if(f==null)return void I.dismiss(r);const j={type:d,...a,...n,data:y},v=kn(f)?{render:f}:f;return r?I.update(r,{...j,...v}):I(v.render,{...j,...v}),y},c=Ae(e)?e():e;return c.then(d=>u("success",s,d)).catch(d=>u("error",l,d)),c},I.success=Qi("success"),I.info=Qi("info"),I.error=Qi("error"),I.warning=Qi("warning"),I.warn=I.warning,I.dark=(e,t)=>qr(e,Gl("default",{theme:"dark",...t})),I.dismiss=function(e){(function(t){var n;if(Fm()){if(t==null||kn(n=t)||hi(n))we.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=we.get(t.containerId);r?r.removeToast(t.id):we.forEach(i=>{i.removeToast(t.id)})}}else yi=yi.filter(r=>t!=null&&r.options.toastId!==t)})(e)},I.clearWaitingQueue=function(e){e===void 0&&(e={}),we.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},I.isActive=zm,I.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=we.get(s||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:Dm()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,qr(s,l)}},I.done=e=>{I.update(e,{progress:1})},I.onChange=function(e){return Ea.add(e),()=>{Ea.delete(e)}},I.play=e=>gd(!0,e),I.pause=e=>gd(!1,e);const bx=typeof window<"u"?E.useLayoutEffect:E.useEffect,Ki=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return N.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},po={info:function(e){return N.createElement(Ki,{...e},N.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 N.createElement(Ki,{...e},N.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 N.createElement(Ki,{...e},N.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 N.createElement(Ki,{...e},N.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 N.createElement("div",{className:"Toastify__spinner"})}},Lx=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=Px(e),{closeButton:s,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:y,transition:j,position:v,className:g,style:w,bodyClassName:h,bodyStyle:p,progressClassName:m,progressStyle:x,updateId:k,role:C,progress:P,rtl:_,toastId:b,deleteToast:L,isIn:H,isLoading:Ee,closeOnClick:Ke,theme:tt}=e,Lt=Qt("Toastify__toast",`Toastify__toast-theme--${tt}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Ke}),Mt=Ae(g)?g({rtl:_,position:v,type:d,defaultClassName:Lt}):Qt(Lt,g),Fe=function(B){let{theme:U,type:ae,isLoading:re,icon:ke}=B,ge=null;const pt={theme:U,type:ae};return ke===!1||(Ae(ke)?ge=ke({...pt,isLoading:re}):E.isValidElement(ke)?ge=E.cloneElement(ke,pt):re?ge=po.spinner():(Wm=>Wm in po)(ae)&&(ge=po[ae](pt))),ge}(e),T=!!P||!u,M={closeToast:y,type:d,theme:tt};let F=null;return s===!1||(F=Ae(s)?s(M):E.isValidElement(s)?E.cloneElement(s,M):function(B){let{closeToast:U,theme:ae,ariaLabel:re="close"}=B;return N.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ae}`,type:"button",onClick:ke=>{ke.stopPropagation(),U(ke)},"aria-label":re},N.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},N.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"})))}(M)),N.createElement(j,{isIn:H,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:l},N.createElement("div",{id:b,onClick:c,"data-in":H,className:Mt,...i,style:w,ref:r},N.createElement("div",{...H&&{role:C},className:Ae(h)?h({type:d}):Qt("Toastify__toast-body",h),style:p},Fe!=null&&N.createElement("div",{className:Qt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ee})},Fe),N.createElement("div",null,a)),F,N.createElement(Ox,{...k&&!T?{key:`pb-${k}`}:{},rtl:_,theme:tt,delay:u,isRunning:t,isIn:H,closeToast:y,hide:f,type:d,style:x,className:m,controlledProgress:T,progress:P||0})))},Cs=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Mx=_s(Cs("bounce",!0));_s(Cs("slide",!0));_s(Cs("zoom"));_s(Cs("flip"));const Fx={position:"top-right",transition:Mx,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function zx(e){let t={...Fx,...e};const n=e.stacked,[r,i]=E.useState(!0),l=E.useRef(null),{getToastToRender:s,isToastActive:a,count:u}=Cx(t),{className:c,style:d,rtl:f,containerId:y}=t;function j(g){const w=Qt("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return Ae(c)?c({position:g,rtl:f,defaultClassName:w}):Qt(w,hl(c))}function v(){n&&(i(!0),I.play())}return bx(()=>{if(n){var g;const w=l.current.querySelectorAll('[data-in="true"]'),h=12,p=(g=t.position)==null?void 0:g.includes("top");let m=0,x=0;Array.from(w).reverse().forEach((k,C)=>{const P=k;P.classList.add("Toastify__toast--stacked"),C>0&&(P.dataset.collapsed=`${r}`),P.dataset.pos||(P.dataset.pos=p?"top":"bot");const _=m*(r?.2:1)+(r?0:h*C);P.style.setProperty("--y",`${p?_:-1*_}px`),P.style.setProperty("--g",`${h}`),P.style.setProperty("--s",""+(1-(r?x:0))),m+=P.offsetHeight,x+=.025})}},[r,u,n]),N.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),I.pause())},onMouseLeave:v},s((g,w)=>{const h=w.length?{...d}:{...d,pointerEvents:"none"};return N.createElement("div",{className:j(g),style:h,key:`container-${g}`},w.map(p=>{let{content:m,props:x}=p;return N.createElement(Lx,{...x,stacked:n,collapseAll:v,isIn:a(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},m)}))}))}const Qe=()=>{const e=new Date().getFullYear();return o.jsx(o.Fragment,{children:o.jsxs("div",{children:[o.jsx("div",{className:"footer_section layout_padding",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12"})}),o.jsx("div",{className:"footer_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),o.jsx("div",{className:"footer_menu",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx(te,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),o.jsx("li",{children:o.jsx(te,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),o.jsx("li",{children:o.jsx(te,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),o.jsx("li",{children:o.jsx(te,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),o.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"})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),o.jsxs("div",{className:"form-group",children:[o.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),o.jsx("div",{className:"subscribe_bt",children:o.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),o.jsx("div",{className:"social_icon",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),o.jsx("div",{className:"copyright_section",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},Ix="/assets/logo-Cb1x1exd.png",Me=()=>{var i,l;const{user:e}=dt(s=>({...s.auth})),t=cn(),n=Ci(),r=()=>{t(v1()),n("/")};return o.jsx(o.Fragment,{children:o.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:o.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("img",{src:Ix,alt:"logo",width:"75",height:"75",className:"img-fluid"}),o.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),o.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[o.jsxs("ul",{className:"navbar-nav ml-auto",children:[o.jsx("li",{className:"nav-item active",children:o.jsx(te,{to:"/",className:"nav-link",children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(te,{to:"/services",className:"nav-link",children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(te,{to:"/searchmyproperties",className:"nav-link",children:"Search"})}),o.jsx("li",{className:"nav-item",children:o.jsx(te,{to:"/about",className:"nav-link",children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(te,{to:"/contact",className:"nav-link",children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(te,{to:"/dashboard",children:"Dashboard"}):o.jsx(te,{to:"/register",className:"nav-link",children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(te,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,children:"Logout"})}):o.jsx(te,{to:"/login",className:"nav-link",children:"Login"})]})]})})})},Dx=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{children:[o.jsx("div",{className:"header_section",children:o.jsx("div",{className:"banner_section layout_padding",children:o.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),o.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),o.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),o.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),o.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:o.jsx("i",{className:"fa fa-angle-left"})}),o.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:o.jsx("i",{className:"fa fa-angle-right"})})]})})}),o.jsx("div",{className:"services_section layout_padding",children:o.jsxs("div",{className:"container-fluid",children:[o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-sm-12",children:[o.jsx("h1",{className:"services_taital",children:"Our Services"}),o.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),o.jsx("div",{className:"services_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main active",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-1.png"})}),o.jsx("h4",{className:"development_text",children:"Dedication Services"}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-2.png"})}),o.jsx("h4",{className:"development_text",children:"Building work Reports"}),o.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-3.png"})}),o.jsx("h4",{className:"development_text",children:"Reporting continuously"}),o.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-4.png"})}),o.jsx("h4",{className:"development_text",children:"Manage your investment "}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),o.jsx(Qe,{})]}),Ax=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsxs("div",{className:"about_section layout_padding",children:[o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("h1",{className:"about_taital",children:"About Us"}),o.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"," "]}),o.jsx("div",{className:"read_bt_1",children:o.jsx("a",{href:"#",children:"Read More"})})]}),o.jsx("div",{className:"col-md-6",children:o.jsx("div",{className:"about_img",children:o.jsx("div",{className:"video_bt",children:o.jsx("div",{className:"play_icon",children:o.jsx("img",{src:"images/play-icon.png"})})})})})]})}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{})]}),o.jsx(Qe,{})]}),Bx=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-6",children:o.jsx("form",{action:!0,children:o.jsxs("div",{className:"mail_section_1",children:[o.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),o.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),o.jsx("div",{className:"send_bt",children:o.jsx("a",{href:"#",children:"SEND"})})]})})}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img",children:o.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),o.jsx(Qe,{})]});var jt=function(){return jt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=E.useState(dw),[n,r]=E.useState(!1),{loading:i,error:l}=dt(k=>({...k.auth})),{title:s,email:a,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:y,termsconditions:j,userType:v}=e,g=cn(),w=Ci();E.useEffect(()=>{l&&I.error(l)},[l]),E.useEffect(()=>{r(s!=="None"&&a&&u&&c&&d&&f&&y&&j&&v!=="")},[s,a,u,c,d,f,y,j,v]);const h=k=>{if(k.preventDefault(),u!==y)return I.error("Password should match");n?g(cl({formValue:e,navigate:w,toast:I})):I.error("Please fill in all fields and select all checkboxes")},p=k=>k.charAt(0).toUpperCase()+k.slice(1),m=k=>{const{name:C,value:P,type:_,checked:b}=k.target;t(_==="checkbox"?L=>({...L,[C]:b}):L=>({...L,[C]:C==="email"||C==="password"||C==="confirmPassword"?P:p(P)}))},x=k=>{t(C=>({...C,userType:k.target.value}))};return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Registration"}),o.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),o.jsx("hr",{})]})})}),o.jsx("form",{onSubmit:h,children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsxs("label",{className:"form-label",children:["Please select the role. ",o.jsx("br",{}),o.jsx("br",{})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:x,required:!0}),o.jsx("label",{className:"form-check-label",children:"Lender"})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:x,required:!0}),o.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),o.jsx("br",{}),o.jsx("br",{})]})]})}),o.jsxs("div",{className:"col-12",children:[o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s,onChange:m,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]}),o.jsx("br",{})]}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:m,placeholder:"First Name",required:"required"}),o.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:m,placeholder:"Middle Name",required:"required"}),o.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:m,placeholder:"Last Name",required:"required"}),o.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:m,placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:m,placeholder:"Password",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:m,placeholder:"confirmPassword",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:j,name:"termsconditions",checked:j,onChange:m,required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&o.jsx(Am.Bars,{}),"Sign up"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(Qe,{})]})},pw={email:"",password:""},mw=()=>{const[e,t]=E.useState(pw),{loading:n,error:r}=dt(d=>({...d.auth})),{email:i,password:l}=e,s=cn(),a=Ci();E.useEffect(()=>{r&&I.error(r)},[r]);const u=d=>{d.preventDefault(),i&&l&&s(ul({formValue:e,navigate:a,toast:I}))},c=d=>{let{name:f,value:y}=d.target;t({...e,[f]:y})};return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:o.jsx("div",{className:"text-bg-primary",children:o.jsxs("div",{className:"px-4",children:[o.jsx("hr",{className:"border-primary-subtle mb-4"}),o.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),o.jsx("div",{className:"text-endx",children:o.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:o.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"})})})]})})}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"mb-4",children:o.jsx("h2",{className:"h3",children:"Please Login"})})})}),o.jsx("form",{method:"POST",children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:c,required:!0}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:c,required:!0}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&o.jsx(Am.Bars,{}),"Sign In"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",o.jsx(te,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(te,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(Qe,{})]})},hw="/assets/samplepic-BM_cnzgz.jpg",yw=()=>{const[e,t]=E.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("shipping")},r=()=>{e==="shipping"&&t("propertydetails")},i=cn(),{status:l,error:s}=dt(v=>v.property),{user:a}=dt(v=>({...v.auth})),[u,c]=E.useState({propertyType:"",title:"",yearBuild:"",totalSqft:""}),[d,f]=E.useState(!1),y=v=>{c({...u,[v.target.name]:v.target.value})},j=()=>{var v,g,w,h,p,m;if(u.propertyType&&u.title&&u.yearBuild&&u.totalSqft){const x={...u,userfirstname:(v=a==null?void 0:a.result)==null?void 0:v.firstName,usermiddlename:(g=a==null?void 0:a.result)==null?void 0:g.middleName,userlastname:(w=a==null?void 0:a.result)==null?void 0:w.lastName,usertitle:(h=a==null?void 0:a.result)==null?void 0:h.title,useremail:(p=a==null?void 0:a.result)==null?void 0:p.email,userId:(m=a==null?void 0:a.result)==null?void 0:m.userId};i(fl(x)),f(!0)}else I.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return E.useEffect(()=>{d&&(l==="succeeded"?(I.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),f(!1)):l==="failed"&&(I.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),f(!1)))},[l,s,d]),o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(Me,{}),o.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[o.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),o.jsx("li",{role:"presentation",className:e==="shipping"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("shipping"),role:"tab",children:"Delivery Address"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[o.jsx("h3",{children:"Property Details"}),o.jsx("form",{children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:u.propertyType,onChange:y,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"title",value:u.title,onChange:y,placeholder:"Property title",required:!0}),o.jsx("label",{htmlFor:"title",className:"form-label",children:"Property Title"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:u.yearBuild,onChange:y,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})})]})}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="shipping"&&o.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[o.jsx("h3",{children:"Shipping Address"}),o.jsx("form",{children:o.jsx("div",{className:"row gy-3 overflow-hidden",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:u.totalSqft,onChange:y,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]})})})}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:j,children:"Submit"})]})]})]})})},vw=()=>{var r;const e=cn(),{user:t}=dt(i=>({...i.auth})),{userProperties:n}=dt(i=>i.property);return E.useEffect(()=>{var i;e(pl((i=t==null?void 0:t.result)==null?void 0:i.userId))},[e,(r=t==null?void 0:t.result)==null?void 0:r.userId]),o.jsx(o.Fragment,{children:n.length>0?o.jsx("ul",{children:n.map(i=>o.jsxs("li",{children:[o.jsxs(te,{to:`/property/${i.propertyId}`,target:"_blank",children:[i.title,"....."]}),o.jsxs(te,{to:`/editproperty/${i.propertyId}`,target:"_blank",children:["Edit","....."]})]},i._id))}):o.jsx("p",{children:"No active properties found."})})},gw=()=>{const{user:e}=dt(i=>({...i.auth})),[t,n]=E.useState("dashboard"),r=()=>{switch(t){case"addProperty":return o.jsx(yw,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(vw,{})]});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsxs("div",{className:"d-flex justify-content-center mt-7 gap-2 p-3",children:[o.jsx("div",{className:"col-md-6",children:o.jsxs("div",{className:"card cardchildchild p-2",children:[o.jsx("div",{className:"profile1",children:o.jsx("img",{src:"https://i.imgur.com/NI5b1NX.jpg",height:90,width:90,className:"rounded-circle"})}),o.jsxs("div",{className:"d-flex flex-column justify-content-center align-items-center mt-5",children:[o.jsx("span",{className:"name",children:"Bess Wills"}),o.jsx("span",{className:"mt-1 braceletid",children:"Bracelet ID: SFG 38393"}),o.jsx("span",{className:"dummytext mt-3 p-3",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Text elit more smtit. Kimto lee."})]})]})}),o.jsx("div",{className:"col-md-6",children:o.jsxs("div",{className:"card cardchildchild p-2",children:[o.jsx("div",{className:"profile1",children:o.jsx("img",{src:"https://i.imgur.com/YyoCGsa.jpg",height:90,width:90,className:"rounded-circle"})}),o.jsxs("div",{className:"d-flex flex-column justify-content-center align-items-center mt-5",children:[o.jsx("span",{className:"name",children:"Bess Wills"}),o.jsx("span",{className:"mt-1 braceletid",children:"Bracelet ID: SFG 38393"}),o.jsx("span",{className:"dummytext mt-3 p-3",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Text elit more smtit. Kimto lee."})]})]})})]})}};return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"d-flex flex-row",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"card card1 p-5",children:[o.jsx("img",{className:"img-fluid",src:hw,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),o.jsx("hr",{className:"hline"}),o.jsxs("div",{className:"d-flex flex-column align-items-center",children:[o.jsxs("button",{className:`btn ${t==="dashboard"?"active":""}`,onClick:()=>n("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="addProperty"?"active":""}`,onClick:()=>n("addProperty"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Add Property"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="activeProperties"?"active":""}`,onClick:()=>n("activeProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Active Properties"})]}),o.jsxs("button",{className:`btn mt-3 ${t==="closedProperties"?"active":""}`,onClick:()=>n("closedProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Closed Properties"})]})]})]})}),o.jsx("div",{className:"col-md-9",children:o.jsxs("div",{className:"card card2 p-0",children:[o.jsxs("div",{className:"hello d-flex justify-content-end align-items-center mt-3",children:[o.jsxs("span",{children:["Welcome to"," ",o.jsxs("span",{style:{color:"#067ADC"},children:[e.result.title,". ",e.result.firstName," ",e.result.middleName," ",e.result.lastName]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})]}),o.jsx("div",{className:"tab-content p-3",children:r()})]})})]}),o.jsx(Qe,{})]})};var Bm={exports:{}},xw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ww=xw,jw=ww;function Um(){}function $m(){}$m.resetWarningCache=Um;var Nw=function(){function e(r,i,l,s,a,u){if(u!==jw){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:$m,resetWarningCache:Um};return n.PropTypes=n,n};Bm.exports=Nw();var Sw=Bm.exports;const Ew=xd(Sw),kw=()=>{const[e,t]=E.useState(3),n=Ci();return E.useEffect(()=>{const r=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),o.jsx("div",{style:{marginTop:"100px"},children:o.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},ka=({children:e})=>{const{user:t}=dt(n=>({...n.auth}));return t?e:o.jsx(kw,{})};ka.propTypes={children:Ew.node.isRequired};const _w=()=>{const e=cn(),{id:t,token:n}=Pi();return E.useEffect(()=>{e(dl({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("h1",{className:"card-title text-center",children:o.jsxs(te,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",o.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img"})})]})})})]}),o.jsx(Qe,{})]})},Cw=()=>{const[e,t]=E.useState(""),[n,r]=E.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await K.post(`${i}/users/forgotpassword`,{email:e});r(s.data.message)}catch(s){console.error("Forgot Password Error:",s),r(s.response.data.message)}};return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Forgot Password"}),o.jsx("hr",{})]})})}),o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:e,onChange:s=>t(s.target.value),placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),o.jsxs("div",{className:"col-12",children:[o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx(te,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})}),o.jsx(Qe,{})]})]})},Pw=()=>{const{userId:e,token:t}=Pi(),[n,r]=E.useState(""),[i,l]=E.useState(""),[s,a]=E.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),I.error("Password not entered");return}const d=await K.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),I.error("Passwords do not match.");return}else a("Password reset successfull"),I.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return E.useEffect(()=>{I.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card mb-0 vh-100",children:o.jsx("div",{className:"container py-10 h-100",children:o.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:o.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[o.jsx("br",{}),o.jsxs("h2",{children:["Reset Password",o.jsx("hr",{}),o.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),o.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"}}),o.jsx("br",{}),o.jsx("input",{className:"form-control",type:"password",value:i,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),o.jsx("br",{}),o.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"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(Qe,{})]})},Ow=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"col-md-18",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),o.jsxs("h2",{children:["We reqest you to kindly ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(Qe,{})]}),Tw=()=>{const{id:e}=Pi(),t=cn(),{selectedProperty:n,status:r,error:i}=dt(l=>l.property);return E.useEffect(()=>{e&&t(Vr(e))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"container property-view",children:n?o.jsxs("div",{className:"property-details",children:[o.jsx("h1",{children:n.title}),o.jsxs("p",{children:["Email: ",n.useremail]})]}):o.jsx("p",{children:"Property not found."})})})},Rw=()=>{const[e,t]=E.useState([]),[n,r]=E.useState(0),[i,l]=E.useState(0),[s]=E.useState(10),[a,u]=E.useState(""),[c,d]=E.useState(!1),[f,y]=E.useState(!1),j=async()=>{d(!0),y(!1);try{const h=await K.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:s,offset:i*s,search:a},headers:{"Cache-Control":"no-cache"}});t(h.data.data),r(h.data.totalRecords),a.trim()&&y(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},v=h=>{u(h.target.value),h.target.value.trim()===""&&(l(0),t([]),r(0),y(!1),j())},g=h=>{h.key==="Enter"&&(h.preventDefault(),j())};E.useEffect(()=>{j()},[a,i]);const w=Math.ceil(n/s);return o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:g})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsxs("div",{className:"card-body",children:[f&&e.length>0&&o.jsxs("div",{children:["Showing search results for the keyword ",o.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:e.length>0?e.map((h,p)=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(te,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),h.city,", ",h.county,",",h.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.year_built})})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.cost_per_sqft,"/sqft"]})})]},p)):o.jsx("tr",{children:o.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),o.jsxs("div",{children:[o.jsx("button",{onClick:()=>l(i-1),disabled:i===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),o.jsxs("span",{children:[" ","Page ",i+1," of ",w," "]}),o.jsx("button",{onClick:()=>l(i+1),disabled:i+1>=w||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),o.jsx(Qe,{})]})},bw=()=>o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),"This page will show the list of services offered by the company",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(Qe,{})]}),Lw="/assets/propertydummy-DhVEZ7jN.jpg",Mw=()=>{const{house_id:e}=Pi();console.log("house_id",e);const[t,n]=E.useState(null),[r,i]=E.useState(!0);return E.useEffect(()=>{(async()=>{try{const s=await K.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(s.data)}catch(s){console.log("Error fetching property details:",s)}finally{i(!1)}})()},[e]),o.jsxs(o.Fragment,{children:[o.jsx(Me,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:r?o.jsx("div",{className:"loader",children:"Loading..."}):t?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:o.jsx("img",{src:Lw,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),o.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(Qe,{})]})},Fw=()=>{const{id:e}=Pi(),t=cn(),{selectedProperty:n}=dt(a=>a.property),[r,i]=E.useState({propertyType:"",title:"",yearBuild:"",totalSqft:""});E.useEffect(()=>{t(Vr(e))},[t,e]),E.useEffect(()=>{n&&i({propertyType:n.propertyType,title:n.title,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=a=>{i({...r,[a.target.name]:a.target.value})},s=a=>{a.preventDefault(),t(ml({id:e,propertyData:r}))};return o.jsxs("div",{className:"edit-property-form",children:[o.jsx("h2",{children:"Edit Property"}),o.jsxs("form",{onSubmit:s,children:[o.jsx("div",{children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"title",value:r.title,onChange:l,placeholder:"Property title",required:!0}),o.jsx("label",{htmlFor:"title",className:"form-label",children:"Property Title"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),o.jsx("button",{type:"submit",children:"Update Property"})]})]})},zw=()=>o.jsxs(gx,{children:[o.jsx(zx,{}),o.jsxs(cx,{children:[o.jsx(he,{path:"/",element:o.jsx(Dx,{})}),o.jsx(he,{path:"/about",element:o.jsx(Ax,{})}),o.jsx(he,{path:"/services",element:o.jsx(bw,{})}),o.jsx(he,{path:"/contact",element:o.jsx(Bx,{})}),o.jsx(he,{path:"/register",element:o.jsx(fw,{})}),o.jsx(he,{path:"/registrationsuccess",element:o.jsx(ka,{children:o.jsx(Ow,{})})}),o.jsx(he,{path:"/login",element:o.jsx(mw,{})}),o.jsx(he,{path:"/dashboard",element:o.jsx(ka,{children:o.jsx(gw,{})})}),o.jsx(he,{path:"/users/:id/verify/:token",element:o.jsx(_w,{})}),o.jsx(he,{path:"/forgotpassword",element:o.jsx(Cw,{})}),o.jsx(he,{path:"/users/resetpassword/:userId/:token",element:o.jsx(Pw,{})}),o.jsx(he,{path:"/property/:id",element:o.jsx(Tw,{})}),o.jsx(he,{path:"/properties/:house_id",element:o.jsx(Mw,{})}),o.jsx(he,{path:"/searchmyproperties",element:o.jsx(Rw,{})}),o.jsx(he,{path:"/editproperty/:id",element:o.jsx(Fw,{})})]})]});Lp(document.getElementById("root")).render(o.jsx(E.StrictMode,{children:o.jsx(A0,{store:S1,children:o.jsx(zw,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index 7386bd9..4f3e578 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -45,7 +45,7 @@ - + diff --git a/ef-ui/src/components/EditProperty.jsx b/ef-ui/src/components/EditProperty.jsx index 15343fb..bcd8738 100644 --- a/ef-ui/src/components/EditProperty.jsx +++ b/ef-ui/src/components/EditProperty.jsx @@ -1,6 +1,7 @@ import { useState, useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { fetchPropertyById } from "../redux/features/propertySlice"; +import { updateProperty } from "../redux/features/propertySlice"; import { useParams } from "react-router-dom"; const EditProperty = () => { @@ -34,10 +35,16 @@ const EditProperty = () => { setFormData({ ...formData, [e.target.name]: e.target.value }); }; + const handleSubmit = (e) => { + e.preventDefault(); + dispatch(updateProperty({ id, propertyData: formData })); + }; + + return (

Edit Property

-
+