diff --git a/ef-ui/dist/assets/index-iEl-il0E.css b/ef-ui/dist/assets/index-DUngj0jf.css similarity index 80% rename from ef-ui/dist/assets/index-iEl-il0E.css rename to ef-ui/dist/assets/index-DUngj0jf.css index 58caf70..d8f43a5 100644 --- a/ef-ui/dist/assets/index-iEl-il0E.css +++ b/ef-ui/dist/assets/index-DUngj0jf.css @@ -1 +1 @@ - @font-face{font-family:primeicons;font-display:block;src:url(/assets/primeicons-DMOk5skT.eot);src:url(/assets/primeicons-DMOk5skT.eot?#iefix) format("embedded-opentype"),url(/assets/primeicons-C6QP2o4f.woff2) format("woff2"),url(/assets/primeicons-WjwUDZjB.woff) format("woff"),url(/assets/primeicons-MpK4pl85.ttf) format("truetype"),url(/assets/primeicons-Dr5RGzOO.svg?#primeicons) format("svg");font-weight:400;font-style:normal}.pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pi:before{--webkit-backface-visibility:hidden;backface-visibility:hidden}.pi-fw{width:1.28571429em;text-align:center}.pi-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@media (prefers-reduced-motion: reduce){.pi-spin{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.pi-folder-plus:before{content:""}.pi-receipt:before{content:""}.pi-asterisk:before{content:""}.pi-face-smile:before{content:""}.pi-pinterest:before{content:""}.pi-expand:before{content:""}.pi-pen-to-square:before{content:""}.pi-wave-pulse:before{content:""}.pi-turkish-lira:before{content:""}.pi-spinner-dotted:before{content:""}.pi-crown:before{content:""}.pi-pause-circle:before{content:""}.pi-warehouse:before{content:""}.pi-objects-column:before{content:""}.pi-clipboard:before{content:""}.pi-play-circle:before{content:""}.pi-venus:before{content:""}.pi-cart-minus:before{content:""}.pi-file-plus:before{content:""}.pi-microchip:before{content:""}.pi-twitch:before{content:""}.pi-building-columns:before{content:""}.pi-file-check:before{content:""}.pi-microchip-ai:before{content:""}.pi-trophy:before{content:""}.pi-barcode:before{content:""}.pi-file-arrow-up:before{content:""}.pi-mars:before{content:""}.pi-tiktok:before{content:""}.pi-arrow-up-right-and-arrow-down-left-from-center:before{content:""}.pi-ethereum:before{content:""}.pi-list-check:before{content:""}.pi-thumbtack:before{content:""}.pi-arrow-down-left-and-arrow-up-right-to-center:before{content:""}.pi-equals:before{content:""}.pi-lightbulb:before{content:""}.pi-star-half:before{content:""}.pi-address-book:before{content:""}.pi-chart-scatter:before{content:""}.pi-indian-rupee:before{content:""}.pi-star-half-fill:before{content:""}.pi-cart-arrow-down:before{content:""}.pi-calendar-clock:before{content:""}.pi-sort-up-fill:before{content:""}.pi-sparkles:before{content:""}.pi-bullseye:before{content:""}.pi-sort-down-fill:before{content:""}.pi-graduation-cap:before{content:""}.pi-hammer:before{content:""}.pi-bell-slash:before{content:""}.pi-gauge:before{content:""}.pi-shop:before{content:""}.pi-headphones:before{content:""}.pi-eraser:before{content:""}.pi-stopwatch:before{content:""}.pi-verified:before{content:""}.pi-delete-left:before{content:""}.pi-hourglass:before{content:""}.pi-truck:before{content:""}.pi-wrench:before{content:""}.pi-microphone:before{content:""}.pi-megaphone:before{content:""}.pi-arrow-right-arrow-left:before{content:""}.pi-bitcoin:before{content:""}.pi-file-edit:before{content:""}.pi-language:before{content:""}.pi-file-export:before{content:""}.pi-file-import:before{content:""}.pi-file-word:before{content:""}.pi-gift:before{content:""}.pi-cart-plus:before{content:""}.pi-thumbs-down-fill:before{content:""}.pi-thumbs-up-fill:before{content:""}.pi-arrows-alt:before{content:""}.pi-calculator:before{content:""}.pi-sort-alt-slash:before{content:""}.pi-arrows-h:before{content:""}.pi-arrows-v:before{content:""}.pi-pound:before{content:""}.pi-prime:before{content:""}.pi-chart-pie:before{content:""}.pi-reddit:before{content:""}.pi-code:before{content:""}.pi-sync:before{content:""}.pi-shopping-bag:before{content:""}.pi-server:before{content:""}.pi-database:before{content:""}.pi-hashtag:before{content:""}.pi-bookmark-fill:before{content:""}.pi-filter-fill:before{content:""}.pi-heart-fill:before{content:""}.pi-flag-fill:before{content:""}.pi-circle:before{content:""}.pi-circle-fill:before{content:""}.pi-bolt:before{content:""}.pi-history:before{content:""}.pi-box:before{content:""}.pi-at:before{content:""}.pi-arrow-up-right:before{content:""}.pi-arrow-up-left:before{content:""}.pi-arrow-down-left:before{content:""}.pi-arrow-down-right:before{content:""}.pi-telegram:before{content:""}.pi-stop-circle:before{content:""}.pi-stop:before{content:""}.pi-whatsapp:before{content:""}.pi-building:before{content:""}.pi-qrcode:before{content:""}.pi-car:before{content:""}.pi-instagram:before{content:""}.pi-linkedin:before{content:""}.pi-send:before{content:""}.pi-slack:before{content:""}.pi-sun:before{content:""}.pi-moon:before{content:""}.pi-vimeo:before{content:""}.pi-youtube:before{content:""}.pi-flag:before{content:""}.pi-wallet:before{content:""}.pi-map:before{content:""}.pi-link:before{content:""}.pi-credit-card:before{content:""}.pi-discord:before{content:""}.pi-percentage:before{content:""}.pi-euro:before{content:""}.pi-book:before{content:""}.pi-shield:before{content:""}.pi-paypal:before{content:""}.pi-amazon:before{content:""}.pi-phone:before{content:""}.pi-filter-slash:before{content:""}.pi-facebook:before{content:""}.pi-github:before{content:""}.pi-twitter:before{content:""}.pi-step-backward-alt:before{content:""}.pi-step-forward-alt:before{content:""}.pi-forward:before{content:""}.pi-backward:before{content:""}.pi-fast-backward:before{content:""}.pi-fast-forward:before{content:""}.pi-pause:before{content:""}.pi-play:before{content:""}.pi-compass:before{content:""}.pi-id-card:before{content:""}.pi-ticket:before{content:""}.pi-file-o:before{content:""}.pi-reply:before{content:""}.pi-directions-alt:before{content:""}.pi-directions:before{content:""}.pi-thumbs-up:before{content:""}.pi-thumbs-down:before{content:""}.pi-sort-numeric-down-alt:before{content:""}.pi-sort-numeric-up-alt:before{content:""}.pi-sort-alpha-down-alt:before{content:""}.pi-sort-alpha-up-alt:before{content:""}.pi-sort-numeric-down:before{content:""}.pi-sort-numeric-up:before{content:""}.pi-sort-alpha-down:before{content:""}.pi-sort-alpha-up:before{content:""}.pi-sort-alt:before{content:""}.pi-sort-amount-up:before{content:""}.pi-sort-amount-down:before{content:""}.pi-sort-amount-down-alt:before{content:""}.pi-sort-amount-up-alt:before{content:""}.pi-palette:before{content:""}.pi-undo:before{content:""}.pi-desktop:before{content:""}.pi-sliders-v:before{content:""}.pi-sliders-h:before{content:""}.pi-search-plus:before{content:""}.pi-search-minus:before{content:""}.pi-file-excel:before{content:""}.pi-file-pdf:before{content:""}.pi-check-square:before{content:""}.pi-chart-line:before{content:""}.pi-user-edit:before{content:""}.pi-exclamation-circle:before{content:""}.pi-android:before{content:""}.pi-google:before{content:""}.pi-apple:before{content:""}.pi-microsoft:before{content:""}.pi-heart:before{content:""}.pi-mobile:before{content:""}.pi-tablet:before{content:""}.pi-key:before{content:""}.pi-shopping-cart:before{content:""}.pi-comments:before{content:""}.pi-comment:before{content:""}.pi-briefcase:before{content:""}.pi-bell:before{content:""}.pi-paperclip:before{content:""}.pi-share-alt:before{content:""}.pi-envelope:before{content:""}.pi-volume-down:before{content:""}.pi-volume-up:before{content:""}.pi-volume-off:before{content:""}.pi-eject:before{content:""}.pi-money-bill:before{content:""}.pi-images:before{content:""}.pi-image:before{content:""}.pi-sign-in:before{content:""}.pi-sign-out:before{content:""}.pi-wifi:before{content:""}.pi-sitemap:before{content:""}.pi-chart-bar:before{content:""}.pi-camera:before{content:""}.pi-dollar:before{content:""}.pi-lock-open:before{content:""}.pi-table:before{content:""}.pi-map-marker:before{content:""}.pi-list:before{content:""}.pi-eye-slash:before{content:""}.pi-eye:before{content:""}.pi-folder-open:before{content:""}.pi-folder:before{content:""}.pi-video:before{content:""}.pi-inbox:before{content:""}.pi-lock:before{content:""}.pi-unlock:before{content:""}.pi-tags:before{content:""}.pi-tag:before{content:""}.pi-power-off:before{content:""}.pi-save:before{content:""}.pi-question-circle:before{content:""}.pi-question:before{content:""}.pi-copy:before{content:""}.pi-file:before{content:""}.pi-clone:before{content:""}.pi-calendar-times:before{content:""}.pi-calendar-minus:before{content:""}.pi-calendar-plus:before{content:""}.pi-ellipsis-v:before{content:""}.pi-ellipsis-h:before{content:""}.pi-bookmark:before{content:""}.pi-globe:before{content:""}.pi-replay:before{content:""}.pi-filter:before{content:""}.pi-print:before{content:""}.pi-align-right:before{content:""}.pi-align-left:before{content:""}.pi-align-center:before{content:""}.pi-align-justify:before{content:""}.pi-cog:before{content:""}.pi-cloud-download:before{content:""}.pi-cloud-upload:before{content:""}.pi-cloud:before{content:""}.pi-pencil:before{content:""}.pi-users:before{content:""}.pi-clock:before{content:""}.pi-user-minus:before{content:""}.pi-user-plus:before{content:""}.pi-trash:before{content:""}.pi-external-link:before{content:""}.pi-window-maximize:before{content:""}.pi-window-minimize:before{content:""}.pi-refresh:before{content:""}.pi-user:before{content:""}.pi-exclamation-triangle:before{content:""}.pi-calendar:before{content:""}.pi-chevron-circle-left:before{content:""}.pi-chevron-circle-down:before{content:""}.pi-chevron-circle-right:before{content:""}.pi-chevron-circle-up:before{content:""}.pi-angle-double-down:before{content:""}.pi-angle-double-left:before{content:""}.pi-angle-double-right:before{content:""}.pi-angle-double-up:before{content:""}.pi-angle-down:before{content:""}.pi-angle-left:before{content:""}.pi-angle-right:before{content:""}.pi-angle-up:before{content:""}.pi-upload:before{content:""}.pi-download:before{content:""}.pi-ban:before{content:""}.pi-star-fill:before{content:""}.pi-star:before{content:""}.pi-chevron-left:before{content:""}.pi-chevron-right:before{content:""}.pi-chevron-down:before{content:""}.pi-chevron-up:before{content:""}.pi-caret-left:before{content:""}.pi-caret-right:before{content:""}.pi-caret-down:before{content:""}.pi-caret-up:before{content:""}.pi-search:before{content:""}.pi-check:before{content:""}.pi-check-circle:before{content:""}.pi-times:before{content:""}.pi-times-circle:before{content:""}.pi-plus:before{content:""}.pi-plus-circle:before{content:""}.pi-minus:before{content:""}.pi-minus-circle:before{content:""}.pi-circle-on:before{content:""}.pi-circle-off:before{content:""}.pi-sort-down:before{content:""}.pi-sort-up:before{content:""}.pi-sort:before{content:""}.pi-step-backward:before{content:""}.pi-step-forward:before{content:""}.pi-th-large:before{content:""}.pi-arrow-down:before{content:""}.pi-arrow-left:before{content:""}.pi-arrow-right:before{content:""}.pi-arrow-up:before{content:""}.pi-bars:before{content:""}.pi-arrow-circle-down:before{content:""}.pi-arrow-circle-left:before{content:""}.pi-arrow-circle-right:before{content:""}.pi-arrow-circle-up:before{content:""}.pi-info:before{content:""}.pi-info-circle:before{content:""}.pi-home:before{content:""}.pi-spinner:before{content:""}:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.nav-tabs{border:1px solid #ddd;border-radius:4px;display:flex;justify-content:space-around;margin-bottom:0;padding-left:0}.nav-tabs .tab{border-right:1px solid #ddd;padding:10px;flex-grow:1;text-align:center;cursor:pointer}.nav-tabs .tab:last-child{border-right:none}.nav-tabs .tab a{text-decoration:none;color:#333;display:block;padding:10px}.nav-tabs .tab:hover{background-color:#f5f5f5}.nav-tabs .active{background-color:#fda417;border-color:#fda417}.nav-tabs .active a{color:#fff}.tab-content{border:1px solid #ddd;border-top:none;padding:20px;margin-top:-1px}.btn{margin:10px 0}.tab-pane{border:1px solid #ddd;padding:20px;margin-top:10px;border-radius:4px;background-color:#f3eded}.btn.active{background-color:#fda417;color:#fff;border:1px solid #fda417}body{background:#eee}.ratings i{font-size:16px;color:red}.strike-text{color:red;text-decoration:line-through}.product-image{width:100%}.dot{height:7px;width:7px;margin-left:6px;margin-right:6px;margin-top:3px;background-color:#fda417;border-radius:50%;display:inline-block}.spec-1{color:#938787;font-size:15px}h5{font-weight:400}.para{font-size:16px}body{background:#dcdcdc;margin-top:20px}.widget-26{color:#3c4142;font-weight:400}.widget-26 tr:first-child td{border:0}.widget-26 .widget-26-job-emp-img img{width:35px;height:35px;border-radius:50%}.widget-26 .widget-26-job-title{min-width:200px}.widget-26 .widget-26-job-title a{font-weight:400;font-size:.975rem;color:#3c4142;line-height:1.5}.widget-26 .widget-26-job-title a:hover{color:#68cbd7;text-decoration:none}.widget-26 .widget-26-job-title .employer-name{margin:0;line-height:1.5;font-weight:400;color:#000;font-size:.9125rem;color:#3c4142}.widget-26 .widget-26-job-title .employer-name:hover{color:#68cbd7;text-decoration:none}.widget-26 .widget-26-job-title .time{font-size:14px;font-weight:400}.widget-26 .widget-26-job-info{min-width:100px;font-weight:400}.widget-26 .widget-26-job-info p{line-height:1.5;color:#000;font-size:.9125rem}.widget-26 .widget-26-job-info .location{color:#3c4142}.widget-26 .widget-26-job-salary{min-width:70px;font-weight:400;color:#000;font-size:.9125rem}.widget-26 .widget-26-job-category{padding:.5rem;display:inline-flex;white-space:nowrap;border-radius:15px}.widget-26 .widget-26-job-category .indicator{width:13px;height:13px;margin-right:.5rem;float:left;border-radius:50%}.widget-26 .widget-26-job-category span{font-size:.8125rem;color:#000;font-weight:600}.widget-26 .widget-26-job-starred svg{width:20px;height:20px;color:#fd8b2c}.widget-26 .widget-26-job-starred svg.starred{fill:#fd8b2c}.bg-soft-base{background-color:#e1f5f7}.bg-soft-warning{background-color:#fff4e1}.bg-soft-success{background-color:#d1f6f2}.bg-soft-danger{background-color:#fedce0}.bg-soft-info{background-color:#d7efff}.search-form{width:80%;margin:0 auto;margin-top:1rem}.search-form input{background:transparent;border:0;display:block;width:100%;padding:1rem;height:100%;font-size:1rem}.search-form select{background:transparent;border:0;padding:1rem;height:100%;font-size:1rem}.search-form select:focus{border:0}.search-form button{height:100%;width:100%;font-size:1rem}.search-form button svg{width:24px;height:24px}.search-body{margin-bottom:1.5rem}.search-body .search-filters .filter-list{margin-bottom:1.3rem}.search-body .search-filters .filter-list .title{color:#000;margin-bottom:1rem}.search-body .search-filters .filter-list .filter-text{color:#727686}.search-body .search-result .result-header{margin-bottom:2rem}.search-body .search-result .result-header .records{color:#000}.search-body .search-result .result-header .result-actions{text-align:right;display:flex;align-items:center;justify-content:space-between}.search-body .search-result .result-header .result-actions .result-sorting{display:flex;align-items:center}.search-body .search-result .result-header .result-actions .result-sorting span{flex-shrink:0;font-size:.9125rem}.search-body .search-result .result-header .result-actions .result-sorting select{color:#68cbd7}.search-body .search-result .result-header .result-actions .result-sorting select option{color:#000}@media (min-width: 768px) and (max-width: 991.98px){.search-body .search-filters{display:flex}.search-body .search-filters .filter-list{margin-right:1rem}}@media (min-width: 992px){.col-lg-2{flex:0 0 16.66667%;max-width:16.66667%}}.card-margin{margin-bottom:1.875rem}.card{border:0;box-shadow:0 0 10px #523f691a;-webkit-box-shadow:0px 0px 10px 0px rgba(82,63,105,.1);-moz-box-shadow:0px 0px 10px 0px rgba(82,63,105,.1);-ms-box-shadow:0px 0px 10px 0px rgba(82,63,105,.1)}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid #e6e4e9;border-radius:8px}.loader{position:fixed;left:0;top:0;width:100%;height:100%;background:#fffc;display:flex;justify-content:center;align-items:center;z-index:9999}.spinner{border:8px solid #f3f3f3;border-top:8px solid #3498db;border-radius:50%;width:60px;height:60px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.product-view .product-name{font-size:24px;color:#2874f0}.product-view .product-name .label-stock{font-size:13px;padding:4px 13px;border-radius:5px;color:#fff;box-shadow:0 .125rem .25rem #00000014;float:right}.product-view .product-path{font-size:13px;font-weight:500;color:#000;margin-bottom:16px}.product-view .selling-price{font-size:26px;color:#000;font-weight:600;margin-right:8px}.product-view .original-price{font-size:18px;color:#000;font-weight:400;text-decoration:line-through}.product-view .btn1{border:1px solid;margin-right:3px;border-radius:0;font-size:14px;margin-top:10px}.product-view .btn1:hover{background-color:#2874f0;color:#fff}.product-view .input-quantity{border:1px solid #000;margin-right:3px;font-size:12px;margin-top:10px;width:58px;outline:none;text-align:center}body{margin-top:20px;color:#1a202c;text-align:left;background-color:#e2e8f0}.main-body{padding:15px}.card{box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:0 solid rgba(0,0,0,.125);border-radius:.25rem}.card-body{flex:1 1 auto;min-height:1px;padding:1rem}.gutters-sm{margin-right:-8px;margin-left:-8px}.gutters-sm>.col,.gutters-sm>[class*=col-]{padding-right:8px;padding-left:8px}.mb-3,.my-3{margin-bottom:1rem!important}.bg-gray-300{background-color:#e2e8f0}.h-100{height:100%!important}.shadow-none{box-shadow:none!important}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} + @font-face{font-family:primeicons;font-display:block;src:url(/assets/primeicons-DMOk5skT.eot);src:url(/assets/primeicons-DMOk5skT.eot?#iefix) format("embedded-opentype"),url(/assets/primeicons-C6QP2o4f.woff2) format("woff2"),url(/assets/primeicons-WjwUDZjB.woff) format("woff"),url(/assets/primeicons-MpK4pl85.ttf) format("truetype"),url(/assets/primeicons-Dr5RGzOO.svg?#primeicons) format("svg");font-weight:400;font-style:normal}.pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pi:before{--webkit-backface-visibility:hidden;backface-visibility:hidden}.pi-fw{width:1.28571429em;text-align:center}.pi-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@media (prefers-reduced-motion: reduce){.pi-spin{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.pi-folder-plus:before{content:""}.pi-receipt:before{content:""}.pi-asterisk:before{content:""}.pi-face-smile:before{content:""}.pi-pinterest:before{content:""}.pi-expand:before{content:""}.pi-pen-to-square:before{content:""}.pi-wave-pulse:before{content:""}.pi-turkish-lira:before{content:""}.pi-spinner-dotted:before{content:""}.pi-crown:before{content:""}.pi-pause-circle:before{content:""}.pi-warehouse:before{content:""}.pi-objects-column:before{content:""}.pi-clipboard:before{content:""}.pi-play-circle:before{content:""}.pi-venus:before{content:""}.pi-cart-minus:before{content:""}.pi-file-plus:before{content:""}.pi-microchip:before{content:""}.pi-twitch:before{content:""}.pi-building-columns:before{content:""}.pi-file-check:before{content:""}.pi-microchip-ai:before{content:""}.pi-trophy:before{content:""}.pi-barcode:before{content:""}.pi-file-arrow-up:before{content:""}.pi-mars:before{content:""}.pi-tiktok:before{content:""}.pi-arrow-up-right-and-arrow-down-left-from-center:before{content:""}.pi-ethereum:before{content:""}.pi-list-check:before{content:""}.pi-thumbtack:before{content:""}.pi-arrow-down-left-and-arrow-up-right-to-center:before{content:""}.pi-equals:before{content:""}.pi-lightbulb:before{content:""}.pi-star-half:before{content:""}.pi-address-book:before{content:""}.pi-chart-scatter:before{content:""}.pi-indian-rupee:before{content:""}.pi-star-half-fill:before{content:""}.pi-cart-arrow-down:before{content:""}.pi-calendar-clock:before{content:""}.pi-sort-up-fill:before{content:""}.pi-sparkles:before{content:""}.pi-bullseye:before{content:""}.pi-sort-down-fill:before{content:""}.pi-graduation-cap:before{content:""}.pi-hammer:before{content:""}.pi-bell-slash:before{content:""}.pi-gauge:before{content:""}.pi-shop:before{content:""}.pi-headphones:before{content:""}.pi-eraser:before{content:""}.pi-stopwatch:before{content:""}.pi-verified:before{content:""}.pi-delete-left:before{content:""}.pi-hourglass:before{content:""}.pi-truck:before{content:""}.pi-wrench:before{content:""}.pi-microphone:before{content:""}.pi-megaphone:before{content:""}.pi-arrow-right-arrow-left:before{content:""}.pi-bitcoin:before{content:""}.pi-file-edit:before{content:""}.pi-language:before{content:""}.pi-file-export:before{content:""}.pi-file-import:before{content:""}.pi-file-word:before{content:""}.pi-gift:before{content:""}.pi-cart-plus:before{content:""}.pi-thumbs-down-fill:before{content:""}.pi-thumbs-up-fill:before{content:""}.pi-arrows-alt:before{content:""}.pi-calculator:before{content:""}.pi-sort-alt-slash:before{content:""}.pi-arrows-h:before{content:""}.pi-arrows-v:before{content:""}.pi-pound:before{content:""}.pi-prime:before{content:""}.pi-chart-pie:before{content:""}.pi-reddit:before{content:""}.pi-code:before{content:""}.pi-sync:before{content:""}.pi-shopping-bag:before{content:""}.pi-server:before{content:""}.pi-database:before{content:""}.pi-hashtag:before{content:""}.pi-bookmark-fill:before{content:""}.pi-filter-fill:before{content:""}.pi-heart-fill:before{content:""}.pi-flag-fill:before{content:""}.pi-circle:before{content:""}.pi-circle-fill:before{content:""}.pi-bolt:before{content:""}.pi-history:before{content:""}.pi-box:before{content:""}.pi-at:before{content:""}.pi-arrow-up-right:before{content:""}.pi-arrow-up-left:before{content:""}.pi-arrow-down-left:before{content:""}.pi-arrow-down-right:before{content:""}.pi-telegram:before{content:""}.pi-stop-circle:before{content:""}.pi-stop:before{content:""}.pi-whatsapp:before{content:""}.pi-building:before{content:""}.pi-qrcode:before{content:""}.pi-car:before{content:""}.pi-instagram:before{content:""}.pi-linkedin:before{content:""}.pi-send:before{content:""}.pi-slack:before{content:""}.pi-sun:before{content:""}.pi-moon:before{content:""}.pi-vimeo:before{content:""}.pi-youtube:before{content:""}.pi-flag:before{content:""}.pi-wallet:before{content:""}.pi-map:before{content:""}.pi-link:before{content:""}.pi-credit-card:before{content:""}.pi-discord:before{content:""}.pi-percentage:before{content:""}.pi-euro:before{content:""}.pi-book:before{content:""}.pi-shield:before{content:""}.pi-paypal:before{content:""}.pi-amazon:before{content:""}.pi-phone:before{content:""}.pi-filter-slash:before{content:""}.pi-facebook:before{content:""}.pi-github:before{content:""}.pi-twitter:before{content:""}.pi-step-backward-alt:before{content:""}.pi-step-forward-alt:before{content:""}.pi-forward:before{content:""}.pi-backward:before{content:""}.pi-fast-backward:before{content:""}.pi-fast-forward:before{content:""}.pi-pause:before{content:""}.pi-play:before{content:""}.pi-compass:before{content:""}.pi-id-card:before{content:""}.pi-ticket:before{content:""}.pi-file-o:before{content:""}.pi-reply:before{content:""}.pi-directions-alt:before{content:""}.pi-directions:before{content:""}.pi-thumbs-up:before{content:""}.pi-thumbs-down:before{content:""}.pi-sort-numeric-down-alt:before{content:""}.pi-sort-numeric-up-alt:before{content:""}.pi-sort-alpha-down-alt:before{content:""}.pi-sort-alpha-up-alt:before{content:""}.pi-sort-numeric-down:before{content:""}.pi-sort-numeric-up:before{content:""}.pi-sort-alpha-down:before{content:""}.pi-sort-alpha-up:before{content:""}.pi-sort-alt:before{content:""}.pi-sort-amount-up:before{content:""}.pi-sort-amount-down:before{content:""}.pi-sort-amount-down-alt:before{content:""}.pi-sort-amount-up-alt:before{content:""}.pi-palette:before{content:""}.pi-undo:before{content:""}.pi-desktop:before{content:""}.pi-sliders-v:before{content:""}.pi-sliders-h:before{content:""}.pi-search-plus:before{content:""}.pi-search-minus:before{content:""}.pi-file-excel:before{content:""}.pi-file-pdf:before{content:""}.pi-check-square:before{content:""}.pi-chart-line:before{content:""}.pi-user-edit:before{content:""}.pi-exclamation-circle:before{content:""}.pi-android:before{content:""}.pi-google:before{content:""}.pi-apple:before{content:""}.pi-microsoft:before{content:""}.pi-heart:before{content:""}.pi-mobile:before{content:""}.pi-tablet:before{content:""}.pi-key:before{content:""}.pi-shopping-cart:before{content:""}.pi-comments:before{content:""}.pi-comment:before{content:""}.pi-briefcase:before{content:""}.pi-bell:before{content:""}.pi-paperclip:before{content:""}.pi-share-alt:before{content:""}.pi-envelope:before{content:""}.pi-volume-down:before{content:""}.pi-volume-up:before{content:""}.pi-volume-off:before{content:""}.pi-eject:before{content:""}.pi-money-bill:before{content:""}.pi-images:before{content:""}.pi-image:before{content:""}.pi-sign-in:before{content:""}.pi-sign-out:before{content:""}.pi-wifi:before{content:""}.pi-sitemap:before{content:""}.pi-chart-bar:before{content:""}.pi-camera:before{content:""}.pi-dollar:before{content:""}.pi-lock-open:before{content:""}.pi-table:before{content:""}.pi-map-marker:before{content:""}.pi-list:before{content:""}.pi-eye-slash:before{content:""}.pi-eye:before{content:""}.pi-folder-open:before{content:""}.pi-folder:before{content:""}.pi-video:before{content:""}.pi-inbox:before{content:""}.pi-lock:before{content:""}.pi-unlock:before{content:""}.pi-tags:before{content:""}.pi-tag:before{content:""}.pi-power-off:before{content:""}.pi-save:before{content:""}.pi-question-circle:before{content:""}.pi-question:before{content:""}.pi-copy:before{content:""}.pi-file:before{content:""}.pi-clone:before{content:""}.pi-calendar-times:before{content:""}.pi-calendar-minus:before{content:""}.pi-calendar-plus:before{content:""}.pi-ellipsis-v:before{content:""}.pi-ellipsis-h:before{content:""}.pi-bookmark:before{content:""}.pi-globe:before{content:""}.pi-replay:before{content:""}.pi-filter:before{content:""}.pi-print:before{content:""}.pi-align-right:before{content:""}.pi-align-left:before{content:""}.pi-align-center:before{content:""}.pi-align-justify:before{content:""}.pi-cog:before{content:""}.pi-cloud-download:before{content:""}.pi-cloud-upload:before{content:""}.pi-cloud:before{content:""}.pi-pencil:before{content:""}.pi-users:before{content:""}.pi-clock:before{content:""}.pi-user-minus:before{content:""}.pi-user-plus:before{content:""}.pi-trash:before{content:""}.pi-external-link:before{content:""}.pi-window-maximize:before{content:""}.pi-window-minimize:before{content:""}.pi-refresh:before{content:""}.pi-user:before{content:""}.pi-exclamation-triangle:before{content:""}.pi-calendar:before{content:""}.pi-chevron-circle-left:before{content:""}.pi-chevron-circle-down:before{content:""}.pi-chevron-circle-right:before{content:""}.pi-chevron-circle-up:before{content:""}.pi-angle-double-down:before{content:""}.pi-angle-double-left:before{content:""}.pi-angle-double-right:before{content:""}.pi-angle-double-up:before{content:""}.pi-angle-down:before{content:""}.pi-angle-left:before{content:""}.pi-angle-right:before{content:""}.pi-angle-up:before{content:""}.pi-upload:before{content:""}.pi-download:before{content:""}.pi-ban:before{content:""}.pi-star-fill:before{content:""}.pi-star:before{content:""}.pi-chevron-left:before{content:""}.pi-chevron-right:before{content:""}.pi-chevron-down:before{content:""}.pi-chevron-up:before{content:""}.pi-caret-left:before{content:""}.pi-caret-right:before{content:""}.pi-caret-down:before{content:""}.pi-caret-up:before{content:""}.pi-search:before{content:""}.pi-check:before{content:""}.pi-check-circle:before{content:""}.pi-times:before{content:""}.pi-times-circle:before{content:""}.pi-plus:before{content:""}.pi-plus-circle:before{content:""}.pi-minus:before{content:""}.pi-minus-circle:before{content:""}.pi-circle-on:before{content:""}.pi-circle-off:before{content:""}.pi-sort-down:before{content:""}.pi-sort-up:before{content:""}.pi-sort:before{content:""}.pi-step-backward:before{content:""}.pi-step-forward:before{content:""}.pi-th-large:before{content:""}.pi-arrow-down:before{content:""}.pi-arrow-left:before{content:""}.pi-arrow-right:before{content:""}.pi-arrow-up:before{content:""}.pi-bars:before{content:""}.pi-arrow-circle-down:before{content:""}.pi-arrow-circle-left:before{content:""}.pi-arrow-circle-right:before{content:""}.pi-arrow-circle-up:before{content:""}.pi-info:before{content:""}.pi-info-circle:before{content:""}.pi-home:before{content:""}.pi-spinner:before{content:""}:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.nav-tabs{border:1px solid #ddd;border-radius:4px;display:flex;justify-content:space-around;margin-bottom:0;padding-left:0}.nav-tabs .tab{border-right:1px solid #ddd;padding:10px;flex-grow:1;text-align:center;cursor:pointer}.nav-tabs .tab:last-child{border-right:none}.nav-tabs .tab a{text-decoration:none;color:#333;display:block;padding:10px}.nav-tabs .tab:hover{background-color:#f5f5f5}.nav-tabs .active{background-color:#f5f5f5;border-color:#f5f5f5}.nav-tabs .active a{color:#fff}.tab-content{border:1px solid #ddd;border-top:none;padding:20px;margin-top:-1px}.btn{margin:10px 0}.tab-pane{border:1px solid #ddd;padding:20px;margin-top:10px;border-radius:4px;background-color:#f3eded}.btn.active{background-color:#fda417;color:#fff;border:1px solid #fda417}body{background:#eee}.ratings i{font-size:16px;color:red}.strike-text{color:red;text-decoration:line-through}.product-image{width:100%}.dot{height:7px;width:7px;margin-left:6px;margin-right:6px;margin-top:3px;background-color:#fda417;border-radius:50%;display:inline-block}.spec-1{color:#938787;font-size:15px}h5{font-weight:400}.para{font-size:16px}.nav-tabs .tab a{display:inline-block;padding:10px 20px;text-decoration:none;color:#333;border:1px solid #ddd;border-radius:20px 20px 0 0;margin-right:5px}.nav-tabs .tab.active a{background-color:#fd8b2c;color:#fff;border-bottom-color:transparent}body{background:#dcdcdc;margin-top:20px}.widget-26{color:#3c4142;font-weight:400}.widget-26 tr:first-child td{border:0}.widget-26 .widget-26-job-emp-img img{width:35px;height:35px;border-radius:50%}.widget-26 .widget-26-job-title{min-width:200px}.widget-26 .widget-26-job-title a{font-weight:400;font-size:.975rem;color:#3c4142;line-height:1.5}.widget-26 .widget-26-job-title a:hover{color:#68cbd7;text-decoration:none}.widget-26 .widget-26-job-title .employer-name{margin:0;line-height:1.5;font-weight:400;color:#000;font-size:.9125rem;color:#3c4142}.widget-26 .widget-26-job-title .employer-name:hover{color:#68cbd7;text-decoration:none}.widget-26 .widget-26-job-title .time{font-size:14px;font-weight:400}.widget-26 .widget-26-job-info{min-width:100px;font-weight:400}.widget-26 .widget-26-job-info p{line-height:1.5;color:#000;font-size:.9125rem}.widget-26 .widget-26-job-info .location{color:#3c4142}.widget-26 .widget-26-job-salary{min-width:70px;font-weight:400;color:#000;font-size:.9125rem}.widget-26 .widget-26-job-category{padding:.5rem;display:inline-flex;white-space:nowrap;border-radius:15px}.widget-26 .widget-26-job-category .indicator{width:13px;height:13px;margin-right:.5rem;float:left;border-radius:50%}.widget-26 .widget-26-job-category span{font-size:.8125rem;color:#000;font-weight:600}.widget-26 .widget-26-job-starred svg{width:20px;height:20px;color:#fd8b2c}.widget-26 .widget-26-job-starred svg.starred{fill:#fd8b2c}.bg-soft-base{background-color:#e1f5f7}.bg-soft-warning{background-color:#fff4e1}.bg-soft-success{background-color:#d1f6f2}.bg-soft-danger{background-color:#fedce0}.bg-soft-info{background-color:#d7efff}.search-form{width:80%;margin:0 auto;margin-top:1rem}.search-form input{background:transparent;border:0;display:block;width:100%;padding:1rem;height:100%;font-size:1rem}.search-form select{background:transparent;border:0;padding:1rem;height:100%;font-size:1rem}.search-form select:focus{border:0}.search-form button{height:100%;width:100%;font-size:1rem}.search-form button svg{width:24px;height:24px}.search-body{margin-bottom:1.5rem}.search-body .search-filters .filter-list{margin-bottom:1.3rem}.search-body .search-filters .filter-list .title{color:#000;margin-bottom:1rem}.search-body .search-filters .filter-list .filter-text{color:#727686}.search-body .search-result .result-header{margin-bottom:2rem}.search-body .search-result .result-header .records{color:#000}.search-body .search-result .result-header .result-actions{text-align:right;display:flex;align-items:center;justify-content:space-between}.search-body .search-result .result-header .result-actions .result-sorting{display:flex;align-items:center}.search-body .search-result .result-header .result-actions .result-sorting span{flex-shrink:0;font-size:.9125rem}.search-body .search-result .result-header .result-actions .result-sorting select{color:#68cbd7}.search-body .search-result .result-header .result-actions .result-sorting select option{color:#000}@media (min-width: 768px) and (max-width: 991.98px){.search-body .search-filters{display:flex}.search-body .search-filters .filter-list{margin-right:1rem}}@media (min-width: 992px){.col-lg-2{flex:0 0 16.66667%;max-width:16.66667%}}.card-margin{margin-bottom:1.875rem}.card{border:0;box-shadow:0 0 10px #523f691a;-webkit-box-shadow:0px 0px 10px 0px rgba(82,63,105,.1);-moz-box-shadow:0px 0px 10px 0px rgba(82,63,105,.1);-ms-box-shadow:0px 0px 10px 0px rgba(82,63,105,.1)}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid #e6e4e9;border-radius:8px}.loader{position:fixed;left:0;top:0;width:100%;height:100%;background:#fffc;display:flex;justify-content:center;align-items:center;z-index:9999}.spinner{border:8px solid #f3f3f3;border-top:8px solid #3498db;border-radius:50%;width:60px;height:60px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.product-view .product-name{font-size:24px;color:#2874f0}.product-view .product-name .label-stock{font-size:13px;padding:4px 13px;border-radius:5px;color:#fff;box-shadow:0 .125rem .25rem #00000014;float:right}.product-view .product-path{font-size:13px;font-weight:500;color:#000;margin-bottom:16px}.product-view .selling-price{font-size:26px;color:#000;font-weight:600;margin-right:8px}.product-view .original-price{font-size:18px;color:#000;font-weight:400;text-decoration:line-through}.product-view .btn1{border:1px solid;margin-right:3px;border-radius:0;font-size:14px;margin-top:10px}.product-view .btn1:hover{background-color:#2874f0;color:#fff}.product-view .input-quantity{border:1px solid #000;margin-right:3px;font-size:12px;margin-top:10px;width:58px;outline:none;text-align:center}body{margin-top:20px;color:#1a202c;text-align:left;background-color:#e2e8f0}.main-body{padding:15px}.card{box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:0 solid rgba(0,0,0,.125);border-radius:.25rem}.card-body{flex:1 1 auto;min-height:1px;padding:1rem}.gutters-sm{margin-right:-8px;margin-left:-8px}.gutters-sm>.col,.gutters-sm>[class*=col-]{padding-right:8px;padding-left:8px}.mb-3,.my-3{margin-bottom:1rem!important}.bg-gray-300{background-color:#e2e8f0}.h-100{height:100%!important}.shadow-none{box-shadow:none!important}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} diff --git a/ef-ui/dist/assets/index-CkItAeVW.js b/ef-ui/dist/assets/index-E_rWKug7.js similarity index 75% rename from ef-ui/dist/assets/index-CkItAeVW.js rename to ef-ui/dist/assets/index-E_rWKug7.js index 535805e..eb2e8f5 100644 --- a/ef-ui/dist/assets/index-CkItAeVW.js +++ b/ef-ui/dist/assets/index-E_rWKug7.js @@ -22,7 +22,7 @@ var Rg=Object.defineProperty;var Ag=(e,t,n)=>t in e?Rg(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(R,A){var B=R.length;R.push(A);e:for(;0>>1,W=R[F];if(0>>1;Fs(ee,B))res(ne,ee)?(R[F]=ne,R[re]=B,F=re):(R[F]=ee,R[Y]=B,F=Y);else if(res(ne,B))R[F]=ne,R[re]=B,F=re;else break e}}return A}function s(R,A){var B=R.sortIndex-A.sortIndex;return B!==0?B:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,f=null,g=3,b=!1,x=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(R){for(var A=n(c);A!==null;){if(A.callback===null)o(c);else if(A.startTime<=R)o(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function y(R){if(N=!1,h(R),!x)if(n(u)!==null)x=!0,U(k);else{var A=n(c);A!==null&&G(y,A.startTime-R)}}function k(R,A){x=!1,N&&(N=!1,m(O),O=-1),b=!0;var B=g;try{for(h(A),f=n(u);f!==null&&(!(f.expirationTime>A)||R&&!H());){var F=f.callback;if(typeof F=="function"){f.callback=null,g=f.priorityLevel;var W=F(f.expirationTime<=A);A=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(u)&&o(u),h(A)}else o(u);f=n(u)}if(f!==null)var K=!0;else{var Y=n(c);Y!==null&&G(y,Y.startTime-A),K=!1}return K}finally{f=null,g=B,b=!1}}var P=!1,T=null,O=-1,M=5,$=-1;function H(){return!(e.unstable_now()-$R||125F?(R.sortIndex=B,t(c,R),n(u)===null&&R===n(c)&&(N?(m(O),O=-1):N=!0,G(y,B-F))):(R.sortIndex=W,t(u,R),x||b||(x=!0,U(k))),R},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(R){var A=g;return function(){var B=g;g=A;try{return R.apply(this,arguments)}finally{g=B}}}})(Wp);$p.exports=Wp;var rx=$p.exports;/** + */(function(e){function t(R,A){var B=R.length;R.push(A);e:for(;0>>1,W=R[M];if(0>>1;Ms(ee,B))res(ne,ee)?(R[M]=ne,R[re]=B,M=re):(R[M]=ee,R[Y]=B,M=Y);else if(res(ne,B))R[M]=ne,R[re]=B,M=re;else break e}}return A}function s(R,A){var B=R.sortIndex-A.sortIndex;return B!==0?B:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,f=null,g=3,b=!1,x=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(R){for(var A=n(c);A!==null;){if(A.callback===null)o(c);else if(A.startTime<=R)o(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function y(R){if(N=!1,h(R),!x)if(n(u)!==null)x=!0,U(k);else{var A=n(c);A!==null&&G(y,A.startTime-R)}}function k(R,A){x=!1,N&&(N=!1,m(_),_=-1),b=!0;var B=g;try{for(h(A),f=n(u);f!==null&&(!(f.expirationTime>A)||R&&!H());){var M=f.callback;if(typeof M=="function"){f.callback=null,g=f.priorityLevel;var W=M(f.expirationTime<=A);A=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(u)&&o(u),h(A)}else o(u);f=n(u)}if(f!==null)var K=!0;else{var Y=n(c);Y!==null&&G(y,Y.startTime-A),K=!1}return K}finally{f=null,g=B,b=!1}}var O=!1,T=null,_=-1,F=5,z=-1;function H(){return!(e.unstable_now()-zR||125M?(R.sortIndex=B,t(c,R),n(u)===null&&R===n(c)&&(N?(m(_),_=-1):N=!0,G(y,B-M))):(R.sortIndex=W,t(u,R),x||b||(x=!0,U(k))),R},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(R){var A=g;return function(){var B=g;g=A;try{return R.apply(this,arguments)}finally{g=B}}}})(Wp);$p.exports=Wp;var rx=$p.exports;/** * @license React * react-dom.production.min.js * @@ -34,10 +34,10 @@ var Rg=Object.defineProperty;var Ag=(e,t,n)=>t in e?Rg(e,t,{enumerable:!0,config `+hl+e}var vl=!1;function gl(e,t){if(!e||vl)return"";vl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var o=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){o=c}e.call(t.prototype)}else{try{throw Error()}catch(c){o=c}e()}}catch(c){if(c&&o&&typeof c.stack=="string"){for(var s=c.stack.split(` `),i=o.stack.split(` `),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var u=` -`+s[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{vl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ao(e):""}function cx(e){switch(e.tag){case 5:return Ao(e.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 2:case 15:return e=gl(e.type,!1),e;case 11:return e=gl(e.type.render,!1),e;case 1:return e=gl(e.type,!0),e;default:return""}}function ac(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 Tr:return"Fragment";case Or:return"Portal";case oc:return"Profiler";case Su:return"StrictMode";case sc:return"Suspense";case ic:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vp:return(e.displayName||"Context")+".Consumer";case qp:return(e._context.displayName||"Context")+".Provider";case ku:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eu:return t=e.displayName||null,t!==null?t:ac(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return ac(e(t))}catch{}}return null}function ux(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 ac(t);case 8:return t===Su?"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 $n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dx(e){var t=Kp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){e._valueTracker||(e._valueTracker=dx(e))}function Yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Kp(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Ai(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 lc(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fd(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=$n(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gp(e,t){t=t.checked,t!=null&&wu(e,"checked",t,!1)}function cc(e,t){Gp(e,t);var n=$n(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uc(e,t.type,n):t.hasOwnProperty("defaultValue")&&uc(e,t.type,$n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Md(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 uc(e,t,n){(t!=="number"||Ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Io=Array.isArray;function Yr(e,t,n,o){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=zs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bo={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},fx=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(e){fx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bo[t]=Bo[e]})});function Zp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bo.hasOwnProperty(e)&&Bo[e]?(""+t).trim():t+"px"}function em(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,s=Zp(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,s):e[n]=s}}var px=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pc(e,t){if(t){if(px[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function mc(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 hc=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vc=null,Gr=null,Qr=null;function zd(e){if(e=ks(e)){if(typeof vc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=ba(t),vc(e.stateNode,e.type,t))}}function tm(e){Gr?Qr?Qr.push(e):Qr=[e]:Gr=e}function nm(){if(Gr){var e=Gr,t=Qr;if(Qr=Gr=null,zd(e),t)for(e=0;e>>=0,e===0?32:31-(wx(e)/Sx|0)|0}var $s=64,Ws=4194304;function Do(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 Mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?o=Do(l):(i&=a,i!==0&&(o=Do(i)))}else a=n&~s,a!==0?o=Do(a):i!==0&&(o=Do(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&s)&&(s=o&-o,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function ws(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rt(t),e[t]=n}function _x(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 o=e.eventTimes;for(e=e.expirationTimes;0=$o),Gd=" ",Qd=!1;function Cm(e,t){switch(e){case"keyup":return ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function sy(e,t){switch(e){case"compositionend":return bm(t);case"keypress":return t.which!==32?null:(Qd=!0,Gd);case"textInput":return e=t.data,e===Gd&&Qd?null:e;default:return null}}function iy(e,t){if(Rr)return e==="compositionend"||!Fu&&Cm(e,t)?(e=jm(),ci=Au=Pn=null,Rr=!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=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ef(n)}}function Em(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Em(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pm(){for(var e=window,t=Ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ai(e.document)}return t}function Mu(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 hy(e){var t=Pm(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Em(n.ownerDocument.documentElement,n)){if(o!==null&&Mu(n)){if(t=o.start,e=o.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 s=n.textContent.length,i=Math.min(o.start,s);o=o.end===void 0?i:Math.min(o.end,s),!e.extend&&i>o&&(s=o,o=i,i=s),s=tf(n,i);var a=tf(n,o);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ar=null,Cc=null,Uo=null,bc=!1;function nf(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bc||Ar==null||Ar!==Ai(o)||(o=Ar,"selectionStart"in o&&Mu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Uo&&ss(Uo,o)||(Uo=o,o=zi(Cc,"onSelect"),0Fr||(e.current=_c[Fr],_c[Fr]=null,Fr--)}function ge(e,t){Fr++,_c[Fr]=e.current,e.current=t}var Wn={},Ve=Vn(Wn),rt=Vn(!1),hr=Wn;function to(e,t){var n=e.type.contextTypes;if(!n)return Wn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ot(e){return e=e.childContextTypes,e!=null}function Wi(){je(rt),je(Ve)}function uf(e,t,n){if(Ve.current!==Wn)throw Error(V(168));ge(Ve,t),ge(rt,n)}function Mm(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var s in o)if(!(s in t))throw Error(V(108,ux(e)||"Unknown",s));return Se({},n,o)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,hr=Ve.current,ge(Ve,e),ge(rt,rt.current),!0}function df(e,t,n){var o=e.stateNode;if(!o)throw Error(V(169));n?(e=Mm(e,t,hr),o.__reactInternalMemoizedMergedChildContext=e,je(rt),je(Ve),ge(Ve,e)):je(rt),ge(rt,n)}var nn=null,wa=!1,Tl=!1;function Lm(e){nn===null?nn=[e]:nn.push(e)}function Ey(e){wa=!0,Lm(e)}function Hn(){if(!Tl&&nn!==null){Tl=!0;var e=0,t=me;try{var n=nn;for(me=1;e>=a,s-=a,rn=1<<32-Rt(t)+s|n<O?(M=T,T=null):M=T.sibling;var $=g(m,T,h[O],y);if($===null){T===null&&(T=M);break}e&&T&&$.alternate===null&&t(m,T),v=i($,v,O),P===null?k=$:P.sibling=$,P=$,T=M}if(O===h.length)return n(m,T),Ce&&er(m,O),k;if(T===null){for(;OO?(M=T,T=null):M=T.sibling;var H=g(m,T,$.value,y);if(H===null){T===null&&(T=M);break}e&&T&&H.alternate===null&&t(m,T),v=i(H,v,O),P===null?k=H:P.sibling=H,P=H,T=M}if($.done)return n(m,T),Ce&&er(m,O),k;if(T===null){for(;!$.done;O++,$=h.next())$=f(m,$.value,y),$!==null&&(v=i($,v,O),P===null?k=$:P.sibling=$,P=$);return Ce&&er(m,O),k}for(T=o(m,T);!$.done;O++,$=h.next())$=b(T,m,O,$.value,y),$!==null&&(e&&$.alternate!==null&&T.delete($.key===null?O:$.key),v=i($,v,O),P===null?k=$:P.sibling=$,P=$);return e&&T.forEach(function(te){return t(m,te)}),Ce&&er(m,O),k}function C(m,v,h,y){if(typeof h=="object"&&h!==null&&h.type===Tr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Ls:e:{for(var k=h.key,P=v;P!==null;){if(P.key===k){if(k=h.type,k===Tr){if(P.tag===7){n(m,P.sibling),v=s(P,h.props.children),v.return=m,m=v;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===jn&&mf(k)===P.type){n(m,P.sibling),v=s(P,h.props),v.ref=_o(m,P,h),v.return=m,m=v;break e}n(m,P);break}else t(m,P);P=P.sibling}h.type===Tr?(v=dr(h.props.children,m.mode,y,h.key),v.return=m,m=v):(y=gi(h.type,h.key,h.props,null,m.mode,y),y.ref=_o(m,v,h),y.return=m,m=y)}return a(m);case Or:e:{for(P=h.key;v!==null;){if(v.key===P)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){n(m,v.sibling),v=s(v,h.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Bl(h,m.mode,y),v.return=m,m=v}return a(m);case jn:return P=h._init,C(m,v,P(h._payload),y)}if(Io(h))return x(m,v,h,y);if(wo(h))return N(m,v,h,y);Gs(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,v!==null&&v.tag===6?(n(m,v.sibling),v=s(v,h),v.return=m,m=v):(n(m,v),v=Ll(h,m.mode,y),v.return=m,m=v),a(m)):n(m,v)}return C}var ro=Wm(!0),Um=Wm(!1),Hi=Vn(null),Ki=null,Br=null,$u=null;function Wu(){$u=Br=Ki=null}function Uu(e){var t=Hi.current;je(Hi),e._currentValue=t}function Rc(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Jr(e,t){Ki=e,$u=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nt=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if($u!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(Ki===null)throw Error(V(308));Br=e,Ki.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var ar=null;function qu(e){ar===null?ar=[e]:ar.push(e)}function qm(e,t,n,o){var s=t.interleaved;return s===null?(n.next=n,qu(t)):(n.next=s.next,s.next=n),t.interleaved=n,cn(e,o)}function cn(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 Nn=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vm(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 sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,fe&2){var s=o.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),o.pending=t,cn(e,n)}return s=o.interleaved,s===null?(t.next=t,qu(o)):(t.next=s.next,s.next=t),o.interleaved=t,cn(e,n)}function di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Ou(e,n)}}function hf(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yi(e,t,n,o){var s=e.updateQueue;Nn=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=s.baseState;a=0,d=c=u=null,l=i;do{var g=l.lane,b=l.eventTime;if((o&g)===g){d!==null&&(d=d.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,N=l;switch(g=t,b=n,N.tag){case 1:if(x=N.payload,typeof x=="function"){f=x.call(b,f,g);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=N.payload,g=typeof x=="function"?x.call(b,f,g):x,g==null)break e;f=Se({},f,g);break e;case 2:Nn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[l]:g.push(l))}else b={eventTime:b,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=b,u=f):d=d.next=b,a|=g;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;g=l,l=g.next,g.next=null,s.lastBaseUpdate=g,s.shared.pending=null}}while(!0);if(d===null&&(u=f),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);xr|=a,e.lanes=a,e.memoizedState=f}}function vf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=Al.transition;Al.transition={};try{e(!1),t()}finally{me=n,Al.transition=o}}function lh(){return kt().memoizedState}function Ty(e,t,n){var o=Ln(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},ch(e))uh(t,n);else if(n=qm(e,t,n,o),n!==null){var s=Ge();At(n,e,o,s),dh(n,t,o)}}function Ry(e,t,n){var o=Ln(e),s={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(ch(e))uh(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,Dt(l,a)){var u=t.interleaved;u===null?(s.next=s,qu(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=qm(e,t,s,o),n!==null&&(s=Ge(),At(n,e,o,s),dh(n,t,o))}}function ch(e){var t=e.alternate;return e===we||t!==null&&t===we}function uh(e,t){qo=Qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Ou(e,n)}}var Xi={readContext:St,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Ay={readContext:St,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:xf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=qt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Ty.bind(null,we,e),[o.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:gf,useDebugValue:Zu,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=gf(!1),t=e[0];return e=Oy.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=we,s=qt();if(Ce){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),Fe===null)throw Error(V(349));gr&30||Gm(o,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,xf(Xm.bind(null,o,i,e),[e]),o.flags|=2048,ps(9,Qm.bind(null,o,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=Fe.identifierPrefix;if(Ce){var n=on,o=rn;n=(o&~(1<<32-Rt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{vl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ao(e):""}function cx(e){switch(e.tag){case 5:return Ao(e.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 2:case 15:return e=gl(e.type,!1),e;case 11:return e=gl(e.type.render,!1),e;case 1:return e=gl(e.type,!0),e;default:return""}}function ac(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 Tr:return"Fragment";case Or:return"Portal";case oc:return"Profiler";case Su:return"StrictMode";case sc:return"Suspense";case ic:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vp:return(e.displayName||"Context")+".Consumer";case qp:return(e._context.displayName||"Context")+".Provider";case ku:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eu:return t=e.displayName||null,t!==null?t:ac(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return ac(e(t))}catch{}}return null}function ux(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 ac(t);case 8:return t===Su?"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 $n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dx(e){var t=Kp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){e._valueTracker||(e._valueTracker=dx(e))}function Yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Kp(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Ai(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 lc(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fd(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=$n(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gp(e,t){t=t.checked,t!=null&&wu(e,"checked",t,!1)}function cc(e,t){Gp(e,t);var n=$n(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uc(e,t.type,n):t.hasOwnProperty("defaultValue")&&uc(e,t.type,$n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Md(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 uc(e,t,n){(t!=="number"||Ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Io=Array.isArray;function Yr(e,t,n,o){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=zs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bo={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},fx=["Webkit","ms","Moz","O"];Object.keys(Bo).forEach(function(e){fx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bo[t]=Bo[e]})});function Zp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bo.hasOwnProperty(e)&&Bo[e]?(""+t).trim():t+"px"}function em(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,s=Zp(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,s):e[n]=s}}var px=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pc(e,t){if(t){if(px[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function mc(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 hc=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vc=null,Gr=null,Qr=null;function zd(e){if(e=ks(e)){if(typeof vc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=ba(t),vc(e.stateNode,e.type,t))}}function tm(e){Gr?Qr?Qr.push(e):Qr=[e]:Gr=e}function nm(){if(Gr){var e=Gr,t=Qr;if(Qr=Gr=null,zd(e),t)for(e=0;e>>=0,e===0?32:31-(wx(e)/Sx|0)|0}var $s=64,Ws=4194304;function Do(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 Mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?o=Do(l):(i&=a,i!==0&&(o=Do(i)))}else a=n&~s,a!==0?o=Do(a):i!==0&&(o=Do(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&s)&&(s=o&-o,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function ws(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rt(t),e[t]=n}function _x(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 o=e.eventTimes;for(e=e.expirationTimes;0=$o),Gd=" ",Qd=!1;function Cm(e,t){switch(e){case"keyup":return ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function sy(e,t){switch(e){case"compositionend":return bm(t);case"keypress":return t.which!==32?null:(Qd=!0,Gd);case"textInput":return e=t.data,e===Gd&&Qd?null:e;default:return null}}function iy(e,t){if(Rr)return e==="compositionend"||!Fu&&Cm(e,t)?(e=jm(),ci=Au=Pn=null,Rr=!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=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ef(n)}}function Em(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Em(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pm(){for(var e=window,t=Ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ai(e.document)}return t}function Mu(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 hy(e){var t=Pm(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Em(n.ownerDocument.documentElement,n)){if(o!==null&&Mu(n)){if(t=o.start,e=o.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 s=n.textContent.length,i=Math.min(o.start,s);o=o.end===void 0?i:Math.min(o.end,s),!e.extend&&i>o&&(s=o,o=i,i=s),s=tf(n,i);var a=tf(n,o);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ar=null,Cc=null,Uo=null,bc=!1;function nf(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bc||Ar==null||Ar!==Ai(o)||(o=Ar,"selectionStart"in o&&Mu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Uo&&ss(Uo,o)||(Uo=o,o=zi(Cc,"onSelect"),0Fr||(e.current=_c[Fr],_c[Fr]=null,Fr--)}function ge(e,t){Fr++,_c[Fr]=e.current,e.current=t}var Wn={},Ve=Vn(Wn),rt=Vn(!1),hr=Wn;function to(e,t){var n=e.type.contextTypes;if(!n)return Wn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ot(e){return e=e.childContextTypes,e!=null}function Wi(){je(rt),je(Ve)}function uf(e,t,n){if(Ve.current!==Wn)throw Error(V(168));ge(Ve,t),ge(rt,n)}function Mm(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var s in o)if(!(s in t))throw Error(V(108,ux(e)||"Unknown",s));return Se({},n,o)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,hr=Ve.current,ge(Ve,e),ge(rt,rt.current),!0}function df(e,t,n){var o=e.stateNode;if(!o)throw Error(V(169));n?(e=Mm(e,t,hr),o.__reactInternalMemoizedMergedChildContext=e,je(rt),je(Ve),ge(Ve,e)):je(rt),ge(rt,n)}var nn=null,wa=!1,Tl=!1;function Lm(e){nn===null?nn=[e]:nn.push(e)}function Ey(e){wa=!0,Lm(e)}function Hn(){if(!Tl&&nn!==null){Tl=!0;var e=0,t=me;try{var n=nn;for(me=1;e>=a,s-=a,rn=1<<32-Rt(t)+s|n<_?(F=T,T=null):F=T.sibling;var z=g(m,T,h[_],y);if(z===null){T===null&&(T=F);break}e&&T&&z.alternate===null&&t(m,T),v=i(z,v,_),O===null?k=z:O.sibling=z,O=z,T=F}if(_===h.length)return n(m,T),Ce&&er(m,_),k;if(T===null){for(;__?(F=T,T=null):F=T.sibling;var H=g(m,T,z.value,y);if(H===null){T===null&&(T=F);break}e&&T&&H.alternate===null&&t(m,T),v=i(H,v,_),O===null?k=H:O.sibling=H,O=H,T=F}if(z.done)return n(m,T),Ce&&er(m,_),k;if(T===null){for(;!z.done;_++,z=h.next())z=f(m,z.value,y),z!==null&&(v=i(z,v,_),O===null?k=z:O.sibling=z,O=z);return Ce&&er(m,_),k}for(T=o(m,T);!z.done;_++,z=h.next())z=b(T,m,_,z.value,y),z!==null&&(e&&z.alternate!==null&&T.delete(z.key===null?_:z.key),v=i(z,v,_),O===null?k=z:O.sibling=z,O=z);return e&&T.forEach(function(te){return t(m,te)}),Ce&&er(m,_),k}function C(m,v,h,y){if(typeof h=="object"&&h!==null&&h.type===Tr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Ls:e:{for(var k=h.key,O=v;O!==null;){if(O.key===k){if(k=h.type,k===Tr){if(O.tag===7){n(m,O.sibling),v=s(O,h.props.children),v.return=m,m=v;break e}}else if(O.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===jn&&mf(k)===O.type){n(m,O.sibling),v=s(O,h.props),v.ref=_o(m,O,h),v.return=m,m=v;break e}n(m,O);break}else t(m,O);O=O.sibling}h.type===Tr?(v=dr(h.props.children,m.mode,y,h.key),v.return=m,m=v):(y=gi(h.type,h.key,h.props,null,m.mode,y),y.ref=_o(m,v,h),y.return=m,m=y)}return a(m);case Or:e:{for(O=h.key;v!==null;){if(v.key===O)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){n(m,v.sibling),v=s(v,h.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Bl(h,m.mode,y),v.return=m,m=v}return a(m);case jn:return O=h._init,C(m,v,O(h._payload),y)}if(Io(h))return x(m,v,h,y);if(wo(h))return N(m,v,h,y);Gs(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,v!==null&&v.tag===6?(n(m,v.sibling),v=s(v,h),v.return=m,m=v):(n(m,v),v=Ll(h,m.mode,y),v.return=m,m=v),a(m)):n(m,v)}return C}var ro=Wm(!0),Um=Wm(!1),Hi=Vn(null),Ki=null,Br=null,$u=null;function Wu(){$u=Br=Ki=null}function Uu(e){var t=Hi.current;je(Hi),e._currentValue=t}function Rc(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Jr(e,t){Ki=e,$u=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nt=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if($u!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(Ki===null)throw Error(V(308));Br=e,Ki.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var ar=null;function qu(e){ar===null?ar=[e]:ar.push(e)}function qm(e,t,n,o){var s=t.interleaved;return s===null?(n.next=n,qu(t)):(n.next=s.next,s.next=n),t.interleaved=n,cn(e,o)}function cn(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 Nn=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vm(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 sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,fe&2){var s=o.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),o.pending=t,cn(e,n)}return s=o.interleaved,s===null?(t.next=t,qu(o)):(t.next=s.next,s.next=t),o.interleaved=t,cn(e,n)}function di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Ou(e,n)}}function hf(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yi(e,t,n,o){var s=e.updateQueue;Nn=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=s.baseState;a=0,d=c=u=null,l=i;do{var g=l.lane,b=l.eventTime;if((o&g)===g){d!==null&&(d=d.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,N=l;switch(g=t,b=n,N.tag){case 1:if(x=N.payload,typeof x=="function"){f=x.call(b,f,g);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=N.payload,g=typeof x=="function"?x.call(b,f,g):x,g==null)break e;f=Se({},f,g);break e;case 2:Nn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[l]:g.push(l))}else b={eventTime:b,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=b,u=f):d=d.next=b,a|=g;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;g=l,l=g.next,g.next=null,s.lastBaseUpdate=g,s.shared.pending=null}}while(!0);if(d===null&&(u=f),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);xr|=a,e.lanes=a,e.memoizedState=f}}function vf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=Al.transition;Al.transition={};try{e(!1),t()}finally{me=n,Al.transition=o}}function lh(){return kt().memoizedState}function Ty(e,t,n){var o=Ln(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},ch(e))uh(t,n);else if(n=qm(e,t,n,o),n!==null){var s=Ge();At(n,e,o,s),dh(n,t,o)}}function Ry(e,t,n){var o=Ln(e),s={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(ch(e))uh(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,Dt(l,a)){var u=t.interleaved;u===null?(s.next=s,qu(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=qm(e,t,s,o),n!==null&&(s=Ge(),At(n,e,o,s),dh(n,t,o))}}function ch(e){var t=e.alternate;return e===we||t!==null&&t===we}function uh(e,t){qo=Qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Ou(e,n)}}var Xi={readContext:St,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Ay={readContext:St,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:xf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=qt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Ty.bind(null,we,e),[o.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:gf,useDebugValue:Zu,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=gf(!1),t=e[0];return e=Oy.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=we,s=qt();if(Ce){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),De===null)throw Error(V(349));gr&30||Gm(o,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,xf(Xm.bind(null,o,i,e),[e]),o.flags|=2048,ps(9,Qm.bind(null,o,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=De.identifierPrefix;if(Ce){var n=on,o=rn;n=(o&~(1<<32-Rt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(n,{is:o.is}):(e=a.createElement(n),n==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,n),e[Ht]=t,e[ls]=o,Nh(e,t,!1,!1),t.stateNode=e;e:{switch(a=mc(n,o),n){case"dialog":ye("cancel",e),ye("close",e),s=o;break;case"iframe":case"object":case"embed":ye("load",e),s=o;break;case"video":case"audio":for(s=0;sio&&(t.flags|=128,o=!0,Oo(i,!1),t.lanes=4194304)}else{if(!o)if(e=Gi(a),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return Ue(t),null}else 2*Pe()-i.renderingStartTime>io&&n!==1073741824&&(t.flags|=128,o=!0,Oo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Pe(),t.sibling=null,n=be.current,ge(be,o?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return sd(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?lt&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function $y(e,t){switch(Bu(t),t.tag){case 1:return ot(t.type)&&Wi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oo(),je(rt),je(Ve),Yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ku(t),null;case 13:if(je(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));no()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(be),null;case 4:return oo(),null;case 10:return Uu(t.type._context),null;case 22:case 23:return sd(),null;case 24:return null;default:return null}}var Xs=!1,qe=!1,Wy=typeof WeakSet=="function"?WeakSet:Set,J=null;function zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){ke(e,t,o)}else n.current=null}function $c(e,t,n){try{n()}catch(o){ke(e,t,o)}}var _f=!1;function Uy(e,t){if(wc=Li,e=Pm(),Mu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var s=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,f=e,g=null;t:for(;;){for(var b;f!==n||s!==0&&f.nodeType!==3||(l=a+s),f!==i||o!==0&&f.nodeType!==3||(u=a+o),f.nodeType===3&&(a+=f.nodeValue.length),(b=f.firstChild)!==null;)g=f,f=b;for(;;){if(f===e)break t;if(g===n&&++c===s&&(l=a),g===i&&++d===o&&(u=a),(b=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=b}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sc={focusedElem:e,selectionRange:n},Li=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var N=x.memoizedProps,C=x.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?N:Pt(t.type,N),C);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(y){ke(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return x=_f,_f=!1,x}function Vo(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&$c(t,n,i)}s=s.next}while(s!==o)}}function Ea(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function Wc(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 wh(e){var t=e.alternate;t!==null&&(e.alternate=null,wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[ls],delete t[Pc],delete t[Sy],delete t[ky])),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 Sh(e){return e.tag===5||e.tag===3||e.tag===4}function Of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sh(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 Uc(e,t,n){var o=e.tag;if(o===5||o===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=$i));else if(o!==4&&(e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function qc(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}var Be=null,_t=!1;function xn(e,t,n){for(n=n.child;n!==null;)kh(e,t,n),n=n.sibling}function kh(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(ya,n)}catch{}switch(n.tag){case 5:qe||zr(n,t);case 6:var o=Be,s=_t;Be=null,xn(e,t,n),Be=o,_t=s,Be!==null&&(_t?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(_t?(e=Be,n=n.stateNode,e.nodeType===8?Ol(e.parentNode,n):e.nodeType===1&&Ol(e,n),rs(e)):Ol(Be,n.stateNode));break;case 4:o=Be,s=_t,Be=n.stateNode.containerInfo,_t=!0,xn(e,t,n),Be=o,_t=s;break;case 0:case 11:case 14:case 15:if(!qe&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){s=o=o.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&$c(n,t,a),s=s.next}while(s!==o)}xn(e,t,n);break;case 1:if(!qe&&(zr(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(l){ke(n,t,l)}xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:n.mode&1?(qe=(o=qe)||n.memoizedState!==null,xn(e,t,n),qe=o):xn(e,t,n);break;default:xn(e,t,n)}}function Tf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wy),t.forEach(function(o){var s=Jy.bind(null,e,o);n.has(o)||(n.add(o),o.then(s,s))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var o=0;os&&(s=a),o&=~i}if(o=s,o=Pe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Vy(o/1960))-o,10e?16:e,_n===null)var o=!1;else{if(e=_n,_n=null,ea=0,fe&6)throw Error(V(331));var s=fe;for(fe|=4,J=e.current;J!==null;){var i=J,a=i.child;if(J.flags&16){var l=i.deletions;if(l!==null){for(var u=0;uPe()-rd?ur(e,0):nd|=n),st(e,t)}function Ih(e,t){t===0&&(e.mode&1?(t=Ws,Ws<<=1,!(Ws&130023424)&&(Ws=4194304)):t=1);var n=Ge();e=cn(e,t),e!==null&&(ws(e,t,n),st(e,n))}function Xy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ih(e,n)}function Jy(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(V(314))}o!==null&&o.delete(t),Ih(e,n)}var Dh;Dh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nt=!1,By(e,t,n);nt=!!(e.flags&131072)}else nt=!1,Ce&&t.flags&1048576&&Bm(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;mi(e,t),e=t.pendingProps;var s=to(t,Ve.current);Jr(t,n),s=Qu(null,t,o,e,s,n);var i=Xu();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(o)?(i=!0,Ui(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Vu(t),s.updater=ka,t.stateNode=s,s._reactInternals=t,Ic(t,o,e,n),t=Mc(null,t,o,!0,i,n)):(t.tag=0,Ce&&i&&Lu(t),Ke(null,t,s,n),t=t.child),t;case 16:o=t.elementType;e:{switch(mi(e,t),e=t.pendingProps,s=o._init,o=s(o._payload),t.type=o,s=t.tag=ej(o),e=Pt(o,e),s){case 0:t=Fc(null,t,o,e,n);break e;case 1:t=kf(null,t,o,e,n);break e;case 11:t=wf(null,t,o,e,n);break e;case 14:t=Sf(null,t,o,Pt(o.type,e),n);break e}throw Error(V(306,o,""))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),Fc(e,t,o,s,n);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),kf(e,t,o,s,n);case 3:e:{if(xh(t),e===null)throw Error(V(387));o=t.pendingProps,i=t.memoizedState,s=i.element,Vm(e,t),Yi(t,o,null,n);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=so(Error(V(423)),t),t=Ef(e,t,o,n,s);break e}else if(o!==s){s=so(Error(V(424)),t),t=Ef(e,t,o,n,s);break e}else for(ct=Dn(t.stateNode.containerInfo.firstChild),ft=t,Ce=!0,Ot=null,n=Um(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(no(),o===s){t=un(e,t,n);break e}Ke(e,t,o,n)}t=t.child}return t;case 5:return Hm(t),e===null&&Tc(t),o=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,kc(o,s)?a=null:i!==null&&kc(o,i)&&(t.flags|=32),gh(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&Tc(t),null;case 13:return yh(e,t,n);case 4:return Hu(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ro(t,null,o,n):Ke(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),wf(e,t,o,s,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,ge(Hi,o._currentValue),o._currentValue=a,i!==null)if(Dt(i.value,a)){if(i.children===s.children&&!rt.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===o){if(i.tag===1){u=sn(-1,n&-n),u.tag=2;var c=i.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}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Rc(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Rc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ke(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps.children,Jr(t,n),s=St(s),o=o(s),t.flags|=1,Ke(e,t,o,n),t.child;case 14:return o=t.type,s=Pt(o,t.pendingProps),s=Pt(o.type,s),Sf(e,t,o,s,n);case 15:return hh(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),mi(e,t),t.tag=1,ot(o)?(e=!0,Ui(t)):e=!1,Jr(t,n),fh(t,o,s),Ic(t,o,s,n),Mc(null,t,o,!0,e,n);case 19:return jh(e,t,n);case 22:return vh(e,t,n)}throw Error(V(156,t.tag))};function Fh(e,t){return cm(e,t)}function Zy(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,n,o){return new Zy(e,t,n,o)}function ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ej(e){if(typeof e=="function")return ad(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ku)return 11;if(e===Eu)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=bt(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 gi(e,t,n,o,s,i){var a=2;if(o=e,typeof e=="function")ad(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Tr:return dr(n.children,s,i,t);case Su:a=8,s|=8;break;case oc:return e=bt(12,n,t,s|2),e.elementType=oc,e.lanes=i,e;case sc:return e=bt(13,n,t,s),e.elementType=sc,e.lanes=i,e;case ic:return e=bt(19,n,t,s),e.elementType=ic,e.lanes=i,e;case Hp:return _a(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:a=10;break e;case Vp:a=9;break e;case ku:a=11;break e;case Eu:a=14;break e;case jn:a=16,o=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=bt(a,n,t,s),t.elementType=e,t.type=o,t.lanes=i,t}function dr(e,t,n,o){return e=bt(7,e,o,t),e.lanes=n,e}function _a(e,t,n,o){return e=bt(22,e,o,t),e.elementType=Hp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ll(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function Bl(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tj(e,t,n,o,s){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=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=o,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function ld(e,t,n,o,s,i,a,l,u){return e=new tj(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vu(i),e}function nj(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zh)}catch(e){console.error(e)}}zh(),zp.exports=gt;var $h=zp.exports;const Wr=Cs($h);var Wh,Bf=$h;Wh=Bf.createRoot,Bf.hydrateRoot;var Uh={exports:{}},qh={};/** +`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Fl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Dc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Fy=typeof WeakMap=="function"?WeakMap:Map;function ph(e,t,n){n=sn(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Zi||(Zi=!0,Vc=o),Dc(e,t)},n}function mh(e,t,n){n=sn(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var s=t.value;n.payload=function(){return o(s)},n.callback=function(){Dc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Dc(e,t),typeof o!="function"&&(Mn===null?Mn=new Set([this]):Mn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Nf(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new Fy;var s=new Set;o.set(t,s)}else s=o.get(t),s===void 0&&(s=new Set,o.set(t,s));s.has(n)||(s.add(n),e=Qy.bind(null,e,t,n),t.then(e,e))}function Cf(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 bf(e,t,n,o,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=sn(-1,1),t.tag=2,Fn(n,t,1))),n.lanes|=1),e)}var My=pn.ReactCurrentOwner,nt=!1;function Ke(e,t,n,o){t.child=e===null?Um(t,null,n,o):ro(t,e.child,n,o)}function wf(e,t,n,o,s){n=n.render;var i=t.ref;return Jr(t,s),o=Qu(e,t,n,o,i,s),n=Xu(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,un(e,t,s)):(Ce&&n&&Lu(t),t.flags|=1,Ke(e,t,o,s),t.child)}function Sf(e,t,n,o,s){if(e===null){var i=n.type;return typeof i=="function"&&!ad(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,hh(e,t,i,o,s)):(e=gi(n.type,null,o,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:ss,n(a,o)&&e.ref===t.ref)return un(e,t,s)}return t.flags|=1,e=Bn(i,o),e.ref=t.ref,e.return=t,t.child=e}function hh(e,t,n,o,s){if(e!==null){var i=e.memoizedProps;if(ss(i,o)&&e.ref===t.ref)if(nt=!1,t.pendingProps=o=i,(e.lanes&s)!==0)e.flags&131072&&(nt=!0);else return t.lanes=e.lanes,un(e,t,s)}return Fc(e,t,n,o,s)}function vh(e,t,n){var o=t.pendingProps,s=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge($r,lt),lt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge($r,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:n,ge($r,lt),lt|=o}else i!==null?(o=i.baseLanes|n,t.memoizedState=null):o=n,ge($r,lt),lt|=o;return Ke(e,t,s,n),t.child}function gh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fc(e,t,n,o,s){var i=ot(n)?hr:Ve.current;return i=to(t,i),Jr(t,s),n=Qu(e,t,n,o,i,s),o=Xu(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,un(e,t,s)):(Ce&&o&&Lu(t),t.flags|=1,Ke(e,t,n,s),t.child)}function kf(e,t,n,o,s){if(ot(n)){var i=!0;Ui(t)}else i=!1;if(Jr(t,s),t.stateNode===null)mi(e,t),fh(t,n,o),Ic(t,n,o,s),o=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=St(c):(c=ot(n)?hr:Ve.current,c=to(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==o||u!==c)&&jf(t,a,o,c),Nn=!1;var g=t.memoizedState;a.state=g,Yi(t,o,a,s),u=t.memoizedState,l!==o||g!==u||rt.current||Nn?(typeof d=="function"&&(Ac(t,n,d,o),u=t.memoizedState),(l=Nn||yf(t,n,l,o,g,u,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),a.props=o,a.state=u,a.context=c,o=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,Vm(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Pt(t.type,l),a.props=c,f=t.pendingProps,g=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=St(u):(u=ot(n)?hr:Ve.current,u=to(t,u));var b=n.getDerivedStateFromProps;(d=typeof b=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||g!==u)&&jf(t,a,o,u),Nn=!1,g=t.memoizedState,a.state=g,Yi(t,o,a,s);var x=t.memoizedState;l!==f||g!==x||rt.current||Nn?(typeof b=="function"&&(Ac(t,n,b,o),x=t.memoizedState),(c=Nn||yf(t,n,c,o,g,x,u)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=u,o=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),o=!1)}return Mc(e,t,n,o,i,s)}function Mc(e,t,n,o,s,i){gh(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return s&&df(t,n,!1),un(e,t,i);o=t.stateNode,My.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=ro(t,e.child,null,i),t.child=ro(t,null,l,i)):Ke(e,t,l,i),t.memoizedState=o.state,s&&df(t,n,!0),t.child}function xh(e){var t=e.stateNode;t.pendingContext?uf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uf(e,t.context,!1),Hu(e,t.containerInfo)}function Ef(e,t,n,o,s){return no(),zu(s),t.flags|=256,Ke(e,t,n,o),t.child}var Lc={dehydrated:null,treeContext:null,retryLane:0};function Bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function yh(e,t,n){var o=t.pendingProps,s=be.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ge(be,s&1),e===null)return Tc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},!(o&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=_a(a,o,0,null),e=dr(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Bc(n),t.memoizedState=Lc,e):ed(t,a));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Ly(e,t,a,o,l,s,n);if(i){i=o.fallback,a=t.mode,s=e.child,l=s.sibling;var u={mode:"hidden",children:o.children};return!(a&1)&&t.child!==s?(o=t.child,o.childLanes=0,o.pendingProps=u,t.deletions=null):(o=Bn(s,u),o.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Bn(l,i):(i=dr(i,a,n,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?Bc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Lc,o}return i=e.child,e=i.sibling,o=Bn(i,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ed(e,t){return t=_a({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qs(e,t,n,o){return o!==null&&zu(o),ro(t,e.child,null,n),e=ed(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ly(e,t,n,o,s,i,a){if(n)return t.flags&256?(t.flags&=-257,o=Fl(Error(V(422))),Qs(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,s=t.mode,o=_a({mode:"visible",children:o.children},s,0,null),i=dr(i,s,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,t.mode&1&&ro(t,e.child,null,a),t.child.memoizedState=Bc(a),t.memoizedState=Lc,i);if(!(t.mode&1))return Qs(e,t,a,null);if(s.data==="$!"){if(o=s.nextSibling&&s.nextSibling.dataset,o)var l=o.dgst;return o=l,i=Error(V(419)),o=Fl(i,o,void 0),Qs(e,t,a,o)}if(l=(a&e.childLanes)!==0,nt||l){if(o=De,o!==null){switch(a&-a){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(o.suspendedLanes|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,cn(e,s),At(o,e,s,-1))}return id(),o=Fl(Error(V(421))),Qs(e,t,a,o)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Xy.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,ct=Dn(s.nextSibling),ft=t,Ce=!0,Ot=null,e!==null&&(Nt[Ct++]=rn,Nt[Ct++]=on,Nt[Ct++]=vr,rn=e.id,on=e.overflow,vr=t),t=ed(t,o.children),t.flags|=4096,t)}function Pf(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Rc(e.return,t,n)}function Ml(e,t,n,o,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=s)}function jh(e,t,n){var o=t.pendingProps,s=o.revealOrder,i=o.tail;if(Ke(e,t,o.children,n),o=be.current,o&2)o=o&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&&Pf(e,n,t);else if(e.tag===19)Pf(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}o&=1}if(ge(be,o),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Gi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ml(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Gi(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ml(t,!0,n,null,i);break;case"together":Ml(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=Bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function By(e,t,n){switch(t.tag){case 3:xh(t),no();break;case 5:Hm(t);break;case 1:ot(t.type)&&Ui(t);break;case 4:Hu(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,s=t.memoizedProps.value;ge(Hi,o._currentValue),o._currentValue=s;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ge(be,be.current&1),t.flags|=128,null):n&t.child.childLanes?yh(e,t,n):(ge(be,be.current&1),e=un(e,t,n),e!==null?e.sibling:null);ge(be,be.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return jh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ge(be,be.current),o)break;return null;case 22:case 23:return t.lanes=0,vh(e,t,n)}return un(e,t,n)}var Nh,zc,Ch,bh;Nh=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}};zc=function(){};Ch=function(e,t,n,o){var s=e.memoizedProps;if(s!==o){e=t.stateNode,lr(Qt.current);var i=null;switch(n){case"input":s=lc(e,s),o=lc(e,o),i=[];break;case"select":s=Se({},s,{value:void 0}),o=Se({},o,{value:void 0}),i=[];break;case"textarea":s=dc(e,s),o=dc(e,o),i=[];break;default:typeof s.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=$i)}pc(n,o);var a;n=null;for(c in s)if(!o.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var l=s[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Jo.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var u=o[c];if(l=s!=null?s[c]:void 0,o.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Jo.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&ye("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};bh=function(e,t,n,o){n!==o&&(t.flags|=4)};function Oo(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,o|=s.subtreeFlags&14680064,o|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function zy(e,t,n){var o=t.pendingProps;switch(Bu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return ot(t.type)&&Wi(),Ue(t),null;case 3:return o=t.stateNode,oo(),je(rt),je(Ve),Yu(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Ys(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ot!==null&&(Yc(Ot),Ot=null))),zc(e,t),Ue(t),null;case 5:Ku(t);var s=lr(us.current);if(n=t.type,e!==null&&t.stateNode!=null)Ch(e,t,n,o,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(V(166));return Ue(t),null}if(e=lr(Qt.current),Ys(t)){o=t.stateNode,n=t.type;var i=t.memoizedProps;switch(o[Ht]=t,o[ls]=i,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",o),ye("close",o);break;case"iframe":case"object":case"embed":ye("load",o);break;case"video":case"audio":for(s=0;s<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(n,{is:o.is}):(e=a.createElement(n),n==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,n),e[Ht]=t,e[ls]=o,Nh(e,t,!1,!1),t.stateNode=e;e:{switch(a=mc(n,o),n){case"dialog":ye("cancel",e),ye("close",e),s=o;break;case"iframe":case"object":case"embed":ye("load",e),s=o;break;case"video":case"audio":for(s=0;sio&&(t.flags|=128,o=!0,Oo(i,!1),t.lanes=4194304)}else{if(!o)if(e=Gi(a),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return Ue(t),null}else 2*Pe()-i.renderingStartTime>io&&n!==1073741824&&(t.flags|=128,o=!0,Oo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Pe(),t.sibling=null,n=be.current,ge(be,o?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return sd(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?lt&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function $y(e,t){switch(Bu(t),t.tag){case 1:return ot(t.type)&&Wi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oo(),je(rt),je(Ve),Yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ku(t),null;case 13:if(je(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));no()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(be),null;case 4:return oo(),null;case 10:return Uu(t.type._context),null;case 22:case 23:return sd(),null;case 24:return null;default:return null}}var Xs=!1,qe=!1,Wy=typeof WeakSet=="function"?WeakSet:Set,J=null;function zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){ke(e,t,o)}else n.current=null}function $c(e,t,n){try{n()}catch(o){ke(e,t,o)}}var _f=!1;function Uy(e,t){if(wc=Li,e=Pm(),Mu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var s=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,f=e,g=null;t:for(;;){for(var b;f!==n||s!==0&&f.nodeType!==3||(l=a+s),f!==i||o!==0&&f.nodeType!==3||(u=a+o),f.nodeType===3&&(a+=f.nodeValue.length),(b=f.firstChild)!==null;)g=f,f=b;for(;;){if(f===e)break t;if(g===n&&++c===s&&(l=a),g===i&&++d===o&&(u=a),(b=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=b}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sc={focusedElem:e,selectionRange:n},Li=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var N=x.memoizedProps,C=x.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?N:Pt(t.type,N),C);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(y){ke(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return x=_f,_f=!1,x}function Vo(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&$c(t,n,i)}s=s.next}while(s!==o)}}function Ea(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function Wc(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 wh(e){var t=e.alternate;t!==null&&(e.alternate=null,wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[ls],delete t[Pc],delete t[Sy],delete t[ky])),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 Sh(e){return e.tag===5||e.tag===3||e.tag===4}function Of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sh(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 Uc(e,t,n){var o=e.tag;if(o===5||o===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=$i));else if(o!==4&&(e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function qc(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}var Be=null,_t=!1;function xn(e,t,n){for(n=n.child;n!==null;)kh(e,t,n),n=n.sibling}function kh(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(ya,n)}catch{}switch(n.tag){case 5:qe||zr(n,t);case 6:var o=Be,s=_t;Be=null,xn(e,t,n),Be=o,_t=s,Be!==null&&(_t?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(_t?(e=Be,n=n.stateNode,e.nodeType===8?Ol(e.parentNode,n):e.nodeType===1&&Ol(e,n),rs(e)):Ol(Be,n.stateNode));break;case 4:o=Be,s=_t,Be=n.stateNode.containerInfo,_t=!0,xn(e,t,n),Be=o,_t=s;break;case 0:case 11:case 14:case 15:if(!qe&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){s=o=o.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&$c(n,t,a),s=s.next}while(s!==o)}xn(e,t,n);break;case 1:if(!qe&&(zr(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(l){ke(n,t,l)}xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:n.mode&1?(qe=(o=qe)||n.memoizedState!==null,xn(e,t,n),qe=o):xn(e,t,n);break;default:xn(e,t,n)}}function Tf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wy),t.forEach(function(o){var s=Jy.bind(null,e,o);n.has(o)||(n.add(o),o.then(s,s))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var o=0;os&&(s=a),o&=~i}if(o=s,o=Pe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Vy(o/1960))-o,10e?16:e,_n===null)var o=!1;else{if(e=_n,_n=null,ea=0,fe&6)throw Error(V(331));var s=fe;for(fe|=4,J=e.current;J!==null;){var i=J,a=i.child;if(J.flags&16){var l=i.deletions;if(l!==null){for(var u=0;uPe()-rd?ur(e,0):nd|=n),st(e,t)}function Ih(e,t){t===0&&(e.mode&1?(t=Ws,Ws<<=1,!(Ws&130023424)&&(Ws=4194304)):t=1);var n=Ge();e=cn(e,t),e!==null&&(ws(e,t,n),st(e,n))}function Xy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ih(e,n)}function Jy(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(V(314))}o!==null&&o.delete(t),Ih(e,n)}var Dh;Dh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nt=!1,By(e,t,n);nt=!!(e.flags&131072)}else nt=!1,Ce&&t.flags&1048576&&Bm(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;mi(e,t),e=t.pendingProps;var s=to(t,Ve.current);Jr(t,n),s=Qu(null,t,o,e,s,n);var i=Xu();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(o)?(i=!0,Ui(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Vu(t),s.updater=ka,t.stateNode=s,s._reactInternals=t,Ic(t,o,e,n),t=Mc(null,t,o,!0,i,n)):(t.tag=0,Ce&&i&&Lu(t),Ke(null,t,s,n),t=t.child),t;case 16:o=t.elementType;e:{switch(mi(e,t),e=t.pendingProps,s=o._init,o=s(o._payload),t.type=o,s=t.tag=ej(o),e=Pt(o,e),s){case 0:t=Fc(null,t,o,e,n);break e;case 1:t=kf(null,t,o,e,n);break e;case 11:t=wf(null,t,o,e,n);break e;case 14:t=Sf(null,t,o,Pt(o.type,e),n);break e}throw Error(V(306,o,""))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),Fc(e,t,o,s,n);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),kf(e,t,o,s,n);case 3:e:{if(xh(t),e===null)throw Error(V(387));o=t.pendingProps,i=t.memoizedState,s=i.element,Vm(e,t),Yi(t,o,null,n);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=so(Error(V(423)),t),t=Ef(e,t,o,n,s);break e}else if(o!==s){s=so(Error(V(424)),t),t=Ef(e,t,o,n,s);break e}else for(ct=Dn(t.stateNode.containerInfo.firstChild),ft=t,Ce=!0,Ot=null,n=Um(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(no(),o===s){t=un(e,t,n);break e}Ke(e,t,o,n)}t=t.child}return t;case 5:return Hm(t),e===null&&Tc(t),o=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,kc(o,s)?a=null:i!==null&&kc(o,i)&&(t.flags|=32),gh(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&Tc(t),null;case 13:return yh(e,t,n);case 4:return Hu(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ro(t,null,o,n):Ke(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),wf(e,t,o,s,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,ge(Hi,o._currentValue),o._currentValue=a,i!==null)if(Dt(i.value,a)){if(i.children===s.children&&!rt.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===o){if(i.tag===1){u=sn(-1,n&-n),u.tag=2;var c=i.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}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Rc(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Rc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ke(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps.children,Jr(t,n),s=St(s),o=o(s),t.flags|=1,Ke(e,t,o,n),t.child;case 14:return o=t.type,s=Pt(o,t.pendingProps),s=Pt(o.type,s),Sf(e,t,o,s,n);case 15:return hh(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Pt(o,s),mi(e,t),t.tag=1,ot(o)?(e=!0,Ui(t)):e=!1,Jr(t,n),fh(t,o,s),Ic(t,o,s,n),Mc(null,t,o,!0,e,n);case 19:return jh(e,t,n);case 22:return vh(e,t,n)}throw Error(V(156,t.tag))};function Fh(e,t){return cm(e,t)}function Zy(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,n,o){return new Zy(e,t,n,o)}function ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ej(e){if(typeof e=="function")return ad(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ku)return 11;if(e===Eu)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=bt(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 gi(e,t,n,o,s,i){var a=2;if(o=e,typeof e=="function")ad(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Tr:return dr(n.children,s,i,t);case Su:a=8,s|=8;break;case oc:return e=bt(12,n,t,s|2),e.elementType=oc,e.lanes=i,e;case sc:return e=bt(13,n,t,s),e.elementType=sc,e.lanes=i,e;case ic:return e=bt(19,n,t,s),e.elementType=ic,e.lanes=i,e;case Hp:return _a(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:a=10;break e;case Vp:a=9;break e;case ku:a=11;break e;case Eu:a=14;break e;case jn:a=16,o=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=bt(a,n,t,s),t.elementType=e,t.type=o,t.lanes=i,t}function dr(e,t,n,o){return e=bt(7,e,o,t),e.lanes=n,e}function _a(e,t,n,o){return e=bt(22,e,o,t),e.elementType=Hp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ll(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function Bl(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tj(e,t,n,o,s){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=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=o,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function ld(e,t,n,o,s,i,a,l,u){return e=new tj(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vu(i),e}function nj(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zh)}catch(e){console.error(e)}}zh(),zp.exports=gt;var $h=zp.exports;const Wr=Cs($h);var Wh,Bf=$h;Wh=Bf.createRoot,Bf.hydrateRoot;var Uh={exports:{}},qh={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -45,12 +45,12 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ps=S;function aj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lj=typeof Object.is=="function"?Object.is:aj,cj=Ps.useSyncExternalStore,uj=Ps.useRef,dj=Ps.useEffect,fj=Ps.useMemo,pj=Ps.useDebugValue;qh.useSyncExternalStoreWithSelector=function(e,t,n,o,s){var i=uj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=fj(function(){function u(b){if(!c){if(c=!0,d=b,b=o(b),s!==void 0&&a.hasValue){var x=a.value;if(s(x,b))return f=x}return f=b}if(x=f,lj(d,b))return x;var N=o(b);return s!==void 0&&s(x,N)?x:(d=b,f=N)}var c=!1,d,f,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,o,s]);var l=cj(e,i[0],i[1]);return dj(function(){a.hasValue=!0,a.value=l},[l]),pj(l),l};Uh.exports=qh;var mj=Uh.exports,ut="default"in nc?I:nc,zf=Symbol.for("react-redux-context"),$f=typeof globalThis<"u"?globalThis:{};function hj(){if(!ut.createContext)return{};const e=$f[zf]??($f[zf]=new Map);let t=e.get(ut.createContext);return t||(t=ut.createContext(null),e.set(ut.createContext,t)),t}var Un=hj(),vj=()=>{throw new Error("uSES not initialized!")};function fd(e=Un){return function(){return ut.useContext(e)}}var Vh=fd(),Hh=vj,gj=e=>{Hh=e},xj=(e,t)=>e===t;function yj(e=Un){const t=e===Un?Vh:fd(e),n=(o,s={})=>{const{equalityFn:i=xj,devModeChecks:a={}}=typeof s=="function"?{equalityFn:s}:s,{store:l,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:f}=t();ut.useRef(!0);const g=ut.useCallback({[o.name](x){return o(x)}}[o.name],[o,d,a.stabilityCheck]),b=Hh(u.addNestedSub,l.getState,c||l.getState,g,i);return ut.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var Qe=yj();function jj(e){e()}function Nj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){jj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let o=e;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0;const s=t={callback:n,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){!o||e===null||(o=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}var Wf={notify(){},get:()=>[]};function Cj(e,t){let n,o=Wf,s=0,i=!1;function a(N){d();const C=o.subscribe(N);let m=!1;return()=>{m||(m=!0,C(),f())}}function l(){o.notify()}function u(){x.onStateChange&&x.onStateChange()}function c(){return i}function d(){s++,n||(n=e.subscribe(u),o=Nj())}function f(){s--,n&&s===0&&(n(),n=void 0,o.clear(),o=Wf)}function g(){i||(i=!0,d())}function b(){i&&(i=!1,f())}const x={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:c,trySubscribe:g,tryUnsubscribe:b,getListeners:()=>o};return x}var bj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wj=typeof navigator<"u"&&navigator.product==="ReactNative",Sj=bj||wj?ut.useLayoutEffect:ut.useEffect;function kj({store:e,context:t,children:n,serverState:o,stabilityCheck:s="once",identityFunctionCheck:i="once"}){const a=ut.useMemo(()=>{const c=Cj(e);return{store:e,subscription:c,getServerState:o?()=>o:void 0,stabilityCheck:s,identityFunctionCheck:i}},[e,o,s,i]),l=ut.useMemo(()=>e.getState(),[e]);Sj(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,l]);const u=t||Un;return ut.createElement(u.Provider,{value:a},n)}var Ej=kj;function Kh(e=Un){const t=e===Un?Vh:fd(e),n=()=>{const{store:o}=t();return o};return Object.assign(n,{withTypes:()=>n}),n}var Pj=Kh();function _j(e=Un){const t=e===Un?Pj:Kh(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ft=_j();gj(mj.useSyncExternalStoreWithSelector);function Le(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 Oj=typeof Symbol=="function"&&Symbol.observable||"@@observable",Uf=Oj,zl=()=>Math.random().toString(36).substring(7).split("").join("."),Tj={INIT:`@@redux/INIT${zl()}`,REPLACE:`@@redux/REPLACE${zl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zl()}`},ra=Tj;function pd(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 Yh(e,t,n){if(typeof e!="function")throw new Error(Le(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Le(1));return n(Yh)(e,t)}let o=e,s=t,i=new Map,a=i,l=0,u=!1;function c(){a===i&&(a=new Map,i.forEach((C,m)=>{a.set(m,C)}))}function d(){if(u)throw new Error(Le(3));return s}function f(C){if(typeof C!="function")throw new Error(Le(4));if(u)throw new Error(Le(5));let m=!0;c();const v=l++;return a.set(v,C),function(){if(m){if(u)throw new Error(Le(6));m=!1,c(),a.delete(v),i=null}}}function g(C){if(!pd(C))throw new Error(Le(7));if(typeof C.type>"u")throw new Error(Le(8));if(typeof C.type!="string")throw new Error(Le(17));if(u)throw new Error(Le(9));try{u=!0,s=o(s,C)}finally{u=!1}return(i=a).forEach(v=>{v()}),C}function b(C){if(typeof C!="function")throw new Error(Le(10));o=C,g({type:ra.REPLACE})}function x(){const C=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Le(11));function v(){const y=m;y.next&&y.next(d())}return v(),{unsubscribe:C(v)}},[Uf](){return this}}}return g({type:ra.INIT}),{dispatch:g,subscribe:f,getState:d,replaceReducer:b,[Uf]:x}}function Rj(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ra.INIT})>"u")throw new Error(Le(12));if(typeof n(void 0,{type:ra.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function Aj(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw l&&l.type,new Error(Le(14));c[f]=x,u=u||x!==b}return u=u||o.length!==Object.keys(a).length,u?c:a}}function oa(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Ij(...e){return t=>(n,o)=>{const s=t(n,o);let i=()=>{throw new Error(Le(15))};const a={getState:s.getState,dispatch:(u,...c)=>i(u,...c)},l=e.map(u=>u(a));return i=oa(...l)(s.dispatch),{...s,dispatch:i}}}function Dj(e){return pd(e)&&"type"in e&&typeof e.type=="string"}var Gh=Symbol.for("immer-nothing"),qf=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state");function Tt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ao=Object.getPrototypeOf;function jr(e){return!!e&&!!e[ht]}function dn(e){var t;return e?Qh(e)||Array.isArray(e)||!!e[qf]||!!((t=e.constructor)!=null&&t[qf])||Da(e)||Fa(e):!1}var Fj=Object.prototype.constructor.toString();function Qh(e){if(!e||typeof e!="object")return!1;const t=ao(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)===Fj}function sa(e,t){Ia(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,o)=>t(o,n,e))}function Ia(e){const t=e[ht];return t?t.type_:Array.isArray(e)?1:Da(e)?2:Fa(e)?3:0}function Gc(e,t){return Ia(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xh(e,t,n){const o=Ia(e);o===2?e.set(t,n):o===3?e.add(n):e[t]=n}function Mj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Da(e){return e instanceof Map}function Fa(e){return e instanceof Set}function nr(e){return e.copy_||e.base_}function Qc(e,t){if(Da(e))return new Map(e);if(Fa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Qh(e);if(t===!0||t==="class_only"&&!n){const o=Object.getOwnPropertyDescriptors(e);delete o[ht];let s=Reflect.ownKeys(o);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=Lj),Object.freeze(e),t&&Object.entries(e).forEach(([n,o])=>md(o,!0))),e}function Lj(){Tt(2)}function Ma(e){return Object.isFrozen(e)}var Bj={};function Nr(e){const t=Bj[e];return t||Tt(0,e),t}var hs;function Jh(){return hs}function zj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Vf(e,t){t&&(Nr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xc(e){Jc(e),e.drafts_.forEach($j),e.drafts_=null}function Jc(e){e===hs&&(hs=e.parent_)}function Hf(e){return hs=zj(hs,e)}function $j(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Kf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ht].modified_&&(Xc(t),Tt(4)),dn(e)&&(e=ia(t,e),t.parent_||aa(t,e)),t.patches_&&Nr("Patches").generateReplacementPatches_(n[ht].base_,e,t.patches_,t.inversePatches_)):e=ia(t,n,[]),Xc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gh?e:void 0}function ia(e,t,n){if(Ma(t))return t;const o=t[ht];if(!o)return sa(t,(s,i)=>Yf(e,o,t,s,i,n)),t;if(o.scope_!==e)return t;if(!o.modified_)return aa(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const s=o.copy_;let i=s,a=!1;o.type_===3&&(i=new Set(s),s.clear(),a=!0),sa(i,(l,u)=>Yf(e,o,s,l,u,n,a)),aa(e,s,!1),n&&e.patches_&&Nr("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function Yf(e,t,n,o,s,i,a){if(jr(s)){const l=i&&t&&t.type_!==3&&!Gc(t.assigned_,o)?i.concat(o):void 0,u=ia(e,s,l);if(Xh(n,o,u),jr(u))e.canAutoFreeze_=!1;else return}else a&&n.add(s);if(dn(s)&&!Ma(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ia(e,s),(!t||!t.scope_.parent_)&&typeof o!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,o)&&aa(e,s)}}function aa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&md(t,n)}function Wj(e,t){const n=Array.isArray(e),o={type_:n?1:0,scope_:t?t.scope_:Jh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=o,i=hd;n&&(s=[o],i=vs);const{revoke:a,proxy:l}=Proxy.revocable(s,i);return o.draft_=l,o.revoke_=a,l}var hd={get(e,t){if(t===ht)return e;const n=nr(e);if(!Gc(n,t))return Uj(e,n,t);const o=n[t];return e.finalized_||!dn(o)?o:o===$l(e.base_,t)?(Wl(e),e.copy_[t]=eu(o,e)):o},has(e,t){return t in nr(e)},ownKeys(e){return Reflect.ownKeys(nr(e))},set(e,t,n){const o=Zh(nr(e),t);if(o!=null&&o.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const s=$l(nr(e),t),i=s==null?void 0:s[ht];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Mj(n,s)&&(n!==void 0||Gc(e.base_,t)))return!0;Wl(e),Zc(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 $l(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Wl(e),Zc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=nr(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:o.enumerable,value:n[t]}},defineProperty(){Tt(11)},getPrototypeOf(e){return ao(e.base_)},setPrototypeOf(){Tt(12)}},vs={};sa(hd,(e,t)=>{vs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});vs.deleteProperty=function(e,t){return vs.set.call(this,e,t,void 0)};vs.set=function(e,t,n){return hd.set.call(this,e[0],t,n,e[0])};function $l(e,t){const n=e[ht];return(n?nr(n):e)[t]}function Uj(e,t,n){var s;const o=Zh(t,n);return o?"value"in o?o.value:(s=o.get)==null?void 0:s.call(e.draft_):void 0}function Zh(e,t){if(!(t in e))return;let n=ao(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=ao(n)}}function Zc(e){e.modified_||(e.modified_=!0,e.parent_&&Zc(e.parent_))}function Wl(e){e.copy_||(e.copy_=Qc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,o)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(u=i,...c){return a.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&Tt(6),o!==void 0&&typeof o!="function"&&Tt(7);let s;if(dn(t)){const i=Hf(this),a=eu(t,void 0);let l=!0;try{s=n(a),l=!1}finally{l?Xc(i):Jc(i)}return Vf(i,o),Kf(s,i)}else if(!t||typeof t!="object"){if(s=n(t),s===void 0&&(s=t),s===Gh&&(s=void 0),this.autoFreeze_&&md(s,!0),o){const i=[],a=[];Nr("Patches").generateReplacementPatches_(t,s,i,a),o(i,a)}return s}else Tt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let o,s;return[this.produce(t,n,(a,l)=>{o=a,s=l}),o,s]},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){dn(e)||Tt(8),jr(e)&&(e=Vj(e));const t=Hf(this),n=eu(e,void 0);return n[ht].isManual_=!0,Jc(t),n}finishDraft(e,t){const n=e&&e[ht];(!n||!n.isManual_)&&Tt(9);const{scope_:o}=n;return Vf(o,t),Kf(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const s=t[n];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}n>-1&&(t=t.slice(n+1));const o=Nr("Patches").applyPatches_;return jr(e)?o(e,t):this.produce(e,s=>o(s,t))}};function eu(e,t){const n=Da(e)?Nr("MapSet").proxyMap_(e,t):Fa(e)?Nr("MapSet").proxySet_(e,t):Wj(e,t);return(t?t.scope_:Jh()).drafts_.push(n),n}function Vj(e){return jr(e)||Tt(10,e),ev(e)}function ev(e){if(!dn(e)||Ma(e))return e;const t=e[ht];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Qc(e,!0);return sa(n,(o,s)=>{Xh(n,o,ev(s))}),t&&(t.finalized_=!1),n}var vt=new qj,tv=vt.produce;vt.produceWithPatches.bind(vt);vt.setAutoFreeze.bind(vt);vt.setUseStrictShallowCopy.bind(vt);vt.applyPatches.bind(vt);vt.createDraft.bind(vt);vt.finishDraft.bind(vt);function nv(e){return({dispatch:n,getState:o})=>s=>i=>typeof i=="function"?i(n,o,e):s(i)}var Hj=nv(),Kj=nv,Yj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oa:oa.apply(null,arguments)},Gj=e=>e&&typeof e.match=="function";function Yo(e,t){function n(...o){if(t){let s=t(...o);if(!s)throw new Error(It(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:o[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=o=>Dj(o)&&o.type===e,n}var rv=class Mo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Mo.prototype)}static get[Symbol.species](){return Mo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Mo(...t[0].concat(this)):new Mo(...t.concat(this))}};function Gf(e){return dn(e)?tv(e,()=>{}):e}function Qf(e,t,n){if(e.has(t)){let s=e.get(t);return n.update&&(s=n.update(s,t,e),e.set(t,s)),s}if(!n.insert)throw new Error(It(10));const o=n.insert(t,e);return e.set(t,o),o}function Qj(e){return typeof e=="boolean"}var Xj=()=>function(t){const{thunk:n=!0,immutableCheck:o=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{};let a=new rv;return n&&(Qj(n)?a.push(Hj):a.push(Kj(n.extraArgument))),a},Jj="RTK_autoBatch",ov=e=>t=>{setTimeout(t,e)},Zj=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ov(10),e1=(e={type:"raf"})=>t=>(...n)=>{const o=t(...n);let s=!0,i=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?Zj:e.type==="callback"?e.queueNotification:ov(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach(d=>d()))};return Object.assign({},o,{subscribe(d){const f=()=>s&&d(),g=o.subscribe(f);return l.add(d),()=>{g(),l.delete(d)}},dispatch(d){var f;try{return s=!((f=d==null?void 0:d.meta)!=null&&f[Jj]),i=!s,i&&(a||(a=!0,u(c))),o.dispatch(d)}finally{s=!0}}})},t1=e=>function(n){const{autoBatch:o=!0}=n??{};let s=new rv(e);return o&&s.push(e1(typeof o=="object"?o:void 0)),s};function n1(e){const t=Xj(),{reducer:n=void 0,middleware:o,devTools:s=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(pd(n))l=Aj(n);else throw new Error(It(1));let u;typeof o=="function"?u=o(t):u=t();let c=oa;s&&(c=Yj({trace:!1,...typeof s=="object"&&s}));const d=Ij(...u),f=t1(d);let g=typeof a=="function"?a(f):f();const b=c(...g);return Yh(l,i,b)}function sv(e){const t={},n=[];let o;const s={addCase(i,a){const l=typeof i=="string"?i:i.type;if(!l)throw new Error(It(28));if(l in t)throw new Error(It(29));return t[l]=a,s},addMatcher(i,a){return n.push({matcher:i,reducer:a}),s},addDefaultCase(i){return o=i,s}};return e(s),[t,n,o]}function r1(e){return typeof e=="function"}function o1(e,t){let[n,o,s]=sv(t),i;if(r1(e))i=()=>Gf(e());else{const l=Gf(e);i=()=>l}function a(l=i(),u){let c=[n[u.type],...o.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[s]),c.reduce((d,f)=>{if(f)if(jr(d)){const b=f(d,u);return b===void 0?d:b}else{if(dn(d))return tv(d,g=>f(g,u));{const g=f(d,u);if(g===void 0){if(d===null)return d;throw new Error(It(9))}return g}}return d},l)}return a.getInitialState=i,a}var s1=(e,t)=>Gj(e)?e.match(t):e(t);function i1(...e){return t=>e.some(n=>s1(n,t))}var a1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",l1=(e=21)=>{let t="",n=e;for(;n--;)t+=a1[Math.random()*64|0];return t},c1=["name","message","stack","code"],Ul=class{constructor(e,t){pl(this,"_type");this.payload=e,this.meta=t}},Xf=class{constructor(e,t){pl(this,"_type");this.payload=e,this.meta=t}},u1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of c1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},yt=(()=>{function e(t,n,o){const s=Yo(t+"/fulfilled",(u,c,d,f)=>({payload:u,meta:{...f||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),i=Yo(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),a=Yo(t+"/rejected",(u,c,d,f,g)=>({payload:f,error:(o&&o.serializeError||u1)(u||"Rejected"),meta:{...g||{},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 l(u){return(c,d,f)=>{const g=o!=null&&o.idGenerator?o.idGenerator(u):l1(),b=new AbortController;let x,N;function C(v){N=v,b.abort()}const m=async function(){var y,k;let v;try{let P=(y=o==null?void 0:o.condition)==null?void 0:y.call(o,u,{getState:d,extra:f});if(f1(P)&&(P=await P),P===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((O,M)=>{x=()=>{M({name:"AbortError",message:N||"Aborted"})},b.signal.addEventListener("abort",x)});c(i(g,u,(k=o==null?void 0:o.getPendingMeta)==null?void 0:k.call(o,{requestId:g,arg:u},{getState:d,extra:f}))),v=await Promise.race([T,Promise.resolve(n(u,{dispatch:c,getState:d,extra:f,requestId:g,signal:b.signal,abort:C,rejectWithValue:(O,M)=>new Ul(O,M),fulfillWithValue:(O,M)=>new Xf(O,M)})).then(O=>{if(O instanceof Ul)throw O;return O instanceof Xf?s(O.payload,g,u,O.meta):s(O,g,u)})])}catch(P){v=P instanceof Ul?a(null,g,u,P.payload,P.meta):a(P,g,u)}finally{x&&b.signal.removeEventListener("abort",x)}return o&&!o.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(m,{abort:C,requestId:g,arg:u,unwrap(){return m.then(d1)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:s,settled:i1(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function d1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function f1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var p1=Symbol.for("rtk-slice-createasyncthunk");function m1(e,t){return`${e}/${t}`}function h1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[p1];return function(s){const{name:i,reducerPath:a=i}=s;if(!i)throw new Error(It(11));typeof process<"u";const l=(typeof s.reducers=="function"?s.reducers(g1()):s.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(h,y){const k=typeof h=="string"?h:h.type;if(!k)throw new Error(It(12));if(k in c.sliceCaseReducersByType)throw new Error(It(13));return c.sliceCaseReducersByType[k]=y,d},addMatcher(h,y){return c.sliceMatchers.push({matcher:h,reducer:y}),d},exposeAction(h,y){return c.actionCreators[h]=y,d},exposeCaseReducer(h,y){return c.sliceCaseReducersByName[h]=y,d}};u.forEach(h=>{const y=l[h],k={reducerName:h,type:m1(i,h),createNotation:typeof s.reducers=="function"};y1(y)?N1(k,y,d,t):x1(k,y,d)});function f(){const[h={},y=[],k=void 0]=typeof s.extraReducers=="function"?sv(s.extraReducers):[s.extraReducers],P={...h,...c.sliceCaseReducersByType};return o1(s.initialState,T=>{for(let O in P)T.addCase(O,P[O]);for(let O of c.sliceMatchers)T.addMatcher(O.matcher,O.reducer);for(let O of y)T.addMatcher(O.matcher,O.reducer);k&&T.addDefaultCase(k)})}const g=h=>h,b=new Map;let x;function N(h,y){return x||(x=f()),x(h,y)}function C(){return x||(x=f()),x.getInitialState()}function m(h,y=!1){function k(T){let O=T[h];return typeof O>"u"&&y&&(O=C()),O}function P(T=g){const O=Qf(b,y,{insert:()=>new WeakMap});return Qf(O,T,{insert:()=>{const M={};for(const[$,H]of Object.entries(s.selectors??{}))M[$]=v1(H,T,C,y);return M}})}return{reducerPath:h,getSelectors:P,get selectors(){return P(k)},selectSlice:k}}const v={name:i,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...m(a),injectInto(h,{reducerPath:y,...k}={}){const P=y??a;return h.inject({reducerPath:P,reducer:N},k),{...v,...m(P,!0)}}};return v}}function v1(e,t,n,o){function s(i,...a){let l=t(i);return typeof l>"u"&&o&&(l=n()),e(l,...a)}return s.unwrapped=e,s}var La=h1();function g1(){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 x1({type:e,reducerName:t,createNotation:n},o,s){let i,a;if("reducer"in o){if(n&&!j1(o))throw new Error(It(17));i=o.reducer,a=o.prepare}else i=o;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Yo(e,a):Yo(e))}function y1(e){return e._reducerDefinitionType==="asyncThunk"}function j1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function N1({type:e,reducerName:t},n,o,s){if(!s)throw new Error(It(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:u,settled:c,options:d}=n,f=s(e,i,d);o.exposeAction(t,f),a&&o.addCase(f.fulfilled,a),l&&o.addCase(f.pending,l),u&&o.addCase(f.rejected,u),c&&o.addMatcher(f.settled,c),o.exposeCaseReducer(t,{fulfilled:a||ei,pending:l||ei,rejected:u||ei,settled:c||ei})}function ei(){}function It(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 iv(e,t){return function(){return e.apply(t,arguments)}}const{toString:C1}=Object.prototype,{getPrototypeOf:vd}=Object,Ba=(e=>t=>{const n=C1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>Ba(t)===e),za=e=>t=>typeof t===e,{isArray:po}=Array,gs=za("undefined");function b1(e){return e!==null&&!gs(e)&&e.constructor!==null&&!gs(e.constructor)&&pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const av=Mt("ArrayBuffer");function w1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&av(e.buffer),t}const S1=za("string"),pt=za("function"),lv=za("number"),$a=e=>e!==null&&typeof e=="object",k1=e=>e===!0||e===!1,xi=e=>{if(Ba(e)!=="object")return!1;const t=vd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E1=Mt("Date"),P1=Mt("File"),_1=Mt("Blob"),O1=Mt("FileList"),T1=e=>$a(e)&&pt(e.pipe),R1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pt(e.append)&&((t=Ba(e))==="formdata"||t==="object"&&pt(e.toString)&&e.toString()==="[object FormData]"))},A1=Mt("URLSearchParams"),[I1,D1,F1,M1]=["ReadableStream","Request","Response","Headers"].map(Mt),L1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _s(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),po(e))for(o=0,s=e.length;o0;)if(s=n[o],t===s.toLowerCase())return s;return null}const cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uv=e=>!gs(e)&&e!==cr;function tu(){const{caseless:e}=uv(this)&&this||{},t={},n=(o,s)=>{const i=e&&cv(t,s)||s;xi(t[i])&&xi(o)?t[i]=tu(t[i],o):xi(o)?t[i]=tu({},o):po(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o(_s(t,(s,i)=>{n&&pt(s)?e[i]=iv(s,n):e[i]=s},{allOwnKeys:o}),e),z1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$1=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},W1=(e,t,n,o)=>{let s,i,a;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!o||o(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&vd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},U1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},q1=e=>{if(!e)return null;if(po(e))return e;let t=e.length;if(!lv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},V1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vd(Uint8Array)),H1=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},K1=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Y1=Mt("HTMLFormElement"),G1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),Jf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Q1=Mt("RegExp"),dv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};_s(n,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(o[i]=a||s)}),Object.defineProperties(e,o)},X1=e=>{dv(e,(t,n)=>{if(pt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(pt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},J1=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return po(e)?o(e):o(String(e).split(t)),n},Z1=()=>{},e0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ql="abcdefghijklmnopqrstuvwxyz",Zf="0123456789",fv={DIGIT:Zf,ALPHA:ql,ALPHA_DIGIT:ql+ql.toUpperCase()+Zf},t0=(e=16,t=fv.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function n0(e){return!!(e&&pt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const r0=e=>{const t=new Array(10),n=(o,s)=>{if($a(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=po(o)?[]:{};return _s(o,(a,l)=>{const u=n(a,s+1);!gs(u)&&(i[l]=u)}),t[s]=void 0,i}}return o};return n(e,0)},o0=Mt("AsyncFunction"),s0=e=>e&&($a(e)||pt(e))&&pt(e.then)&&pt(e.catch),pv=((e,t)=>e?setImmediate:t?((n,o)=>(cr.addEventListener("message",({source:s,data:i})=>{s===cr&&i===n&&o.length&&o.shift()()},!1),s=>{o.push(s),cr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pt(cr.postMessage)),i0=typeof queueMicrotask<"u"?queueMicrotask.bind(cr):typeof process<"u"&&process.nextTick||pv,z={isArray:po,isArrayBuffer:av,isBuffer:b1,isFormData:R1,isArrayBufferView:w1,isString:S1,isNumber:lv,isBoolean:k1,isObject:$a,isPlainObject:xi,isReadableStream:I1,isRequest:D1,isResponse:F1,isHeaders:M1,isUndefined:gs,isDate:E1,isFile:P1,isBlob:_1,isRegExp:Q1,isFunction:pt,isStream:T1,isURLSearchParams:A1,isTypedArray:V1,isFileList:O1,forEach:_s,merge:tu,extend:B1,trim:L1,stripBOM:z1,inherits:$1,toFlatObject:W1,kindOf:Ba,kindOfTest:Mt,endsWith:U1,toArray:q1,forEachEntry:H1,matchAll:K1,isHTMLForm:Y1,hasOwnProperty:Jf,hasOwnProp:Jf,reduceDescriptors:dv,freezeMethods:X1,toObjectSet:J1,toCamelCase:G1,noop:Z1,toFiniteNumber:e0,findKey:cv,global:cr,isContextDefined:uv,ALPHABET:fv,generateString:t0,isSpecCompliantForm:n0,toJSONObject:r0,isAsyncFn:o0,isThenable:s0,setImmediate:pv,asap:i0};function se(e,t,n,o,s){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),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}z.inherits(se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}});const mv=se.prototype,hv={};["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=>{hv[e]={value:e}});Object.defineProperties(se,hv);Object.defineProperty(mv,"isAxiosError",{value:!0});se.from=(e,t,n,o,s,i)=>{const a=Object.create(mv);return z.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),se.call(a,e.message,t,n,o,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const a0=null;function nu(e){return z.isPlainObject(e)||z.isArray(e)}function vv(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,n){return e?e.concat(t).map(function(s,i){return s=vv(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function l0(e){return z.isArray(e)&&!e.some(nu)}const c0=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Wa(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,C){return!z.isUndefined(C[N])});const o=n.metaTokens,s=n.visitor||d,i=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(s))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if(z.isDate(x))return x.toISOString();if(!u&&z.isBlob(x))throw new se("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(x)||z.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,N,C){let m=x;if(x&&!C&&typeof x=="object"){if(z.endsWith(N,"{}"))N=o?N:N.slice(0,-2),x=JSON.stringify(x);else if(z.isArray(x)&&l0(x)||(z.isFileList(x)||z.endsWith(N,"[]"))&&(m=z.toArray(x)))return N=vv(N),m.forEach(function(h,y){!(z.isUndefined(h)||h===null)&&t.append(a===!0?ep([N],y,i):a===null?N:N+"[]",c(h))}),!1}return nu(x)?!0:(t.append(ep(C,N,i),c(x)),!1)}const f=[],g=Object.assign(c0,{defaultVisitor:d,convertValue:c,isVisitable:nu});function b(x,N){if(!z.isUndefined(x)){if(f.indexOf(x)!==-1)throw Error("Circular reference detected in "+N.join("."));f.push(x),z.forEach(x,function(m,v){(!(z.isUndefined(m)||m===null)&&s.call(t,m,z.isString(v)?v.trim():v,N,g))===!0&&b(m,N?N.concat(v):[v])}),f.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function tp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function gd(e,t){this._pairs=[],e&&Wa(e,this,t)}const gv=gd.prototype;gv.append=function(t,n){this._pairs.push([t,n])};gv.toString=function(t){const n=t?function(o){return t.call(this,o,tp)}:tp;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function u0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xv(e,t,n){if(!t)return e;const o=n&&n.encode||u0,s=n&&n.serialize;let i;if(s?i=s(t,n):i=z.isURLSearchParams(t)?t.toString():new gd(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class np{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(o){o!==null&&t(o)})}}const yv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d0=typeof URLSearchParams<"u"?URLSearchParams:gd,f0=typeof FormData<"u"?FormData:null,p0=typeof Blob<"u"?Blob:null,m0={isBrowser:!0,classes:{URLSearchParams:d0,FormData:f0,Blob:p0},protocols:["http","https","file","blob","url","data"]},xd=typeof window<"u"&&typeof document<"u",ru=typeof navigator=="object"&&navigator||void 0,h0=xd&&(!ru||["ReactNative","NativeScript","NS"].indexOf(ru.product)<0),v0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g0=xd&&window.location.href||"http://localhost",x0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xd,hasStandardBrowserEnv:h0,hasStandardBrowserWebWorkerEnv:v0,navigator:ru,origin:g0},Symbol.toStringTag,{value:"Module"})),it={...x0,...m0};function y0(e,t){return Wa(e,new it.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return it.isNode&&z.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function j0(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function N0(e){const t={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o=n.length;return a=!a&&z.isArray(s)?s.length:a,u?(z.hasOwnProp(s,a)?s[a]=[s[a],o]:s[a]=o,!l):((!s[a]||!z.isObject(s[a]))&&(s[a]=[]),t(n,o,s[a],i)&&z.isArray(s[a])&&(s[a]=N0(s[a])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(o,s)=>{t(j0(o),s,n,0)}),n}return null}function C0(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Os={transitional:yv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return s?JSON.stringify(jv(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return y0(t,this.formSerializer).toString();if((l=z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Wa(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),C0(t)):t}],transformResponse:[function(t){const n=this.transitional||Os.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(o&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?se.from(l,se.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{Os.headers[e]={}});const b0=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),w0=e=>{const t={};let n,o,s;return e&&e.split(` -`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),o=a.substring(s+1).trim(),!(!n||t[n]&&b0[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},rp=Symbol("internals");function Ro(e){return e&&String(e).trim().toLowerCase()}function yi(e){return e===!1||e==null?e:z.isArray(e)?e.map(yi):String(e)}function S0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const k0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vl(e,t,n,o,s){if(z.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!z.isString(t)){if(z.isString(o))return t.indexOf(o)!==-1;if(z.isRegExp(o))return o.test(t)}}function E0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function P0(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,a){return this[o].call(this,t,s,i,a)},configurable:!0})})}class at{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(l,u,c){const d=Ro(u);if(!d)throw new Error("header name must be a non-empty string");const f=z.findKey(s,d);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||u]=yi(l))}const a=(l,u)=>z.forEach(l,(c,d)=>i(c,d,u));if(z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(z.isString(t)&&(t=t.trim())&&!k0(t))a(w0(t),n);else if(z.isHeaders(t))for(const[l,u]of t.entries())i(u,l,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=Ro(t),t){const o=z.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return S0(s);if(z.isFunction(n))return n.call(this,s,o);if(z.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ro(t),t){const o=z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Vl(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(a){if(a=Ro(a),a){const l=z.findKey(o,a);l&&(!n||Vl(o,o[l],l,n))&&(delete o[l],s=!0)}}return z.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!t||Vl(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,o={};return z.forEach(this,(s,i)=>{const a=z.findKey(o,i);if(a){n[a]=yi(s),delete n[i];return}const l=t?E0(i):String(i).trim();l!==i&&delete n[i],n[l]=yi(s),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&z.isArray(o)?o.join(", "):o)}),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 o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[rp]=this[rp]={accessors:{}}).accessors,s=this.prototype;function i(a){const l=Ro(a);o[l]||(P0(s,a),o[l]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}}at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(at.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});z.freezeMethods(at);function Hl(e,t){const n=this||Os,o=t||n,s=at.from(o.headers);let i=o.data;return z.forEach(e,function(l){i=l.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Nv(e){return!!(e&&e.__CANCEL__)}function mo(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(mo,se,{__CANCEL__:!0});function Cv(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function _0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O0(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=o[i];a||(a=c),n[s]=u,o[s]=c;let f=i,g=0;for(;f!==s;)g+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-a{n=d,s=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=o?a(c,d):(s=c,i||(i=setTimeout(()=>{i=null,a(s)},o-f)))},()=>s&&a(s)]}const la=(e,t,n=3)=>{let o=0;const s=O0(50,250);return T0(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,u=a-o,c=s(u),d=a<=l;o=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},op=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},sp=e=>(...t)=>z.asap(()=>e(...t)),R0=it.hasStandardBrowserEnv?function(){const t=it.navigator&&/(msie|trident)/i.test(it.navigator.userAgent),n=document.createElement("a");let o;function s(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(a){const l=z.isString(a)?s(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),A0=it.hasStandardBrowserEnv?{write(e,t,n,o,s,i){const a=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),z.isString(o)&&a.push("path="+o),z.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function I0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function D0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bv(e,t){return e&&!I0(t)?D0(e,t):t}const ip=e=>e instanceof at?{...e}:e;function Cr(e,t){t=t||{};const n={};function o(c,d,f){return z.isPlainObject(c)&&z.isPlainObject(d)?z.merge.call({caseless:f},c,d):z.isPlainObject(d)?z.merge({},d):z.isArray(d)?d.slice():d}function s(c,d,f){if(z.isUndefined(d)){if(!z.isUndefined(c))return o(void 0,c,f)}else return o(c,d,f)}function i(c,d){if(!z.isUndefined(d))return o(void 0,d)}function a(c,d){if(z.isUndefined(d)){if(!z.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function l(c,d,f){if(f in t)return o(c,d);if(f in e)return o(void 0,c)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,d)=>s(ip(c),ip(d),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||s,g=f(e[d],t[d],d);z.isUndefined(g)&&f!==l||(n[d]=g)}),n}const wv=e=>{const t=Cr({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=at.from(a),t.url=xv(bv(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(z.isFormData(n)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(it.hasStandardBrowserEnv&&(o&&z.isFunction(o)&&(o=o(t)),o||o!==!1&&R0(t.url))){const c=s&&i&&A0.read(i);c&&a.set(s,c)}return t},F0=typeof XMLHttpRequest<"u",M0=F0&&function(e){return new Promise(function(n,o){const s=wv(e);let i=s.data;const a=at.from(s.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=s,d,f,g,b,x;function N(){b&&b(),x&&x(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(s.method.toUpperCase(),s.url,!0),C.timeout=s.timeout;function m(){if(!C)return;const h=at.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:h,config:e,request:C};Cv(function(T){n(T),N()},function(T){o(T),N()},k),C=null}"onloadend"in C?C.onloadend=m:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(m)},C.onabort=function(){C&&(o(new se("Request aborted",se.ECONNABORTED,e,C)),C=null)},C.onerror=function(){o(new se("Network Error",se.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let y=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const k=s.transitional||yv;s.timeoutErrorMessage&&(y=s.timeoutErrorMessage),o(new se(y,k.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,C)),C=null},i===void 0&&a.setContentType(null),"setRequestHeader"in C&&z.forEach(a.toJSON(),function(y,k){C.setRequestHeader(k,y)}),z.isUndefined(s.withCredentials)||(C.withCredentials=!!s.withCredentials),l&&l!=="json"&&(C.responseType=s.responseType),c&&([g,x]=la(c,!0),C.addEventListener("progress",g)),u&&C.upload&&([f,b]=la(u),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",b)),(s.cancelToken||s.signal)&&(d=h=>{C&&(o(!h||h.type?new mo(null,e,C):h),C.abort(),C=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const v=_0(s.url);if(v&&it.protocols.indexOf(v)===-1){o(new se("Unsupported protocol "+v+":",se.ERR_BAD_REQUEST,e));return}C.send(i||null)})},L0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,s;const i=function(c){if(!s){s=!0,l();const d=c instanceof Error?c:this.reason;o.abort(d instanceof se?d:new mo(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new se(`timeout ${t} of ms exceeded`,se.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=o;return u.unsubscribe=()=>z.asap(l),u}},B0=function*(e,t){let n=e.byteLength;if(!t||n{const s=z0(e,t);let i=0,a,l=u=>{a||(a=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await s.next();if(c){l(),u.close();return}let f=d.byteLength;if(n){let g=i+=f;n(g)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},Ua=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sv=Ua&&typeof ReadableStream=="function",W0=Ua&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),kv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},U0=Sv&&kv(()=>{let e=!1;const t=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),lp=64*1024,ou=Sv&&kv(()=>z.isReadableStream(new Response("").body)),ca={stream:ou&&(e=>e.body)};Ua&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ca[t]&&(ca[t]=z.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new se(`Response type '${t}' is not supported`,se.ERR_NOT_SUPPORT,o)})})})(new Response);const q0=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(it.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await W0(e)).byteLength},V0=async(e,t)=>{const n=z.toFiniteNumber(e.getContentLength());return n??q0(t)},H0=Ua&&(async e=>{let{url:t,method:n,data:o,signal:s,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:g}=wv(e);c=c?(c+"").toLowerCase():"text";let b=L0([s,i&&i.toAbortSignal()],a),x;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(u&&U0&&n!=="get"&&n!=="head"&&(C=await V0(d,o))!==0){let k=new Request(t,{method:"POST",body:o,duplex:"half"}),P;if(z.isFormData(o)&&(P=k.headers.get("content-type"))&&d.setContentType(P),k.body){const[T,O]=op(C,la(sp(u)));o=ap(k.body,lp,T,O)}}z.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;x=new Request(t,{...g,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:m?f:void 0});let v=await fetch(x);const h=ou&&(c==="stream"||c==="response");if(ou&&(l||h&&N)){const k={};["status","statusText","headers"].forEach(M=>{k[M]=v[M]});const P=z.toFiniteNumber(v.headers.get("content-length")),[T,O]=l&&op(P,la(sp(l),!0))||[];v=new Response(ap(v.body,lp,T,()=>{O&&O(),N&&N()}),k)}c=c||"text";let y=await ca[z.findKey(ca,c)||"text"](v,e);return!h&&N&&N(),await new Promise((k,P)=>{Cv(k,P,{data:y,headers:at.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(m){throw N&&N(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,e,x),{cause:m.cause||m}):se.from(m,m&&m.code,e,x)}}),su={http:a0,xhr:M0,fetch:H0};z.forEach(su,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cp=e=>`- ${e}`,K0=e=>z.isFunction(e)||e===null||e===!1,Ev={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,o;const s={};for(let i=0;i`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : + */var Ps=S;function aj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lj=typeof Object.is=="function"?Object.is:aj,cj=Ps.useSyncExternalStore,uj=Ps.useRef,dj=Ps.useEffect,fj=Ps.useMemo,pj=Ps.useDebugValue;qh.useSyncExternalStoreWithSelector=function(e,t,n,o,s){var i=uj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=fj(function(){function u(b){if(!c){if(c=!0,d=b,b=o(b),s!==void 0&&a.hasValue){var x=a.value;if(s(x,b))return f=x}return f=b}if(x=f,lj(d,b))return x;var N=o(b);return s!==void 0&&s(x,N)?x:(d=b,f=N)}var c=!1,d,f,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,o,s]);var l=cj(e,i[0],i[1]);return dj(function(){a.hasValue=!0,a.value=l},[l]),pj(l),l};Uh.exports=qh;var mj=Uh.exports,ut="default"in nc?I:nc,zf=Symbol.for("react-redux-context"),$f=typeof globalThis<"u"?globalThis:{};function hj(){if(!ut.createContext)return{};const e=$f[zf]??($f[zf]=new Map);let t=e.get(ut.createContext);return t||(t=ut.createContext(null),e.set(ut.createContext,t)),t}var Un=hj(),vj=()=>{throw new Error("uSES not initialized!")};function fd(e=Un){return function(){return ut.useContext(e)}}var Vh=fd(),Hh=vj,gj=e=>{Hh=e},xj=(e,t)=>e===t;function yj(e=Un){const t=e===Un?Vh:fd(e),n=(o,s={})=>{const{equalityFn:i=xj,devModeChecks:a={}}=typeof s=="function"?{equalityFn:s}:s,{store:l,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:f}=t();ut.useRef(!0);const g=ut.useCallback({[o.name](x){return o(x)}}[o.name],[o,d,a.stabilityCheck]),b=Hh(u.addNestedSub,l.getState,c||l.getState,g,i);return ut.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var Qe=yj();function jj(e){e()}function Nj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){jj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let o=e;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0;const s=t={callback:n,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){!o||e===null||(o=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}var Wf={notify(){},get:()=>[]};function Cj(e,t){let n,o=Wf,s=0,i=!1;function a(N){d();const C=o.subscribe(N);let m=!1;return()=>{m||(m=!0,C(),f())}}function l(){o.notify()}function u(){x.onStateChange&&x.onStateChange()}function c(){return i}function d(){s++,n||(n=e.subscribe(u),o=Nj())}function f(){s--,n&&s===0&&(n(),n=void 0,o.clear(),o=Wf)}function g(){i||(i=!0,d())}function b(){i&&(i=!1,f())}const x={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:c,trySubscribe:g,tryUnsubscribe:b,getListeners:()=>o};return x}var bj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wj=typeof navigator<"u"&&navigator.product==="ReactNative",Sj=bj||wj?ut.useLayoutEffect:ut.useEffect;function kj({store:e,context:t,children:n,serverState:o,stabilityCheck:s="once",identityFunctionCheck:i="once"}){const a=ut.useMemo(()=>{const c=Cj(e);return{store:e,subscription:c,getServerState:o?()=>o:void 0,stabilityCheck:s,identityFunctionCheck:i}},[e,o,s,i]),l=ut.useMemo(()=>e.getState(),[e]);Sj(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,l]);const u=t||Un;return ut.createElement(u.Provider,{value:a},n)}var Ej=kj;function Kh(e=Un){const t=e===Un?Vh:fd(e),n=()=>{const{store:o}=t();return o};return Object.assign(n,{withTypes:()=>n}),n}var Pj=Kh();function _j(e=Un){const t=e===Un?Pj:Kh(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ft=_j();gj(mj.useSyncExternalStoreWithSelector);function Le(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 Oj=typeof Symbol=="function"&&Symbol.observable||"@@observable",Uf=Oj,zl=()=>Math.random().toString(36).substring(7).split("").join("."),Tj={INIT:`@@redux/INIT${zl()}`,REPLACE:`@@redux/REPLACE${zl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zl()}`},ra=Tj;function pd(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 Yh(e,t,n){if(typeof e!="function")throw new Error(Le(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Le(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Le(1));return n(Yh)(e,t)}let o=e,s=t,i=new Map,a=i,l=0,u=!1;function c(){a===i&&(a=new Map,i.forEach((C,m)=>{a.set(m,C)}))}function d(){if(u)throw new Error(Le(3));return s}function f(C){if(typeof C!="function")throw new Error(Le(4));if(u)throw new Error(Le(5));let m=!0;c();const v=l++;return a.set(v,C),function(){if(m){if(u)throw new Error(Le(6));m=!1,c(),a.delete(v),i=null}}}function g(C){if(!pd(C))throw new Error(Le(7));if(typeof C.type>"u")throw new Error(Le(8));if(typeof C.type!="string")throw new Error(Le(17));if(u)throw new Error(Le(9));try{u=!0,s=o(s,C)}finally{u=!1}return(i=a).forEach(v=>{v()}),C}function b(C){if(typeof C!="function")throw new Error(Le(10));o=C,g({type:ra.REPLACE})}function x(){const C=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Le(11));function v(){const y=m;y.next&&y.next(d())}return v(),{unsubscribe:C(v)}},[Uf](){return this}}}return g({type:ra.INIT}),{dispatch:g,subscribe:f,getState:d,replaceReducer:b,[Uf]:x}}function Rj(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ra.INIT})>"u")throw new Error(Le(12));if(typeof n(void 0,{type:ra.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Le(13))})}function Aj(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw l&&l.type,new Error(Le(14));c[f]=x,u=u||x!==b}return u=u||o.length!==Object.keys(a).length,u?c:a}}function oa(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Ij(...e){return t=>(n,o)=>{const s=t(n,o);let i=()=>{throw new Error(Le(15))};const a={getState:s.getState,dispatch:(u,...c)=>i(u,...c)},l=e.map(u=>u(a));return i=oa(...l)(s.dispatch),{...s,dispatch:i}}}function Dj(e){return pd(e)&&"type"in e&&typeof e.type=="string"}var Gh=Symbol.for("immer-nothing"),qf=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state");function Tt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ao=Object.getPrototypeOf;function jr(e){return!!e&&!!e[ht]}function dn(e){var t;return e?Qh(e)||Array.isArray(e)||!!e[qf]||!!((t=e.constructor)!=null&&t[qf])||Da(e)||Fa(e):!1}var Fj=Object.prototype.constructor.toString();function Qh(e){if(!e||typeof e!="object")return!1;const t=ao(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)===Fj}function sa(e,t){Ia(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,o)=>t(o,n,e))}function Ia(e){const t=e[ht];return t?t.type_:Array.isArray(e)?1:Da(e)?2:Fa(e)?3:0}function Gc(e,t){return Ia(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xh(e,t,n){const o=Ia(e);o===2?e.set(t,n):o===3?e.add(n):e[t]=n}function Mj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Da(e){return e instanceof Map}function Fa(e){return e instanceof Set}function nr(e){return e.copy_||e.base_}function Qc(e,t){if(Da(e))return new Map(e);if(Fa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Qh(e);if(t===!0||t==="class_only"&&!n){const o=Object.getOwnPropertyDescriptors(e);delete o[ht];let s=Reflect.ownKeys(o);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=Lj),Object.freeze(e),t&&Object.entries(e).forEach(([n,o])=>md(o,!0))),e}function Lj(){Tt(2)}function Ma(e){return Object.isFrozen(e)}var Bj={};function Nr(e){const t=Bj[e];return t||Tt(0,e),t}var hs;function Jh(){return hs}function zj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Vf(e,t){t&&(Nr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xc(e){Jc(e),e.drafts_.forEach($j),e.drafts_=null}function Jc(e){e===hs&&(hs=e.parent_)}function Hf(e){return hs=zj(hs,e)}function $j(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Kf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ht].modified_&&(Xc(t),Tt(4)),dn(e)&&(e=ia(t,e),t.parent_||aa(t,e)),t.patches_&&Nr("Patches").generateReplacementPatches_(n[ht].base_,e,t.patches_,t.inversePatches_)):e=ia(t,n,[]),Xc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gh?e:void 0}function ia(e,t,n){if(Ma(t))return t;const o=t[ht];if(!o)return sa(t,(s,i)=>Yf(e,o,t,s,i,n)),t;if(o.scope_!==e)return t;if(!o.modified_)return aa(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const s=o.copy_;let i=s,a=!1;o.type_===3&&(i=new Set(s),s.clear(),a=!0),sa(i,(l,u)=>Yf(e,o,s,l,u,n,a)),aa(e,s,!1),n&&e.patches_&&Nr("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function Yf(e,t,n,o,s,i,a){if(jr(s)){const l=i&&t&&t.type_!==3&&!Gc(t.assigned_,o)?i.concat(o):void 0,u=ia(e,s,l);if(Xh(n,o,u),jr(u))e.canAutoFreeze_=!1;else return}else a&&n.add(s);if(dn(s)&&!Ma(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ia(e,s),(!t||!t.scope_.parent_)&&typeof o!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,o)&&aa(e,s)}}function aa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&md(t,n)}function Wj(e,t){const n=Array.isArray(e),o={type_:n?1:0,scope_:t?t.scope_:Jh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=o,i=hd;n&&(s=[o],i=vs);const{revoke:a,proxy:l}=Proxy.revocable(s,i);return o.draft_=l,o.revoke_=a,l}var hd={get(e,t){if(t===ht)return e;const n=nr(e);if(!Gc(n,t))return Uj(e,n,t);const o=n[t];return e.finalized_||!dn(o)?o:o===$l(e.base_,t)?(Wl(e),e.copy_[t]=eu(o,e)):o},has(e,t){return t in nr(e)},ownKeys(e){return Reflect.ownKeys(nr(e))},set(e,t,n){const o=Zh(nr(e),t);if(o!=null&&o.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const s=$l(nr(e),t),i=s==null?void 0:s[ht];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Mj(n,s)&&(n!==void 0||Gc(e.base_,t)))return!0;Wl(e),Zc(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 $l(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Wl(e),Zc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=nr(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:o.enumerable,value:n[t]}},defineProperty(){Tt(11)},getPrototypeOf(e){return ao(e.base_)},setPrototypeOf(){Tt(12)}},vs={};sa(hd,(e,t)=>{vs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});vs.deleteProperty=function(e,t){return vs.set.call(this,e,t,void 0)};vs.set=function(e,t,n){return hd.set.call(this,e[0],t,n,e[0])};function $l(e,t){const n=e[ht];return(n?nr(n):e)[t]}function Uj(e,t,n){var s;const o=Zh(t,n);return o?"value"in o?o.value:(s=o.get)==null?void 0:s.call(e.draft_):void 0}function Zh(e,t){if(!(t in e))return;let n=ao(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=ao(n)}}function Zc(e){e.modified_||(e.modified_=!0,e.parent_&&Zc(e.parent_))}function Wl(e){e.copy_||(e.copy_=Qc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,o)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(u=i,...c){return a.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&Tt(6),o!==void 0&&typeof o!="function"&&Tt(7);let s;if(dn(t)){const i=Hf(this),a=eu(t,void 0);let l=!0;try{s=n(a),l=!1}finally{l?Xc(i):Jc(i)}return Vf(i,o),Kf(s,i)}else if(!t||typeof t!="object"){if(s=n(t),s===void 0&&(s=t),s===Gh&&(s=void 0),this.autoFreeze_&&md(s,!0),o){const i=[],a=[];Nr("Patches").generateReplacementPatches_(t,s,i,a),o(i,a)}return s}else Tt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let o,s;return[this.produce(t,n,(a,l)=>{o=a,s=l}),o,s]},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){dn(e)||Tt(8),jr(e)&&(e=Vj(e));const t=Hf(this),n=eu(e,void 0);return n[ht].isManual_=!0,Jc(t),n}finishDraft(e,t){const n=e&&e[ht];(!n||!n.isManual_)&&Tt(9);const{scope_:o}=n;return Vf(o,t),Kf(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const s=t[n];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}n>-1&&(t=t.slice(n+1));const o=Nr("Patches").applyPatches_;return jr(e)?o(e,t):this.produce(e,s=>o(s,t))}};function eu(e,t){const n=Da(e)?Nr("MapSet").proxyMap_(e,t):Fa(e)?Nr("MapSet").proxySet_(e,t):Wj(e,t);return(t?t.scope_:Jh()).drafts_.push(n),n}function Vj(e){return jr(e)||Tt(10,e),ev(e)}function ev(e){if(!dn(e)||Ma(e))return e;const t=e[ht];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Qc(e,!0);return sa(n,(o,s)=>{Xh(n,o,ev(s))}),t&&(t.finalized_=!1),n}var vt=new qj,tv=vt.produce;vt.produceWithPatches.bind(vt);vt.setAutoFreeze.bind(vt);vt.setUseStrictShallowCopy.bind(vt);vt.applyPatches.bind(vt);vt.createDraft.bind(vt);vt.finishDraft.bind(vt);function nv(e){return({dispatch:n,getState:o})=>s=>i=>typeof i=="function"?i(n,o,e):s(i)}var Hj=nv(),Kj=nv,Yj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oa:oa.apply(null,arguments)},Gj=e=>e&&typeof e.match=="function";function Yo(e,t){function n(...o){if(t){let s=t(...o);if(!s)throw new Error(It(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:o[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=o=>Dj(o)&&o.type===e,n}var rv=class Mo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Mo.prototype)}static get[Symbol.species](){return Mo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Mo(...t[0].concat(this)):new Mo(...t.concat(this))}};function Gf(e){return dn(e)?tv(e,()=>{}):e}function Qf(e,t,n){if(e.has(t)){let s=e.get(t);return n.update&&(s=n.update(s,t,e),e.set(t,s)),s}if(!n.insert)throw new Error(It(10));const o=n.insert(t,e);return e.set(t,o),o}function Qj(e){return typeof e=="boolean"}var Xj=()=>function(t){const{thunk:n=!0,immutableCheck:o=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{};let a=new rv;return n&&(Qj(n)?a.push(Hj):a.push(Kj(n.extraArgument))),a},Jj="RTK_autoBatch",ov=e=>t=>{setTimeout(t,e)},Zj=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ov(10),e1=(e={type:"raf"})=>t=>(...n)=>{const o=t(...n);let s=!0,i=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?Zj:e.type==="callback"?e.queueNotification:ov(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach(d=>d()))};return Object.assign({},o,{subscribe(d){const f=()=>s&&d(),g=o.subscribe(f);return l.add(d),()=>{g(),l.delete(d)}},dispatch(d){var f;try{return s=!((f=d==null?void 0:d.meta)!=null&&f[Jj]),i=!s,i&&(a||(a=!0,u(c))),o.dispatch(d)}finally{s=!0}}})},t1=e=>function(n){const{autoBatch:o=!0}=n??{};let s=new rv(e);return o&&s.push(e1(typeof o=="object"?o:void 0)),s};function n1(e){const t=Xj(),{reducer:n=void 0,middleware:o,devTools:s=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(pd(n))l=Aj(n);else throw new Error(It(1));let u;typeof o=="function"?u=o(t):u=t();let c=oa;s&&(c=Yj({trace:!1,...typeof s=="object"&&s}));const d=Ij(...u),f=t1(d);let g=typeof a=="function"?a(f):f();const b=c(...g);return Yh(l,i,b)}function sv(e){const t={},n=[];let o;const s={addCase(i,a){const l=typeof i=="string"?i:i.type;if(!l)throw new Error(It(28));if(l in t)throw new Error(It(29));return t[l]=a,s},addMatcher(i,a){return n.push({matcher:i,reducer:a}),s},addDefaultCase(i){return o=i,s}};return e(s),[t,n,o]}function r1(e){return typeof e=="function"}function o1(e,t){let[n,o,s]=sv(t),i;if(r1(e))i=()=>Gf(e());else{const l=Gf(e);i=()=>l}function a(l=i(),u){let c=[n[u.type],...o.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[s]),c.reduce((d,f)=>{if(f)if(jr(d)){const b=f(d,u);return b===void 0?d:b}else{if(dn(d))return tv(d,g=>f(g,u));{const g=f(d,u);if(g===void 0){if(d===null)return d;throw new Error(It(9))}return g}}return d},l)}return a.getInitialState=i,a}var s1=(e,t)=>Gj(e)?e.match(t):e(t);function i1(...e){return t=>e.some(n=>s1(n,t))}var a1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",l1=(e=21)=>{let t="",n=e;for(;n--;)t+=a1[Math.random()*64|0];return t},c1=["name","message","stack","code"],Ul=class{constructor(e,t){pl(this,"_type");this.payload=e,this.meta=t}},Xf=class{constructor(e,t){pl(this,"_type");this.payload=e,this.meta=t}},u1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of c1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},yt=(()=>{function e(t,n,o){const s=Yo(t+"/fulfilled",(u,c,d,f)=>({payload:u,meta:{...f||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),i=Yo(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),a=Yo(t+"/rejected",(u,c,d,f,g)=>({payload:f,error:(o&&o.serializeError||u1)(u||"Rejected"),meta:{...g||{},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 l(u){return(c,d,f)=>{const g=o!=null&&o.idGenerator?o.idGenerator(u):l1(),b=new AbortController;let x,N;function C(v){N=v,b.abort()}const m=async function(){var y,k;let v;try{let O=(y=o==null?void 0:o.condition)==null?void 0:y.call(o,u,{getState:d,extra:f});if(f1(O)&&(O=await O),O===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((_,F)=>{x=()=>{F({name:"AbortError",message:N||"Aborted"})},b.signal.addEventListener("abort",x)});c(i(g,u,(k=o==null?void 0:o.getPendingMeta)==null?void 0:k.call(o,{requestId:g,arg:u},{getState:d,extra:f}))),v=await Promise.race([T,Promise.resolve(n(u,{dispatch:c,getState:d,extra:f,requestId:g,signal:b.signal,abort:C,rejectWithValue:(_,F)=>new Ul(_,F),fulfillWithValue:(_,F)=>new Xf(_,F)})).then(_=>{if(_ instanceof Ul)throw _;return _ instanceof Xf?s(_.payload,g,u,_.meta):s(_,g,u)})])}catch(O){v=O instanceof Ul?a(null,g,u,O.payload,O.meta):a(O,g,u)}finally{x&&b.signal.removeEventListener("abort",x)}return o&&!o.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(m,{abort:C,requestId:g,arg:u,unwrap(){return m.then(d1)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:s,settled:i1(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function d1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function f1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var p1=Symbol.for("rtk-slice-createasyncthunk");function m1(e,t){return`${e}/${t}`}function h1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[p1];return function(s){const{name:i,reducerPath:a=i}=s;if(!i)throw new Error(It(11));typeof process<"u";const l=(typeof s.reducers=="function"?s.reducers(g1()):s.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(h,y){const k=typeof h=="string"?h:h.type;if(!k)throw new Error(It(12));if(k in c.sliceCaseReducersByType)throw new Error(It(13));return c.sliceCaseReducersByType[k]=y,d},addMatcher(h,y){return c.sliceMatchers.push({matcher:h,reducer:y}),d},exposeAction(h,y){return c.actionCreators[h]=y,d},exposeCaseReducer(h,y){return c.sliceCaseReducersByName[h]=y,d}};u.forEach(h=>{const y=l[h],k={reducerName:h,type:m1(i,h),createNotation:typeof s.reducers=="function"};y1(y)?N1(k,y,d,t):x1(k,y,d)});function f(){const[h={},y=[],k=void 0]=typeof s.extraReducers=="function"?sv(s.extraReducers):[s.extraReducers],O={...h,...c.sliceCaseReducersByType};return o1(s.initialState,T=>{for(let _ in O)T.addCase(_,O[_]);for(let _ of c.sliceMatchers)T.addMatcher(_.matcher,_.reducer);for(let _ of y)T.addMatcher(_.matcher,_.reducer);k&&T.addDefaultCase(k)})}const g=h=>h,b=new Map;let x;function N(h,y){return x||(x=f()),x(h,y)}function C(){return x||(x=f()),x.getInitialState()}function m(h,y=!1){function k(T){let _=T[h];return typeof _>"u"&&y&&(_=C()),_}function O(T=g){const _=Qf(b,y,{insert:()=>new WeakMap});return Qf(_,T,{insert:()=>{const F={};for(const[z,H]of Object.entries(s.selectors??{}))F[z]=v1(H,T,C,y);return F}})}return{reducerPath:h,getSelectors:O,get selectors(){return O(k)},selectSlice:k}}const v={name:i,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...m(a),injectInto(h,{reducerPath:y,...k}={}){const O=y??a;return h.inject({reducerPath:O,reducer:N},k),{...v,...m(O,!0)}}};return v}}function v1(e,t,n,o){function s(i,...a){let l=t(i);return typeof l>"u"&&o&&(l=n()),e(l,...a)}return s.unwrapped=e,s}var La=h1();function g1(){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 x1({type:e,reducerName:t,createNotation:n},o,s){let i,a;if("reducer"in o){if(n&&!j1(o))throw new Error(It(17));i=o.reducer,a=o.prepare}else i=o;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Yo(e,a):Yo(e))}function y1(e){return e._reducerDefinitionType==="asyncThunk"}function j1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function N1({type:e,reducerName:t},n,o,s){if(!s)throw new Error(It(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:u,settled:c,options:d}=n,f=s(e,i,d);o.exposeAction(t,f),a&&o.addCase(f.fulfilled,a),l&&o.addCase(f.pending,l),u&&o.addCase(f.rejected,u),c&&o.addMatcher(f.settled,c),o.exposeCaseReducer(t,{fulfilled:a||ei,pending:l||ei,rejected:u||ei,settled:c||ei})}function ei(){}function It(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 iv(e,t){return function(){return e.apply(t,arguments)}}const{toString:C1}=Object.prototype,{getPrototypeOf:vd}=Object,Ba=(e=>t=>{const n=C1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>Ba(t)===e),za=e=>t=>typeof t===e,{isArray:po}=Array,gs=za("undefined");function b1(e){return e!==null&&!gs(e)&&e.constructor!==null&&!gs(e.constructor)&&pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const av=Mt("ArrayBuffer");function w1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&av(e.buffer),t}const S1=za("string"),pt=za("function"),lv=za("number"),$a=e=>e!==null&&typeof e=="object",k1=e=>e===!0||e===!1,xi=e=>{if(Ba(e)!=="object")return!1;const t=vd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E1=Mt("Date"),P1=Mt("File"),_1=Mt("Blob"),O1=Mt("FileList"),T1=e=>$a(e)&&pt(e.pipe),R1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pt(e.append)&&((t=Ba(e))==="formdata"||t==="object"&&pt(e.toString)&&e.toString()==="[object FormData]"))},A1=Mt("URLSearchParams"),[I1,D1,F1,M1]=["ReadableStream","Request","Response","Headers"].map(Mt),L1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _s(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),po(e))for(o=0,s=e.length;o0;)if(s=n[o],t===s.toLowerCase())return s;return null}const cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uv=e=>!gs(e)&&e!==cr;function tu(){const{caseless:e}=uv(this)&&this||{},t={},n=(o,s)=>{const i=e&&cv(t,s)||s;xi(t[i])&&xi(o)?t[i]=tu(t[i],o):xi(o)?t[i]=tu({},o):po(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o(_s(t,(s,i)=>{n&&pt(s)?e[i]=iv(s,n):e[i]=s},{allOwnKeys:o}),e),z1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$1=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},W1=(e,t,n,o)=>{let s,i,a;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!o||o(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&vd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},U1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},q1=e=>{if(!e)return null;if(po(e))return e;let t=e.length;if(!lv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},V1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vd(Uint8Array)),H1=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},K1=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Y1=Mt("HTMLFormElement"),G1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),Jf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Q1=Mt("RegExp"),dv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};_s(n,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(o[i]=a||s)}),Object.defineProperties(e,o)},X1=e=>{dv(e,(t,n)=>{if(pt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(pt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},J1=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return po(e)?o(e):o(String(e).split(t)),n},Z1=()=>{},e0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ql="abcdefghijklmnopqrstuvwxyz",Zf="0123456789",fv={DIGIT:Zf,ALPHA:ql,ALPHA_DIGIT:ql+ql.toUpperCase()+Zf},t0=(e=16,t=fv.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function n0(e){return!!(e&&pt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const r0=e=>{const t=new Array(10),n=(o,s)=>{if($a(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=po(o)?[]:{};return _s(o,(a,l)=>{const u=n(a,s+1);!gs(u)&&(i[l]=u)}),t[s]=void 0,i}}return o};return n(e,0)},o0=Mt("AsyncFunction"),s0=e=>e&&($a(e)||pt(e))&&pt(e.then)&&pt(e.catch),pv=((e,t)=>e?setImmediate:t?((n,o)=>(cr.addEventListener("message",({source:s,data:i})=>{s===cr&&i===n&&o.length&&o.shift()()},!1),s=>{o.push(s),cr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pt(cr.postMessage)),i0=typeof queueMicrotask<"u"?queueMicrotask.bind(cr):typeof process<"u"&&process.nextTick||pv,$={isArray:po,isArrayBuffer:av,isBuffer:b1,isFormData:R1,isArrayBufferView:w1,isString:S1,isNumber:lv,isBoolean:k1,isObject:$a,isPlainObject:xi,isReadableStream:I1,isRequest:D1,isResponse:F1,isHeaders:M1,isUndefined:gs,isDate:E1,isFile:P1,isBlob:_1,isRegExp:Q1,isFunction:pt,isStream:T1,isURLSearchParams:A1,isTypedArray:V1,isFileList:O1,forEach:_s,merge:tu,extend:B1,trim:L1,stripBOM:z1,inherits:$1,toFlatObject:W1,kindOf:Ba,kindOfTest:Mt,endsWith:U1,toArray:q1,forEachEntry:H1,matchAll:K1,isHTMLForm:Y1,hasOwnProperty:Jf,hasOwnProp:Jf,reduceDescriptors:dv,freezeMethods:X1,toObjectSet:J1,toCamelCase:G1,noop:Z1,toFiniteNumber:e0,findKey:cv,global:cr,isContextDefined:uv,ALPHABET:fv,generateString:t0,isSpecCompliantForm:n0,toJSONObject:r0,isAsyncFn:o0,isThenable:s0,setImmediate:pv,asap:i0};function ie(e,t,n,o,s){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),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}$.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const mv=ie.prototype,hv={};["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=>{hv[e]={value:e}});Object.defineProperties(ie,hv);Object.defineProperty(mv,"isAxiosError",{value:!0});ie.from=(e,t,n,o,s,i)=>{const a=Object.create(mv);return $.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),ie.call(a,e.message,t,n,o,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const a0=null;function nu(e){return $.isPlainObject(e)||$.isArray(e)}function vv(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,n){return e?e.concat(t).map(function(s,i){return s=vv(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function l0(e){return $.isArray(e)&&!e.some(nu)}const c0=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Wa(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,C){return!$.isUndefined(C[N])});const o=n.metaTokens,s=n.visitor||d,i=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(s))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if($.isDate(x))return x.toISOString();if(!u&&$.isBlob(x))throw new ie("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(x)||$.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,N,C){let m=x;if(x&&!C&&typeof x=="object"){if($.endsWith(N,"{}"))N=o?N:N.slice(0,-2),x=JSON.stringify(x);else if($.isArray(x)&&l0(x)||($.isFileList(x)||$.endsWith(N,"[]"))&&(m=$.toArray(x)))return N=vv(N),m.forEach(function(h,y){!($.isUndefined(h)||h===null)&&t.append(a===!0?ep([N],y,i):a===null?N:N+"[]",c(h))}),!1}return nu(x)?!0:(t.append(ep(C,N,i),c(x)),!1)}const f=[],g=Object.assign(c0,{defaultVisitor:d,convertValue:c,isVisitable:nu});function b(x,N){if(!$.isUndefined(x)){if(f.indexOf(x)!==-1)throw Error("Circular reference detected in "+N.join("."));f.push(x),$.forEach(x,function(m,v){(!($.isUndefined(m)||m===null)&&s.call(t,m,$.isString(v)?v.trim():v,N,g))===!0&&b(m,N?N.concat(v):[v])}),f.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return b(e),t}function tp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function gd(e,t){this._pairs=[],e&&Wa(e,this,t)}const gv=gd.prototype;gv.append=function(t,n){this._pairs.push([t,n])};gv.toString=function(t){const n=t?function(o){return t.call(this,o,tp)}:tp;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function u0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xv(e,t,n){if(!t)return e;const o=n&&n.encode||u0,s=n&&n.serialize;let i;if(s?i=s(t,n):i=$.isURLSearchParams(t)?t.toString():new gd(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class np{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(o){o!==null&&t(o)})}}const yv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d0=typeof URLSearchParams<"u"?URLSearchParams:gd,f0=typeof FormData<"u"?FormData:null,p0=typeof Blob<"u"?Blob:null,m0={isBrowser:!0,classes:{URLSearchParams:d0,FormData:f0,Blob:p0},protocols:["http","https","file","blob","url","data"]},xd=typeof window<"u"&&typeof document<"u",ru=typeof navigator=="object"&&navigator||void 0,h0=xd&&(!ru||["ReactNative","NativeScript","NS"].indexOf(ru.product)<0),v0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g0=xd&&window.location.href||"http://localhost",x0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xd,hasStandardBrowserEnv:h0,hasStandardBrowserWebWorkerEnv:v0,navigator:ru,origin:g0},Symbol.toStringTag,{value:"Module"})),it={...x0,...m0};function y0(e,t){return Wa(e,new it.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return it.isNode&&$.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function j0(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function N0(e){const t={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o=n.length;return a=!a&&$.isArray(s)?s.length:a,u?($.hasOwnProp(s,a)?s[a]=[s[a],o]:s[a]=o,!l):((!s[a]||!$.isObject(s[a]))&&(s[a]=[]),t(n,o,s[a],i)&&$.isArray(s[a])&&(s[a]=N0(s[a])),!l)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(o,s)=>{t(j0(o),s,n,0)}),n}return null}function C0(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Os={transitional:yv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return s?JSON.stringify(jv(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return y0(t,this.formSerializer).toString();if((l=$.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Wa(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),C0(t)):t}],transformResponse:[function(t){const n=this.transitional||Os.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(o&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?ie.from(l,ie.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Os.headers[e]={}});const b0=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),w0=e=>{const t={};let n,o,s;return e&&e.split(` +`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),o=a.substring(s+1).trim(),!(!n||t[n]&&b0[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},rp=Symbol("internals");function Ro(e){return e&&String(e).trim().toLowerCase()}function yi(e){return e===!1||e==null?e:$.isArray(e)?e.map(yi):String(e)}function S0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const k0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vl(e,t,n,o,s){if($.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!$.isString(t)){if($.isString(o))return t.indexOf(o)!==-1;if($.isRegExp(o))return o.test(t)}}function E0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function P0(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,a){return this[o].call(this,t,s,i,a)},configurable:!0})})}class at{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(l,u,c){const d=Ro(u);if(!d)throw new Error("header name must be a non-empty string");const f=$.findKey(s,d);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||u]=yi(l))}const a=(l,u)=>$.forEach(l,(c,d)=>i(c,d,u));if($.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if($.isString(t)&&(t=t.trim())&&!k0(t))a(w0(t),n);else if($.isHeaders(t))for(const[l,u]of t.entries())i(u,l,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=Ro(t),t){const o=$.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return S0(s);if($.isFunction(n))return n.call(this,s,o);if($.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ro(t),t){const o=$.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Vl(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(a){if(a=Ro(a),a){const l=$.findKey(o,a);l&&(!n||Vl(o,o[l],l,n))&&(delete o[l],s=!0)}}return $.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!t||Vl(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,o={};return $.forEach(this,(s,i)=>{const a=$.findKey(o,i);if(a){n[a]=yi(s),delete n[i];return}const l=t?E0(i):String(i).trim();l!==i&&delete n[i],n[l]=yi(s),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&$.isArray(o)?o.join(", "):o)}),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 o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[rp]=this[rp]={accessors:{}}).accessors,s=this.prototype;function i(a){const l=Ro(a);o[l]||(P0(s,a),o[l]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(at.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});$.freezeMethods(at);function Hl(e,t){const n=this||Os,o=t||n,s=at.from(o.headers);let i=o.data;return $.forEach(e,function(l){i=l.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Nv(e){return!!(e&&e.__CANCEL__)}function mo(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(mo,ie,{__CANCEL__:!0});function Cv(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function _0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O0(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=o[i];a||(a=c),n[s]=u,o[s]=c;let f=i,g=0;for(;f!==s;)g+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-a{n=d,s=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=o?a(c,d):(s=c,i||(i=setTimeout(()=>{i=null,a(s)},o-f)))},()=>s&&a(s)]}const la=(e,t,n=3)=>{let o=0;const s=O0(50,250);return T0(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,u=a-o,c=s(u),d=a<=l;o=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},op=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},sp=e=>(...t)=>$.asap(()=>e(...t)),R0=it.hasStandardBrowserEnv?function(){const t=it.navigator&&/(msie|trident)/i.test(it.navigator.userAgent),n=document.createElement("a");let o;function s(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(a){const l=$.isString(a)?s(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),A0=it.hasStandardBrowserEnv?{write(e,t,n,o,s,i){const a=[e+"="+encodeURIComponent(t)];$.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$.isString(o)&&a.push("path="+o),$.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function I0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function D0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bv(e,t){return e&&!I0(t)?D0(e,t):t}const ip=e=>e instanceof at?{...e}:e;function Cr(e,t){t=t||{};const n={};function o(c,d,f){return $.isPlainObject(c)&&$.isPlainObject(d)?$.merge.call({caseless:f},c,d):$.isPlainObject(d)?$.merge({},d):$.isArray(d)?d.slice():d}function s(c,d,f){if($.isUndefined(d)){if(!$.isUndefined(c))return o(void 0,c,f)}else return o(c,d,f)}function i(c,d){if(!$.isUndefined(d))return o(void 0,d)}function a(c,d){if($.isUndefined(d)){if(!$.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function l(c,d,f){if(f in t)return o(c,d);if(f in e)return o(void 0,c)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,d)=>s(ip(c),ip(d),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||s,g=f(e[d],t[d],d);$.isUndefined(g)&&f!==l||(n[d]=g)}),n}const wv=e=>{const t=Cr({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=at.from(a),t.url=xv(bv(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if($.isFormData(n)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(it.hasStandardBrowserEnv&&(o&&$.isFunction(o)&&(o=o(t)),o||o!==!1&&R0(t.url))){const c=s&&i&&A0.read(i);c&&a.set(s,c)}return t},F0=typeof XMLHttpRequest<"u",M0=F0&&function(e){return new Promise(function(n,o){const s=wv(e);let i=s.data;const a=at.from(s.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=s,d,f,g,b,x;function N(){b&&b(),x&&x(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(s.method.toUpperCase(),s.url,!0),C.timeout=s.timeout;function m(){if(!C)return;const h=at.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:h,config:e,request:C};Cv(function(T){n(T),N()},function(T){o(T),N()},k),C=null}"onloadend"in C?C.onloadend=m:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(m)},C.onabort=function(){C&&(o(new ie("Request aborted",ie.ECONNABORTED,e,C)),C=null)},C.onerror=function(){o(new ie("Network Error",ie.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let y=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const k=s.transitional||yv;s.timeoutErrorMessage&&(y=s.timeoutErrorMessage),o(new ie(y,k.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,C)),C=null},i===void 0&&a.setContentType(null),"setRequestHeader"in C&&$.forEach(a.toJSON(),function(y,k){C.setRequestHeader(k,y)}),$.isUndefined(s.withCredentials)||(C.withCredentials=!!s.withCredentials),l&&l!=="json"&&(C.responseType=s.responseType),c&&([g,x]=la(c,!0),C.addEventListener("progress",g)),u&&C.upload&&([f,b]=la(u),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",b)),(s.cancelToken||s.signal)&&(d=h=>{C&&(o(!h||h.type?new mo(null,e,C):h),C.abort(),C=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const v=_0(s.url);if(v&&it.protocols.indexOf(v)===-1){o(new ie("Unsupported protocol "+v+":",ie.ERR_BAD_REQUEST,e));return}C.send(i||null)})},L0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,s;const i=function(c){if(!s){s=!0,l();const d=c instanceof Error?c:this.reason;o.abort(d instanceof ie?d:new mo(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=o;return u.unsubscribe=()=>$.asap(l),u}},B0=function*(e,t){let n=e.byteLength;if(!t||n{const s=z0(e,t);let i=0,a,l=u=>{a||(a=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await s.next();if(c){l(),u.close();return}let f=d.byteLength;if(n){let g=i+=f;n(g)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},Ua=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sv=Ua&&typeof ReadableStream=="function",W0=Ua&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),kv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},U0=Sv&&kv(()=>{let e=!1;const t=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),lp=64*1024,ou=Sv&&kv(()=>$.isReadableStream(new Response("").body)),ca={stream:ou&&(e=>e.body)};Ua&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ca[t]&&(ca[t]=$.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,o)})})})(new Response);const q0=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(it.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await W0(e)).byteLength},V0=async(e,t)=>{const n=$.toFiniteNumber(e.getContentLength());return n??q0(t)},H0=Ua&&(async e=>{let{url:t,method:n,data:o,signal:s,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:g}=wv(e);c=c?(c+"").toLowerCase():"text";let b=L0([s,i&&i.toAbortSignal()],a),x;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(u&&U0&&n!=="get"&&n!=="head"&&(C=await V0(d,o))!==0){let k=new Request(t,{method:"POST",body:o,duplex:"half"}),O;if($.isFormData(o)&&(O=k.headers.get("content-type"))&&d.setContentType(O),k.body){const[T,_]=op(C,la(sp(u)));o=ap(k.body,lp,T,_)}}$.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;x=new Request(t,{...g,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:m?f:void 0});let v=await fetch(x);const h=ou&&(c==="stream"||c==="response");if(ou&&(l||h&&N)){const k={};["status","statusText","headers"].forEach(F=>{k[F]=v[F]});const O=$.toFiniteNumber(v.headers.get("content-length")),[T,_]=l&&op(O,la(sp(l),!0))||[];v=new Response(ap(v.body,lp,T,()=>{_&&_(),N&&N()}),k)}c=c||"text";let y=await ca[$.findKey(ca,c)||"text"](v,e);return!h&&N&&N(),await new Promise((k,O)=>{Cv(k,O,{data:y,headers:at.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(m){throw N&&N(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,x),{cause:m.cause||m}):ie.from(m,m&&m.code,e,x)}}),su={http:a0,xhr:M0,fetch:H0};$.forEach(su,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cp=e=>`- ${e}`,K0=e=>$.isFunction(e)||e===null||e===!1,Ev={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,o;const s={};for(let i=0;i`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : `+i.map(cp).join(` -`):" "+cp(i[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:su};function Kl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mo(null,e)}function up(e){return Kl(e),e.headers=at.from(e.headers),e.data=Hl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ev.getAdapter(e.adapter||Os.adapter)(e).then(function(o){return Kl(e),o.data=Hl.call(e,e.transformResponse,o),o.headers=at.from(o.headers),o},function(o){return Nv(o)||(Kl(e),o&&o.response&&(o.response.data=Hl.call(e,e.transformResponse,o.response),o.response.headers=at.from(o.response.headers))),Promise.reject(o)})}const Pv="1.7.7",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const dp={};yd.transitional=function(t,n,o){function s(i,a){return"[Axios v"+Pv+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,l)=>{if(t===!1)throw new se(s(a," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!dp[a]&&(dp[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function Y0(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],a=t[i];if(a){const l=e[i],u=l===void 0||a(l,i,e);if(u!==!0)throw new se("option "+i+" must be "+u,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}}const iu={assertOptions:Y0,validators:yd},yn=iu.validators;class fr{constructor(t){this.defaults=t,this.interceptors={request:new np,response:new np}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cr(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&iu.assertOptions(o,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),s!=null&&(z.isFunction(s)?n.paramsSerializer={serialize:s}:iu.assertOptions(s,{encode:yn.function,serialize:yn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&z.merge(i.common,i[n.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=at.concat(a,i);const l=[];let u=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(u=u&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});const c=[];this.interceptors.response.forEach(function(N){c.push(N.fulfilled,N.rejected)});let d,f=0,g;if(!u){const x=[up.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,d=Promise.resolve(n);f{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(l=>{o.subscribe(l),i=l}).then(s);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,l){o.reason||(o.reason=new mo(i,a,l),n(o.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=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jd(function(s){t=s}),cancel:t}}}function G0(e){return function(n){return e.apply(null,n)}}function Q0(e){return z.isObject(e)&&e.isAxiosError===!0}const au={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(au).forEach(([e,t])=>{au[t]=e});function _v(e){const t=new fr(e),n=iv(fr.prototype.request,t);return z.extend(n,fr.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return _v(Cr(e,s))},n}const he=_v(Os);he.Axios=fr;he.CanceledError=mo;he.CancelToken=jd;he.isCancel=Nv;he.VERSION=Pv;he.toFormData=Wa;he.AxiosError=se;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=G0;he.isAxiosError=Q0;he.mergeConfig=Cr;he.AxiosHeaders=at;he.formToJSON=e=>jv(z.isHTMLForm(e)?new FormData(e):e);he.getAdapter=Ev.getAdapter;he.HttpStatusCode=au;he.default=he;const X0="http://67.225.129.127:3002",mn=he.create({baseURL:X0});mn.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const J0=e=>mn.post("/users/signup",e),Z0=e=>mn.post("/users/signin",e),eN=(e,t,n)=>mn.get(`/users/${e}/verify/${t}`,n),tN=e=>mn.post("/properties",e),nN=(e,t,n)=>mn.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),rN=e=>mn.get(`/properties/${e}`,e),oN=(e,t)=>mn.put(`/properties/${e}`,t),sN=e=>mn.get(`/users/${e}`),iN="http://67.225.129.127:3002",ji=yt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const o=await Z0(e);return t("/dashboard"),o.data}catch(o){return n(o.response.data)}}),Ni=yt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:o})=>{try{const s=await J0(e);return console.log("response",s),n.success("Register Successfully"),t("/registrationsuccess"),s.data}catch(s){return o(s.response.data)}}),Ci=yt("auth/updateUser",async({formData:e,toast:t,navigate:n},{rejectWithValue:o})=>{try{const s=await he.put(`${iN}/users/update`,e);return t.success("Updated Successfully"),n("/login"),s.data}catch(s){return o(s.response.data)}}),Ov=La({name:"auth",initialState:{user:null,error:"",loading:!1,isLoading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload},updateUser:(e,t)=>{const n=t.payload;e.user={...e.user,...n}}},extraReducers:e=>{e.addCase(ji.pending,t=>{t.loading=!0}).addCase(ji.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(ji.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ni.pending,t=>{t.loading=!0}).addCase(Ni.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Ni.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ci.pending,t=>{t.isLoading=!0}).addCase(Ci.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Ci.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:Qw,setLogout:aN,setUserDetails:Xw}=Ov.actions,lN=Ov.reducer,bi=yt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await sN(e)).data}catch(n){return t(n.response.data)}}),wi=yt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:o})=>{try{return(await eN(e,t,n)).data.message}catch(s){return o(s.response.data)}}),cN=La({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(bi.pending,t=>{t.loading=!0,t.error=null}).addCase(bi.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(bi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(wi.pending,t=>{t.loading=!0,t.error=null}).addCase(wi.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(wi.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),uN=cN.reducer,Si=yt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await tN(e)).data}catch(n){return t(n.response.data)}}),ki=yt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:o})=>{try{return(await nN(e,t,n)).data}catch(s){return o(s.response.data)}}),Go=yt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await rN(e)).data}catch(n){return t(n.response.data)}}),Ei=yt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await oN(e,t)).data}catch(o){return n(o.response.data)}}),Pi=yt("property/addFundDetails",async({id:e,fundDetails:t,toast:n},{rejectWithValue:o})=>{try{const s=await he.put(`http://67.225.129.127:3002/properties/${e}/fund-details`,t);return n.success("Submitted Successfully"),s.data}catch(s){return o(s.response.data)}}),_i=yt("property/deleteFundDetail",async({id:e,fundDetailId:t,token:n},{rejectWithValue:o})=>{try{return(await he.delete(`http://67.225.129.127:3002/properties/${e}/fund-details/${t}`,{headers:{Authorization:`Bearer ${n}`}})).data}catch(s){return o(s.response.data)}}),Qo=yt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await he.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),dN=La({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[],fundDetails:[]},reducers:{},extraReducers:e=>{e.addCase(Si.pending,t=>{t.status="loading"}).addCase(Si.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Si.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ki.pending,t=>{t.loading=!0}).addCase(ki.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(ki.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Go.pending,t=>{t.status="loading"}).addCase(Go.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Go.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ei.pending,t=>{t.status="loading"}).addCase(Ei.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ei.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Qo.pending,t=>{t.loading=!0}).addCase(Qo.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(Qo.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message}).addCase(Pi.pending,t=>{t.loading=!0}).addCase(Pi.fulfilled,(t,n)=>{t.loading=!1,t.property=n.payload.property}).addCase(Pi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(_i.pending,t=>{t.loading=!0}).addCase(_i.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=t.fundDetails.filter(o=>o._id!==n.meta.arg.id)}).addCase(_i.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),fN=dN.reducer,Yl=yt("fundDetails/fetchFundDetails",async(e,{rejectWithValue:t})=>{try{return(await he.get(`http://67.225.129.127:3002/properties/${e}/fund-details`)).data.fundDetails}catch(n){return t(n.response.data)}}),pN=La({name:"fundDetails",initialState:{fundDetails:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Yl.pending,t=>{t.loading=!0}).addCase(Yl.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=n.payload}).addCase(Yl.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),mN=pN.reducer,hN=n1({reducer:{auth:lN,user:uN,property:fN,fundDetails:mN}});/** +`):" "+cp(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:su};function Kl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mo(null,e)}function up(e){return Kl(e),e.headers=at.from(e.headers),e.data=Hl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ev.getAdapter(e.adapter||Os.adapter)(e).then(function(o){return Kl(e),o.data=Hl.call(e,e.transformResponse,o),o.headers=at.from(o.headers),o},function(o){return Nv(o)||(Kl(e),o&&o.response&&(o.response.data=Hl.call(e,e.transformResponse,o.response),o.response.headers=at.from(o.response.headers))),Promise.reject(o)})}const Pv="1.7.7",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const dp={};yd.transitional=function(t,n,o){function s(i,a){return"[Axios v"+Pv+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,l)=>{if(t===!1)throw new ie(s(a," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!dp[a]&&(dp[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function Y0(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],a=t[i];if(a){const l=e[i],u=l===void 0||a(l,i,e);if(u!==!0)throw new ie("option "+i+" must be "+u,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const iu={assertOptions:Y0,validators:yd},yn=iu.validators;class fr{constructor(t){this.defaults=t,this.interceptors={request:new np,response:new np}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=` +`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cr(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&iu.assertOptions(o,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),s!=null&&($.isFunction(s)?n.paramsSerializer={serialize:s}:iu.assertOptions(s,{encode:yn.function,serialize:yn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&$.merge(i.common,i[n.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=at.concat(a,i);const l=[];let u=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(u=u&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});const c=[];this.interceptors.response.forEach(function(N){c.push(N.fulfilled,N.rejected)});let d,f=0,g;if(!u){const x=[up.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,d=Promise.resolve(n);f{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(l=>{o.subscribe(l),i=l}).then(s);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,l){o.reason||(o.reason=new mo(i,a,l),n(o.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=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jd(function(s){t=s}),cancel:t}}}function G0(e){return function(n){return e.apply(null,n)}}function Q0(e){return $.isObject(e)&&e.isAxiosError===!0}const au={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(au).forEach(([e,t])=>{au[t]=e});function _v(e){const t=new fr(e),n=iv(fr.prototype.request,t);return $.extend(n,fr.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return _v(Cr(e,s))},n}const he=_v(Os);he.Axios=fr;he.CanceledError=mo;he.CancelToken=jd;he.isCancel=Nv;he.VERSION=Pv;he.toFormData=Wa;he.AxiosError=ie;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=G0;he.isAxiosError=Q0;he.mergeConfig=Cr;he.AxiosHeaders=at;he.formToJSON=e=>jv($.isHTMLForm(e)?new FormData(e):e);he.getAdapter=Ev.getAdapter;he.HttpStatusCode=au;he.default=he;const X0="http://67.225.129.127:3002",mn=he.create({baseURL:X0});mn.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const J0=e=>mn.post("/users/signup",e),Z0=e=>mn.post("/users/signin",e),eN=(e,t,n)=>mn.get(`/users/${e}/verify/${t}`,n),tN=e=>mn.post("/properties",e),nN=(e,t,n)=>mn.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),rN=e=>mn.get(`/properties/${e}`,e),oN=(e,t)=>mn.put(`/properties/${e}`,t),sN=e=>mn.get(`/users/${e}`),iN="http://67.225.129.127:3002",ji=yt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const o=await Z0(e);return t("/dashboard"),o.data}catch(o){return n(o.response.data)}}),Ni=yt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:o})=>{try{const s=await J0(e);return console.log("response",s),n.success("Register Successfully"),t("/registrationsuccess"),s.data}catch(s){return o(s.response.data)}}),Ci=yt("auth/updateUser",async({formData:e,toast:t,navigate:n},{rejectWithValue:o})=>{try{const s=await he.put(`${iN}/users/update`,e);return t.success("Updated Successfully"),n("/login"),s.data}catch(s){return o(s.response.data)}}),Ov=La({name:"auth",initialState:{user:null,error:"",loading:!1,isLoading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload},updateUser:(e,t)=>{const n=t.payload;e.user={...e.user,...n}}},extraReducers:e=>{e.addCase(ji.pending,t=>{t.loading=!0}).addCase(ji.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(ji.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ni.pending,t=>{t.loading=!0}).addCase(Ni.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Ni.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ci.pending,t=>{t.isLoading=!0}).addCase(Ci.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Ci.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:Qw,setLogout:aN,setUserDetails:Xw}=Ov.actions,lN=Ov.reducer,bi=yt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await sN(e)).data}catch(n){return t(n.response.data)}}),wi=yt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:o})=>{try{return(await eN(e,t,n)).data.message}catch(s){return o(s.response.data)}}),cN=La({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(bi.pending,t=>{t.loading=!0,t.error=null}).addCase(bi.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(bi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(wi.pending,t=>{t.loading=!0,t.error=null}).addCase(wi.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(wi.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),uN=cN.reducer,Si=yt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await tN(e)).data}catch(n){return t(n.response.data)}}),ki=yt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:o})=>{try{return(await nN(e,t,n)).data}catch(s){return o(s.response.data)}}),Go=yt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await rN(e)).data}catch(n){return t(n.response.data)}}),Ei=yt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await oN(e,t)).data}catch(o){return n(o.response.data)}}),Pi=yt("property/addFundDetails",async({id:e,fundDetails:t,toast:n},{rejectWithValue:o})=>{try{const s=await he.put(`http://67.225.129.127:3002/properties/${e}/fund-details`,t);return n.success("Submitted Successfully"),s.data}catch(s){return o(s.response.data)}}),_i=yt("property/deleteFundDetail",async({id:e,fundDetailId:t,token:n},{rejectWithValue:o})=>{try{return(await he.delete(`http://67.225.129.127:3002/properties/${e}/fund-details/${t}`,{headers:{Authorization:`Bearer ${n}`}})).data}catch(s){return o(s.response.data)}}),Qo=yt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await he.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),dN=La({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[],fundDetails:[]},reducers:{},extraReducers:e=>{e.addCase(Si.pending,t=>{t.status="loading"}).addCase(Si.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Si.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ki.pending,t=>{t.loading=!0}).addCase(ki.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(ki.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Go.pending,t=>{t.status="loading"}).addCase(Go.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Go.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ei.pending,t=>{t.status="loading"}).addCase(Ei.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ei.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Qo.pending,t=>{t.loading=!0}).addCase(Qo.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(Qo.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message}).addCase(Pi.pending,t=>{t.loading=!0}).addCase(Pi.fulfilled,(t,n)=>{t.loading=!1,t.property=n.payload.property}).addCase(Pi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(_i.pending,t=>{t.loading=!0}).addCase(_i.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=t.fundDetails.filter(o=>o._id!==n.meta.arg.id)}).addCase(_i.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),fN=dN.reducer,Yl=yt("fundDetails/fetchFundDetails",async(e,{rejectWithValue:t})=>{try{return(await he.get(`http://67.225.129.127:3002/properties/${e}/fund-details`)).data.fundDetails}catch(n){return t(n.response.data)}}),pN=La({name:"fundDetails",initialState:{fundDetails:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Yl.pending,t=>{t.loading=!0}).addCase(Yl.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=n.payload}).addCase(Yl.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),mN=pN.reducer,hN=n1({reducer:{auth:lN,user:uN,property:fN,fundDetails:mN}});/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. @@ -68,7 +68,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){o.go(c);return}let f=Dv(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:zn([t,f.pathname])),(d.replace?o.replace:o.push)(f,d.state,d)},[t,o,a,i,e])}function go(){let{matches:e}=S.useContext(Yn),t=e[e.length-1];return t?t.params:{}}function Ha(e,t){let{relative:n}=t===void 0?{}:t,{future:o}=S.useContext(Kn),{matches:s}=S.useContext(Yn),{pathname:i}=Rs(),a=JSON.stringify(Iv(s,o.v7_relativeSplatPath));return S.useMemo(()=>Dv(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function UN(e,t){return qN(e,t)}function qN(e,t,n,o){Ts()||Ee(!1);let{navigator:s}=S.useContext(Kn),{matches:i}=S.useContext(Yn),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Rs(),d;if(t){var f;let C=typeof t=="string"?ho(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||Ee(!1),d=C}else d=c;let g=d.pathname||"/",b=g;if(u!=="/"){let C=u.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=yN(e,{pathname:b}),N=GN(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:zn([u,s.encodeLocation?s.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:zn([u,s.encodeLocation?s.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,o);return t&&N?S.createElement(Va.Provider,{value:{location:ys({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:On.Pop}},N):N}function VN(){let e=ZN(),t=BN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:s},n):null,null)}const HN=S.createElement(VN,null);class KN extends S.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?S.createElement(Yn.Provider,{value:this.props.routeContext},S.createElement(Lv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function YN(e){let{routeContext:t,match:n,children:o}=e,s=S.useContext(qa);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Yn.Provider,{value:t},o)}function GN(e,t,n,o){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),o===void 0&&(o=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=o)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Ee(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(n&&o&&o.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,g)=>{let b,x=!1,N=null,C=null;n&&(b=l&&f.route.id?l[f.route.id]:void 0,N=f.route.errorElement||HN,u&&(c<0&&g===0?(x=!0,C=null):c===g&&(x=!0,C=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,g+1)),v=()=>{let h;return b?h=N:x?h=C:f.route.Component?h=S.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=d,S.createElement(YN,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?S.createElement(KN,{location:n.location,revalidation:n.revalidation,component:N,error:b,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var zv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zv||{}),fa=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}(fa||{});function QN(e){let t=S.useContext(qa);return t||Ee(!1),t}function XN(e){let t=S.useContext(Mv);return t||Ee(!1),t}function JN(e){let t=S.useContext(Yn);return t||Ee(!1),t}function $v(e){let t=JN(),n=t.matches[t.matches.length-1];return n.route.id||Ee(!1),n.route.id}function ZN(){var e;let t=S.useContext(Lv),n=XN(fa.UseRouteError),o=$v(fa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[o]}function eC(){let{router:e}=QN(zv.UseNavigateStable),t=$v(fa.UseNavigateStable),n=S.useRef(!1);return Bv(()=>{n.current=!0}),S.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ys({fromRouteId:t},i)))},[e,t])}function Ie(e){Ee(!1)}function tC(e){let{basename:t="/",children:n=null,location:o,navigationType:s=On.Pop,navigator:i,static:a=!1,future:l}=e;Ts()&&Ee(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:i,static:a,future:ys({v7_relativeSplatPath:!1},l)}),[u,l,i,a]);typeof o=="string"&&(o=ho(o));let{pathname:d="/",search:f="",hash:g="",state:b=null,key:x="default"}=o,N=S.useMemo(()=>{let C=lo(d,u);return C==null?null:{location:{pathname:C,search:f,hash:g,state:b,key:x},navigationType:s}},[u,d,f,g,b,x,s]);return N==null?null:S.createElement(Kn.Provider,{value:c},S.createElement(Va.Provider,{children:n,value:N}))}function nC(e){let{children:t,location:n}=e;return UN(cu(t),n)}new Promise(()=>{});function cu(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(o,s)=>{if(!S.isValidElement(o))return;let i=[...t,s];if(o.type===S.Fragment){n.push.apply(n,cu(o.props.children,i));return}o.type!==Ie&&Ee(!1),!o.props.index||!o.props.children||Ee(!1);let a={id:o.props.id||i.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(a.children=cu(o.props.children,i)),n.push(a)}),n}/** + */function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){o.go(c);return}let f=Dv(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:zn([t,f.pathname])),(d.replace?o.replace:o.push)(f,d.state,d)},[t,o,a,i,e])}function go(){let{matches:e}=S.useContext(Yn),t=e[e.length-1];return t?t.params:{}}function Ha(e,t){let{relative:n}=t===void 0?{}:t,{future:o}=S.useContext(Kn),{matches:s}=S.useContext(Yn),{pathname:i}=Rs(),a=JSON.stringify(Iv(s,o.v7_relativeSplatPath));return S.useMemo(()=>Dv(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function UN(e,t){return qN(e,t)}function qN(e,t,n,o){Ts()||Ee(!1);let{navigator:s}=S.useContext(Kn),{matches:i}=S.useContext(Yn),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Rs(),d;if(t){var f;let C=typeof t=="string"?ho(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||Ee(!1),d=C}else d=c;let g=d.pathname||"/",b=g;if(u!=="/"){let C=u.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=yN(e,{pathname:b}),N=GN(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:zn([u,s.encodeLocation?s.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:zn([u,s.encodeLocation?s.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,o);return t&&N?S.createElement(Va.Provider,{value:{location:ys({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:On.Pop}},N):N}function VN(){let e=ZN(),t=BN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:s},n):null,null)}const HN=S.createElement(VN,null);class KN extends S.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?S.createElement(Yn.Provider,{value:this.props.routeContext},S.createElement(Lv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function YN(e){let{routeContext:t,match:n,children:o}=e,s=S.useContext(qa);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Yn.Provider,{value:t},o)}function GN(e,t,n,o){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),o===void 0&&(o=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=o)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Ee(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(n&&o&&o.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,g)=>{let b,x=!1,N=null,C=null;n&&(b=l&&f.route.id?l[f.route.id]:void 0,N=f.route.errorElement||HN,u&&(c<0&&g===0?(x=!0,C=null):c===g&&(x=!0,C=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,g+1)),v=()=>{let h;return b?h=N:x?h=C:f.route.Component?h=S.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=d,S.createElement(YN,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?S.createElement(KN,{location:n.location,revalidation:n.revalidation,component:N,error:b,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var zv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zv||{}),fa=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}(fa||{});function QN(e){let t=S.useContext(qa);return t||Ee(!1),t}function XN(e){let t=S.useContext(Mv);return t||Ee(!1),t}function JN(e){let t=S.useContext(Yn);return t||Ee(!1),t}function $v(e){let t=JN(),n=t.matches[t.matches.length-1];return n.route.id||Ee(!1),n.route.id}function ZN(){var e;let t=S.useContext(Lv),n=XN(fa.UseRouteError),o=$v(fa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[o]}function eC(){let{router:e}=QN(zv.UseNavigateStable),t=$v(fa.UseNavigateStable),n=S.useRef(!1);return Bv(()=>{n.current=!0}),S.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ys({fromRouteId:t},i)))},[e,t])}function Ae(e){Ee(!1)}function tC(e){let{basename:t="/",children:n=null,location:o,navigationType:s=On.Pop,navigator:i,static:a=!1,future:l}=e;Ts()&&Ee(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:i,static:a,future:ys({v7_relativeSplatPath:!1},l)}),[u,l,i,a]);typeof o=="string"&&(o=ho(o));let{pathname:d="/",search:f="",hash:g="",state:b=null,key:x="default"}=o,N=S.useMemo(()=>{let C=lo(d,u);return C==null?null:{location:{pathname:C,search:f,hash:g,state:b,key:x},navigationType:s}},[u,d,f,g,b,x,s]);return N==null?null:S.createElement(Kn.Provider,{value:c},S.createElement(Va.Provider,{children:n,value:N}))}function nC(e){let{children:t,location:n}=e;return UN(cu(t),n)}new Promise(()=>{});function cu(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(o,s)=>{if(!S.isValidElement(o))return;let i=[...t,s];if(o.type===S.Fragment){n.push.apply(n,cu(o.props.children,i));return}o.type!==Ae&&Ee(!1),!o.props.index||!o.props.children||Ee(!1);let a={id:o.props.id||i.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(a.children=cu(o.props.children,i)),n.push(a)}),n}/** * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. @@ -77,13 +77,13 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[s]=e[s]);return n}function rC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oC(e,t){return e.button===0&&(!t||t==="_self")&&!rC(e)}const sC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],iC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],aC="6";try{window.__reactRouterVersion=aC}catch{}const lC=S.createContext({isTransitioning:!1}),cC="startTransition",vp=nc[cC];function uC(e){let{basename:t,children:n,future:o,window:s}=e,i=S.useRef();i.current==null&&(i.current=vN({window:s,v5Compat:!0}));let a=i.current,[l,u]=S.useState({action:a.action,location:a.location}),{v7_startTransition:c}=o||{},d=S.useCallback(f=>{c&&vp?vp(()=>u(f)):u(f)},[u,c]);return S.useLayoutEffect(()=>a.listen(d),[a,d]),S.createElement(tC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:o})}const dC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pC=S.forwardRef(function(t,n){let{onClick:o,relative:s,reloadDocument:i,replace:a,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,g=Wv(t,sC),{basename:b}=S.useContext(Kn),x,N=!1;if(typeof c=="string"&&fC.test(c)&&(x=c,dC))try{let h=new URL(window.location.href),y=c.startsWith("//")?new URL(h.protocol+c):new URL(c),k=lo(y.pathname,b);y.origin===h.origin&&k!=null?c=k+y.search+y.hash:N=!0}catch{}let C=$N(c,{relative:s}),m=hC(c,{replace:a,state:l,target:u,preventScrollReset:d,relative:s,unstable_viewTransition:f});function v(h){o&&o(h),h.defaultPrevented||m(h)}return S.createElement("a",pa({},g,{href:x||C,onClick:N||i?o:v,ref:n,target:u}))}),Ne=S.forwardRef(function(t,n){let{"aria-current":o="page",caseSensitive:s=!1,className:i="",end:a=!1,style:l,to:u,unstable_viewTransition:c,children:d}=t,f=Wv(t,iC),g=Ha(u,{relative:f.relative}),b=Rs(),x=S.useContext(Mv),{navigator:N,basename:C}=S.useContext(Kn),m=x!=null&&vC(g)&&c===!0,v=N.encodeLocation?N.encodeLocation(g).pathname:g.pathname,h=b.pathname,y=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;s||(h=h.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&C&&(y=lo(y,C)||y);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let P=h===v||!a&&h.startsWith(v)&&h.charAt(k)==="/",T=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),O={isActive:P,isPending:T,isTransitioning:m},M=P?o:void 0,$;typeof i=="function"?$=i(O):$=[i,P?"active":null,T?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(O):l;return S.createElement(pC,pa({},f,{"aria-current":M,className:$,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(O):d)});var uu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uu||(uu={}));var gp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gp||(gp={}));function mC(e){let t=S.useContext(qa);return t||Ee(!1),t}function hC(e,t){let{target:n,replace:o,state:s,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,u=vo(),c=Rs(),d=Ha(e,{relative:a});return S.useCallback(f=>{if(oC(f,n)){f.preventDefault();let g=o!==void 0?o:ua(c)===ua(d);u(e,{replace:g,state:s,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,u,d,o,s,n,e,i,a,l])}function vC(e,t){t===void 0&&(t={});let n=S.useContext(lC);n==null&&Ee(!1);let{basename:o}=mC(uu.useViewTransitionState),s=Ha(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=lo(n.currentLocation.pathname,o)||n.currentLocation.pathname,a=lo(n.nextLocation.pathname,o)||n.nextLocation.pathname;return da(s.pathname,a)!=null||da(s.pathname,i)!=null}function Uv(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),pr=e=>typeof e=="string",dt=e=>typeof e=="function",Oi=e=>pr(e)||dt(e)?e:null,du=e=>S.isValidElement(e)||pr(e)||dt(e)||js(e);function gC(e,t,n){n===void 0&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)})})}function Ka(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:s=!0,collapseDuration:i=300}=e;return function(a){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:g,playToast:b}=a;const x=o?`${t}--${u}`:t,N=o?`${n}--${u}`:n,C=S.useRef(0);return S.useLayoutEffect(()=>{const m=f.current,v=x.split(" "),h=y=>{y.target===f.current&&(b(),m.removeEventListener("animationend",h),m.removeEventListener("animationcancel",h),C.current===0&&y.type!=="animationcancel"&&m.classList.remove(...v))};m.classList.add(...v),m.addEventListener("animationend",h),m.addEventListener("animationcancel",h)},[]),S.useEffect(()=>{const m=f.current,v=()=>{m.removeEventListener("animationend",v),s?gC(m,d,i):d()};g||(c?v():(C.current=1,m.className+=` ${N}`,m.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function xp(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 Ye=new Map;let Ns=[];const fu=new Set,xC=e=>fu.forEach(t=>t(e)),qv=()=>Ye.size>0;function Vv(e,t){var n;if(t)return!((n=Ye.get(t))==null||!n.isToastActive(e));let o=!1;return Ye.forEach(s=>{s.isToastActive(e)&&(o=!0)}),o}function Hv(e,t){du(e)&&(qv()||Ns.push({content:e,options:t}),Ye.forEach(n=>{n.buildToast(e,t)}))}function yp(e,t){Ye.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 yC(e){const{subscribe:t,getSnapshot:n,setProps:o}=S.useRef(function(i){const a=i.containerId||1;return{subscribe(l){const u=function(d,f,g){let b=1,x=0,N=[],C=[],m=[],v=f;const h=new Map,y=new Set,k=()=>{m=Array.from(h.values()),y.forEach(O=>O())},P=O=>{C=O==null?[]:C.filter(M=>M!==O),k()},T=O=>{const{toastId:M,onOpen:$,updateId:H,children:te}=O.props,Q=H==null;O.staleId&&h.delete(O.staleId),h.set(M,O),C=[...C,O.props.toastId].filter(Z=>Z!==O.staleId),k(),g(xp(O,Q?"added":"updated")),Q&&dt($)&&$(S.isValidElement(te)&&te.props)};return{id:d,props:v,observe:O=>(y.add(O),()=>y.delete(O)),toggle:(O,M)=>{h.forEach($=>{M!=null&&M!==$.props.toastId||dt($.toggle)&&$.toggle(O)})},removeToast:P,toasts:h,clearQueue:()=>{x-=N.length,N=[]},buildToast:(O,M)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==d:d!==1,ne=h.has(Y)&&ee==null;return re||ne})(M))return;const{toastId:$,updateId:H,data:te,staleId:Q,delay:Z}=M,D=()=>{P($)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:b++,...Object.fromEntries(Object.entries(M).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:$,updateId:H,data:te,closeToast:D,isIn:!1,className:Oi(M.className||v.toastClassName),bodyClassName:Oi(M.bodyClassName||v.bodyClassName),progressClassName:Oi(M.progressClassName||v.progressClassName),autoClose:!M.isLoading&&(R=M.autoClose,A=v.autoClose,R===!1||js(R)&&R>0?R:A),deleteToast(){const W=h.get($),{onClose:K,children:Y}=W.props;dt(K)&&K(S.isValidElement(Y)&&Y.props),g(xp(W,"removed")),h.delete($),x--,x<0&&(x=0),N.length>0?T(N.shift()):k()}};var R,A;G.closeButton=v.closeButton,M.closeButton===!1||du(M.closeButton)?G.closeButton=M.closeButton:M.closeButton===!0&&(G.closeButton=!du(v.closeButton)||v.closeButton);let B=O;S.isValidElement(O)&&!pr(O.type)?B=S.cloneElement(O,{closeToast:D,toastProps:G,data:te}):dt(O)&&(B=O({closeToast:D,toastProps:G,data:te}));const F={content:B,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?N.push(F):js(Z)?setTimeout(()=>{T(F)},Z):T(F)},setProps(O){v=O},setToggle:(O,M)=>{h.get(O).toggle=M},isToastActive:O=>C.some(M=>M===O),getSnapshot:()=>v.newestOnTop?m.reverse():m}}(a,i,xC);Ye.set(a,u);const c=u.observe(l);return Ns.forEach(d=>Hv(d.content,d.options)),Ns=[],()=>{c(),Ye.delete(a)}},setProps(l){var u;(u=Ye.get(a))==null||u.setProps(l)},getSnapshot(){var l;return(l=Ye.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;o(e);const s=S.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!s)return[];const a=new Map;return s.forEach(l=>{const{position:u}=l.props;a.has(u)||a.set(u,[]),a.get(u).push(l)}),Array.from(a,l=>i(l[0],l[1]))},isToastActive:Vv,count:s==null?void 0:s.length}}function jC(e){const[t,n]=S.useState(!1),[o,s]=S.useState(!1),i=S.useRef(null),a=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var g,b;function x(){n(!0)}function N(){n(!1)}function C(h){const y=i.current;a.canDrag&&y&&(a.didMove=!0,t&&N(),a.delta=e.draggableDirection==="x"?h.clientX-a.start:h.clientY-a.start,a.start!==h.clientX&&(a.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function m(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",m);const h=i.current;if(a.canDrag&&a.didMove&&h){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(b=Ye.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||b.setToggle(g.id,g.fn),S.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||N(),window.addEventListener("focus",x),window.addEventListener("blur",N),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",N)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){a.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",m);const y=i.current;a.canCloseOnClick=!0,a.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(a.start=h.clientX,a.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(a.start=h.clientY,a.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:y,bottom:k,left:P,right:T}=i.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=P&&h.clientX<=T&&h.clientY>=y&&h.clientY<=k?N():x()}};return l&&u&&(v.onMouseEnter=N,e.stacked||(v.onMouseLeave=x)),f&&(v.onClick=h=>{d&&d(h),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:N,isRunning:t,preventExitTransition:o,toastRef:i,eventHandlers:v}}function NC(e){let{delay:t,isRunning:n,closeToast:o,type:s="default",hide:i,className:a,style:l,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:g}=e;const b=i||u&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(x.transform=`scaleX(${c})`);const N=Tn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":d}),C=dt(a)?a({rtl:d,type:s,defaultClassName:N}):Tn(N,a),m={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&o()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${s}`}),I.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:C,style:x,...m}))}let CC=1;const Kv=()=>""+CC++;function bC(e){return e&&(pr(e.toastId)||js(e.toastId))?e.toastId:Kv()}function Xo(e,t){return Hv(e,t),t.toastId}function ma(e,t){return{...t,type:t&&t.type||e,toastId:bC(t)}}function ti(e){return(t,n)=>Xo(t,ma(e,n))}function ie(e,t){return Xo(e,ma("default",t))}ie.loading=(e,t)=>Xo(e,ma("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ie.promise=function(e,t,n){let o,{pending:s,error:i,success:a}=t;s&&(o=pr(s)?ie.loading(s,n):ie.loading(s.render,{...n,...s}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,g)=>{if(f==null)return void ie.dismiss(o);const b={type:d,...l,...n,data:g},x=pr(f)?{render:f}:f;return o?ie.update(o,{...b,...x}):ie(x.render,{...b,...x}),g},c=dt(e)?e():e;return c.then(d=>u("success",a,d)).catch(d=>u("error",i,d)),c},ie.success=ti("success"),ie.info=ti("info"),ie.error=ti("error"),ie.warning=ti("warning"),ie.warn=ie.warning,ie.dark=(e,t)=>Xo(e,ma("default",{theme:"dark",...t})),ie.dismiss=function(e){(function(t){var n;if(qv()){if(t==null||pr(n=t)||js(n))Ye.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const o=Ye.get(t.containerId);o?o.removeToast(t.id):Ye.forEach(s=>{s.removeToast(t.id)})}}else Ns=Ns.filter(o=>t!=null&&o.options.toastId!==t)})(e)},ie.clearWaitingQueue=function(e){e===void 0&&(e={}),Ye.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ie.isActive=Vv,ie.update=function(e,t){t===void 0&&(t={});const n=((o,s)=>{var i;let{containerId:a}=s;return(i=Ye.get(a||1))==null?void 0:i.toasts.get(o)})(e,t);if(n){const{props:o,content:s}=n,i={delay:100,...o,...t,toastId:t.toastId||e,updateId:Kv()};i.toastId!==e&&(i.staleId=e);const a=i.render||s;delete i.render,Xo(a,i)}},ie.done=e=>{ie.update(e,{progress:1})},ie.onChange=function(e){return fu.add(e),()=>{fu.delete(e)}},ie.play=e=>yp(!0,e),ie.pause=e=>yp(!1,e);const wC=typeof window<"u"?S.useLayoutEffect:S.useEffect,ni=e=>{let{theme:t,type:n,isLoading:o,...s}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...s})},Ql={info:function(e){return I.createElement(ni,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(ni,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(ni,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(ni,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},SC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:s,playToast:i}=jC(e),{closeButton:a,children:l,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:g,transition:b,position:x,className:N,style:C,bodyClassName:m,bodyStyle:v,progressClassName:h,progressStyle:y,updateId:k,role:P,progress:T,rtl:O,toastId:M,deleteToast:$,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,D=Tn("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":Q}),U=dt(N)?N({rtl:O,position:x,type:d,defaultClassName:D}):Tn(D,N),G=function(F){let{theme:W,type:K,isLoading:Y,icon:ee}=F,re=null;const ne={theme:W,type:K};return ee===!1||(dt(ee)?re=ee({...ne,isLoading:Y}):S.isValidElement(ee)?re=S.cloneElement(ee,ne):Y?re=Ql.spinner():(oe=>oe in Ql)(K)&&(re=Ql[K](ne))),re}(e),R=!!T||!u,A={closeToast:g,type:d,theme:Z};let B=null;return a===!1||(B=dt(a)?a(A):S.isValidElement(a)?S.cloneElement(a,A):function(F){let{closeToast:W,theme:K,ariaLabel:Y="close"}=F;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),W(ee)},"aria-label":Y},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(A)),I.createElement(b,{isIn:H,done:$,position:x,preventExitTransition:n,nodeRef:o,playToast:i},I.createElement("div",{id:M,onClick:c,"data-in":H,className:U,...s,style:C,ref:o},I.createElement("div",{...H&&{role:P},className:dt(m)?m({type:d}):Tn("Toastify__toast-body",m),style:v},G!=null&&I.createElement("div",{className:Tn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),B,I.createElement(NC,{...k&&!R?{key:`pb-${k}`}:{},rtl:O,theme:Z,delay:u,isRunning:t,isIn:H,closeToast:g,hide:f,type:d,style:y,className:h,controlledProgress:R,progress:T||0})))},Ya=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},kC=Ka(Ya("bounce",!0));Ka(Ya("slide",!0));Ka(Ya("zoom"));Ka(Ya("flip"));const EC={position:"top-right",transition:kC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function PC(e){let t={...EC,...e};const n=e.stacked,[o,s]=S.useState(!0),i=S.useRef(null),{getToastToRender:a,isToastActive:l,count:u}=yC(t),{className:c,style:d,rtl:f,containerId:g}=t;function b(N){const C=Tn("Toastify__toast-container",`Toastify__toast-container--${N}`,{"Toastify__toast-container--rtl":f});return dt(c)?c({position:N,rtl:f,defaultClassName:C}):Tn(C,Oi(c))}function x(){n&&(s(!0),ie.play())}return wC(()=>{if(n){var N;const C=i.current.querySelectorAll('[data-in="true"]'),m=12,v=(N=t.position)==null?void 0:N.includes("top");let h=0,y=0;Array.from(C).reverse().forEach((k,P)=>{const T=k;T.classList.add("Toastify__toast--stacked"),P>0&&(T.dataset.collapsed=`${o}`),T.dataset.pos||(T.dataset.pos=v?"top":"bot");const O=h*(o?.2:1)+(o?0:m*P);T.style.setProperty("--y",`${v?O:-1*O}px`),T.style.setProperty("--g",`${m}`),T.style.setProperty("--s",""+(1-(o?y:0))),h+=T.offsetHeight,y+=.025})}},[o,u,n]),I.createElement("div",{ref:i,className:"Toastify",id:g,onMouseEnter:()=>{n&&(s(!1),ie.pause())},onMouseLeave:x},a((N,C)=>{const m=C.length?{...d}:{...d,pointerEvents:"none"};return I.createElement("div",{className:b(N),style:m,key:`container-${N}`},C.map(v=>{let{content:h,props:y}=v;return I.createElement(SC,{...y,stacked:n,collapseAll:x,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},h)}))}))}const Ze=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(Ne,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(Ne,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(Ne,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(Ne,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},_C="/assets/logo-Cb1x1exd.png",Re=()=>{var s,i;const{user:e}=Qe(a=>({...a.auth})),t=Ft(),n=vo(),o=()=>{t(aN()),n("/")};return r.jsx(r.Fragment,{children:r.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:r.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsx("img",{src:_C,alt:"logo",width:"75",height:"75",className:"img-fluid"}),r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),r.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[r.jsxs("ul",{className:"navbar-nav ml-auto",children:[r.jsx("li",{className:"nav-item active",children:r.jsx(Ne,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(s=e==null?void 0:e.result)!=null&&s._id?r.jsx(Ne,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):r.jsx(Ne,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(i=e==null?void 0:e.result)!=null&&i._id?r.jsx(Ne,{to:"/login",children:r.jsx("p",{className:"header-text",onClick:o,style:{fontWeight:"bold"},children:"Logout"})}):r.jsx(Ne,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},OC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsx("div",{className:"header_section",children:r.jsx("div",{className:"banner_section layout_padding",children:r.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[r.jsxs("div",{className:"carousel-inner",children:[r.jsx("div",{className:"carousel-item active",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),r.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),r.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),r.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),r.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:r.jsx("i",{className:"fa fa-angle-left"})}),r.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:r.jsx("i",{className:"fa fa-angle-right"})})]})})}),r.jsx("div",{className:"services_section layout_padding",children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"row",children:r.jsxs("div",{className:"col-sm-12",children:[r.jsx("h1",{className:"services_taital",children:"Our Services"}),r.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),r.jsx(Ze,{})]}),TC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(Ze,{})]}),RC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(Ze,{})]});var tn=function(){return tn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n{const[e,t]=S.useState(rb),[n,o]=S.useState(!1),{loading:s,error:i}=Qe(k=>({...k.auth})),{title:a,email:l,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:g,termsconditions:b,userType:x}=e,N=Ft(),C=vo();S.useEffect(()=>{i&&ie.error(i)},[i]),S.useEffect(()=>{o(a!=="None"&&l&&u&&c&&d&&f&&g&&b&&x!=="")},[a,l,u,c,d,f,g,b,x]);const m=k=>{if(k.preventDefault(),u!==g)return ie.error("Password should match");n?N(Ni({formValue:e,navigate:C,toast:ie})):ie.error("Please fill in all fields and select all checkboxes")},v=k=>k.charAt(0).toUpperCase()+k.slice(1),h=k=>{const{name:P,value:T,type:O,checked:M}=k.target;t(O==="checkbox"?$=>({...$,[P]:M}):$=>({...$,[P]:P==="email"||P==="password"||P==="confirmPassword"?T:v(T)}))},y=k=>{t(P=>({...P,userType:k.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Registration"}),r.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:y,required:!0}),r.jsx("label",{className:"form-check-label",children:"Lender"})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:x==="Borrower",onChange:y,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:h,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:h,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:b,name:"termsconditions",checked:b,onChange:h,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||s,children:[s&&r.jsx(Yv.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(Ze,{})]})},sb={email:"",password:""},ib=()=>{const[e,t]=S.useState(sb),{loading:n,error:o}=Qe(d=>({...d.auth})),{email:s,password:i}=e,a=Ft(),l=vo();S.useEffect(()=>{o&&ie.error(o)},[o]);const u=d=>{d.preventDefault(),s&&i&&a(ji({formValue:e,navigate:l,toast:ie}))},c=d=>{let{name:f,value:g}=d.target;t({...e,[f]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:s,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:i,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(Yv.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(Ne,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(Ne,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(Ze,{})]})},Ti="/assets/samplepic-BM_cnzgz.jpg";var Gv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Dg,function(){return function(n){function o(i){if(s[i])return s[i].exports;var a=s[i]={exports:{},id:i,loaded:!1};return n[i].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}var s={};return o.m=n,o.c=s,o.p="",o(0)}([function(n,o,s){function i(b){return b&&b.__esModule?b:{default:b}}function a(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function l(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?b:x}function u(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}Object.defineProperty(o,"__esModule",{value:!0});var c=function(){function b(x,N){for(var C=0;C1)for(var k=1;k1?d-1:0),g=1;g2?f-2:0),b=2;b1){for(var Z=Array(Q),D=0;D"u"||O.$$typeof!==m)){var G=typeof y=="function"?y.displayName||y.name||"Unknown":y;M&&u(O,G),$&&c(O,G)}return h(y,M,$,H,te,b.current,O)},h.createFactory=function(y){var k=h.createElement.bind(null,y);return k.type=y,k},h.cloneAndReplaceKey=function(y,k){var P=h(y.type,k,y.ref,y._self,y._source,y._owner,y.props);return P},h.cloneElement=function(y,k,P){var T,O=g({},y.props),M=y.key,$=y.ref,H=y._self,te=y._source,Q=y._owner;if(k!=null){a(k)&&($=k.ref,Q=b.current),l(k)&&(M=""+k.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(T in k)C.call(k,T)&&!v.hasOwnProperty(T)&&(k[T]===void 0&&Z!==void 0?O[T]=Z[T]:O[T]=k[T])}var D=arguments.length-2;if(D===1)O.children=P;else if(D>1){for(var U=Array(D),G=0;G=0)&&(n[s]=e[s]);return n}function rC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oC(e,t){return e.button===0&&(!t||t==="_self")&&!rC(e)}const sC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],iC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],aC="6";try{window.__reactRouterVersion=aC}catch{}const lC=S.createContext({isTransitioning:!1}),cC="startTransition",vp=nc[cC];function uC(e){let{basename:t,children:n,future:o,window:s}=e,i=S.useRef();i.current==null&&(i.current=vN({window:s,v5Compat:!0}));let a=i.current,[l,u]=S.useState({action:a.action,location:a.location}),{v7_startTransition:c}=o||{},d=S.useCallback(f=>{c&&vp?vp(()=>u(f)):u(f)},[u,c]);return S.useLayoutEffect(()=>a.listen(d),[a,d]),S.createElement(tC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:o})}const dC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pC=S.forwardRef(function(t,n){let{onClick:o,relative:s,reloadDocument:i,replace:a,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,g=Wv(t,sC),{basename:b}=S.useContext(Kn),x,N=!1;if(typeof c=="string"&&fC.test(c)&&(x=c,dC))try{let h=new URL(window.location.href),y=c.startsWith("//")?new URL(h.protocol+c):new URL(c),k=lo(y.pathname,b);y.origin===h.origin&&k!=null?c=k+y.search+y.hash:N=!0}catch{}let C=$N(c,{relative:s}),m=hC(c,{replace:a,state:l,target:u,preventScrollReset:d,relative:s,unstable_viewTransition:f});function v(h){o&&o(h),h.defaultPrevented||m(h)}return S.createElement("a",pa({},g,{href:x||C,onClick:N||i?o:v,ref:n,target:u}))}),Ne=S.forwardRef(function(t,n){let{"aria-current":o="page",caseSensitive:s=!1,className:i="",end:a=!1,style:l,to:u,unstable_viewTransition:c,children:d}=t,f=Wv(t,iC),g=Ha(u,{relative:f.relative}),b=Rs(),x=S.useContext(Mv),{navigator:N,basename:C}=S.useContext(Kn),m=x!=null&&vC(g)&&c===!0,v=N.encodeLocation?N.encodeLocation(g).pathname:g.pathname,h=b.pathname,y=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;s||(h=h.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&C&&(y=lo(y,C)||y);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let O=h===v||!a&&h.startsWith(v)&&h.charAt(k)==="/",T=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),_={isActive:O,isPending:T,isTransitioning:m},F=O?o:void 0,z;typeof i=="function"?z=i(_):z=[i,O?"active":null,T?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(_):l;return S.createElement(pC,pa({},f,{"aria-current":F,className:z,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(_):d)});var uu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uu||(uu={}));var gp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gp||(gp={}));function mC(e){let t=S.useContext(qa);return t||Ee(!1),t}function hC(e,t){let{target:n,replace:o,state:s,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,u=vo(),c=Rs(),d=Ha(e,{relative:a});return S.useCallback(f=>{if(oC(f,n)){f.preventDefault();let g=o!==void 0?o:ua(c)===ua(d);u(e,{replace:g,state:s,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,u,d,o,s,n,e,i,a,l])}function vC(e,t){t===void 0&&(t={});let n=S.useContext(lC);n==null&&Ee(!1);let{basename:o}=mC(uu.useViewTransitionState),s=Ha(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=lo(n.currentLocation.pathname,o)||n.currentLocation.pathname,a=lo(n.nextLocation.pathname,o)||n.nextLocation.pathname;return da(s.pathname,a)!=null||da(s.pathname,i)!=null}function Uv(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),pr=e=>typeof e=="string",dt=e=>typeof e=="function",Oi=e=>pr(e)||dt(e)?e:null,du=e=>S.isValidElement(e)||pr(e)||dt(e)||js(e);function gC(e,t,n){n===void 0&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)})})}function Ka(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:s=!0,collapseDuration:i=300}=e;return function(a){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:g,playToast:b}=a;const x=o?`${t}--${u}`:t,N=o?`${n}--${u}`:n,C=S.useRef(0);return S.useLayoutEffect(()=>{const m=f.current,v=x.split(" "),h=y=>{y.target===f.current&&(b(),m.removeEventListener("animationend",h),m.removeEventListener("animationcancel",h),C.current===0&&y.type!=="animationcancel"&&m.classList.remove(...v))};m.classList.add(...v),m.addEventListener("animationend",h),m.addEventListener("animationcancel",h)},[]),S.useEffect(()=>{const m=f.current,v=()=>{m.removeEventListener("animationend",v),s?gC(m,d,i):d()};g||(c?v():(C.current=1,m.className+=` ${N}`,m.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function xp(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 Ye=new Map;let Ns=[];const fu=new Set,xC=e=>fu.forEach(t=>t(e)),qv=()=>Ye.size>0;function Vv(e,t){var n;if(t)return!((n=Ye.get(t))==null||!n.isToastActive(e));let o=!1;return Ye.forEach(s=>{s.isToastActive(e)&&(o=!0)}),o}function Hv(e,t){du(e)&&(qv()||Ns.push({content:e,options:t}),Ye.forEach(n=>{n.buildToast(e,t)}))}function yp(e,t){Ye.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 yC(e){const{subscribe:t,getSnapshot:n,setProps:o}=S.useRef(function(i){const a=i.containerId||1;return{subscribe(l){const u=function(d,f,g){let b=1,x=0,N=[],C=[],m=[],v=f;const h=new Map,y=new Set,k=()=>{m=Array.from(h.values()),y.forEach(_=>_())},O=_=>{C=_==null?[]:C.filter(F=>F!==_),k()},T=_=>{const{toastId:F,onOpen:z,updateId:H,children:te}=_.props,Q=H==null;_.staleId&&h.delete(_.staleId),h.set(F,_),C=[...C,_.props.toastId].filter(Z=>Z!==_.staleId),k(),g(xp(_,Q?"added":"updated")),Q&&dt(z)&&z(S.isValidElement(te)&&te.props)};return{id:d,props:v,observe:_=>(y.add(_),()=>y.delete(_)),toggle:(_,F)=>{h.forEach(z=>{F!=null&&F!==z.props.toastId||dt(z.toggle)&&z.toggle(_)})},removeToast:O,toasts:h,clearQueue:()=>{x-=N.length,N=[]},buildToast:(_,F)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==d:d!==1,ne=h.has(Y)&&ee==null;return re||ne})(F))return;const{toastId:z,updateId:H,data:te,staleId:Q,delay:Z}=F,D=()=>{O(z)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:b++,...Object.fromEntries(Object.entries(F).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:z,updateId:H,data:te,closeToast:D,isIn:!1,className:Oi(F.className||v.toastClassName),bodyClassName:Oi(F.bodyClassName||v.bodyClassName),progressClassName:Oi(F.progressClassName||v.progressClassName),autoClose:!F.isLoading&&(R=F.autoClose,A=v.autoClose,R===!1||js(R)&&R>0?R:A),deleteToast(){const W=h.get(z),{onClose:K,children:Y}=W.props;dt(K)&&K(S.isValidElement(Y)&&Y.props),g(xp(W,"removed")),h.delete(z),x--,x<0&&(x=0),N.length>0?T(N.shift()):k()}};var R,A;G.closeButton=v.closeButton,F.closeButton===!1||du(F.closeButton)?G.closeButton=F.closeButton:F.closeButton===!0&&(G.closeButton=!du(v.closeButton)||v.closeButton);let B=_;S.isValidElement(_)&&!pr(_.type)?B=S.cloneElement(_,{closeToast:D,toastProps:G,data:te}):dt(_)&&(B=_({closeToast:D,toastProps:G,data:te}));const M={content:B,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?N.push(M):js(Z)?setTimeout(()=>{T(M)},Z):T(M)},setProps(_){v=_},setToggle:(_,F)=>{h.get(_).toggle=F},isToastActive:_=>C.some(F=>F===_),getSnapshot:()=>v.newestOnTop?m.reverse():m}}(a,i,xC);Ye.set(a,u);const c=u.observe(l);return Ns.forEach(d=>Hv(d.content,d.options)),Ns=[],()=>{c(),Ye.delete(a)}},setProps(l){var u;(u=Ye.get(a))==null||u.setProps(l)},getSnapshot(){var l;return(l=Ye.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;o(e);const s=S.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!s)return[];const a=new Map;return s.forEach(l=>{const{position:u}=l.props;a.has(u)||a.set(u,[]),a.get(u).push(l)}),Array.from(a,l=>i(l[0],l[1]))},isToastActive:Vv,count:s==null?void 0:s.length}}function jC(e){const[t,n]=S.useState(!1),[o,s]=S.useState(!1),i=S.useRef(null),a=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var g,b;function x(){n(!0)}function N(){n(!1)}function C(h){const y=i.current;a.canDrag&&y&&(a.didMove=!0,t&&N(),a.delta=e.draggableDirection==="x"?h.clientX-a.start:h.clientY-a.start,a.start!==h.clientX&&(a.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function m(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",m);const h=i.current;if(a.canDrag&&a.didMove&&h){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(b=Ye.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||b.setToggle(g.id,g.fn),S.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||N(),window.addEventListener("focus",x),window.addEventListener("blur",N),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",N)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){a.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",m);const y=i.current;a.canCloseOnClick=!0,a.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(a.start=h.clientX,a.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(a.start=h.clientY,a.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:y,bottom:k,left:O,right:T}=i.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=O&&h.clientX<=T&&h.clientY>=y&&h.clientY<=k?N():x()}};return l&&u&&(v.onMouseEnter=N,e.stacked||(v.onMouseLeave=x)),f&&(v.onClick=h=>{d&&d(h),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:N,isRunning:t,preventExitTransition:o,toastRef:i,eventHandlers:v}}function NC(e){let{delay:t,isRunning:n,closeToast:o,type:s="default",hide:i,className:a,style:l,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:g}=e;const b=i||u&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(x.transform=`scaleX(${c})`);const N=Tn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":d}),C=dt(a)?a({rtl:d,type:s,defaultClassName:N}):Tn(N,a),m={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&o()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${s}`}),I.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:C,style:x,...m}))}let CC=1;const Kv=()=>""+CC++;function bC(e){return e&&(pr(e.toastId)||js(e.toastId))?e.toastId:Kv()}function Xo(e,t){return Hv(e,t),t.toastId}function ma(e,t){return{...t,type:t&&t.type||e,toastId:bC(t)}}function ti(e){return(t,n)=>Xo(t,ma(e,n))}function se(e,t){return Xo(e,ma("default",t))}se.loading=(e,t)=>Xo(e,ma("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),se.promise=function(e,t,n){let o,{pending:s,error:i,success:a}=t;s&&(o=pr(s)?se.loading(s,n):se.loading(s.render,{...n,...s}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,g)=>{if(f==null)return void se.dismiss(o);const b={type:d,...l,...n,data:g},x=pr(f)?{render:f}:f;return o?se.update(o,{...b,...x}):se(x.render,{...b,...x}),g},c=dt(e)?e():e;return c.then(d=>u("success",a,d)).catch(d=>u("error",i,d)),c},se.success=ti("success"),se.info=ti("info"),se.error=ti("error"),se.warning=ti("warning"),se.warn=se.warning,se.dark=(e,t)=>Xo(e,ma("default",{theme:"dark",...t})),se.dismiss=function(e){(function(t){var n;if(qv()){if(t==null||pr(n=t)||js(n))Ye.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const o=Ye.get(t.containerId);o?o.removeToast(t.id):Ye.forEach(s=>{s.removeToast(t.id)})}}else Ns=Ns.filter(o=>t!=null&&o.options.toastId!==t)})(e)},se.clearWaitingQueue=function(e){e===void 0&&(e={}),Ye.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},se.isActive=Vv,se.update=function(e,t){t===void 0&&(t={});const n=((o,s)=>{var i;let{containerId:a}=s;return(i=Ye.get(a||1))==null?void 0:i.toasts.get(o)})(e,t);if(n){const{props:o,content:s}=n,i={delay:100,...o,...t,toastId:t.toastId||e,updateId:Kv()};i.toastId!==e&&(i.staleId=e);const a=i.render||s;delete i.render,Xo(a,i)}},se.done=e=>{se.update(e,{progress:1})},se.onChange=function(e){return fu.add(e),()=>{fu.delete(e)}},se.play=e=>yp(!0,e),se.pause=e=>yp(!1,e);const wC=typeof window<"u"?S.useLayoutEffect:S.useEffect,ni=e=>{let{theme:t,type:n,isLoading:o,...s}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...s})},Ql={info:function(e){return I.createElement(ni,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(ni,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(ni,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(ni,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},SC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:s,playToast:i}=jC(e),{closeButton:a,children:l,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:g,transition:b,position:x,className:N,style:C,bodyClassName:m,bodyStyle:v,progressClassName:h,progressStyle:y,updateId:k,role:O,progress:T,rtl:_,toastId:F,deleteToast:z,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,D=Tn("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Q}),U=dt(N)?N({rtl:_,position:x,type:d,defaultClassName:D}):Tn(D,N),G=function(M){let{theme:W,type:K,isLoading:Y,icon:ee}=M,re=null;const ne={theme:W,type:K};return ee===!1||(dt(ee)?re=ee({...ne,isLoading:Y}):S.isValidElement(ee)?re=S.cloneElement(ee,ne):Y?re=Ql.spinner():(oe=>oe in Ql)(K)&&(re=Ql[K](ne))),re}(e),R=!!T||!u,A={closeToast:g,type:d,theme:Z};let B=null;return a===!1||(B=dt(a)?a(A):S.isValidElement(a)?S.cloneElement(a,A):function(M){let{closeToast:W,theme:K,ariaLabel:Y="close"}=M;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),W(ee)},"aria-label":Y},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(A)),I.createElement(b,{isIn:H,done:z,position:x,preventExitTransition:n,nodeRef:o,playToast:i},I.createElement("div",{id:F,onClick:c,"data-in":H,className:U,...s,style:C,ref:o},I.createElement("div",{...H&&{role:O},className:dt(m)?m({type:d}):Tn("Toastify__toast-body",m),style:v},G!=null&&I.createElement("div",{className:Tn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),B,I.createElement(NC,{...k&&!R?{key:`pb-${k}`}:{},rtl:_,theme:Z,delay:u,isRunning:t,isIn:H,closeToast:g,hide:f,type:d,style:y,className:h,controlledProgress:R,progress:T||0})))},Ya=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},kC=Ka(Ya("bounce",!0));Ka(Ya("slide",!0));Ka(Ya("zoom"));Ka(Ya("flip"));const EC={position:"top-right",transition:kC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function PC(e){let t={...EC,...e};const n=e.stacked,[o,s]=S.useState(!0),i=S.useRef(null),{getToastToRender:a,isToastActive:l,count:u}=yC(t),{className:c,style:d,rtl:f,containerId:g}=t;function b(N){const C=Tn("Toastify__toast-container",`Toastify__toast-container--${N}`,{"Toastify__toast-container--rtl":f});return dt(c)?c({position:N,rtl:f,defaultClassName:C}):Tn(C,Oi(c))}function x(){n&&(s(!0),se.play())}return wC(()=>{if(n){var N;const C=i.current.querySelectorAll('[data-in="true"]'),m=12,v=(N=t.position)==null?void 0:N.includes("top");let h=0,y=0;Array.from(C).reverse().forEach((k,O)=>{const T=k;T.classList.add("Toastify__toast--stacked"),O>0&&(T.dataset.collapsed=`${o}`),T.dataset.pos||(T.dataset.pos=v?"top":"bot");const _=h*(o?.2:1)+(o?0:m*O);T.style.setProperty("--y",`${v?_:-1*_}px`),T.style.setProperty("--g",`${m}`),T.style.setProperty("--s",""+(1-(o?y:0))),h+=T.offsetHeight,y+=.025})}},[o,u,n]),I.createElement("div",{ref:i,className:"Toastify",id:g,onMouseEnter:()=>{n&&(s(!1),se.pause())},onMouseLeave:x},a((N,C)=>{const m=C.length?{...d}:{...d,pointerEvents:"none"};return I.createElement("div",{className:b(N),style:m,key:`container-${N}`},C.map(v=>{let{content:h,props:y}=v;return I.createElement(SC,{...y,stacked:n,collapseAll:x,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},h)}))}))}const Ze=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(Ne,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(Ne,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(Ne,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(Ne,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},_C="/assets/logo-Cb1x1exd.png",Fe=()=>{var s,i;const{user:e}=Qe(a=>({...a.auth})),t=Ft(),n=vo(),o=()=>{t(aN()),n("/")};return r.jsx(r.Fragment,{children:r.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:r.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsx("img",{src:_C,alt:"logo",width:"75",height:"75",className:"img-fluid"}),r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),r.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[r.jsxs("ul",{className:"navbar-nav ml-auto",children:[r.jsx("li",{className:"nav-item active",children:r.jsx(Ne,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(Ne,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(s=e==null?void 0:e.result)!=null&&s._id?r.jsx(Ne,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):r.jsx(Ne,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(i=e==null?void 0:e.result)!=null&&i._id?r.jsx(Ne,{to:"/login",children:r.jsx("p",{className:"header-text",onClick:o,style:{fontWeight:"bold"},children:"Logout"})}):r.jsx(Ne,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},OC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsx("div",{className:"header_section",children:r.jsx("div",{className:"banner_section layout_padding",children:r.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[r.jsxs("div",{className:"carousel-inner",children:[r.jsx("div",{className:"carousel-item active",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),r.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),r.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),r.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),r.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:r.jsx("i",{className:"fa fa-angle-left"})}),r.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:r.jsx("i",{className:"fa fa-angle-right"})})]})})}),r.jsx("div",{className:"services_section layout_padding",children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"row",children:r.jsxs("div",{className:"col-sm-12",children:[r.jsx("h1",{className:"services_taital",children:"Our Services"}),r.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),r.jsx(Ze,{})]}),TC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(Ze,{})]}),RC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(Ze,{})]});var tn=function(){return tn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n{const[e,t]=S.useState(rb),[n,o]=S.useState(!1),{loading:s,error:i}=Qe(k=>({...k.auth})),{title:a,email:l,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:g,termsconditions:b,userType:x}=e,N=Ft(),C=vo();S.useEffect(()=>{i&&se.error(i)},[i]),S.useEffect(()=>{o(a!=="None"&&l&&u&&c&&d&&f&&g&&b&&x!=="")},[a,l,u,c,d,f,g,b,x]);const m=k=>{if(k.preventDefault(),u!==g)return se.error("Password should match");n?N(Ni({formValue:e,navigate:C,toast:se})):se.error("Please fill in all fields and select all checkboxes")},v=k=>k.charAt(0).toUpperCase()+k.slice(1),h=k=>{const{name:O,value:T,type:_,checked:F}=k.target;t(_==="checkbox"?z=>({...z,[O]:F}):z=>({...z,[O]:O==="email"||O==="password"||O==="confirmPassword"?T:v(T)}))},y=k=>{t(O=>({...O,userType:k.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Registration"}),r.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:y,required:!0}),r.jsx("label",{className:"form-check-label",children:"Lender"})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:x==="Borrower",onChange:y,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:h,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:h,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:b,name:"termsconditions",checked:b,onChange:h,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||s,children:[s&&r.jsx(Yv.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(Ze,{})]})},sb={email:"",password:""},ib=()=>{const[e,t]=S.useState(sb),{loading:n,error:o}=Qe(d=>({...d.auth})),{email:s,password:i}=e,a=Ft(),l=vo();S.useEffect(()=>{o&&se.error(o)},[o]);const u=d=>{d.preventDefault(),s&&i&&a(ji({formValue:e,navigate:l,toast:se}))},c=d=>{let{name:f,value:g}=d.target;t({...e,[f]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:s,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:i,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(Yv.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(Ne,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(Ne,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(Ze,{})]})},Ti="/assets/samplepic-BM_cnzgz.jpg";var Gv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Dg,function(){return function(n){function o(i){if(s[i])return s[i].exports;var a=s[i]={exports:{},id:i,loaded:!1};return n[i].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}var s={};return o.m=n,o.c=s,o.p="",o(0)}([function(n,o,s){function i(b){return b&&b.__esModule?b:{default:b}}function a(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function l(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?b:x}function u(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}Object.defineProperty(o,"__esModule",{value:!0});var c=function(){function b(x,N){for(var C=0;C1)for(var k=1;k1?d-1:0),g=1;g2?f-2:0),b=2;b1){for(var Z=Array(Q),D=0;D"u"||_.$$typeof!==m)){var G=typeof y=="function"?y.displayName||y.name||"Unknown":y;F&&u(_,G),z&&c(_,G)}return h(y,F,z,H,te,b.current,_)},h.createFactory=function(y){var k=h.createElement.bind(null,y);return k.type=y,k},h.cloneAndReplaceKey=function(y,k){var O=h(y.type,k,y.ref,y._self,y._source,y._owner,y.props);return O},h.cloneElement=function(y,k,O){var T,_=g({},y.props),F=y.key,z=y.ref,H=y._self,te=y._source,Q=y._owner;if(k!=null){a(k)&&(z=k.ref,Q=b.current),l(k)&&(F=""+k.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(T in k)C.call(k,T)&&!v.hasOwnProperty(T)&&(k[T]===void 0&&Z!==void 0?_[T]=Z[T]:_[T]=k[T])}var D=arguments.length-2;if(D===1)_.children=O;else if(D>1){for(var U=Array(D),G=0;G1?c-1:0),f=1;f2?d-2:0),g=2;g.")}return T}function c(P,T){if(P._store&&!P._store.validated&&P.key==null){P._store.validated=!0;var O=y.uniqueKey||(y.uniqueKey={}),M=u(T);if(!O[M]){O[M]=!0;var $="";P&&P._owner&&P._owner!==g.current&&($=" It was passed a child from "+P._owner.getName()+"."),i.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',M,$,b.getCurrentStackAddendum(P))}}}function d(P,T){if(typeof P=="object"){if(Array.isArray(P))for(var O=0;O1?Y-1:0),re=1;re"u"||F===null)return""+F;var W=Q(F);if(W==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return W}function D(F){var W=Z(F);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(F){return F.constructor&&F.constructor.name?F.constructor.name:A}var G=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator",A="<>",B={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:y(),instanceOf:k,node:M(),objectOf:T,oneOf:P,oneOfType:O,shape:$};return N.prototype=Error.prototype,B.checkPropTypes=d,B.PropTypes=B,B}}).call(o,s(1))},function(n,o){function s(l){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+l).replace(u,function(f){return c[f]});return"$"+d}function i(l){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+d).replace(u,function(f){return c[f]})}var a={escape:s,unescape:i};n.exports=a},function(n,o,s){(function(i){var a=s(5),l=s(2),u=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var y=h.instancePool.pop();return h.call(y,m,v),y}return new h(m,v)},d=function(m,v,h){var y=this;if(y.instancePool.length){var k=y.instancePool.pop();return y.call(k,m,v,h),k}return new y(m,v,h)},f=function(m,v,h,y){var k=this;if(k.instancePool.length){var P=k.instancePool.pop();return k.call(P,m,v,h,y),P}return new k(m,v,h,y)},g=function(m){var v=this;m instanceof v||(i.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length{const[e,t]=S.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},o=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},s=Ft(),{status:i,error:a}=Qe(p=>p.property),{user:l}=Qe(p=>({...p.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=S.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0"}),[f,g]=S.useState(!1),b=(p,j)=>{console.log("File received:",p);const w=[...c.images];w[j].file=p.base64,d({...c,images:w})},x=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},N=p=>{const j=c.images.filter((w,L)=>L!==p);d({...c,images:j})},C=(p,j)=>{const w=[...c.images];w[p].title=j.target.value,d({...c,images:w})},m=(p,j,w)=>{const{name:L,value:q}=p.target;if(w==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[j][L]=q,d({...c,propertyTaxInfo:X})}else d({...c,[L]:q})},v=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=p=>{const j=c.propertyTaxInfo.filter((w,L)=>L!==p);d({...c,propertyTaxInfo:j})},y=()=>{d(p=>({...p,costPaidAtoB:[...p.costPaidAtoB,{title:"",price:""}]}))},k=p=>{const j=c.costPaidAtoB.filter((w,L)=>L!==p);d(w=>({...w,costPaidAtoB:j}))},P=(p,j,w)=>{const L=[...c.costPaidAtoB];L[p][j]=w,d(q=>({...q,costPaidAtoB:L}))},T=(p,j)=>{let w=p.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,costPaidAtoB:q})}},O=()=>{const p=c.costPaidAtoB.reduce((w,L)=>{const q=parseFloat(L.price)||0;return w+q},0),j=parseFloat(c.purchaseCost)||0;return p+j},M=()=>{d(p=>({...p,credits:[...p.credits,{title:"",price:""}]}))},$=p=>{const j=c.credits.filter((w,L)=>L!==p);d(w=>({...w,credits:j}))},H=(p,j,w)=>{const L=[...c.credits];L[p][j]=w,d(q=>({...q,credits:L}))},te=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,credits:q})}else{const q=c.credits.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,credits:q})}},Q=()=>c.credits.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Z=()=>{const p=c.costPaidAtoB.reduce((L,q)=>{const X=parseFloat(q.price)||0;return L+X},0),j=c.credits.reduce((L,q)=>{const X=parseFloat(q.price)||0;return L+X},0),w=parseFloat(c.purchaseCost)||0;return p+j+w},D=()=>{d(p=>({...p,cashAdjustments:[...p.cashAdjustments,{title:"",price:""}]}))},U=p=>{const j=c.cashAdjustments.filter((w,L)=>L!==p);d(w=>({...w,cashAdjustments:j}))},G=(p,j,w)=>{const L=[...c.cashAdjustments];L[p][j]=w,d(q=>({...q,cashAdjustments:L}))},R=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,cashAdjustments:q})}},A=()=>c.cashAdjustments.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),B=()=>{const p=A(),j=Q(),w=O();return p+j+w},F=()=>{d(p=>({...p,incidentalCost:[...p.incidentalCost,{title:"",price:""}]}))},W=p=>{const j=c.incidentalCost.filter((w,L)=>L!==p);d(w=>({...w,incidentalCost:j}))},K=(p,j,w)=>{const L=[...c.incidentalCost];L[p][j]=w,d(q=>({...q,incidentalCost:L}))},Y=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),re=()=>{d(p=>({...p,carryCosts:[...p.carryCosts,{title:"",price:""}]}))},ne=p=>{const j=c.carryCosts.filter((w,L)=>L!==p);d(w=>({...w,carryCosts:j}))},oe=(p,j,w)=>{const L=[...c.carryCosts];L[p][j]=w,d(q=>({...q,carryCosts:L}))},ae=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,carryCosts:q})}},ce=()=>c.carryCosts.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),ve=()=>{d(p=>({...p,renovationCost:[...p.renovationCost,{title:"",price:""}]}))},Me=p=>{const j=c.renovationCost.filter((w,L)=>L!==p);d(w=>({...w,renovationCost:j}))},jt=(p,j,w)=>{const L=[...c.renovationCost];L[p][j]=w,d(q=>({...q,renovationCost:L}))},Lt=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,renovationCost:q})}},pe=()=>c.renovationCost.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Bt=()=>{const p=ee(),j=ce(),w=pe();return p+j+w},He=()=>{const p=Bt(),j=B();return p+j},Gn=()=>{d(p=>({...p,costPaidOutofClosing:[...p.costPaidOutofClosing,{title:"",price:""}]}))},Jt=p=>{const j=c.costPaidOutofClosing.filter((w,L)=>L!==p);d(w=>({...w,costPaidOutofClosing:j}))},yo=(p,j,w)=>{const L=[...c.costPaidOutofClosing];L[p][j]=w,d(q=>({...q,costPaidOutofClosing:L}))},jo=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,costPaidOutofClosing:q})}},Qn=()=>c.costPaidOutofClosing.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),zt=()=>{const p=c.sellingPriceBtoC,j=Qn();return p-j},vn=()=>{d(p=>({...p,adjustments:[...p.adjustments,{title:"",price:""}]}))},$t=p=>{const j=c.adjustments.filter((w,L)=>L!==p);d(w=>({...w,adjustments:j}))},de=(p,j,w)=>{const L=[...c.adjustments];L[p][j]=w,d(q=>({...q,adjustments:L}))},Wt=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,adjustments:q})}else{const q=c.adjustments.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,adjustments:q})}},gn=()=>c.adjustments.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Is=()=>{const p=zt(),j=gn();return p+j},No=()=>{d(p=>({...p,incomestatement:[...p.incomestatement,{title:"",price:""}]}))},Ds=p=>{const j=c.incomestatement.filter((w,L)=>L!==p);d(w=>({...w,incomestatement:j}))},Ja=(p,j,w)=>{const L=[...c.incomestatement];L[p][j]=w,d(q=>({...q,incomestatement:L}))},Za=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,incomestatement:q})}},Co=()=>c.incomestatement.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Xn=()=>{const p=Co(),j=zt();return p+j},Jn=()=>{const p=isNaN(parseFloat(Xn()))?0:parseFloat(Xn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),L=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),X=isNaN(parseFloat(He()))?0:parseFloat(He());return p+j+w+L+q-X},Zt=()=>{const p=Jn(),j=c.FinancingCostClosingCost;return p-j},Sr=()=>Zt(),bo=()=>{var p,j,w,L,q,X;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost){const le=Sr(),Fs=O(),tl=Z(),nl=A(),rl=ee(),ol=Q(),sl=B(),il=ce(),al=pe(),ll=Bt(),cl=He(),ul=Qn(),dl=gn(),Sg=Is(),kg=zt(),Eg=zt(),Pg=Co(),_g=Xn(),Og=Jn(),Tg=Zt(),fl={...c,userfirstname:(p=l==null?void 0:l.result)==null?void 0:p.firstName,usermiddlename:(j=l==null?void 0:l.result)==null?void 0:j.middleName,userlastname:(w=l==null?void 0:l.result)==null?void 0:w.lastName,usertitle:(L=l==null?void 0:l.result)==null?void 0:L.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(X=l==null?void 0:l.result)==null?void 0:X.userId,totalPurchaseCosts:Fs,totalcredits:ol,totalPurchaseCostsaftercredits:tl,totalcashAdjustments:nl,totalcashrequiredonsettlement:sl,totalincidentalCost:rl,totalcarryCosts:il,totalrenovationCost:al,totalRenovationsandHoldingCost:ll,totalCoststoBuyAtoB:cl,totalcostPaidOutofClosing:ul,totaladjustments:dl,fundsavailablefordistribution:Sg,grossproceedsperHUD:kg,totalCosttoSellBtoC:Eg,totalincomestatement:Pg,netBtoCsalevalue:_g,netprofitbeforefinancingcosts:Og,NetProfit:Tg,rateofreturn:le};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?fl.propertyTaxInfo=c.propertyTaxInfo:fl.propertyTaxInfo=[],s(Si(fl)),g(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};S.useEffect(()=>{f&&(i==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):i==="failed"&&(ie.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[i,a,f]);const[el,E]=S.useState("0 days"),_=(p,j)=>{if(p&&j){const w=new Date(p),L=new Date(j),q=Math.abs(L-w),X=Math.ceil(q/(1e3*60*60*24));E(`${X} days`)}else E("0 days")};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Re,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((p,j)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:p.propertytaxowned,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:p.ownedyear,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:p.taxassessed,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:p.taxyear,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(j),style:{height:"25px",width:"35px"},children:"X"})]})})]},j)),r.jsx("button",{className:"btn btn-secondary",onClick:v,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[c.images.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,placeholder:"Image Title",onChange:w=>C(j,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Nd,{multiple:!1,onDone:w=>b(w,j)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>N(j),style:{marginLeft:"5px"},children:"Delete"})]}),p.file&&r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"Base64 Data:"})," ",r.jsxs("pre",{children:[p.file.slice(0,100),"..."]})," ",r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:p.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})]})]},j)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:p=>{const j=p.target.value;d({...c,closeDateAtoB:j}),_(j,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:p=>{const j=p.target.value;d({...c,closeDateBtoC:j}),_(c.closeDateAtoB,j)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:u.map(p=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${p}`,value:p,checked:c.renovationRisk===p,onChange:j=>{const w=parseInt(j.target.value,10);d({...c,renovationRisk:w})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${p}`,children:p})]},p))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Sr().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:el,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:p=>{let j=p.target.value.replace(/[^\d.]/g,"");const w=/^\d*\.?\d*$/.test(j);d({...c,purchaseCost:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>P(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:`$ ${p.price}`,onChange:w=>T(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>k(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:y,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${O().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>H(j,"title",w.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>te(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>$(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:M,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>G(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>R(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>U(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:A(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>K(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Y(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>W(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:F,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ee(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>oe(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>ae(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ne(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:re,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:ce(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>jt(j,"title",w.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Lt(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Me(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ve,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:pe(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Bt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:He(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>yo(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>jo(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Jt(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>de(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Wt(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>$t(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:vn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Is(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>Ja(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Za(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ds(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:No,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Co(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:He(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Xn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,shorttermrental:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,OtherIncome:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,InsuranceClaim:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,LongTermRental:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bo,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})},Yt="/assets/propertydummy-DhVEZ7jN.jpg",cb=()=>{var u;const e=Ft(),{user:t}=Qe(c=>({...c.auth})),{userProperties:n,totalPages:o}=Qe(c=>c.property),[s,i]=S.useState(1),a=5;S.useEffect(()=>{e(ki({userId:t.result.userId,page:s,limit:a}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,s]);const l=c=>{i(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||Yt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(Ne,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(Ne,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(Ne,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(s-1),disabled:s===1,children:"Previous"}),Array.from({length:o},(c,d)=>d+1).map(c=>c===s||c===1||c===o||c>=s-1&&c<=s+1?r.jsx("button",{onClick:()=>l(c),disabled:s===c,children:c},c):c===2||c===o-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(s+1),disabled:s===o,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},ub=()=>{var c,d,f,g,b,x,N,C,m,v,h,y;const{user:e,isLoading:t}=Qe(k=>k.auth),n=Ft(),o=vo(),[s,i]=S.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((d=e==null?void 0:e.result)==null?void 0:d.title)||"",firstName:((f=e==null?void 0:e.result)==null?void 0:f.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((b=e==null?void 0:e.result)==null?void 0:b.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((N=e==null?void 0:e.result)==null?void 0:N.aboutme)||"",city:((C=e==null?void 0:e.result)==null?void 0:C.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((y=e==null?void 0:e.result)==null?void 0:y.profileImage)||""});S.useEffect(()=>{e&&i({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=k=>{i({...s,[k.target.name]:k.target.value})},l=()=>{i({...s,profileImage:""})},u=k=>{k.preventDefault(),n(Ci({formData:s,toast:ie,navigate:o}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:u,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:s.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:s.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:s.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:s.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:s.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:s.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:s.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:s.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:s.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Nd,{type:"file",multiple:!1,onDone:({base64:k})=>i({...s,profileImage:k})})})]}),s.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:s.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},db=()=>{const[e,t]=S.useState("dashboard"),{user:n}=Qe(s=>s.auth),o=()=>{switch(e){case"Userdetails":return r.jsx(ub,{});case"addProperty":return r.jsx(lb,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(cb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"d-flex flex-row",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Ti,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"User Profile"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Add Property"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Active Properties"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Closed Properties"})]})]})]})}),r.jsx("div",{className:"col-md-9",children:r.jsxs("div",{className:"card card2 p-1",children:[r.jsx("br",{}),r.jsxs("span",{children:["Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(Ne,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsx("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:" investor-borrower interactions, "})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})]}),r.jsx("br",{}),o()]})})]}),r.jsx(Ze,{})]})};var Qv={exports:{}},fb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pb=fb,mb=pb;function Xv(){}function Jv(){}Jv.resetWarningCache=Xv;var hb=function(){function e(o,s,i,a,l,u){if(u!==mb){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:Jv,resetWarningCache:Xv};return n.PropTypes=n,n};Qv.exports=hb();var vb=Qv.exports;const Xt=Cs(vb),gb=()=>{const[e,t]=S.useState(3),n=vo();return S.useEffect(()=>{const o=setInterval(()=>{t(s=>--s)},1e3);return e===0&&n("/login"),()=>clearInterval(o)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ri=({children:e})=>{const{user:t}=Qe(n=>({...n.auth}));return t?e:r.jsx(gb,{})};Ri.propTypes={children:Xt.node.isRequired};const xb=()=>{const e=Ft(),{id:t,token:n}=go();return S.useEffect(()=>{e(wi({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(Ne,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(Ze,{})]})},yb=()=>{const[e,t]=S.useState(""),[n,o]=S.useState(""),s="http://67.225.129.127:3002",i=async()=>{try{const a=await he.post(`${s}/users/forgotpassword`,{email:e});o(a.data.message)}catch(a){console.error("Forgot Password Error:",a),o(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:i,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(Ne,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(Ze,{})]})]})},jb=()=>{const{userId:e,token:t}=go(),[n,o]=S.useState(""),[s,i]=S.useState(""),[a,l]=S.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),ie.error("Password not entered");return}const d=await he.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==s){l("Passwords do not match."),ie.error("Passwords do not match.");return}else l("Password reset successfull"),ie.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return S.useEffect(()=>{ie.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>o(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:s,onChange:d=>i(d.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(Ze,{})]})},Nb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(Ze,{})]});var Zv={exports:{}};/*! + in `+(D||"Unknown")+(U?" (at "+U.fileName.replace(/^.*[\\\/]/,"")+":"+U.lineNumber+")":G?" (created by "+G+")":"")}function c(D){return D==null?"#empty":typeof D=="string"||typeof D=="number"?"#text":typeof D.type=="string"?D.type:D.type.displayName||D.type.name||"Unknown"}function d(D){var U,G=Z.getDisplayName(D),R=Z.getElement(D),A=Z.getOwnerID(D);return A&&(U=Z.getDisplayName(A)),i.env.NODE_ENV!=="production"&&k(R,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",D),u(G,R&&R._source,U)}var f,g,b,x,N,C,m,v=s(5),h=s(7),y=s(2),k=s(3),O=typeof Array.from=="function"&&typeof Map=="function"&&a(Map)&&Map.prototype!=null&&typeof Map.prototype.keys=="function"&&a(Map.prototype.keys)&&typeof Set=="function"&&a(Set)&&Set.prototype!=null&&typeof Set.prototype.keys=="function"&&a(Set.prototype.keys);if(O){var T=new Map,_=new Set;f=function(D,U){T.set(D,U)},g=function(D){return T.get(D)},b=function(D){T.delete(D)},x=function(){return Array.from(T.keys())},N=function(D){_.add(D)},C=function(D){_.delete(D)},m=function(){return Array.from(_.keys())}}else{var F={},z={},H=function(D){return"."+D},te=function(D){return parseInt(D.substr(1),10)};f=function(D,U){var G=H(D);F[G]=U},g=function(D){var U=H(D);return F[U]},b=function(D){var U=H(D);delete F[U]},x=function(){return Object.keys(F).map(te)},N=function(D){var U=H(D);z[U]=!0},C=function(D){var U=H(D);delete z[U]},m=function(){return Object.keys(z).map(te)}}var Q=[],Z={onSetChildren:function(D,U){var G=g(D);G||(i.env.NODE_ENV!=="production"?y(!1,"Item must have been set"):v("144")),G.childIDs=U;for(var R=0;R1?c-1:0),f=1;f2?d-2:0),g=2;g.")}return T}function c(O,T){if(O._store&&!O._store.validated&&O.key==null){O._store.validated=!0;var _=y.uniqueKey||(y.uniqueKey={}),F=u(T);if(!_[F]){_[F]=!0;var z="";O&&O._owner&&O._owner!==g.current&&(z=" It was passed a child from "+O._owner.getName()+"."),i.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',F,z,b.getCurrentStackAddendum(O))}}}function d(O,T){if(typeof O=="object"){if(Array.isArray(O))for(var _=0;_1?Y-1:0),re=1;re"u"||M===null)return""+M;var W=Q(M);if(W==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return W}function D(M){var W=Z(M);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(M){return M.constructor&&M.constructor.name?M.constructor.name:A}var G=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator",A="<>",B={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:y(),instanceOf:k,node:F(),objectOf:T,oneOf:O,oneOfType:_,shape:z};return N.prototype=Error.prototype,B.checkPropTypes=d,B.PropTypes=B,B}}).call(o,s(1))},function(n,o){function s(l){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+l).replace(u,function(f){return c[f]});return"$"+d}function i(l){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+d).replace(u,function(f){return c[f]})}var a={escape:s,unescape:i};n.exports=a},function(n,o,s){(function(i){var a=s(5),l=s(2),u=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var y=h.instancePool.pop();return h.call(y,m,v),y}return new h(m,v)},d=function(m,v,h){var y=this;if(y.instancePool.length){var k=y.instancePool.pop();return y.call(k,m,v,h),k}return new y(m,v,h)},f=function(m,v,h,y){var k=this;if(k.instancePool.length){var O=k.instancePool.pop();return k.call(O,m,v,h,y),O}return new k(m,v,h,y)},g=function(m){var v=this;m instanceof v||(i.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length{const[e,t]=S.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},o=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},s=Ft(),{status:i,error:a}=Qe(p=>p.property),{user:l}=Qe(p=>({...p.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=S.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0"}),[f,g]=S.useState(!1),b=(p,j)=>{console.log("File received:",p);const w=[...c.images];w[j].file=p.base64,d({...c,images:w})},x=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},N=p=>{const j=c.images.filter((w,L)=>L!==p);d({...c,images:j})},C=(p,j)=>{const w=[...c.images];w[p].title=j.target.value,d({...c,images:w})},m=(p,j,w)=>{const{name:L,value:q}=p.target;if(w==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[j][L]=q,d({...c,propertyTaxInfo:X})}else d({...c,[L]:q})},v=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=p=>{const j=c.propertyTaxInfo.filter((w,L)=>L!==p);d({...c,propertyTaxInfo:j})},y=()=>{d(p=>({...p,costPaidAtoB:[...p.costPaidAtoB,{title:"",price:""}]}))},k=p=>{const j=c.costPaidAtoB.filter((w,L)=>L!==p);d(w=>({...w,costPaidAtoB:j}))},O=(p,j,w)=>{const L=[...c.costPaidAtoB];L[p][j]=w,d(q=>({...q,costPaidAtoB:L}))},T=(p,j)=>{let w=p.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,costPaidAtoB:q})}},_=()=>{const p=c.costPaidAtoB.reduce((w,L)=>{const q=parseFloat(L.price)||0;return w+q},0),j=parseFloat(c.purchaseCost)||0;return p+j},F=()=>{d(p=>({...p,credits:[...p.credits,{title:"",price:""}]}))},z=p=>{const j=c.credits.filter((w,L)=>L!==p);d(w=>({...w,credits:j}))},H=(p,j,w)=>{const L=[...c.credits];L[p][j]=w,d(q=>({...q,credits:L}))},te=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,credits:q})}else{const q=c.credits.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,credits:q})}},Q=()=>c.credits.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Z=()=>{const p=c.costPaidAtoB.reduce((L,q)=>{const X=parseFloat(q.price)||0;return L+X},0),j=c.credits.reduce((L,q)=>{const X=parseFloat(q.price)||0;return L+X},0),w=parseFloat(c.purchaseCost)||0;return p+j+w},D=()=>{d(p=>({...p,cashAdjustments:[...p.cashAdjustments,{title:"",price:""}]}))},U=p=>{const j=c.cashAdjustments.filter((w,L)=>L!==p);d(w=>({...w,cashAdjustments:j}))},G=(p,j,w)=>{const L=[...c.cashAdjustments];L[p][j]=w,d(q=>({...q,cashAdjustments:L}))},R=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,cashAdjustments:q})}},A=()=>c.cashAdjustments.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),B=()=>{const p=A(),j=Q(),w=_();return p+j+w},M=()=>{d(p=>({...p,incidentalCost:[...p.incidentalCost,{title:"",price:""}]}))},W=p=>{const j=c.incidentalCost.filter((w,L)=>L!==p);d(w=>({...w,incidentalCost:j}))},K=(p,j,w)=>{const L=[...c.incidentalCost];L[p][j]=w,d(q=>({...q,incidentalCost:L}))},Y=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),re=()=>{d(p=>({...p,carryCosts:[...p.carryCosts,{title:"",price:""}]}))},ne=p=>{const j=c.carryCosts.filter((w,L)=>L!==p);d(w=>({...w,carryCosts:j}))},oe=(p,j,w)=>{const L=[...c.carryCosts];L[p][j]=w,d(q=>({...q,carryCosts:L}))},ae=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,carryCosts:q})}},ce=()=>c.carryCosts.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),ve=()=>{d(p=>({...p,renovationCost:[...p.renovationCost,{title:"",price:""}]}))},Me=p=>{const j=c.renovationCost.filter((w,L)=>L!==p);d(w=>({...w,renovationCost:j}))},jt=(p,j,w)=>{const L=[...c.renovationCost];L[p][j]=w,d(q=>({...q,renovationCost:L}))},Lt=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,renovationCost:q})}},pe=()=>c.renovationCost.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Bt=()=>{const p=ee(),j=ce(),w=pe();return p+j+w},He=()=>{const p=Bt(),j=B();return p+j},Gn=()=>{d(p=>({...p,costPaidOutofClosing:[...p.costPaidOutofClosing,{title:"",price:""}]}))},Jt=p=>{const j=c.costPaidOutofClosing.filter((w,L)=>L!==p);d(w=>({...w,costPaidOutofClosing:j}))},yo=(p,j,w)=>{const L=[...c.costPaidOutofClosing];L[p][j]=w,d(q=>({...q,costPaidOutofClosing:L}))},jo=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,costPaidOutofClosing:q})}},Qn=()=>c.costPaidOutofClosing.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),zt=()=>{const p=c.sellingPriceBtoC,j=Qn();return p-j},vn=()=>{d(p=>({...p,adjustments:[...p.adjustments,{title:"",price:""}]}))},$t=p=>{const j=c.adjustments.filter((w,L)=>L!==p);d(w=>({...w,adjustments:j}))},de=(p,j,w)=>{const L=[...c.adjustments];L[p][j]=w,d(q=>({...q,adjustments:L}))},Wt=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,adjustments:q})}else{const q=c.adjustments.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,adjustments:q})}},gn=()=>c.adjustments.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Is=()=>{const p=zt(),j=gn();return p+j},No=()=>{d(p=>({...p,incomestatement:[...p.incomestatement,{title:"",price:""}]}))},Ds=p=>{const j=c.incomestatement.filter((w,L)=>L!==p);d(w=>({...w,incomestatement:j}))},Ja=(p,j,w)=>{const L=[...c.incomestatement];L[p][j]=w,d(q=>({...q,incomestatement:L}))},Za=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,incomestatement:q})}},Co=()=>c.incomestatement.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Xn=()=>{const p=Co(),j=zt();return p+j},Jn=()=>{const p=isNaN(parseFloat(Xn()))?0:parseFloat(Xn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),L=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),X=isNaN(parseFloat(He()))?0:parseFloat(He());return p+j+w+L+q-X},Zt=()=>{const p=Jn(),j=c.FinancingCostClosingCost;return p-j},Sr=()=>Zt(),bo=()=>{var p,j,w,L,q,X;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost){const le=Sr(),Fs=_(),tl=Z(),nl=A(),rl=ee(),ol=Q(),sl=B(),il=ce(),al=pe(),ll=Bt(),cl=He(),ul=Qn(),dl=gn(),Sg=Is(),kg=zt(),Eg=zt(),Pg=Co(),_g=Xn(),Og=Jn(),Tg=Zt(),fl={...c,userfirstname:(p=l==null?void 0:l.result)==null?void 0:p.firstName,usermiddlename:(j=l==null?void 0:l.result)==null?void 0:j.middleName,userlastname:(w=l==null?void 0:l.result)==null?void 0:w.lastName,usertitle:(L=l==null?void 0:l.result)==null?void 0:L.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(X=l==null?void 0:l.result)==null?void 0:X.userId,totalPurchaseCosts:Fs,totalcredits:ol,totalPurchaseCostsaftercredits:tl,totalcashAdjustments:nl,totalcashrequiredonsettlement:sl,totalincidentalCost:rl,totalcarryCosts:il,totalrenovationCost:al,totalRenovationsandHoldingCost:ll,totalCoststoBuyAtoB:cl,totalcostPaidOutofClosing:ul,totaladjustments:dl,fundsavailablefordistribution:Sg,grossproceedsperHUD:kg,totalCosttoSellBtoC:Eg,totalincomestatement:Pg,netBtoCsalevalue:_g,netprofitbeforefinancingcosts:Og,NetProfit:Tg,rateofreturn:le};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?fl.propertyTaxInfo=c.propertyTaxInfo:fl.propertyTaxInfo=[],s(Si(fl)),g(!0)}else se.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};S.useEffect(()=>{f&&(i==="succeeded"?(se.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):i==="failed"&&(se.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[i,a,f]);const[el,E]=S.useState("0 days"),P=(p,j)=>{if(p&&j){const w=new Date(p),L=new Date(j),q=Math.abs(L-w),X=Math.ceil(q/(1e3*60*60*24));E(`${X} days`)}else E("0 days")};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Fe,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((p,j)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:p.propertytaxowned,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:p.ownedyear,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:p.taxassessed,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:p.taxyear,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(j),style:{height:"25px",width:"35px"},children:"X"})]})})]},j)),r.jsx("button",{className:"btn btn-secondary",onClick:v,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[c.images.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,placeholder:"Image Title",onChange:w=>C(j,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Nd,{multiple:!1,onDone:w=>b(w,j)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>N(j),style:{marginLeft:"5px"},children:"Delete"})]}),p.file&&r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"Base64 Data:"})," ",r.jsxs("pre",{children:[p.file.slice(0,100),"..."]})," ",r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:p.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})]})]},j)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:p=>{const j=p.target.value;d({...c,closeDateAtoB:j}),P(j,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:p=>{const j=p.target.value;d({...c,closeDateBtoC:j}),P(c.closeDateAtoB,j)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:u.map(p=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${p}`,value:p,checked:c.renovationRisk===p,onChange:j=>{const w=parseInt(j.target.value,10);d({...c,renovationRisk:w})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${p}`,children:p})]},p))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Sr().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:el,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:p=>{let j=p.target.value.replace(/[^\d.]/g,"");const w=/^\d*\.?\d*$/.test(j);d({...c,purchaseCost:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>O(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:`$ ${p.price}`,onChange:w=>T(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>k(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:y,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>H(j,"title",w.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>te(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:F,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>G(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>R(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>U(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:A(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>K(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Y(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>W(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:M,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ee(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>oe(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>ae(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ne(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:re,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:ce(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>jt(j,"title",w.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Lt(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Me(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ve,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:pe(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Bt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:He(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>yo(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>jo(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Jt(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>de(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Wt(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>$t(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:vn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Is(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>Ja(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Za(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ds(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:No,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Co(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:He(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Xn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,shorttermrental:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,OtherIncome:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,InsuranceClaim:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,LongTermRental:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bo,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})},Yt="/assets/propertydummy-DhVEZ7jN.jpg",cb=()=>{var u;const e=Ft(),{user:t}=Qe(c=>({...c.auth})),{userProperties:n,totalPages:o}=Qe(c=>c.property),[s,i]=S.useState(1),a=5;S.useEffect(()=>{e(ki({userId:t.result.userId,page:s,limit:a}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,s]);const l=c=>{i(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||Yt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(Ne,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(Ne,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(Ne,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(s-1),disabled:s===1,children:"Previous"}),Array.from({length:o},(c,d)=>d+1).map(c=>c===s||c===1||c===o||c>=s-1&&c<=s+1?r.jsx("button",{onClick:()=>l(c),disabled:s===c,children:c},c):c===2||c===o-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(s+1),disabled:s===o,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},ub=()=>{var c,d,f,g,b,x,N,C,m,v,h,y;const{user:e,isLoading:t}=Qe(k=>k.auth),n=Ft(),o=vo(),[s,i]=S.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((d=e==null?void 0:e.result)==null?void 0:d.title)||"",firstName:((f=e==null?void 0:e.result)==null?void 0:f.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((b=e==null?void 0:e.result)==null?void 0:b.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((N=e==null?void 0:e.result)==null?void 0:N.aboutme)||"",city:((C=e==null?void 0:e.result)==null?void 0:C.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((y=e==null?void 0:e.result)==null?void 0:y.profileImage)||""});S.useEffect(()=>{e&&i({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=k=>{i({...s,[k.target.name]:k.target.value})},l=()=>{i({...s,profileImage:""})},u=k=>{k.preventDefault(),n(Ci({formData:s,toast:se,navigate:o}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:u,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:s.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:s.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:s.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:s.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:s.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:s.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:s.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:s.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:s.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Nd,{type:"file",multiple:!1,onDone:({base64:k})=>i({...s,profileImage:k})})})]}),s.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:s.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},db=()=>{const[e,t]=S.useState("dashboard"),{user:n}=Qe(s=>s.auth),o=()=>{switch(e){case"Userdetails":return r.jsx(ub,{});case"addProperty":return r.jsx(lb,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(cb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[r.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Ti,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"User Profile"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Add Property"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Active Properties"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Closed Properties"})]})]})]})}),r.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:r.jsxs("div",{className:"card card2 p-2",children:[r.jsxs("span",{children:[r.jsx("br",{}),"Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(Ne,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),e==="dashboard"&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsx("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:" investor-borrower interactions, "})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("br",{}),o()]})})]}),r.jsx(Ze,{})]})};var Qv={exports:{}},fb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pb=fb,mb=pb;function Xv(){}function Jv(){}Jv.resetWarningCache=Xv;var hb=function(){function e(o,s,i,a,l,u){if(u!==mb){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:Jv,resetWarningCache:Xv};return n.PropTypes=n,n};Qv.exports=hb();var vb=Qv.exports;const Xt=Cs(vb),gb=()=>{const[e,t]=S.useState(3),n=vo();return S.useEffect(()=>{const o=setInterval(()=>{t(s=>--s)},1e3);return e===0&&n("/login"),()=>clearInterval(o)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ri=({children:e})=>{const{user:t}=Qe(n=>({...n.auth}));return t?e:r.jsx(gb,{})};Ri.propTypes={children:Xt.node.isRequired};const xb=()=>{const e=Ft(),{id:t,token:n}=go();return S.useEffect(()=>{e(wi({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(Ne,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(Ze,{})]})},yb=()=>{const[e,t]=S.useState(""),[n,o]=S.useState(""),s="http://67.225.129.127:3002",i=async()=>{try{const a=await he.post(`${s}/users/forgotpassword`,{email:e});o(a.data.message)}catch(a){console.error("Forgot Password Error:",a),o(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:i,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(Ne,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(Ze,{})]})]})},jb=()=>{const{userId:e,token:t}=go(),[n,o]=S.useState(""),[s,i]=S.useState(""),[a,l]=S.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),se.error("Password not entered");return}const d=await he.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==s){l("Passwords do not match."),se.error("Passwords do not match.");return}else l("Password reset successfull"),se.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return S.useEffect(()=>{se.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>o(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:s,onChange:d=>i(d.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(Ze,{})]})},Nb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(Ze,{})]});var Zv={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a{i.target===e&&(s(),t(i))},n+o)}function Wb(e){e.offsetHeight}const Cp=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Ub(e,t){const n=Cp(e),o=Cp(t);return s=>{n&&n(s),o&&o(s)}}function As(e,t){return S.useMemo(()=>Ub(e,t),[e,t])}function qb(e){return e&&"setState"in e?Wr.findDOMNode(e):e??null}const Vb=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:o,onExiting:s,onExited:i,addEndListener:a,children:l,childRef:u,...c},d)=>{const f=S.useRef(null),g=As(f,u),b=P=>{g(qb(P))},x=P=>T=>{P&&f.current&&P(f.current,T)},N=S.useCallback(x(e),[e]),C=S.useCallback(x(t),[t]),m=S.useCallback(x(n),[n]),v=S.useCallback(x(o),[o]),h=S.useCallback(x(s),[s]),y=S.useCallback(x(i),[i]),k=S.useCallback(x(a),[a]);return r.jsx(hn,{ref:d,...c,onEnter:N,onEntered:m,onEntering:C,onExit:v,onExited:y,onExiting:h,addEndListener:k,nodeRef:f,children:typeof l=="function"?(P,T)=>l(P,{...T,ref:b}):I.cloneElement(l,{ref:b})})});function Hb(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Kt(e){const t=Hb(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Kb=e=>S.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:xe(t.className,e)}));function Yb(){return S.useState(null)}function Gb(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Qb(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const Xb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Jb=typeof document<"u",bp=Jb||Xb?S.useLayoutEffect:S.useEffect,Zb=["as","disabled"];function ew(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function tw(e){return!e||e.trim()==="#"}function rg({tagName:e,disabled:t,href:n,target:o,rel:s,role:i,onClick:a,tabIndex:l=0,type:u}){e||(n!=null||o!=null||s!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const d=g=>{if((t||e==="a"&&tw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},f=g=>{g.key===" "&&(g.preventDefault(),d(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?o:void 0,"aria-disabled":t||void 0,rel:e==="a"?s:void 0,onClick:d,onKeyDown:f},c]}const nw=S.forwardRef((e,t)=>{let{as:n,disabled:o}=e,s=ew(e,Zb);const[i,{tagName:a}]=rg(Object.assign({tagName:n,disabled:o},s));return r.jsx(a,Object.assign({},s,i,{ref:t}))});nw.displayName="Button";function rw(e){return e.code==="Escape"||e.keyCode===27}function og(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const ow={[Sn]:"show",[sr]:"show"},Cd=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:o,...s},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...s},l=S.useCallback((d,f)=>{Wb(d),o==null||o(d,f)},[o]),{major:u}=og(),c=u>=19?t.props.ref:t.ref;return r.jsx(Vb,{ref:i,addEndListener:$b,...a,onEnter:l,childRef:c,children:(d,f)=>S.cloneElement(t,{...f,className:xe("fade",e,t.props.className,ow[d],n[d])})})});Cd.displayName="Fade";const sw={"aria-label":Xt.string,onClick:Xt.func,variant:Xt.oneOf(["white"])},bd=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...o},s)=>r.jsx("button",{ref:s,type:"button",className:xe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...o}));bd.displayName="CloseButton";bd.propTypes=sw;const sg=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:o,active:s=!1,disabled:i=!1,className:a,...l},u)=>{const c=Ae(t,"btn"),[d,{tagName:f}]=rg({tagName:e,disabled:i,...l}),g=f;return r.jsx(g,{...d,...l,ref:u,disabled:i,className:xe(a,c,s&&"active",n&&`${c}-${n}`,o&&`${c}-${o}`,l.href&&i&&"disabled")})});sg.displayName="Button";function iw(e){const t=S.useRef(e);return t.current=e,t}function ig(e){const t=iw(e);S.useEffect(()=>()=>t.current(),[])}function aw(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function lw({as:e,bsPrefix:t,className:n,...o}){t=Ae(t,"col");const s=Eb(),i=Pb(),a=[],l=[];return s.forEach(u=>{const c=o[u];delete o[u];let d,f,g;typeof c=="object"&&c!=null?{span:d,offset:f,order:g}=c:d=c;const b=u!==i?`-${u}`:"";d&&a.push(d===!0?`${t}${b}`:`${t}${b}-${d}`),g!=null&&l.push(`order${b}-${g}`),f!=null&&l.push(`offset${b}-${f}`)}),[{...o,className:xe(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const ag=S.forwardRef((e,t)=>{const[{className:n,...o},{as:s="div",bsPrefix:i,spans:a}]=lw(e);return r.jsx(s,{...o,ref:t,className:xe(n,!a.length&&i)})});ag.displayName="Col";var cw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Pr(e,t){return cw(e.querySelectorAll(t))}function wp(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const uw="data-rr-ui-";function dw(e){return`${uw}${e}`}const lg=S.createContext(xo?window:void 0);lg.Provider;function wd(){return S.useContext(lg)}const fw={type:Xt.string,tooltip:Xt.bool,as:Xt.elementType},Xa=S.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:o=!1,...s},i)=>r.jsx(e,{...s,ref:i,className:xe(t,`${n}-${o?"tooltip":"feedback"}`)}));Xa.displayName="Feedback";Xa.propTypes=fw;const fn=S.createContext({}),Sd=S.forwardRef(({id:e,bsPrefix:t,className:n,type:o="checkbox",isValid:s=!1,isInvalid:i=!1,as:a="input",...l},u)=>{const{controlId:c}=S.useContext(fn);return t=Ae(t,"form-check-input"),r.jsx(a,{...l,ref:u,type:o,id:e||c,className:xe(n,t,s&&"is-valid",i&&"is-invalid")})});Sd.displayName="FormCheckInput";const va=S.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...o},s)=>{const{controlId:i}=S.useContext(fn);return e=Ae(e,"form-check-label"),r.jsx("label",{...o,ref:s,htmlFor:n||i,className:xe(t,e)})});va.displayName="FormCheckLabel";const cg=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:o=!1,reverse:s=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:c,feedbackType:d,className:f,style:g,title:b="",type:x="checkbox",label:N,children:C,as:m="input",...v},h)=>{t=Ae(t,"form-check"),n=Ae(n,"form-switch");const{controlId:y}=S.useContext(fn),k=S.useMemo(()=>({controlId:e||y}),[y,e]),P=!C&&N!=null&&N!==!1||aw(C,va),T=r.jsx(Sd,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:i,as:m});return r.jsx(fn.Provider,{value:k,children:r.jsx("div",{style:g,className:xe(f,P&&t,o&&`${t}-inline`,s&&`${t}-reverse`,x==="switch"&&n),children:C||r.jsxs(r.Fragment,{children:[T,P&&r.jsx(va,{title:b,children:N}),c&&r.jsx(Xa,{type:d,tooltip:u,children:c})]})})})});cg.displayName="FormCheck";const ga=Object.assign(cg,{Input:Sd,Label:va}),ug=S.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:o,id:s,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:u,readOnly:c,as:d="input",...f},g)=>{const{controlId:b}=S.useContext(fn);return e=Ae(e,"form-control"),r.jsx(d,{...f,type:t,size:o,ref:g,readOnly:c,id:s||b,className:xe(i,u?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});ug.displayName="FormControl";const pw=Object.assign(ug,{Feedback:Xa}),dg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Ae(t,"form-floating"),r.jsx(n,{ref:s,className:xe(e,t),...o})));dg.displayName="FormFloating";const kd=S.forwardRef(({controlId:e,as:t="div",...n},o)=>{const s=S.useMemo(()=>({controlId:e}),[e]);return r.jsx(fn.Provider,{value:s,children:r.jsx(t,{...n,ref:o})})});kd.displayName="FormGroup";const fg=S.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:o=!1,className:s,htmlFor:i,...a},l)=>{const{controlId:u}=S.useContext(fn);t=Ae(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const d=xe(s,t,o&&"visually-hidden",n&&c);return i=i||u,n?r.jsx(ag,{ref:l,as:"label",className:d,htmlFor:i,...a}):r.jsx(e,{ref:l,className:d,htmlFor:i,...a})});fg.displayName="FormLabel";const pg=S.forwardRef(({bsPrefix:e,className:t,id:n,...o},s)=>{const{controlId:i}=S.useContext(fn);return e=Ae(e,"form-range"),r.jsx("input",{...o,type:"range",ref:s,className:xe(t,e),id:n||i})});pg.displayName="FormRange";const mg=S.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:o,isValid:s=!1,isInvalid:i=!1,id:a,...l},u)=>{const{controlId:c}=S.useContext(fn);return e=Ae(e,"form-select"),r.jsx("select",{...l,size:n,ref:u,className:xe(o,e,t&&`${e}-${t}`,s&&"is-valid",i&&"is-invalid"),id:a||c})});mg.displayName="FormSelect";const hg=S.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:o,...s},i)=>(e=Ae(e,"form-text"),r.jsx(n,{...s,ref:i,className:xe(t,e,o&&"text-muted")})));hg.displayName="FormText";const vg=S.forwardRef((e,t)=>r.jsx(ga,{...e,ref:t,type:"switch"}));vg.displayName="Switch";const mw=Object.assign(vg,{Input:ga.Input,Label:ga.Label}),gg=S.forwardRef(({bsPrefix:e,className:t,children:n,controlId:o,label:s,...i},a)=>(e=Ae(e,"form-floating"),r.jsxs(kd,{ref:a,className:xe(t,e),controlId:o,...i,children:[n,r.jsx("label",{htmlFor:o,children:s})]})));gg.displayName="FloatingLabel";const hw={_ref:Xt.any,validated:Xt.bool,as:Xt.elementType},Ed=S.forwardRef(({className:e,validated:t,as:n="form",...o},s)=>r.jsx(n,{...o,ref:s,className:xe(e,t&&"was-validated")}));Ed.displayName="Form";Ed.propTypes=hw;const Zn=Object.assign(Ed,{Group:kd,Control:pw,Floating:dg,Check:ga,Switch:mw,Label:fg,Text:hg,Range:pg,Select:mg,FloatingLabel:gg});var oi;function Sp(e){if((!oi&&oi!==0||e)&&xo){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),oi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return oi}function Jl(e){e===void 0&&(e=Qa());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function vw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const kp=dw("modal-open");class Pd{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return vw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",s=this.getElement();t.style={overflow:s.style.overflow,[o]:s.style[o]},t.scrollBarWidth&&(n[o]=`${parseInt(mr(s,o)||"0",10)+t.scrollBarWidth}px`),s.setAttribute(kp,""),mr(s,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(kp),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Zl=(e,t)=>xo?e==null?(t||Qa()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function gw(e,t){const n=wd(),[o,s]=S.useState(()=>Zl(e,n==null?void 0:n.document));if(!o){const i=Zl(e);i&&s(i)}return S.useEffect(()=>{},[t,o]),S.useEffect(()=>{const i=Zl(e);i!==o&&s(i)},[e,o]),o}function xw({children:e,in:t,onExited:n,mountOnEnter:o,unmountOnExit:s}){const i=S.useRef(null),a=S.useRef(t),l=Kt(n);S.useEffect(()=>{t?a.current=!0:l(i.current)},[t,l]);const u=As(i,e.ref),c=S.cloneElement(e,{ref:u});return t?c:s||!a.current&&o?null:c}const yw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function jw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function Nw(e){let{onEnter:t,onEntering:n,onEntered:o,onExit:s,onExiting:i,onExited:a,addEndListener:l,children:u}=e,c=jw(e,yw);const{major:d}=og(),f=d>=19?u.props.ref:u.ref,g=S.useRef(null),b=As(g,typeof u=="function"?null:f),x=P=>T=>{P&&g.current&&P(g.current,T)},N=S.useCallback(x(t),[t]),C=S.useCallback(x(n),[n]),m=S.useCallback(x(o),[o]),v=S.useCallback(x(s),[s]),h=S.useCallback(x(i),[i]),y=S.useCallback(x(a),[a]),k=S.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:N},n&&{onEntering:C},o&&{onEntered:m},s&&{onExit:v},i&&{onExiting:h},a&&{onExited:y},l&&{addEndListener:k},{children:typeof u=="function"?(P,T)=>u(P,Object.assign({},T,{ref:b})):S.cloneElement(u,{ref:b})})}const Cw=["component"];function bw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}const ww=S.forwardRef((e,t)=>{let{component:n}=e,o=bw(e,Cw);const s=Nw(o);return r.jsx(n,Object.assign({ref:t},s))});function Sw({in:e,onTransition:t}){const n=S.useRef(null),o=S.useRef(!0),s=Kt(t);return bp(()=>{if(!n.current)return;let i=!1;return s({in:e,element:n.current,initial:o.current,isStale:()=>i}),()=>{i=!0}},[e,s]),bp(()=>(o.current=!1,()=>{o.current=!0}),[]),n}function kw({children:e,in:t,onExited:n,onEntered:o,transition:s}){const[i,a]=S.useState(!t);t&&i&&a(!1);const l=Sw({in:!!t,onTransition:c=>{const d=()=>{c.isStale()||(c.in?o==null||o(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(s(c)).then(d,f=>{throw c.in||a(!0),f})}}),u=As(l,e.ref);return i&&!t?null:S.cloneElement(e,{ref:u})}function Ep(e,t,n){return e?r.jsx(ww,Object.assign({},n,{component:e})):t?r.jsx(kw,Object.assign({},n,{transition:t})):r.jsx(xw,Object.assign({},n))}const Ew=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Pw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}let ec;function _w(e){return ec||(ec=new Pd({ownerDocument:e==null?void 0:e.document})),ec}function Ow(e){const t=wd(),n=e||_w(t),o=S.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:S.useCallback(s=>{o.current.dialog=s},[]),setBackdropRef:S.useCallback(s=>{o.current.backdrop=s},[])})}const xg=S.forwardRef((e,t)=>{let{show:n=!1,role:o="dialog",className:s,style:i,children:a,backdrop:l=!0,keyboard:u=!0,onBackdropClick:c,onEscapeKeyDown:d,transition:f,runTransition:g,backdropTransition:b,runBackdropTransition:x,autoFocus:N=!0,enforceFocus:C=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:y=pe=>r.jsx("div",Object.assign({},pe)),manager:k,container:P,onShow:T,onHide:O=()=>{},onExit:M,onExited:$,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,D=Pw(e,Ew);const U=wd(),G=gw(P),R=Ow(k),A=Gb(),B=Qb(n),[F,W]=S.useState(!n),K=S.useRef(null);S.useImperativeHandle(t,()=>R,[R]),xo&&!B&&n&&(K.current=Jl(U==null?void 0:U.document)),n&&F&&W(!1);const Y=Kt(()=>{if(R.add(),ce.current=ha(document,"keydown",oe),ae.current=ha(document,"focus",()=>setTimeout(re),!0),T&&T(),N){var pe,Bt;const He=Jl((pe=(Bt=R.dialog)==null?void 0:Bt.ownerDocument)!=null?pe:U==null?void 0:U.document);R.dialog&&He&&!wp(R.dialog,He)&&(K.current=He,R.dialog.focus())}}),ee=Kt(()=>{if(R.remove(),ce.current==null||ce.current(),ae.current==null||ae.current(),m){var pe;(pe=K.current)==null||pe.focus==null||pe.focus(v),K.current=null}});S.useEffect(()=>{!n||!G||Y()},[n,G,Y]),S.useEffect(()=>{F&&ee()},[F,ee]),ig(()=>{ee()});const re=Kt(()=>{if(!C||!A()||!R.isTopModal())return;const pe=Jl(U==null?void 0:U.document);R.dialog&&pe&&!wp(R.dialog,pe)&&R.dialog.focus()}),ne=Kt(pe=>{pe.target===pe.currentTarget&&(c==null||c(pe),l===!0&&O())}),oe=Kt(pe=>{u&&rw(pe)&&R.isTopModal()&&(d==null||d(pe),pe.defaultPrevented||O())}),ae=S.useRef(),ce=S.useRef(),ve=(...pe)=>{W(!0),$==null||$(...pe)};if(!G)return null;const Me=Object.assign({role:o,ref:R.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},D,{style:i,className:s,tabIndex:-1});let jt=h?h(Me):r.jsx("div",Object.assign({},Me,{children:S.cloneElement(a,{role:"document"})}));jt=Ep(f,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:M,onExiting:H,onExited:ve,onEnter:te,onEntering:Q,onEntered:Z,children:jt});let Lt=null;return l&&(Lt=y({ref:R.setBackdropRef,onClick:ne}),Lt=Ep(b,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Lt})),r.jsx(r.Fragment,{children:Wr.createPortal(r.jsxs(r.Fragment,{children:[Lt,jt]}),G)})});xg.displayName="Modal";const Tw=Object.assign(xg,{Manager:Pd});function Rw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Aw(e,t){e.classList?e.classList.add(t):Rw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Pp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Iw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Pp(e.className,t):e.setAttribute("class",Pp(e.className&&e.className.baseVal||"",t))}const _r={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Dw extends Pd{adjustAndStore(t,n,o){const s=n.style[t];n.dataset[t]=s,mr(n,{[t]:`${parseFloat(mr(n,t))+o}px`})}restore(t,n){const o=n.dataset[t];o!==void 0&&(delete n.dataset[t],mr(n,{[t]:o}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Aw(n,"modal-open"),!t.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";Pr(n,_r.FIXED_CONTENT).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth)),Pr(n,_r.STICKY_CONTENT).forEach(i=>this.adjustAndStore(s,i,-t.scrollBarWidth)),Pr(n,_r.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(s,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Iw(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";Pr(n,_r.FIXED_CONTENT).forEach(i=>this.restore(o,i)),Pr(n,_r.STICKY_CONTENT).forEach(i=>this.restore(s,i)),Pr(n,_r.NAVBAR_TOGGLER).forEach(i=>this.restore(s,i))}}let tc;function Fw(e){return tc||(tc=new Dw(e)),tc}const yg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Ae(t,"modal-body"),r.jsx(n,{ref:s,className:xe(e,t),...o})));yg.displayName="ModalBody";const jg=S.createContext({onHide(){}}),_d=S.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:o,size:s,fullscreen:i,children:a,scrollable:l,...u},c)=>{e=Ae(e,"modal");const d=`${e}-dialog`,f=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return r.jsx("div",{...u,ref:c,className:xe(d,t,s&&`${e}-${s}`,o&&`${d}-centered`,l&&`${d}-scrollable`,i&&f),children:r.jsx("div",{className:xe(`${e}-content`,n),children:a})})});_d.displayName="ModalDialog";const Ng=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Ae(t,"modal-footer"),r.jsx(n,{ref:s,className:xe(e,t),...o})));Ng.displayName="ModalFooter";const Mw=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:o,children:s,...i},a)=>{const l=S.useContext(jg),u=Kt(()=>{l==null||l.onHide(),o==null||o()});return r.jsxs("div",{ref:a,...i,children:[s,n&&r.jsx(bd,{"aria-label":e,variant:t,onClick:u})]})}),Cg=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:o=!1,...s},i)=>(e=Ae(e,"modal-header"),r.jsx(Mw,{ref:i,...s,className:xe(t,e),closeLabel:n,closeButton:o})));Cg.displayName="ModalHeader";const Lw=Kb("h4"),bg=S.forwardRef(({className:e,bsPrefix:t,as:n=Lw,...o},s)=>(t=Ae(t,"modal-title"),r.jsx(n,{ref:s,className:xe(e,t),...o})));bg.displayName="ModalTitle";function Bw(e){return r.jsx(Cd,{...e,timeout:null})}function zw(e){return r.jsx(Cd,{...e,timeout:null})}const wg=S.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:o,contentClassName:s,children:i,dialogAs:a=_d,"data-bs-theme":l,"aria-labelledby":u,"aria-describedby":c,"aria-label":d,show:f=!1,animation:g=!0,backdrop:b=!0,keyboard:x=!0,onEscapeKeyDown:N,onShow:C,onHide:m,container:v,autoFocus:h=!0,enforceFocus:y=!0,restoreFocus:k=!0,restoreFocusOptions:P,onEntered:T,onExit:O,onExiting:M,onEnter:$,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...D},U)=>{const[G,R]=S.useState({}),[A,B]=S.useState(!1),F=S.useRef(!1),W=S.useRef(!1),K=S.useRef(null),[Y,ee]=Yb(),re=As(U,ee),ne=Kt(m),oe=_b();e=Ae(e,"modal");const ae=S.useMemo(()=>({onHide:ne}),[ne]);function ce(){return Z||Fw({isRTL:oe})}function ve(de){if(!xo)return;const Wt=ce().getScrollbarWidth()>0,gn=de.scrollHeight>Qa(de).documentElement.clientHeight;R({paddingRight:Wt&&!gn?Sp():void 0,paddingLeft:!Wt&&gn?Sp():void 0})}const Me=Kt(()=>{Y&&ve(Y.dialog)});ig(()=>{gu(window,"resize",Me),K.current==null||K.current()});const jt=()=>{F.current=!0},Lt=de=>{F.current&&Y&&de.target===Y.dialog&&(W.current=!0),F.current=!1},pe=()=>{B(!0),K.current=ng(Y.dialog,()=>{B(!1)})},Bt=de=>{de.target===de.currentTarget&&pe()},He=de=>{if(b==="static"){Bt(de);return}if(W.current||de.target!==de.currentTarget){W.current=!1;return}m==null||m()},Gn=de=>{x?N==null||N(de):(de.preventDefault(),b==="static"&&pe())},Jt=(de,Wt)=>{de&&ve(de),$==null||$(de,Wt)},yo=de=>{K.current==null||K.current(),O==null||O(de)},jo=(de,Wt)=>{H==null||H(de,Wt),tg(window,"resize",Me)},Qn=de=>{de&&(de.style.display=""),te==null||te(de),gu(window,"resize",Me)},zt=S.useCallback(de=>r.jsx("div",{...de,className:xe(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),vn={...n,...G};vn.display="block";const $t=de=>r.jsx("div",{role:"dialog",...de,style:vn,className:xe(t,e,A&&`${e}-static`,!g&&"show"),onClick:b?He:void 0,onMouseUp:Lt,"data-bs-theme":l,"aria-label":d,"aria-labelledby":u,"aria-describedby":c,children:r.jsx(a,{...D,onMouseDown:jt,className:o,contentClassName:s,children:i})});return r.jsx(jg.Provider,{value:ae,children:r.jsx(Tw,{show:f,ref:re,backdrop:b,container:v,keyboard:!0,autoFocus:h,enforceFocus:y,restoreFocus:k,restoreFocusOptions:P,onEscapeKeyDown:Gn,onShow:C,onHide:m,onEnter:Jt,onEntering:jo,onEntered:T,onExit:yo,onExiting:M,onExited:Qn,manager:ce(),transition:g?Bw:void 0,backdropTransition:g?zw:void 0,renderBackdrop:zt,renderDialog:$t})})});wg.displayName="Modal";const si=Object.assign(wg,{Body:yg,Header:Cg,Title:bg,Footer:Ng,Dialog:_d,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),$w=()=>{var k;const{id:e}=go(),t=Ft(),{selectedProperty:n,status:o,error:s}=Qe(P=>P.property),{user:i}=Qe(P=>({...P.auth})),[a,l]=S.useState("propertydetails"),[u,c]=S.useState(!0),[d,f]=S.useState(!1),[g,b]=S.useState({fundValue:"0",fundPercentage:"0"});if(S.useEffect(()=>{e&&t(Go(e))},[e,t]),S.useEffect(()=>{o==="succeeded"&&c(!1)},[o]),o==="failed")return r.jsxs("p",{children:["Error loading property: ",s]});const x=((k=i==null?void 0:i.result)==null?void 0:k.userId)===(n==null?void 0:n.userId),N=!!i,C=()=>{f(!0)},m=()=>{f(!1)},v=P=>{const{name:T,value:O}=P.target;b({...g,[T]:O})},h=P=>{if(P.preventDefault(),g.fundValue<=0||g.fundPercentage<=0)return ie.error("Please enter valid funding details");const T={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:i.result._id};t(Pi({id:e,fundDetails:T,toast:ie})),m()},y=P=>{const T=JSON.parse(localStorage.getItem("profile")).token;t(_i({id:e,fundDetailId:P,token:T}))};return r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container tabs-wrap col-12",children:[r.jsx(Re,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:u?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||Yt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:Yt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!N,onClick:x||!N?null:C,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!N&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{children:n.fundDetails.map((P,T)=>{var O,M;return r.jsxs("li",{children:["Fund Value: ",P.fundValue,", Fund Percentage:"," ",P.fundPercentage,"%",(O=i==null?void 0:i.result)!=null&&O.userId?r.jsx("div",{children:((M=i==null?void 0:i.result)==null?void 0:M._id)===P.userId&&r.jsx("button",{onClick:()=>y(P._id),children:"Delete"})}):r.jsx("div",{})]},T)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(Ze,{}),r.jsxs(si,{show:d,onHide:m,children:[r.jsx(si.Header,{closeButton:!0,children:r.jsx(si.Title,{children:"Investment/Funding Details"})}),r.jsx(si.Body,{children:r.jsxs(Zn,{onSubmit:h,children:[r.jsxs(Zn.Group,{children:[r.jsx(Zn.Label,{children:"Fund Value"}),r.jsx(Zn.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsxs(Zn.Group,{children:[r.jsx(Zn.Label,{children:"Fund Percentage"}),r.jsx(Zn.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(sg,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},Ww=()=>{const[e,t]=S.useState([]),[n,o]=S.useState(0),[s,i]=S.useState(0),[a]=S.useState(10),[l,u]=S.useState(""),[c,d]=S.useState(!1),[f,g]=S.useState(!1),b=async()=>{d(!0),g(!1);try{const m=await he.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:s*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),o(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{d(!1)}},x=m=>{u(m.target.value),m.target.value.trim()===""&&(i(0),t([]),o(0),g(!1),b())},N=m=>{m.key==="Enter"&&(m.preventDefault(),b())};S.useEffect(()=>{b()},[l,s]);const C=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:N})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[f&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(Ne,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>i(s-1),disabled:s===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",s+1," of ",C," "]}),r.jsx("button",{onClick:()=>i(s+1),disabled:s+1>=C||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(Ze,{})]})},Uw=()=>r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(Ze,{})]}),qw=()=>{const{house_id:e}=go();console.log("house_id",e);const[t,n]=S.useState(null),[o,s]=S.useState(!0);return S.useEffect(()=>{(async()=>{try{const a=await he.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{s(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:o?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:Yt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(Ze,{})]})},Vw=()=>{const{id:e}=go(),t=Ft(),[n,o]=S.useState("propertydetails"),s=()=>{n==="propertydetails"&&o("Images"),n==="Images"&&o("Accounting")},i=()=>{n==="Images"&&o("propertydetails"),n==="Accounting"&&o("Images")},{selectedProperty:a}=Qe(E=>E.property),[l,u]=S.useState({address:"",city:"",state:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0"}),c=[1,2,3,4,5,6,7,8,9,10];S.useEffect(()=>{t(Go(e))},[t,e]),S.useEffect(()=>{a&&u({address:a.address||"",city:a.city||"",state:a.state||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn})},[a]);const d=E=>{u({...l,[E.target.name]:E.target.value})},f=(E,_)=>{const{name:p,value:j}=E.target,w=[...l.propertyTaxInfo],L={...w[_]};L[p]=j,w[_]=L,u({...l,propertyTaxInfo:w})},g=E=>{E.preventDefault();const _=$(),p=D(),j=U(),w=F(),L=W(),q=ne(),X=Me(),le=He(),Fs=Gn(),tl=Jt(),nl=vn(),rl=$t(),ol=$t(),sl=No(),il=Ds(),al=Jn(),ll=Zt(),cl=Sr(),ul=bo(),dl={...l,totalPurchaseCosts:_.toFixed(2),totalcredits:p.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:L.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:le.toFixed(2),totalRenovationsandHoldingCost:Fs.toFixed(2),totalCoststoBuyAtoB:tl.toFixed(2),totalcostPaidOutofClosing:nl.toFixed(2),totalCosttoSellBtoC:rl.toFixed(2),grossproceedsperHUD:ol.toFixed(2),totaladjustments:sl.toFixed(2),fundsavailablefordistribution:il.toFixed(2),totalincomestatement:al.toFixed(2),netBtoCsalevalue:ll.toFixed(2),netprofitbeforefinancingcosts:cl.toFixed(2),netprofit:ul.toFixed(2)};t(Ei({id:e,propertyData:dl}))},b=()=>{u({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=E=>{const _=l.propertyTaxInfo.filter((p,j)=>j!==E);u({...l,propertyTaxInfo:_})},N=(E,_)=>{const p=[...l.images];p[_]={...p[_],file:E.base64},u({...l,images:p})},C=()=>{u({...l,images:[...l.images,{title:"",file:""}]})},m=E=>{const _=l.images.filter((p,j)=>j!==E);u({...l,images:_})},v=(E,_)=>{const p=[...l.images];p[E]={...p[E],title:_.target.value},u({...l,images:p})};S.useEffect(()=>{k(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,y]=S.useState("0 days"),k=(E,_)=>{if(E&&_){const p=new Date(E),j=new Date(_),w=Math.abs(j-p),L=Math.ceil(w/(1e3*60*60*24));y(`${L} days`)}else y("0 days")},P=()=>{u(E=>({...E,costPaidAtoB:[...E.costPaidAtoB,{title:"",price:""}]}))},T=E=>{const _=l.costPaidAtoB.filter((p,j)=>j!==E);u(p=>({...p,costPaidAtoB:_}))},O=(E,_,p)=>{const j=[...l.costPaidAtoB];j[E][_]=p,u(w=>({...w,costPaidAtoB:j}))},M=(E,_)=>{let p=E.target.value;if(p=p.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(p)||p===""){const w=l.costPaidAtoB.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,costPaidAtoB:w})}},$=()=>{const E=l.costPaidAtoB.reduce((p,j)=>{const w=parseFloat(j.price)||0;return p+w},0),_=parseFloat(l.purchaseCost)||0;return E+_},H=()=>{u(E=>({...E,credits:[...E.credits,{title:"",price:""}]}))},te=E=>{const _=l.credits.filter((p,j)=>j!==E);u(p=>({...p,credits:_}))},Q=(E,_,p)=>{const j=[...l.credits];j[E][_]=p,u(w=>({...w,credits:j}))},Z=(E,_)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.credits.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,credits:w})}else{const w=l.credits.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,credits:w})}},D=()=>l.credits.reduce((E,_)=>{const p=parseFloat(_.price);return E+(isNaN(p)?0:p)},0),U=()=>{const E=l.costPaidAtoB.reduce((j,w)=>{const L=parseFloat(w.price)||0;return j+L},0),_=l.credits.reduce((j,w)=>{const L=parseFloat(w.price)||0;return j+L},0),p=parseFloat(l.purchaseCost)||0;return E+_+p},G=()=>{u(E=>({...E,cashAdjustments:[...E.cashAdjustments,{title:"",price:""}]}))},R=E=>{const _=l.cashAdjustments.filter((p,j)=>j!==E);u(p=>({...p,cashAdjustments:_}))},A=(E,_,p)=>{const j=[...l.cashAdjustments];j[E][_]=p,u(w=>({...w,cashAdjustments:j}))},B=(E,_)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.cashAdjustments.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,cashAdjustments:w})}},F=()=>l.cashAdjustments.reduce((E,_)=>{const p=parseFloat(_.price);return E+(isNaN(p)?0:p)},0),W=()=>{const E=F(),_=D(),p=$();return E+_+p},K=()=>{u(E=>({...E,incidentalCost:[...E.incidentalCost,{title:"",price:""}]}))},Y=E=>{const _=l.incidentalCost.filter((p,j)=>j!==E);u(p=>({...p,incidentalCost:_}))},ee=(E,_,p)=>{const j=[...l.incidentalCost];j[E][_]=p,u(w=>({...w,incidentalCost:j}))},re=(E,_)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.incidentalCost.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((E,_)=>{const p=parseFloat(_.price);return E+(isNaN(p)?0:p)},0),oe=()=>{u(E=>({...E,carryCosts:[...E.carryCosts,{title:"",price:""}]}))},ae=E=>{const _=l.carryCosts.filter((p,j)=>j!==E);u(p=>({...p,carryCosts:_}))},ce=(E,_,p)=>{const j=[...l.carryCosts];j[E][_]=p,u(w=>({...w,carryCosts:j}))},ve=(E,_)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.carryCosts.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,carryCosts:w})}else{const w=l.carryCosts.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,carryCosts:w})}},Me=()=>l.carryCosts.reduce((E,_)=>{const p=parseFloat(_.price);return E+(isNaN(p)?0:p)},0),jt=()=>{u(E=>({...E,renovationCost:[...E.renovationCost,{title:"",price:""}]}))},Lt=E=>{const _=l.renovationCost.filter((p,j)=>j!==E);u(p=>({...p,renovationCost:_}))},pe=(E,_,p)=>{const j=[...l.renovationCost];j[E][_]=p,u(w=>({...w,renovationCost:j}))},Bt=(E,_)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.renovationCost.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,renovationCost:w})}else{const w=l.renovationCost.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,renovationCost:w})}},He=()=>l.renovationCost.reduce((E,_)=>{const p=parseFloat(_.price);return E+(isNaN(p)?0:p)},0),Gn=()=>{const E=ne(),_=Me(),p=He();return E+_+p},Jt=()=>{const E=Gn(),_=W();return E+_},yo=()=>{u(E=>({...E,costPaidOutofClosing:[...E.costPaidOutofClosing,{title:"",price:""}]}))},jo=E=>{const _=l.costPaidOutofClosing.filter((p,j)=>j!==E);u(p=>({...p,costPaidOutofClosing:_}))},Qn=(E,_,p)=>{const j=[...l.costPaidOutofClosing];j[E][_]=p,u(w=>({...w,costPaidOutofClosing:j}))},zt=(E,_)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.costPaidOutofClosing.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,costPaidOutofClosing:w})}},vn=()=>l.costPaidOutofClosing.reduce((E,_)=>{const p=parseFloat(_.price);return E+(isNaN(p)?0:p)},0),$t=()=>{const E=l.sellingPriceBtoC,_=vn();return E-_},de=()=>{u(E=>({...E,adjustments:[...E.adjustments,{title:"",price:""}]}))},Wt=E=>{const _=l.adjustments.filter((p,j)=>j!==E);u(p=>({...p,adjustments:_}))},gn=(E,_,p)=>{const j=[...l.adjustments];j[E][_]=p,u(w=>({...w,adjustments:j}))},Is=(E,_)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.adjustments.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,adjustments:w})}else{const w=l.adjustments.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,adjustments:w})}},No=()=>l.adjustments.reduce((E,_)=>{const p=parseFloat(_.price);return E+(isNaN(p)?0:p)},0),Ds=()=>{const E=$t(),_=No();return E+_},Ja=()=>{u(E=>({...E,incomestatement:[...E.incomestatement,{title:"",price:""}]}))},Za=E=>{const _=l.incomestatement.filter((p,j)=>j!==E);u(p=>({...p,incomestatement:_}))},Co=(E,_,p)=>{const j=[...l.incomestatement];j[E][_]=p,u(w=>({...w,incomestatement:j}))},Xn=(E,_)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.incomestatement.map((L,q)=>q===_?{...L,price:p,isInvalid:!1}:L);u({...l,incomestatement:w})}else{const w=l.incomestatement.map((L,q)=>q===_?{...L,isInvalid:!0}:L);u({...l,incomestatement:w})}},Jn=()=>l.incomestatement.reduce((E,_)=>{const p=parseFloat(_.price);return E+(isNaN(p)?0:p)},0),Zt=()=>{const E=Jn(),_=$t();return E+_},Sr=()=>{const E=isNaN(parseFloat(Zt()))?0:parseFloat(Zt()),_=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),p=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),j=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),L=isNaN(parseFloat(Jt()))?0:parseFloat(Jt());return E+_+p+j+w-L},bo=()=>{const E=Sr(),_=l.FinancingCostClosingCost;return E-_},el=()=>bo();return r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center",children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:d,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((E,_)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:E.propertytaxowned,onChange:p=>f(p,_),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:E.ownedyear,onChange:p=>f(p,_),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:E.taxassessed,onChange:p=>f(p,_),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:E.taxyear,onChange:p=>f(p,_),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(_),style:{height:"25px",width:"35px"},children:"X"})]})})]},_)),r.jsx("button",{className:"btn btn-secondary",onClick:b,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,placeholder:"Image Title",onChange:p=>v(_,p)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Nd,{multiple:!1,onDone:p=>N(p,_)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(_),style:{marginLeft:"5px"},children:"Delete"})]}),E.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:E.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},_)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:C,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:d,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:E=>{const _=E.target.value;u({...l,closeDateAtoB:_}),k(_,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:E=>{const _=E.target.value;u({...l,closeDateBtoC:_}),k(l.closeDateAtoB,_)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(E=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${E}`,value:E,checked:l.renovationRisk===E,onChange:_=>{const p=parseInt(_.target.value,10);u({...l,renovationRisk:p})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${E}`,children:E})]},E))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${el().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:E=>{let _=E.target.value.replace(/[^\d.]/g,"");const p=/^\d*\.?\d*$/.test(_);u({...l,purchaseCost:_,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const _=E.charCode;(_<48||_>57)&&_!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>O(_,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:`$ ${E.price}`,onChange:p=>M(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>T(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:P,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${$().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Q(_,"title",p.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Z(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>A(_,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>B(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>R(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:F(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>ee(_,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>re(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Y(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>ce(_,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>ve(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ae(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:oe,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Me(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>pe(_,"title",p.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Bt(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Lt(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:jt,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:He(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Jt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:E=>{const _=E.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,sellingPriceBtoC:_,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const _=E.charCode;(_<48||_>57)&&_!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Qn(_,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>zt(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>jo(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:yo,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:vn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>gn(_,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Is(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Wt(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:de,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:No(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Ds(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((E,_)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Co(_,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Xn(p,_),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Za(_),style:{marginLeft:"5px"},children:"x"})})]},_)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ja,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Jt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:E=>{const _=E.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,fundspriortoclosing:_,isfundspriortoclosingInvalid:!p})},onKeyPress:E=>{const _=E.charCode;(_<48||_>57)&&_!==46&&(E.preventDefault(),u({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:E=>{const _=E.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,shorttermrental:_,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const _=E.charCode;(_<48||_>57)&&_!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:E=>{const _=E.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,OtherIncome:_,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const _=E.charCode;(_<48||_>57)&&_!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:E=>{const _=E.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,InsuranceClaim:_,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const _=E.charCode;(_<48||_>57)&&_!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:E=>{const _=E.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,LongTermRental:_,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const _=E.charCode;(_<48||_>57)&&_!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Sr(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:E=>{const _=E.target.value,p=/^\d*\.?\d*$/.test(_);u({...l,FinancingCostClosingCost:_,isFinancingCostClosingCostInvalid:!p})},onKeyPress:E=>{const _=E.charCode;(_<48||_>57)&&_!==46&&(E.preventDefault(),u({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})]})},Hw=()=>{const e=Ft(),{properties:t,loading:n,totalPages:o,currentPage:s}=Qe(N=>N.property),[i,a]=S.useState(""),[l,u]=S.useState([]),[c,d]=S.useState(1),f=10;S.useEffect(()=>{e(Qo({page:c,limit:f,keyword:i}))},[e,c,i]),S.useEffect(()=>{i.trim()?u(t.filter(N=>N.address.toLowerCase().includes(i.toLowerCase()))):u(t)},[i,t]);const g=N=>{a(N.target.value)},b=N=>{N.preventDefault()},x=N=>{d(N),e(Qo({page:N,limit:f,keyword:i}))};return r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:b,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:i,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(N=>r.jsxs("tr",{children:[r.jsx("td",{children:N.images&&N.images[0]?r.jsx("img",{src:N.images[0].file||Yt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:Yt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(Ne,{to:`/property/${N.propertyId}`,className:"link-primary text-decoration-none",children:N.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),N.city,", ",N.county,","," ",N.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",N.propertyId]})]})]})}),r.jsx("td",{children:N.totallivingsqft}),r.jsx("td",{children:N.yearBuild}),r.jsx("td",{children:N.costpersqft})]},N.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${s===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(s-1),children:"Previous"})}),Array.from({length:o},(N,C)=>r.jsx("li",{className:`page-item ${s===C+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(C+1),children:C+1})},C+1)),r.jsx("li",{className:`page-item ${s===o?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(s+1),children:"Next"})})]})})]}),r.jsx(Ze,{})]})},Kw=()=>{const{userId:e}=go(),t=Ft(),{user:n,loading:o}=Qe(s=>s.user);return console.log("user",n),S.useEffect(()=>{e&&t(bi(e))},[e,t]),o?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Re,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:Yt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:Yt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:Yt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:Yt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),r.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:r.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},Yw=()=>r.jsxs(uC,{children:[r.jsx(PC,{}),r.jsxs(nC,{children:[r.jsx(Ie,{path:"/",element:r.jsx(OC,{})}),r.jsx(Ie,{path:"/about",element:r.jsx(TC,{})}),r.jsx(Ie,{path:"/services",element:r.jsx(Uw,{})}),r.jsx(Ie,{path:"/contact",element:r.jsx(RC,{})}),r.jsx(Ie,{path:"/register",element:r.jsx(ob,{})}),r.jsx(Ie,{path:"/registrationsuccess",element:r.jsx(Ri,{children:r.jsx(Nb,{})})}),r.jsx(Ie,{path:"/login",element:r.jsx(ib,{})}),r.jsx(Ie,{path:"/dashboard",element:r.jsx(Ri,{children:r.jsx(db,{})})}),r.jsx(Ie,{path:"/users/:id/verify/:token",element:r.jsx(xb,{})}),r.jsx(Ie,{path:"/forgotpassword",element:r.jsx(yb,{})}),r.jsx(Ie,{path:"/users/resetpassword/:userId/:token",element:r.jsx(jb,{})}),r.jsx(Ie,{path:"/property/:id",element:r.jsx($w,{})}),r.jsx(Ie,{path:"/properties/:house_id",element:r.jsx(qw,{})}),r.jsx(Ie,{path:"/searchmyproperties",element:r.jsx(Ww,{})}),r.jsx(Ie,{path:"/searchproperties",element:r.jsx(Hw,{})}),r.jsx(Ie,{path:"/editproperty/:id",element:r.jsx(Ri,{children:r.jsx(Vw,{})})}),r.jsx(Ie,{path:"/profile/:userId",element:r.jsx(Kw,{})})]})]});Wh(document.getElementById("root")).render(r.jsx(S.StrictMode,{children:r.jsx(Ej,{store:hN,children:r.jsx(Yw,{})})})); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a{i.target===e&&(s(),t(i))},n+o)}function Wb(e){e.offsetHeight}const Cp=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Ub(e,t){const n=Cp(e),o=Cp(t);return s=>{n&&n(s),o&&o(s)}}function As(e,t){return S.useMemo(()=>Ub(e,t),[e,t])}function qb(e){return e&&"setState"in e?Wr.findDOMNode(e):e??null}const Vb=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:o,onExiting:s,onExited:i,addEndListener:a,children:l,childRef:u,...c},d)=>{const f=S.useRef(null),g=As(f,u),b=O=>{g(qb(O))},x=O=>T=>{O&&f.current&&O(f.current,T)},N=S.useCallback(x(e),[e]),C=S.useCallback(x(t),[t]),m=S.useCallback(x(n),[n]),v=S.useCallback(x(o),[o]),h=S.useCallback(x(s),[s]),y=S.useCallback(x(i),[i]),k=S.useCallback(x(a),[a]);return r.jsx(hn,{ref:d,...c,onEnter:N,onEntered:m,onEntering:C,onExit:v,onExited:y,onExiting:h,addEndListener:k,nodeRef:f,children:typeof l=="function"?(O,T)=>l(O,{...T,ref:b}):I.cloneElement(l,{ref:b})})});function Hb(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Kt(e){const t=Hb(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Kb=e=>S.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:xe(t.className,e)}));function Yb(){return S.useState(null)}function Gb(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Qb(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const Xb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Jb=typeof document<"u",bp=Jb||Xb?S.useLayoutEffect:S.useEffect,Zb=["as","disabled"];function ew(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function tw(e){return!e||e.trim()==="#"}function rg({tagName:e,disabled:t,href:n,target:o,rel:s,role:i,onClick:a,tabIndex:l=0,type:u}){e||(n!=null||o!=null||s!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const d=g=>{if((t||e==="a"&&tw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},f=g=>{g.key===" "&&(g.preventDefault(),d(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?o:void 0,"aria-disabled":t||void 0,rel:e==="a"?s:void 0,onClick:d,onKeyDown:f},c]}const nw=S.forwardRef((e,t)=>{let{as:n,disabled:o}=e,s=ew(e,Zb);const[i,{tagName:a}]=rg(Object.assign({tagName:n,disabled:o},s));return r.jsx(a,Object.assign({},s,i,{ref:t}))});nw.displayName="Button";function rw(e){return e.code==="Escape"||e.keyCode===27}function og(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const ow={[Sn]:"show",[sr]:"show"},Cd=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:o,...s},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...s},l=S.useCallback((d,f)=>{Wb(d),o==null||o(d,f)},[o]),{major:u}=og(),c=u>=19?t.props.ref:t.ref;return r.jsx(Vb,{ref:i,addEndListener:$b,...a,onEnter:l,childRef:c,children:(d,f)=>S.cloneElement(t,{...f,className:xe("fade",e,t.props.className,ow[d],n[d])})})});Cd.displayName="Fade";const sw={"aria-label":Xt.string,onClick:Xt.func,variant:Xt.oneOf(["white"])},bd=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...o},s)=>r.jsx("button",{ref:s,type:"button",className:xe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...o}));bd.displayName="CloseButton";bd.propTypes=sw;const sg=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:o,active:s=!1,disabled:i=!1,className:a,...l},u)=>{const c=Re(t,"btn"),[d,{tagName:f}]=rg({tagName:e,disabled:i,...l}),g=f;return r.jsx(g,{...d,...l,ref:u,disabled:i,className:xe(a,c,s&&"active",n&&`${c}-${n}`,o&&`${c}-${o}`,l.href&&i&&"disabled")})});sg.displayName="Button";function iw(e){const t=S.useRef(e);return t.current=e,t}function ig(e){const t=iw(e);S.useEffect(()=>()=>t.current(),[])}function aw(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function lw({as:e,bsPrefix:t,className:n,...o}){t=Re(t,"col");const s=Eb(),i=Pb(),a=[],l=[];return s.forEach(u=>{const c=o[u];delete o[u];let d,f,g;typeof c=="object"&&c!=null?{span:d,offset:f,order:g}=c:d=c;const b=u!==i?`-${u}`:"";d&&a.push(d===!0?`${t}${b}`:`${t}${b}-${d}`),g!=null&&l.push(`order${b}-${g}`),f!=null&&l.push(`offset${b}-${f}`)}),[{...o,className:xe(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const ag=S.forwardRef((e,t)=>{const[{className:n,...o},{as:s="div",bsPrefix:i,spans:a}]=lw(e);return r.jsx(s,{...o,ref:t,className:xe(n,!a.length&&i)})});ag.displayName="Col";var cw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Pr(e,t){return cw(e.querySelectorAll(t))}function wp(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const uw="data-rr-ui-";function dw(e){return`${uw}${e}`}const lg=S.createContext(xo?window:void 0);lg.Provider;function wd(){return S.useContext(lg)}const fw={type:Xt.string,tooltip:Xt.bool,as:Xt.elementType},Xa=S.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:o=!1,...s},i)=>r.jsx(e,{...s,ref:i,className:xe(t,`${n}-${o?"tooltip":"feedback"}`)}));Xa.displayName="Feedback";Xa.propTypes=fw;const fn=S.createContext({}),Sd=S.forwardRef(({id:e,bsPrefix:t,className:n,type:o="checkbox",isValid:s=!1,isInvalid:i=!1,as:a="input",...l},u)=>{const{controlId:c}=S.useContext(fn);return t=Re(t,"form-check-input"),r.jsx(a,{...l,ref:u,type:o,id:e||c,className:xe(n,t,s&&"is-valid",i&&"is-invalid")})});Sd.displayName="FormCheckInput";const va=S.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...o},s)=>{const{controlId:i}=S.useContext(fn);return e=Re(e,"form-check-label"),r.jsx("label",{...o,ref:s,htmlFor:n||i,className:xe(t,e)})});va.displayName="FormCheckLabel";const cg=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:o=!1,reverse:s=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:c,feedbackType:d,className:f,style:g,title:b="",type:x="checkbox",label:N,children:C,as:m="input",...v},h)=>{t=Re(t,"form-check"),n=Re(n,"form-switch");const{controlId:y}=S.useContext(fn),k=S.useMemo(()=>({controlId:e||y}),[y,e]),O=!C&&N!=null&&N!==!1||aw(C,va),T=r.jsx(Sd,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:i,as:m});return r.jsx(fn.Provider,{value:k,children:r.jsx("div",{style:g,className:xe(f,O&&t,o&&`${t}-inline`,s&&`${t}-reverse`,x==="switch"&&n),children:C||r.jsxs(r.Fragment,{children:[T,O&&r.jsx(va,{title:b,children:N}),c&&r.jsx(Xa,{type:d,tooltip:u,children:c})]})})})});cg.displayName="FormCheck";const ga=Object.assign(cg,{Input:Sd,Label:va}),ug=S.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:o,id:s,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:u,readOnly:c,as:d="input",...f},g)=>{const{controlId:b}=S.useContext(fn);return e=Re(e,"form-control"),r.jsx(d,{...f,type:t,size:o,ref:g,readOnly:c,id:s||b,className:xe(i,u?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});ug.displayName="FormControl";const pw=Object.assign(ug,{Feedback:Xa}),dg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Re(t,"form-floating"),r.jsx(n,{ref:s,className:xe(e,t),...o})));dg.displayName="FormFloating";const kd=S.forwardRef(({controlId:e,as:t="div",...n},o)=>{const s=S.useMemo(()=>({controlId:e}),[e]);return r.jsx(fn.Provider,{value:s,children:r.jsx(t,{...n,ref:o})})});kd.displayName="FormGroup";const fg=S.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:o=!1,className:s,htmlFor:i,...a},l)=>{const{controlId:u}=S.useContext(fn);t=Re(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const d=xe(s,t,o&&"visually-hidden",n&&c);return i=i||u,n?r.jsx(ag,{ref:l,as:"label",className:d,htmlFor:i,...a}):r.jsx(e,{ref:l,className:d,htmlFor:i,...a})});fg.displayName="FormLabel";const pg=S.forwardRef(({bsPrefix:e,className:t,id:n,...o},s)=>{const{controlId:i}=S.useContext(fn);return e=Re(e,"form-range"),r.jsx("input",{...o,type:"range",ref:s,className:xe(t,e),id:n||i})});pg.displayName="FormRange";const mg=S.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:o,isValid:s=!1,isInvalid:i=!1,id:a,...l},u)=>{const{controlId:c}=S.useContext(fn);return e=Re(e,"form-select"),r.jsx("select",{...l,size:n,ref:u,className:xe(o,e,t&&`${e}-${t}`,s&&"is-valid",i&&"is-invalid"),id:a||c})});mg.displayName="FormSelect";const hg=S.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:o,...s},i)=>(e=Re(e,"form-text"),r.jsx(n,{...s,ref:i,className:xe(t,e,o&&"text-muted")})));hg.displayName="FormText";const vg=S.forwardRef((e,t)=>r.jsx(ga,{...e,ref:t,type:"switch"}));vg.displayName="Switch";const mw=Object.assign(vg,{Input:ga.Input,Label:ga.Label}),gg=S.forwardRef(({bsPrefix:e,className:t,children:n,controlId:o,label:s,...i},a)=>(e=Re(e,"form-floating"),r.jsxs(kd,{ref:a,className:xe(t,e),controlId:o,...i,children:[n,r.jsx("label",{htmlFor:o,children:s})]})));gg.displayName="FloatingLabel";const hw={_ref:Xt.any,validated:Xt.bool,as:Xt.elementType},Ed=S.forwardRef(({className:e,validated:t,as:n="form",...o},s)=>r.jsx(n,{...o,ref:s,className:xe(e,t&&"was-validated")}));Ed.displayName="Form";Ed.propTypes=hw;const Zn=Object.assign(Ed,{Group:kd,Control:pw,Floating:dg,Check:ga,Switch:mw,Label:fg,Text:hg,Range:pg,Select:mg,FloatingLabel:gg});var oi;function Sp(e){if((!oi&&oi!==0||e)&&xo){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),oi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return oi}function Jl(e){e===void 0&&(e=Qa());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function vw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const kp=dw("modal-open");class Pd{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return vw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",s=this.getElement();t.style={overflow:s.style.overflow,[o]:s.style[o]},t.scrollBarWidth&&(n[o]=`${parseInt(mr(s,o)||"0",10)+t.scrollBarWidth}px`),s.setAttribute(kp,""),mr(s,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(kp),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Zl=(e,t)=>xo?e==null?(t||Qa()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function gw(e,t){const n=wd(),[o,s]=S.useState(()=>Zl(e,n==null?void 0:n.document));if(!o){const i=Zl(e);i&&s(i)}return S.useEffect(()=>{},[t,o]),S.useEffect(()=>{const i=Zl(e);i!==o&&s(i)},[e,o]),o}function xw({children:e,in:t,onExited:n,mountOnEnter:o,unmountOnExit:s}){const i=S.useRef(null),a=S.useRef(t),l=Kt(n);S.useEffect(()=>{t?a.current=!0:l(i.current)},[t,l]);const u=As(i,e.ref),c=S.cloneElement(e,{ref:u});return t?c:s||!a.current&&o?null:c}const yw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function jw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function Nw(e){let{onEnter:t,onEntering:n,onEntered:o,onExit:s,onExiting:i,onExited:a,addEndListener:l,children:u}=e,c=jw(e,yw);const{major:d}=og(),f=d>=19?u.props.ref:u.ref,g=S.useRef(null),b=As(g,typeof u=="function"?null:f),x=O=>T=>{O&&g.current&&O(g.current,T)},N=S.useCallback(x(t),[t]),C=S.useCallback(x(n),[n]),m=S.useCallback(x(o),[o]),v=S.useCallback(x(s),[s]),h=S.useCallback(x(i),[i]),y=S.useCallback(x(a),[a]),k=S.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:N},n&&{onEntering:C},o&&{onEntered:m},s&&{onExit:v},i&&{onExiting:h},a&&{onExited:y},l&&{addEndListener:k},{children:typeof u=="function"?(O,T)=>u(O,Object.assign({},T,{ref:b})):S.cloneElement(u,{ref:b})})}const Cw=["component"];function bw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}const ww=S.forwardRef((e,t)=>{let{component:n}=e,o=bw(e,Cw);const s=Nw(o);return r.jsx(n,Object.assign({ref:t},s))});function Sw({in:e,onTransition:t}){const n=S.useRef(null),o=S.useRef(!0),s=Kt(t);return bp(()=>{if(!n.current)return;let i=!1;return s({in:e,element:n.current,initial:o.current,isStale:()=>i}),()=>{i=!0}},[e,s]),bp(()=>(o.current=!1,()=>{o.current=!0}),[]),n}function kw({children:e,in:t,onExited:n,onEntered:o,transition:s}){const[i,a]=S.useState(!t);t&&i&&a(!1);const l=Sw({in:!!t,onTransition:c=>{const d=()=>{c.isStale()||(c.in?o==null||o(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(s(c)).then(d,f=>{throw c.in||a(!0),f})}}),u=As(l,e.ref);return i&&!t?null:S.cloneElement(e,{ref:u})}function Ep(e,t,n){return e?r.jsx(ww,Object.assign({},n,{component:e})):t?r.jsx(kw,Object.assign({},n,{transition:t})):r.jsx(xw,Object.assign({},n))}const Ew=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Pw(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}let ec;function _w(e){return ec||(ec=new Pd({ownerDocument:e==null?void 0:e.document})),ec}function Ow(e){const t=wd(),n=e||_w(t),o=S.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:S.useCallback(s=>{o.current.dialog=s},[]),setBackdropRef:S.useCallback(s=>{o.current.backdrop=s},[])})}const xg=S.forwardRef((e,t)=>{let{show:n=!1,role:o="dialog",className:s,style:i,children:a,backdrop:l=!0,keyboard:u=!0,onBackdropClick:c,onEscapeKeyDown:d,transition:f,runTransition:g,backdropTransition:b,runBackdropTransition:x,autoFocus:N=!0,enforceFocus:C=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:y=pe=>r.jsx("div",Object.assign({},pe)),manager:k,container:O,onShow:T,onHide:_=()=>{},onExit:F,onExited:z,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,D=Pw(e,Ew);const U=wd(),G=gw(O),R=Ow(k),A=Gb(),B=Qb(n),[M,W]=S.useState(!n),K=S.useRef(null);S.useImperativeHandle(t,()=>R,[R]),xo&&!B&&n&&(K.current=Jl(U==null?void 0:U.document)),n&&M&&W(!1);const Y=Kt(()=>{if(R.add(),ce.current=ha(document,"keydown",oe),ae.current=ha(document,"focus",()=>setTimeout(re),!0),T&&T(),N){var pe,Bt;const He=Jl((pe=(Bt=R.dialog)==null?void 0:Bt.ownerDocument)!=null?pe:U==null?void 0:U.document);R.dialog&&He&&!wp(R.dialog,He)&&(K.current=He,R.dialog.focus())}}),ee=Kt(()=>{if(R.remove(),ce.current==null||ce.current(),ae.current==null||ae.current(),m){var pe;(pe=K.current)==null||pe.focus==null||pe.focus(v),K.current=null}});S.useEffect(()=>{!n||!G||Y()},[n,G,Y]),S.useEffect(()=>{M&&ee()},[M,ee]),ig(()=>{ee()});const re=Kt(()=>{if(!C||!A()||!R.isTopModal())return;const pe=Jl(U==null?void 0:U.document);R.dialog&&pe&&!wp(R.dialog,pe)&&R.dialog.focus()}),ne=Kt(pe=>{pe.target===pe.currentTarget&&(c==null||c(pe),l===!0&&_())}),oe=Kt(pe=>{u&&rw(pe)&&R.isTopModal()&&(d==null||d(pe),pe.defaultPrevented||_())}),ae=S.useRef(),ce=S.useRef(),ve=(...pe)=>{W(!0),z==null||z(...pe)};if(!G)return null;const Me=Object.assign({role:o,ref:R.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},D,{style:i,className:s,tabIndex:-1});let jt=h?h(Me):r.jsx("div",Object.assign({},Me,{children:S.cloneElement(a,{role:"document"})}));jt=Ep(f,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:F,onExiting:H,onExited:ve,onEnter:te,onEntering:Q,onEntered:Z,children:jt});let Lt=null;return l&&(Lt=y({ref:R.setBackdropRef,onClick:ne}),Lt=Ep(b,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Lt})),r.jsx(r.Fragment,{children:Wr.createPortal(r.jsxs(r.Fragment,{children:[Lt,jt]}),G)})});xg.displayName="Modal";const Tw=Object.assign(xg,{Manager:Pd});function Rw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Aw(e,t){e.classList?e.classList.add(t):Rw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Pp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Iw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Pp(e.className,t):e.setAttribute("class",Pp(e.className&&e.className.baseVal||"",t))}const _r={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Dw extends Pd{adjustAndStore(t,n,o){const s=n.style[t];n.dataset[t]=s,mr(n,{[t]:`${parseFloat(mr(n,t))+o}px`})}restore(t,n){const o=n.dataset[t];o!==void 0&&(delete n.dataset[t],mr(n,{[t]:o}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Aw(n,"modal-open"),!t.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";Pr(n,_r.FIXED_CONTENT).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth)),Pr(n,_r.STICKY_CONTENT).forEach(i=>this.adjustAndStore(s,i,-t.scrollBarWidth)),Pr(n,_r.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(s,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Iw(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",s=this.isRTL?"marginLeft":"marginRight";Pr(n,_r.FIXED_CONTENT).forEach(i=>this.restore(o,i)),Pr(n,_r.STICKY_CONTENT).forEach(i=>this.restore(s,i)),Pr(n,_r.NAVBAR_TOGGLER).forEach(i=>this.restore(s,i))}}let tc;function Fw(e){return tc||(tc=new Dw(e)),tc}const yg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Re(t,"modal-body"),r.jsx(n,{ref:s,className:xe(e,t),...o})));yg.displayName="ModalBody";const jg=S.createContext({onHide(){}}),_d=S.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:o,size:s,fullscreen:i,children:a,scrollable:l,...u},c)=>{e=Re(e,"modal");const d=`${e}-dialog`,f=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return r.jsx("div",{...u,ref:c,className:xe(d,t,s&&`${e}-${s}`,o&&`${d}-centered`,l&&`${d}-scrollable`,i&&f),children:r.jsx("div",{className:xe(`${e}-content`,n),children:a})})});_d.displayName="ModalDialog";const Ng=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},s)=>(t=Re(t,"modal-footer"),r.jsx(n,{ref:s,className:xe(e,t),...o})));Ng.displayName="ModalFooter";const Mw=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:o,children:s,...i},a)=>{const l=S.useContext(jg),u=Kt(()=>{l==null||l.onHide(),o==null||o()});return r.jsxs("div",{ref:a,...i,children:[s,n&&r.jsx(bd,{"aria-label":e,variant:t,onClick:u})]})}),Cg=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:o=!1,...s},i)=>(e=Re(e,"modal-header"),r.jsx(Mw,{ref:i,...s,className:xe(t,e),closeLabel:n,closeButton:o})));Cg.displayName="ModalHeader";const Lw=Kb("h4"),bg=S.forwardRef(({className:e,bsPrefix:t,as:n=Lw,...o},s)=>(t=Re(t,"modal-title"),r.jsx(n,{ref:s,className:xe(e,t),...o})));bg.displayName="ModalTitle";function Bw(e){return r.jsx(Cd,{...e,timeout:null})}function zw(e){return r.jsx(Cd,{...e,timeout:null})}const wg=S.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:o,contentClassName:s,children:i,dialogAs:a=_d,"data-bs-theme":l,"aria-labelledby":u,"aria-describedby":c,"aria-label":d,show:f=!1,animation:g=!0,backdrop:b=!0,keyboard:x=!0,onEscapeKeyDown:N,onShow:C,onHide:m,container:v,autoFocus:h=!0,enforceFocus:y=!0,restoreFocus:k=!0,restoreFocusOptions:O,onEntered:T,onExit:_,onExiting:F,onEnter:z,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...D},U)=>{const[G,R]=S.useState({}),[A,B]=S.useState(!1),M=S.useRef(!1),W=S.useRef(!1),K=S.useRef(null),[Y,ee]=Yb(),re=As(U,ee),ne=Kt(m),oe=_b();e=Re(e,"modal");const ae=S.useMemo(()=>({onHide:ne}),[ne]);function ce(){return Z||Fw({isRTL:oe})}function ve(de){if(!xo)return;const Wt=ce().getScrollbarWidth()>0,gn=de.scrollHeight>Qa(de).documentElement.clientHeight;R({paddingRight:Wt&&!gn?Sp():void 0,paddingLeft:!Wt&&gn?Sp():void 0})}const Me=Kt(()=>{Y&&ve(Y.dialog)});ig(()=>{gu(window,"resize",Me),K.current==null||K.current()});const jt=()=>{M.current=!0},Lt=de=>{M.current&&Y&&de.target===Y.dialog&&(W.current=!0),M.current=!1},pe=()=>{B(!0),K.current=ng(Y.dialog,()=>{B(!1)})},Bt=de=>{de.target===de.currentTarget&&pe()},He=de=>{if(b==="static"){Bt(de);return}if(W.current||de.target!==de.currentTarget){W.current=!1;return}m==null||m()},Gn=de=>{x?N==null||N(de):(de.preventDefault(),b==="static"&&pe())},Jt=(de,Wt)=>{de&&ve(de),z==null||z(de,Wt)},yo=de=>{K.current==null||K.current(),_==null||_(de)},jo=(de,Wt)=>{H==null||H(de,Wt),tg(window,"resize",Me)},Qn=de=>{de&&(de.style.display=""),te==null||te(de),gu(window,"resize",Me)},zt=S.useCallback(de=>r.jsx("div",{...de,className:xe(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),vn={...n,...G};vn.display="block";const $t=de=>r.jsx("div",{role:"dialog",...de,style:vn,className:xe(t,e,A&&`${e}-static`,!g&&"show"),onClick:b?He:void 0,onMouseUp:Lt,"data-bs-theme":l,"aria-label":d,"aria-labelledby":u,"aria-describedby":c,children:r.jsx(a,{...D,onMouseDown:jt,className:o,contentClassName:s,children:i})});return r.jsx(jg.Provider,{value:ae,children:r.jsx(Tw,{show:f,ref:re,backdrop:b,container:v,keyboard:!0,autoFocus:h,enforceFocus:y,restoreFocus:k,restoreFocusOptions:O,onEscapeKeyDown:Gn,onShow:C,onHide:m,onEnter:Jt,onEntering:jo,onEntered:T,onExit:yo,onExiting:F,onExited:Qn,manager:ce(),transition:g?Bw:void 0,backdropTransition:g?zw:void 0,renderBackdrop:zt,renderDialog:$t})})});wg.displayName="Modal";const si=Object.assign(wg,{Body:yg,Header:Cg,Title:bg,Footer:Ng,Dialog:_d,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),$w=()=>{var O;const{id:e}=go(),t=Ft(),{selectedProperty:n,status:o,error:s}=Qe(T=>T.property),{user:i}=Qe(T=>({...T.auth})),[a,l]=S.useState("propertydetails"),[u,c]=S.useState(!0),[d,f]=S.useState(!1),[g,b]=S.useState({fundValue:"0",fundPercentage:"0"});if(S.useEffect(()=>{e&&t(Go(e))},[e,t]),S.useEffect(()=>{o==="succeeded"&&c(!1)},[o]),o==="failed")return r.jsxs("p",{children:["Error loading property: ",s]});const x=((O=i==null?void 0:i.result)==null?void 0:O.userId)===(n==null?void 0:n.userId),N=!!i,C=()=>{f(!0)},m=()=>{f(!1)},v=T=>{const{name:_,value:F}=T.target;b({...g,[_]:F})},h=T=>{if(T.preventDefault(),g.fundValue<=0)return se.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((n==null?void 0:n.totalCoststoBuyAtoB)||0))return se.error(`Funding amount cannot exceed ${(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return se.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:i.result._id};t(Pi({id:e,fundDetails:_,toast:se})),m()},y=T=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(_i({id:e,fundDetailId:T,token:_}))},k=T=>{window.confirm("Are you sure you want to delete this?")&&y(T)};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:u?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||Yt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:Yt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!N,onClick:x||!N?null:C,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!N&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{style:{listStyleType:"none",padding:0},children:n.fundDetails.map((T,_)=>{var F,z;return r.jsx("li",{className:"d-flex align-items-center",children:r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsxs("span",{children:["Total Fund Value: ",T.fundValue,", Interest Percentage: ",T.fundPercentage,"%"]}),r.jsx("br",{})," ",r.jsx("br",{}),((F=i==null?void 0:i.result)==null?void 0:F.userId)&&((z=i==null?void 0:i.result)==null?void 0:z._id)===T.userId&&r.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>k(T._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(Ze,{}),r.jsxs(si,{show:d,onHide:m,children:[r.jsx(si.Header,{closeButton:!0,children:r.jsx(si.Title,{children:"Investment/Funding Details"})}),r.jsx(si.Body,{children:r.jsxs(Zn,{onSubmit:h,children:[r.jsxs(Zn.Group,{children:[r.jsx(Zn.Label,{children:"Total Fund Value"}),r.jsx(Zn.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsx("br",{}),r.jsxs(Zn.Group,{children:[r.jsx(Zn.Label,{children:"Interest Percentage"}),r.jsx(Zn.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(sg,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},Ww=()=>{const[e,t]=S.useState([]),[n,o]=S.useState(0),[s,i]=S.useState(0),[a]=S.useState(10),[l,u]=S.useState(""),[c,d]=S.useState(!1),[f,g]=S.useState(!1),b=async()=>{d(!0),g(!1);try{const m=await he.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:s*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),o(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{d(!1)}},x=m=>{u(m.target.value),m.target.value.trim()===""&&(i(0),t([]),o(0),g(!1),b())},N=m=>{m.key==="Enter"&&(m.preventDefault(),b())};S.useEffect(()=>{b()},[l,s]);const C=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:N})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[f&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(Ne,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>i(s-1),disabled:s===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",s+1," of ",C," "]}),r.jsx("button",{onClick:()=>i(s+1),disabled:s+1>=C||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(Ze,{})]})},Uw=()=>r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(Ze,{})]}),qw=()=>{const{house_id:e}=go();console.log("house_id",e);const[t,n]=S.useState(null),[o,s]=S.useState(!0);return S.useEffect(()=>{(async()=>{try{const a=await he.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{s(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:o?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:Yt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(Ze,{})]})},Vw=()=>{const{id:e}=go(),t=Ft(),[n,o]=S.useState("propertydetails"),s=()=>{n==="propertydetails"&&o("Images"),n==="Images"&&o("Accounting")},i=()=>{n==="Images"&&o("propertydetails"),n==="Accounting"&&o("Images")},{selectedProperty:a}=Qe(E=>E.property),[l,u]=S.useState({address:"",city:"",state:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0"}),c=[1,2,3,4,5,6,7,8,9,10];S.useEffect(()=>{t(Go(e))},[t,e]),S.useEffect(()=>{a&&u({address:a.address||"",city:a.city||"",state:a.state||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn})},[a]);const d=E=>{u({...l,[E.target.name]:E.target.value})},f=(E,P)=>{const{name:p,value:j}=E.target,w=[...l.propertyTaxInfo],L={...w[P]};L[p]=j,w[P]=L,u({...l,propertyTaxInfo:w})},g=E=>{E.preventDefault();const P=z(),p=D(),j=U(),w=M(),L=W(),q=ne(),X=Me(),le=He(),Fs=Gn(),tl=Jt(),nl=vn(),rl=$t(),ol=$t(),sl=No(),il=Ds(),al=Jn(),ll=Zt(),cl=Sr(),ul=bo(),dl={...l,totalPurchaseCosts:P.toFixed(2),totalcredits:p.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:L.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:le.toFixed(2),totalRenovationsandHoldingCost:Fs.toFixed(2),totalCoststoBuyAtoB:tl.toFixed(2),totalcostPaidOutofClosing:nl.toFixed(2),totalCosttoSellBtoC:rl.toFixed(2),grossproceedsperHUD:ol.toFixed(2),totaladjustments:sl.toFixed(2),fundsavailablefordistribution:il.toFixed(2),totalincomestatement:al.toFixed(2),netBtoCsalevalue:ll.toFixed(2),netprofitbeforefinancingcosts:cl.toFixed(2),netprofit:ul.toFixed(2)};t(Ei({id:e,propertyData:dl}))},b=()=>{u({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=E=>{const P=l.propertyTaxInfo.filter((p,j)=>j!==E);u({...l,propertyTaxInfo:P})},N=(E,P)=>{const p=[...l.images];p[P]={...p[P],file:E.base64},u({...l,images:p})},C=()=>{u({...l,images:[...l.images,{title:"",file:""}]})},m=E=>{const P=l.images.filter((p,j)=>j!==E);u({...l,images:P})},v=(E,P)=>{const p=[...l.images];p[E]={...p[E],title:P.target.value},u({...l,images:p})};S.useEffect(()=>{k(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,y]=S.useState("0 days"),k=(E,P)=>{if(E&&P){const p=new Date(E),j=new Date(P),w=Math.abs(j-p),L=Math.ceil(w/(1e3*60*60*24));y(`${L} days`)}else y("0 days")},O=()=>{u(E=>({...E,costPaidAtoB:[...E.costPaidAtoB,{title:"",price:""}]}))},T=E=>{const P=l.costPaidAtoB.filter((p,j)=>j!==E);u(p=>({...p,costPaidAtoB:P}))},_=(E,P,p)=>{const j=[...l.costPaidAtoB];j[E][P]=p,u(w=>({...w,costPaidAtoB:j}))},F=(E,P)=>{let p=E.target.value;if(p=p.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(p)||p===""){const w=l.costPaidAtoB.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,costPaidAtoB:w})}},z=()=>{const E=l.costPaidAtoB.reduce((p,j)=>{const w=parseFloat(j.price)||0;return p+w},0),P=parseFloat(l.purchaseCost)||0;return E+P},H=()=>{u(E=>({...E,credits:[...E.credits,{title:"",price:""}]}))},te=E=>{const P=l.credits.filter((p,j)=>j!==E);u(p=>({...p,credits:P}))},Q=(E,P,p)=>{const j=[...l.credits];j[E][P]=p,u(w=>({...w,credits:j}))},Z=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.credits.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,credits:w})}else{const w=l.credits.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,credits:w})}},D=()=>l.credits.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),U=()=>{const E=l.costPaidAtoB.reduce((j,w)=>{const L=parseFloat(w.price)||0;return j+L},0),P=l.credits.reduce((j,w)=>{const L=parseFloat(w.price)||0;return j+L},0),p=parseFloat(l.purchaseCost)||0;return E+P+p},G=()=>{u(E=>({...E,cashAdjustments:[...E.cashAdjustments,{title:"",price:""}]}))},R=E=>{const P=l.cashAdjustments.filter((p,j)=>j!==E);u(p=>({...p,cashAdjustments:P}))},A=(E,P,p)=>{const j=[...l.cashAdjustments];j[E][P]=p,u(w=>({...w,cashAdjustments:j}))},B=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.cashAdjustments.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,cashAdjustments:w})}},M=()=>l.cashAdjustments.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),W=()=>{const E=M(),P=D(),p=z();return E+P+p},K=()=>{u(E=>({...E,incidentalCost:[...E.incidentalCost,{title:"",price:""}]}))},Y=E=>{const P=l.incidentalCost.filter((p,j)=>j!==E);u(p=>({...p,incidentalCost:P}))},ee=(E,P,p)=>{const j=[...l.incidentalCost];j[E][P]=p,u(w=>({...w,incidentalCost:j}))},re=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.incidentalCost.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),oe=()=>{u(E=>({...E,carryCosts:[...E.carryCosts,{title:"",price:""}]}))},ae=E=>{const P=l.carryCosts.filter((p,j)=>j!==E);u(p=>({...p,carryCosts:P}))},ce=(E,P,p)=>{const j=[...l.carryCosts];j[E][P]=p,u(w=>({...w,carryCosts:j}))},ve=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.carryCosts.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,carryCosts:w})}else{const w=l.carryCosts.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,carryCosts:w})}},Me=()=>l.carryCosts.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),jt=()=>{u(E=>({...E,renovationCost:[...E.renovationCost,{title:"",price:""}]}))},Lt=E=>{const P=l.renovationCost.filter((p,j)=>j!==E);u(p=>({...p,renovationCost:P}))},pe=(E,P,p)=>{const j=[...l.renovationCost];j[E][P]=p,u(w=>({...w,renovationCost:j}))},Bt=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.renovationCost.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,renovationCost:w})}else{const w=l.renovationCost.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,renovationCost:w})}},He=()=>l.renovationCost.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Gn=()=>{const E=ne(),P=Me(),p=He();return E+P+p},Jt=()=>{const E=Gn(),P=W();return E+P},yo=()=>{u(E=>({...E,costPaidOutofClosing:[...E.costPaidOutofClosing,{title:"",price:""}]}))},jo=E=>{const P=l.costPaidOutofClosing.filter((p,j)=>j!==E);u(p=>({...p,costPaidOutofClosing:P}))},Qn=(E,P,p)=>{const j=[...l.costPaidOutofClosing];j[E][P]=p,u(w=>({...w,costPaidOutofClosing:j}))},zt=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.costPaidOutofClosing.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,costPaidOutofClosing:w})}},vn=()=>l.costPaidOutofClosing.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),$t=()=>{const E=l.sellingPriceBtoC,P=vn();return E-P},de=()=>{u(E=>({...E,adjustments:[...E.adjustments,{title:"",price:""}]}))},Wt=E=>{const P=l.adjustments.filter((p,j)=>j!==E);u(p=>({...p,adjustments:P}))},gn=(E,P,p)=>{const j=[...l.adjustments];j[E][P]=p,u(w=>({...w,adjustments:j}))},Is=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.adjustments.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,adjustments:w})}else{const w=l.adjustments.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,adjustments:w})}},No=()=>l.adjustments.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Ds=()=>{const E=$t(),P=No();return E+P},Ja=()=>{u(E=>({...E,incomestatement:[...E.incomestatement,{title:"",price:""}]}))},Za=E=>{const P=l.incomestatement.filter((p,j)=>j!==E);u(p=>({...p,incomestatement:P}))},Co=(E,P,p)=>{const j=[...l.incomestatement];j[E][P]=p,u(w=>({...w,incomestatement:j}))},Xn=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.incomestatement.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,incomestatement:w})}else{const w=l.incomestatement.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,incomestatement:w})}},Jn=()=>l.incomestatement.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Zt=()=>{const E=Jn(),P=$t();return E+P},Sr=()=>{const E=isNaN(parseFloat(Zt()))?0:parseFloat(Zt()),P=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),p=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),j=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),L=isNaN(parseFloat(Jt()))?0:parseFloat(Jt());return E+P+p+j+w-L},bo=()=>{const E=Sr(),P=l.FinancingCostClosingCost;return E-P},el=()=>bo();return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center",children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>o("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:d,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((E,P)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:E.propertytaxowned,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:E.ownedyear,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:E.taxassessed,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:E.taxyear,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(P),style:{height:"25px",width:"35px"},children:"X"})]})})]},P)),r.jsx("button",{className:"btn btn-secondary",onClick:b,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,placeholder:"Image Title",onChange:p=>v(P,p)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Nd,{multiple:!1,onDone:p=>N(p,P)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(P),style:{marginLeft:"5px"},children:"Delete"})]}),E.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:E.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},P)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:C,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:d,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:E=>{const P=E.target.value;u({...l,closeDateAtoB:P}),k(P,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:E=>{const P=E.target.value;u({...l,closeDateBtoC:P}),k(l.closeDateAtoB,P)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(E=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${E}`,value:E,checked:l.renovationRisk===E,onChange:P=>{const p=parseInt(P.target.value,10);u({...l,renovationRisk:p})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${E}`,children:E})]},E))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${el().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:E=>{let P=E.target.value.replace(/[^\d.]/g,"");const p=/^\d*\.?\d*$/.test(P);u({...l,purchaseCost:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>_(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:`$ ${E.price}`,onChange:p=>F(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>T(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:O,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Q(P,"title",p.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Z(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>A(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>B(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>R(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>ee(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>re(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Y(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>ce(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>ve(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ae(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:oe,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Me(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>pe(P,"title",p.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Bt(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Lt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:jt,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:He(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Jt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,sellingPriceBtoC:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Qn(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>zt(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>jo(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:yo,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:vn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>gn(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Is(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Wt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:de,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:No(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Ds(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Co(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Xn(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Za(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ja,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Jt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,fundspriortoclosing:P,isfundspriortoclosingInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,shorttermrental:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,OtherIncome:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,InsuranceClaim:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,LongTermRental:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Sr(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,FinancingCostClosingCost:P,isFinancingCostClosingCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})]})},Hw=()=>{const e=Ft(),{properties:t,loading:n,totalPages:o,currentPage:s}=Qe(N=>N.property),[i,a]=S.useState(""),[l,u]=S.useState([]),[c,d]=S.useState(1),f=10;S.useEffect(()=>{e(Qo({page:c,limit:f,keyword:i}))},[e,c,i]),S.useEffect(()=>{i.trim()?u(t.filter(N=>N.address.toLowerCase().includes(i.toLowerCase()))):u(t)},[i,t]);const g=N=>{a(N.target.value)},b=N=>{N.preventDefault()},x=N=>{d(N),e(Qo({page:N,limit:f,keyword:i}))};return r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:b,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:i,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(N=>r.jsxs("tr",{children:[r.jsx("td",{children:N.images&&N.images[0]?r.jsx("img",{src:N.images[0].file||Yt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:Yt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(Ne,{to:`/property/${N.propertyId}`,className:"link-primary text-decoration-none",children:N.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),N.city,", ",N.county,","," ",N.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",N.propertyId]})]})]})}),r.jsx("td",{children:N.totallivingsqft}),r.jsx("td",{children:N.yearBuild}),r.jsx("td",{children:N.costpersqft})]},N.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${s===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(s-1),children:"Previous"})}),Array.from({length:o},(N,C)=>r.jsx("li",{className:`page-item ${s===C+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(C+1),children:C+1})},C+1)),r.jsx("li",{className:`page-item ${s===o?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(s+1),children:"Next"})})]})})]}),r.jsx(Ze,{})]})},Kw=()=>{const{userId:e}=go(),t=Ft(),{user:n,loading:o}=Qe(s=>s.user);return console.log("user",n),S.useEffect(()=>{e&&t(bi(e))},[e,t]),o?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:Yt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:Yt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:Yt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:Yt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),r.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:r.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},Yw=()=>r.jsxs(uC,{children:[r.jsx(PC,{}),r.jsxs(nC,{children:[r.jsx(Ae,{path:"/",element:r.jsx(OC,{})}),r.jsx(Ae,{path:"/about",element:r.jsx(TC,{})}),r.jsx(Ae,{path:"/services",element:r.jsx(Uw,{})}),r.jsx(Ae,{path:"/contact",element:r.jsx(RC,{})}),r.jsx(Ae,{path:"/register",element:r.jsx(ob,{})}),r.jsx(Ae,{path:"/registrationsuccess",element:r.jsx(Ri,{children:r.jsx(Nb,{})})}),r.jsx(Ae,{path:"/login",element:r.jsx(ib,{})}),r.jsx(Ae,{path:"/dashboard",element:r.jsx(Ri,{children:r.jsx(db,{})})}),r.jsx(Ae,{path:"/users/:id/verify/:token",element:r.jsx(xb,{})}),r.jsx(Ae,{path:"/forgotpassword",element:r.jsx(yb,{})}),r.jsx(Ae,{path:"/users/resetpassword/:userId/:token",element:r.jsx(jb,{})}),r.jsx(Ae,{path:"/property/:id",element:r.jsx($w,{})}),r.jsx(Ae,{path:"/properties/:house_id",element:r.jsx(qw,{})}),r.jsx(Ae,{path:"/searchmyproperties",element:r.jsx(Ww,{})}),r.jsx(Ae,{path:"/searchproperties",element:r.jsx(Hw,{})}),r.jsx(Ae,{path:"/editproperty/:id",element:r.jsx(Ri,{children:r.jsx(Vw,{})})}),r.jsx(Ae,{path:"/profile/:userId",element:r.jsx(Kw,{})})]})]});Wh(document.getElementById("root")).render(r.jsx(S.StrictMode,{children:r.jsx(Ej,{store:hN,children:r.jsx(Yw,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index ea23ab2..358914f 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -45,8 +45,8 @@ - - + + diff --git a/ef-ui/src/addproperty.css b/ef-ui/src/addproperty.css index a717386..e6c6690 100644 --- a/ef-ui/src/addproperty.css +++ b/ef-ui/src/addproperty.css @@ -37,8 +37,8 @@ /* Active tab styling */ .nav-tabs .active { - background-color: #fda417; - border-color: #fda417 + background-color: #f5f5f5; + border-color: #f5f5f5 } .nav-tabs .active a { diff --git a/ef-ui/src/components/Dashboard.jsx b/ef-ui/src/components/Dashboard.jsx index 0dbb7a4..973102f 100644 --- a/ef-ui/src/components/Dashboard.jsx +++ b/ef-ui/src/components/Dashboard.jsx @@ -12,14 +12,13 @@ import { NavLink } from "react-router-dom"; const Dashboard = () => { const [activeTab, setActiveTab] = useState("dashboard"); const { user } = useSelector((state) => state.auth); + const renderTabContent = () => { switch (activeTab) { case "Userdetails": return ; - case "addProperty": return ; - case "activeProperties": return (
@@ -29,7 +28,6 @@ const Dashboard = () => { ); case "closedProperties": return

These are your closed properties.

; - default: return <>; } @@ -38,31 +36,24 @@ const Dashboard = () => { return ( <> -
-
-
-
-
-
-
+




+
{/* Left sidebar */} -
+
ProfileImage
- {/* Other Information - */}
{/* Main content area */} -
-
- {/* Static Dashboard greeting */} -
+
+
+
Welcome to{" "} {user.result.title}. {user.result.firstName}{" "} {user.result.middleName} {user.result.lastName}
-



- -
+ {activeTab === "dashboard" && ( + <> +
+

@@ -156,14 +141,11 @@ const Dashboard = () => { workflows{" "}

-




+





- - + + )}
- - {/* Dynamic content based on the selected tab */} - {renderTabContent()}
diff --git a/ef-ui/src/components/PropertyView.jsx b/ef-ui/src/components/PropertyView.jsx index 633aad2..2ae258a 100644 --- a/ef-ui/src/components/PropertyView.jsx +++ b/ef-ui/src/components/PropertyView.jsx @@ -9,6 +9,7 @@ import { Modal, Button, Form } from "react-bootstrap"; // Importing Modal compon import { addFundDetails } from "../redux/features/propertySlice"; import { toast } from "react-toastify"; import { deleteFundDetail } from "../redux/features/propertySlice"; +import "../propertyview.css"; const PropertyView = () => { const { id } = useParams(); // Extract the property ID from the route @@ -72,10 +73,28 @@ const PropertyView = () => { const handleSubmit = (e) => { e.preventDefault(); - if (formData.fundValue <= 0 || formData.fundPercentage <= 0) { - return toast.error("Please enter valid funding details"); - } + // if ( + // formData.fundValue <= 0 || + // formData.fundPercentage <= 0 || + // formData.fundPercentage > 100 + // ) { + // return toast.error("Please enter a valid funding amount and percentage (0-100)"); + // } + if (formData.fundValue <= 0) { + return toast.error("Please enter a valid funding amount greater than 0"); + } + + if ( + formData.fundValue > (selectedProperty?.totalCoststoBuyAtoB || 0) + ) { + return toast.error(`Funding amount cannot exceed ${selectedProperty?.totalCoststoBuyAtoB || "N/A"}`); + } + + if (formData.fundPercentage <= 0 || formData.fundPercentage > 100) { + return toast.error("Please enter a valid interest percentage (0-100)"); + } + const fundDetails = { fundValue: Number(formData.fundValue), // Ensure number conversion if needed fundPercentage: Number(formData.fundPercentage), @@ -90,21 +109,29 @@ const PropertyView = () => { // dispatch(deleteFundDetail({ id, fundDetailId })); // }; + + const handleDelete = (fundDetailId) => { const token = JSON.parse(localStorage.getItem("profile")).token; dispatch(deleteFundDetail({ id, fundDetailId, token })); }; - + + const handleDeleteWithConfirmation = (id) => { + const confirmed = window.confirm("Are you sure you want to delete this?"); + if (confirmed) { + handleDelete(id); + } + }; return ( <> -



-

-
- +




+ + {/*
*/} +
-
    +
    • {
    -
    + {/*
    */} +
    {activeTab === "propertydetails" && (
    {
    {activeTab === "Funding Details" && (
    -
    - {selectedProperty.fundDetails.length === 0 ? ( -

    No fund details available.

    - ) : ( -
      - {selectedProperty.fundDetails.map((detail, index) => ( -
    • - Fund Value: {detail.fundValue}, Fund Percentage:{" "} - {detail.fundPercentage}% - {user?.result?.userId ? ( -
      - {user?.result?._id === detail.userId && ( - - )} -
      - ) : ( -
      - )} -
    • - ))} -
    - )} -
    +
    + {selectedProperty.fundDetails.length === 0 ? ( +

    No fund details available.

    + ) : ( +
      + {selectedProperty.fundDetails.map((detail, index) => ( +
    • +
      + + Total Fund Value: {detail.fundValue}, Interest Percentage: {detail.fundPercentage}% + + +

      + {user?.result?.userId && user?.result?._id === detail.userId && ( + + )} +
      +
    • + ))} +
    + )} +
    + +
    )}
    @@ -432,7 +464,7 @@ const PropertyView = () => {
    - Fund Value + Total Fund Value { onChange={handleChange} /> +
    - Fund Percentage + Interest Percentage