(function(){"use strict";try{if(typeof document<"u"){var c=document.createElement("style");c.appendChild(document.createTextNode("#calculator-app .calc_flex-block{width:100%;display:flex;justify-content:space-between;align-items:stretch;gap:2rem;padding-bottom:14rem}@media screen and (max-width: 991px){#calculator-app .calc_flex-block{flex-direction:column;gap:3rem}}#calculator-app .calc_sticky-rails{position:relative;flex-grow:1;max-width:28rem}@media screen and (max-width: 991px){#calculator-app .calc_sticky-rails{max-width:none;position:static}}#calculator-app .calc_sticky-block{position:sticky;display:flex;flex-direction:column;gap:1.38rem;top:6rem;width:100%}#calculator-app .calc_sticky-block h1{font-size:3.375rem;font-style:normal;font-weight:400;line-height:1;letter-spacing:-.02em}#calculator-app .calc_sticky-block p{color:#181716;font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.3333}#calculator-app .calc_sticky-block .calc_sticky-price{font-family:DM Sans;color:#aaa;font-size:1.5rem;font-style:normal;font-weight:400;line-height:1.5}#calculator-app .calc_sticky-block .calc_sticky-price span{font-family:DM Mono;color:#181716;font-size:1.75rem;font-style:normal;font-weight:400;line-height:1.14;letter-spacing:-.02em}@media screen and (max-width: 991px){#calculator-app .calc_sticky-block{position:static}#calculator-app .calc_sticky-block h1{font-size:1.875rem}#calculator-app .calc_sticky-block p{font-size:1rem}#calculator-app .calc_sticky-block .calc_sticky-price{font-size:1.125rem}}#calculator-app .calc_app-content{width:51%}@media screen and (max-width: 991px){#calculator-app .calc_app-content{width:100%}}#calculator-app .calc_form{display:flex;flex-direction:column;gap:3rem}#calculator-app .calc_form .calc_group{display:flex;flex-direction:column}#calculator-app .calc_form .calc_group legend{margin-bottom:1.25rem}#calculator-app .calc_form .calc_group legend h2{color:#181716;font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.5;letter-spacing:-.02em;max-width:31.25rem}#calculator-app .calc_form .calc_model-select_outer{width:100%}#calculator-app .calc_form .calc_model-select_outer .calc_model-select{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.25rem;margin:-.375rem}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block{padding:.25rem;border:2px solid rgba(24,23,22,0);border-radius:.5rem;display:flex;flex-direction:column;gap:.75rem;transition:border-color .2s ease}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block.selected{border-color:#181716}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block .calc_model-thumb_wrap{position:relative}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block .calc_model-thumb_wrap .calc_model-thumb{width:100%;border-radius:.38rem;aspect-ratio:1/.56;object-fit:cover}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block .calc_model-thumb_wrap .calc_model-thumb_popular{position:absolute;top:.25rem;right:.25rem;padding:.44rem .56rem;border-radius:.25rem;border:.502px solid rgba(255,255,255,.1);background:#f7f7f799;color:#2f2f2f;text-align:center;font-family:DM Mono;font-size:.5625rem;font-style:normal;font-weight:400;line-height:90%}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block .calc_model-info_wrap{display:flex;flex-direction:column;gap:.13rem}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block .calc_model-info_wrap h3{color:#181716;font-size:1rem;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.02em;margin-bottom:.2rem}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block .calc_model-info_wrap p{color:#181716;font-family:DM Mono;font-size:.6875rem;font-style:normal;font-weight:400;line-height:132%}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block .calc_model-info_wrap .calc_model-price{color:#aaa;font-size:.6875rem;font-style:normal;font-weight:400;line-height:.63;letter-spacing:.02em}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block .calc_model-info_wrap .calc_model-price span{color:#181716;font-family:DM Mono;font-size:.6875rem;font-style:normal;font-weight:400;line-height:1.45;letter-spacing:-.02em}@media screen and (max-width: 991px){#calculator-app .calc_form .calc_model-select_outer{width:100vw;max-width:100vw;margin:0 -1.5rem;padding:0 1rem;overflow-x:scroll;gap:0;-ms-overflow-style:none;scrollbar-width:none}#calculator-app .calc_form .calc_model-select_outer .calc_model-select{width:auto;max-width:none;padding:1rem 0;display:flex;flex-direction:row}#calculator-app .calc_form .calc_model-select_outer .calc_model-select .calc_model-block{width:22.5625rem;min-width:22.5625rem}}@media screen and (max-width: 767px){#calculator-app .calc_form .calc_model-select_outer{margin:0 -1rem}}#calculator-app .calc_form .calc_option-group{display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:20.5rem;gap:.5rem}#calculator-app .calc_form .calc_option-group label{margin:0}#calculator-app .calc_form .calc_option-group label .calc_group-button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;height:7.375rem;max-height:none;margin:0;padding:.75rem 2.25rem;border:2px solid #e8e8e8;border-radius:.25rem;color:#181716;font-size:1.125rem;font-style:normal;font-weight:500;line-height:100%;letter-spacing:-.02em;transition:border-color .2s ease,background-color .2s ease}#calculator-app .calc_form .calc_option-group label .calc_group-button span{color:#aaa;font-family:DM Mono;font-size:.875rem;font-style:normal;font-weight:400;line-height:130%;letter-spacing:-.02em}#calculator-app .calc_form .calc_option-group label .calc_group-button.selected{border-color:#181716;background-color:#f9f9f9}#calculator-app .calc_form .calc_bottom-price_block{padding-top:2.75rem;display:flex;flex-direction:column;gap:3rem}#calculator-app .calc_form .calc_bottom-price_block .calc_bottom-price_text{color:#b7b2ae;font-size:2.7575rem;font-style:normal;font-weight:400;line-height:100%;letter-spacing:-.02em}#calculator-app .calc_form .calc_bottom-price_block .calc_bottom-price_text span{color:#181716;font-family:DM Mono}#calculator-app .calc_inquire-btn{color:#fff;font-family:Space Mono;font-size:1rem;font-style:normal;font-weight:400;line-height:1;display:flex;padding:.875rem 1.125rem;justify-content:center;align-items:center;gap:.5rem;border-radius:625rem;background:#2f2f2f;align-self:flex-start}")),document.head.appendChild(c)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})(); var Yu={exports:{}},nl={},Ku={exports:{}},L={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var qn=Symbol.for("react.element"),sc=Symbol.for("react.portal"),ac=Symbol.for("react.fragment"),cc=Symbol.for("react.strict_mode"),fc=Symbol.for("react.profiler"),dc=Symbol.for("react.provider"),pc=Symbol.for("react.context"),mc=Symbol.for("react.forward_ref"),vc=Symbol.for("react.suspense"),hc=Symbol.for("react.memo"),yc=Symbol.for("react.lazy"),Mo=Symbol.iterator;function gc(e){return e===null||typeof e!="object"?null:(e=Mo&&e[Mo]||e["@@iterator"],typeof e=="function"?e:null)}var Gu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xu=Object.assign,qu={};function un(e,t,n){this.props=e,this.context=t,this.refs=qu,this.updater=n||Gu}un.prototype.isReactComponent={};un.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};un.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zu(){}Zu.prototype=un.prototype;function Ui(e,t,n){this.props=e,this.context=t,this.refs=qu,this.updater=n||Gu}var Ai=Ui.prototype=new Zu;Ai.constructor=Ui;Xu(Ai,un.prototype);Ai.isPureReactComponent=!0;var Io=Array.isArray,Ju=Object.prototype.hasOwnProperty,Vi={current:null},bu={key:!0,ref:!0,__self:!0,__source:!0};function es(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Ju.call(t,r)&&!bu.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,X=E[W];if(0>>1;Wl(kl,T))wtl(nr,kl)?(E[W]=nr,E[wt]=T,W=wt):(E[W]=kl,E[gt]=T,W=gt);else if(wtl(nr,T))E[W]=nr,E[wt]=T,W=wt;else break e}}return z}function l(E,z){var T=E.sortIndex-z.sortIndex;return T!==0?T:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],c=[],v=1,m=null,p=3,g=!1,w=!1,k=!1,D=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=E)r(c),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(c)}}function h(E){if(k=!1,d(E),!w)if(n(s)!==null)w=!0,gl(x);else{var z=n(c);z!==null&&wl(h,z.startTime-E)}}function x(E,z){w=!1,k&&(k=!1,f(P),P=-1),g=!0;var T=p;try{for(d(z),m=n(s);m!==null&&(!(m.expirationTime>z)||E&&!Te());){var W=m.callback;if(typeof W=="function"){m.callback=null,p=m.priorityLevel;var X=W(m.expirationTime<=z);z=e.unstable_now(),typeof X=="function"?m.callback=X:m===n(s)&&r(s),d(z)}else r(s);m=n(s)}if(m!==null)var tr=!0;else{var gt=n(c);gt!==null&&wl(h,gt.startTime-z),tr=!1}return tr}finally{m=null,p=T,g=!1}}var C=!1,N=null,P=-1,H=5,j=-1;function Te(){return!(e.unstable_now()-jE||125W?(E.sortIndex=T,t(c,E),n(s)===null&&E===n(c)&&(k?(f(P),P=-1):k=!0,wl(h,T-W))):(E.sortIndex=X,t(s,E),w||g||(w=!0,gl(x))),E},e.unstable_shouldYield=Te,e.unstable_wrapCallback=function(E){var z=p;return function(){var T=p;p=z;try{return E.apply(this,arguments)}finally{p=T}}}})(ls);rs.exports=ls;var Tc=rs.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var is=ye,we=Tc;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,Lc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Uo={},Ao={};function jc(e){return Kl.call(Ao,e)?!0:Kl.call(Uo,e)?!1:Lc.test(e)?Ao[e]=!0:(Uo[e]=!0,!1)}function Fc(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rc(e,t,n,r){if(t===null||typeof t>"u"||Fc(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function se(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ee[t]=new se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[e]=new se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ee[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ee[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ee[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ee[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hi=/[\-:]([a-z])/g;function Wi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hi,Wi);ee[t]=new se(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hi,Wi);ee[t]=new se(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hi,Wi);ee[t]=new se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});ee.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qi(e,t,n,r){var l=ee.hasOwnProperty(t)?ee[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` `+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kn(e):""}function Dc(e){switch(e.tag){case 5:return kn(e.type);case 16:return kn("Lazy");case 13:return kn("Suspense");case 19:return kn("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Zl(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 Mt:return"Fragment";case Ot:return"Portal";case Gl:return"Profiler";case Yi:return"StrictMode";case Xl:return"Suspense";case ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ss:return(e.displayName||"Context")+".Consumer";case us:return(e._context.displayName||"Context")+".Provider";case Ki:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gi:return t=e.displayName||null,t!==null?t:Zl(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return Zl(e(t))}catch{}}return null}function Oc(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 Zl(t);case 8:return t===Yi?"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 pt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mc(e){var t=cs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ir(e){e._valueTracker||(e._valueTracker=Mc(e))}function fs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cs(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fr(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 Jl(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ds(e,t){t=t.checked,t!=null&&Qi(e,"checked",t,!1)}function bl(e,t){ds(e,t);var n=pt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&ei(e,t.type,pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ho(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ei(e,t,n){(t!=="number"||Fr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sn=Array.isArray;function Kt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var En={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},Ic=["Webkit","ms","Moz","O"];Object.keys(En).forEach(function(e){Ic.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),En[t]=En[e]})});function hs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||En.hasOwnProperty(e)&&En[e]?(""+t).trim():t+"px"}function ys(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=hs(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var $c=V({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 ri(e,t){if(t){if($c[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(y(62))}}function li(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 ii=null;function Xi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oi=null,Gt=null,Xt=null;function Yo(e){if(e=bn(e)){if(typeof oi!="function")throw Error(y(280));var t=e.stateNode;t&&(t=ul(t),oi(e.stateNode,e.type,t))}}function gs(e){Gt?Xt?Xt.push(e):Xt=[e]:Gt=e}function ws(){if(Gt){var e=Gt,t=Xt;if(Xt=Gt=null,Yo(e),t)for(e=0;e>>=0,e===0?32:31-(Xc(e)/qc|0)|0}var ur=64,sr=4194304;function _n(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 Mr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=_n(u):(i&=o,i!==0&&(r=_n(i)))}else o=n&~l,o!==0?r=_n(o):i!==0&&(r=_n(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Zn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-De(t),e[t]=n}function ef(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Nn),tu=" ",nu=!1;function Us(e,t){switch(e){case"keyup":return Tf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function As(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var It=!1;function jf(e,t){switch(e){case"compositionend":return As(t);case"keypress":return t.which!==32?null:(nu=!0,tu);case"textInput":return e=t.data,e===tu&&nu?null:e;default:return null}}function Ff(e,t){if(It)return e==="compositionend"||!ro&&Us(e,t)?(e=Is(),xr=eo=rt=null,It=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ou(n)}}function Ws(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ws(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qs(){for(var e=window,t=Fr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fr(e.document)}return t}function lo(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 Vf(e){var t=Qs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ws(n.ownerDocument.documentElement,n)){if(r!==null&&lo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=uu(n,i);var o=uu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,$t=null,di=null,zn=null,pi=!1;function su(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pi||$t==null||$t!==Fr(r)||(r=$t,"selectionStart"in r&&lo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zn&&An(zn,r)||(zn=r,r=Ur(di,"onSelect"),0Vt||(e.current=wi[Vt],wi[Vt]=null,Vt--)}function O(e,t){Vt++,wi[Vt]=e.current,e.current=t}var mt={},le=ht(mt),fe=ht(!1),Pt=mt;function en(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function de(e){return e=e.childContextTypes,e!=null}function Vr(){I(fe),I(le)}function vu(e,t,n){if(le.current!==mt)throw Error(y(168));O(le,t),O(fe,n)}function ea(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(y(108,Oc(e)||"Unknown",l));return V({},n,r)}function Br(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,Pt=le.current,O(le,e),O(fe,fe.current),!0}function hu(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=ea(e,t,Pt),r.__reactInternalMemoizedMergedChildContext=e,I(fe),I(le),O(le,e)):I(fe),O(fe,n)}var He=null,sl=!1,$l=!1;function ta(e){He===null?He=[e]:He.push(e)}function bf(e){sl=!0,ta(e)}function yt(){if(!$l&&He!==null){$l=!0;var e=0,t=R;try{var n=He;for(R=1;e>=o,l-=o,We=1<<32-De(t)+l|n<P?(H=N,N=null):H=N.sibling;var j=p(f,N,d[P],h);if(j===null){N===null&&(N=H);break}e&&N&&j.alternate===null&&t(f,N),a=i(j,a,P),C===null?x=j:C.sibling=j,C=j,N=H}if(P===d.length)return n(f,N),$&&kt(f,P),x;if(N===null){for(;PP?(H=N,N=null):H=N.sibling;var Te=p(f,N,j.value,h);if(Te===null){N===null&&(N=H);break}e&&N&&Te.alternate===null&&t(f,N),a=i(Te,a,P),C===null?x=Te:C.sibling=Te,C=Te,N=H}if(j.done)return n(f,N),$&&kt(f,P),x;if(N===null){for(;!j.done;P++,j=d.next())j=m(f,j.value,h),j!==null&&(a=i(j,a,P),C===null?x=j:C.sibling=j,C=j);return $&&kt(f,P),x}for(N=r(f,N);!j.done;P++,j=d.next())j=g(N,f,P,j.value,h),j!==null&&(e&&j.alternate!==null&&N.delete(j.key===null?P:j.key),a=i(j,a,P),C===null?x=j:C.sibling=j,C=j);return e&&N.forEach(function(cn){return t(f,cn)}),$&&kt(f,P),x}function D(f,a,d,h){if(typeof d=="object"&&d!==null&&d.type===Mt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case lr:e:{for(var x=d.key,C=a;C!==null;){if(C.key===x){if(x=d.type,x===Mt){if(C.tag===7){n(f,C.sibling),a=l(C,d.props.children),a.return=f,f=a;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===be&&xu(x)===C.type){n(f,C.sibling),a=l(C,d.props),a.ref=yn(f,C,d),a.return=f,f=a;break e}n(f,C);break}else t(f,C);C=C.sibling}d.type===Mt?(a=Nt(d.props.children,f.mode,h,d.key),a.return=f,f=a):(h=jr(d.type,d.key,d.props,null,f.mode,h),h.ref=yn(f,a,d),h.return=f,f=h)}return o(f);case Ot:e:{for(C=d.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=Yl(d,f.mode,h),a.return=f,f=a}return o(f);case be:return C=d._init,D(f,a,C(d._payload),h)}if(Sn(d))return w(f,a,d,h);if(dn(d))return k(f,a,d,h);vr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,d),a.return=f,f=a):(n(f,a),a=Ql(d,f.mode,h),a.return=f,f=a),o(f)):n(f,a)}return D}var nn=aa(!0),ca=aa(!1),er={},Ve=ht(er),Wn=ht(er),Qn=ht(er);function Et(e){if(e===er)throw Error(y(174));return e}function mo(e,t){switch(O(Qn,t),O(Wn,e),O(Ve,er),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ni(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ni(t,e)}I(Ve),O(Ve,t)}function rn(){I(Ve),I(Wn),I(Qn)}function fa(e){Et(Qn.current);var t=Et(Ve.current),n=ni(t,e.type);t!==n&&(O(Wn,e),O(Ve,n))}function vo(e){Wn.current===e&&(I(Ve),I(Wn))}var U=ht(0);function Gr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ul=[];function ho(){for(var e=0;en?n:4,e(!0);var r=Al.transition;Al.transition={};try{e(!1),t()}finally{R=n,Al.transition=r}}function Pa(){return ze().memoizedState}function rd(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},za(e))Ta(t,n);else if(n=ia(e,t,n,r),n!==null){var l=oe();Oe(n,e,r,l),La(n,t,r)}}function ld(e,t,n){var r=ft(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(za(e))Ta(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Me(u,o)){var s=t.interleaved;s===null?(l.next=l,fo(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=ia(e,t,l,r),n!==null&&(l=oe(),Oe(n,e,r,l),La(n,t,r))}}function za(e){var t=e.alternate;return e===A||t!==null&&t===A}function Ta(e,t){Tn=Xr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function La(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zi(e,n)}}var qr={readContext:Pe,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},id={readContext:Pe,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:Cu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pr(4194308,4,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pr(4,2,e,t)},useMemo:function(e,t){var n=$e();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$e();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rd.bind(null,A,e),[r.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:Eu,useDebugValue:So,useDeferredValue:function(e){return $e().memoizedState=e},useTransition:function(){var e=Eu(!1),t=e[0];return e=nd.bind(null,e[1]),$e().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=A,l=$e();if($){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),Z===null)throw Error(y(349));Tt&30||ma(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Cu(ha.bind(null,r,i,e),[e]),r.flags|=2048,Gn(9,va.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$e(),t=Z.identifierPrefix;if($){var n=Qe,r=We;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ue]=t,e[Hn]=r,Ua(e,t,!1,!1),t.stateNode=e;e:{switch(o=li(n,r),n){case"dialog":M("cancel",e),M("close",e),l=r;break;case"iframe":case"object":case"embed":M("load",e),l=r;break;case"video":case"audio":for(l=0;lon&&(t.flags|=128,r=!0,gn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gr(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return ne(t),null}else 2*Q()-i.renderingStartTime>on&&n!==1073741824&&(t.flags|=128,r=!0,gn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Q(),t.sibling=null,n=U.current,O(U,r?n&1|2:n&1),t):(ne(t),null);case 22:case 23:return Po(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(ne(t),t.subtreeFlags&6&&(t.flags|=8192)):ne(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function pd(e,t){switch(oo(t),t.tag){case 1:return de(t.type)&&Vr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rn(),I(fe),I(le),ho(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vo(t),null;case 13:if(I(U),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(U),null;case 4:return rn(),null;case 10:return co(t.type._context),null;case 22:case 23:return Po(),null;case 24:return null;default:return null}}var yr=!1,re=!1,md=typeof WeakSet=="function"?WeakSet:Set,_=null;function Qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){B(e,t,r)}else n.current=null}function ji(e,t,n){try{n()}catch(r){B(e,t,r)}}var Du=!1;function vd(e,t){if(mi=Ir,e=Qs(),lo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,c=0,v=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(u=o+l),m!==i||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(u=o),p===i&&++v===r&&(s=o),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vi={focusedElem:e,selectionRange:n},Ir=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,D=w.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:je(t.type,k),D);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){B(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return w=Du,Du=!1,w}function Ln(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&ji(t,n,i)}l=l.next}while(l!==r)}}function fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Fi(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 Ba(e){var t=e.alternate;t!==null&&(e.alternate=null,Ba(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ue],delete t[Hn],delete t[gi],delete t[Zf],delete t[Jf])),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 Ha(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ha(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 Ri(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ar));else if(r!==4&&(e=e.child,e!==null))for(Ri(e,t,n),e=e.sibling;e!==null;)Ri(e,t,n),e=e.sibling}function Di(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Di(e,t,n),e=e.sibling;e!==null;)Di(e,t,n),e=e.sibling}var J=null,Fe=!1;function Je(e,t,n){for(n=n.child;n!==null;)Wa(e,t,n),n=n.sibling}function Wa(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 5:re||Qt(n,t);case 6:var r=J,l=Fe;J=null,Je(e,t,n),J=r,Fe=l,J!==null&&(Fe?(e=J,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):J.removeChild(n.stateNode));break;case 18:J!==null&&(Fe?(e=J,n=n.stateNode,e.nodeType===8?Il(e.parentNode,n):e.nodeType===1&&Il(e,n),$n(e)):Il(J,n.stateNode));break;case 4:r=J,l=Fe,J=n.stateNode.containerInfo,Fe=!0,Je(e,t,n),J=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ji(n,t,o),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!re&&(Qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){B(n,t,u)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(re=(r=re)||n.memoizedState!==null,Je(e,t,n),re=r):Je(e,t,n);break;default:Je(e,t,n)}}function Mu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new md),t.forEach(function(r){var l=Ed.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yd(r/1960))-r,10e?16:e,lt===null)var r=!1;else{if(e=lt,lt=null,br=0,F&6)throw Error(y(331));var l=F;for(F|=4,_=e.current;_!==null;){var i=_,o=i.child;if(_.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sQ()-Co?Ct(e,0):Eo|=n),pe(e,t)}function Ja(e,t){t===0&&(e.mode&1?(t=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):t=1);var n=oe();e=Xe(e,t),e!==null&&(Zn(e,t,n),pe(e,n))}function xd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ja(e,n)}function Ed(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),Ja(e,n)}var ba;ba=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fe.current)ce=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ce=!1,fd(e,t,n);ce=!!(e.flags&131072)}else ce=!1,$&&t.flags&1048576&&na(t,Wr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zr(e,t),e=t.pendingProps;var l=en(t,le.current);Zt(t,n),l=go(null,t,r,e,l,n);var i=wo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,de(r)?(i=!0,Br(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,po(t),l.updater=al,t.stateNode=l,l._reactInternals=t,Ei(t,r,e,n),t=Pi(null,t,r,!0,i,n)):(t.tag=0,$&&i&&io(t),ie(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Nd(r),e=je(r,e),l){case 0:t=Ni(null,t,r,e,n);break e;case 1:t=ju(null,t,r,e,n);break e;case 11:t=Tu(null,t,r,e,n);break e;case 14:t=Lu(null,t,r,je(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:je(r,l),Ni(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:je(r,l),ju(e,t,r,l,n);case 3:e:{if(Ma(t),e===null)throw Error(y(387));r=t.pendingProps,i=t.memoizedState,l=i.element,oa(e,t),Kr(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=ln(Error(y(423)),t),t=Fu(e,t,r,n,l);break e}else if(r!==l){l=ln(Error(y(424)),t),t=Fu(e,t,r,n,l);break e}else for(he=st(t.stateNode.containerInfo.firstChild),ge=t,$=!0,Re=null,n=ca(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tn(),r===l){t=qe(e,t,n);break e}ie(e,t,r,n)}t=t.child}return t;case 5:return fa(t),e===null&&Si(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,hi(r,l)?o=null:i!==null&&hi(r,i)&&(t.flags|=32),Oa(e,t),ie(e,t,o,n),t.child;case 6:return e===null&&Si(t),null;case 13:return Ia(e,t,n);case 4:return mo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nn(t,null,r,n):ie(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:je(r,l),Tu(e,t,r,l,n);case 7:return ie(e,t,t.pendingProps,n),t.child;case 8:return ie(e,t,t.pendingProps.children,n),t.child;case 12:return ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,O(Qr,r._currentValue),r._currentValue=o,i!==null)if(Me(i.value,o)){if(i.children===l.children&&!fe.current){t=qe(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ye(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var v=c.pending;v===null?s.next=s:(s.next=v.next,v.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),_i(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(y(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),_i(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ie(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Zt(t,n),l=Pe(l),r=r(l),t.flags|=1,ie(e,t,r,n),t.child;case 14:return r=t.type,l=je(r,t.pendingProps),l=je(r.type,l),Lu(e,t,r,l,n);case 15:return Ra(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:je(r,l),zr(e,t),t.tag=1,de(r)?(e=!0,Br(t)):e=!1,Zt(t,n),sa(t,r,l),Ei(t,r,l,n),Pi(null,t,r,!0,e,n);case 19:return $a(e,t,n);case 22:return Da(e,t,n)}throw Error(y(156,t.tag))};function ec(e,t){return Ns(e,t)}function Cd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ce(e,t,n,r){return new Cd(e,t,n,r)}function To(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nd(e){if(typeof e=="function")return To(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ki)return 11;if(e===Gi)return 14}return 2}function dt(e,t){var n=e.alternate;return n===null?(n=Ce(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 jr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")To(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Mt:return Nt(n.children,l,i,t);case Yi:o=8,l|=8;break;case Gl:return e=Ce(12,n,t,l|2),e.elementType=Gl,e.lanes=i,e;case Xl:return e=Ce(13,n,t,l),e.elementType=Xl,e.lanes=i,e;case ql:return e=Ce(19,n,t,l),e.elementType=ql,e.lanes=i,e;case as:return pl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case us:o=10;break e;case ss:o=9;break e;case Ki:o=11;break e;case Gi:o=14;break e;case be:o=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=Ce(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Nt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=as,e.lanes=n,e.stateNode={isHidden:!1},e}function Ql(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function Yl(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pd(e,t,n,r,l){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=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lo(e,t,n,r,l,i,o,u,s){return e=new Pd(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ce(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},po(i),e}function zd(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lc)}catch(e){console.error(e)}}lc(),ns.exports=ke;var Rd=ns.exports,ic,Wu=Rd;ic=Wu.createRoot,Wu.hydrateRoot;function Qu({value:e,priceString:t,radioName:n,checked:r,setChecked:l}){return S.jsxs("label",{htmlFor:`${n}_${e}`.toLowerCase(),children:[S.jsxs("div",{style:{cursor:"pointer"},className:`calc_group-button ${r===e&&"selected"}`,children:[e,t&&S.jsx("span",{children:t})]}),S.jsx("input",{type:"radio",name:n,id:`${n}_${e}`.toLowerCase(),value:e,onChange:()=>{l(e)},checked:r===e,hidden:!0,required:!0})]})}function _e({value:e,context:t,price:n,priceYes:r,priceNo:l}){const[i,o]=ye.useState("");return ye.useEffect(()=>{t.updateField({value:i,estimated_price:n!==void 0&&i==="Yes"?n:0})},[i]),S.jsxs("div",{className:"calc_option-group",children:[S.jsx(Qu,{value:"Yes",priceString:r,radioName:e,checked:i,setChecked:o}),S.jsx(Qu,{value:"No",priceString:l,radioName:e,checked:i,setChecked:o})]})}const Dd={model:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},permits:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},garage:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},driveway:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},sidewalk:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},foundation_install:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},septic:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},well:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},gas_propane:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},power_pole:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},sprinklers:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},trench:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},surveys_studies:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}}},Do=ye.createContext(Dd);function oc(e){return e>1e6?`$${(e/1e6).toFixed(1)}M`:e>1e4?`$${Math.floor(e/1e3).toFixed(0)}k`:`$${e.toFixed(0)}`}function me({heading:e,children:t}){return S.jsxs("fieldset",{className:"calc_group",children:[S.jsx("legend",{children:S.jsx("h2",{children:e})}),t]})}function Od({data:e,model:t}){return S.jsx("div",{className:"calc_model-select_outer",children:S.jsx("div",{className:"calc_model-select",children:e.filter(n=>n.price).map(n=>S.jsxs("label",{style:{cursor:"pointer",margin:"0"},className:`calc_model-block ${t.value===n.slug&&"selected"}`,children:[S.jsxs("div",{className:"calc_model-thumb_wrap",children:[S.jsx("img",{className:"calc_model-thumb",src:n.image,alt:n.image_alt}),n.popular&&S.jsx("div",{className:"calc_model-thumb_popular",children:"Popular"})]}),S.jsxs("div",{className:"calc_model-info_wrap",children:[S.jsx("h3",{children:n.name}),S.jsxs("p",{children:[n.bedrooms," ",n.bathrooms," ",n.sqft]}),S.jsxs("div",{className:"calc_model-price",children:["Starting at: ",S.jsx("span",{children:n.price_string})]})]}),S.jsx("input",{type:"radio",name:"model",value:n.slug,id:`item_${n.slug}`,checked:t.value===n.slug,hidden:!0,required:!0,onChange:()=>{t.updateField({value:n.slug,estimated_price:n.price,error:!1})}})]},n.slug))})})}function Md({data:e,estimate:t,handleSubmit:n}){const{model:r,permits:l,garage:i,driveway:o,sidewalk:u,foundation_install:s,septic:c,well:v,gas_propane:m,power_pole:p,sprinklers:g,trench:w,surveys_studies:k}=ye.useContext(Do);const bfApi="https://app.bigfoot.homes/api/public/permit-fees",[bfCounties,bfSetCounties]=ye.useState([]),[bfCounty,bfSetCounty]=ye.useState(""),[bfAdu,bfSetAdu]=ye.useState(!1),[bfFee,bfSetFee]=ye.useState(null);ye.useEffect(()=>{fetch(bfApi+"/counties").then(x=>x.json()).then(x=>bfSetCounties(x.counties||[])).catch(()=>{})},[]);const bfSq=(()=>{const mm=e.find(x=>x.slug===r.value);if(!mm)return null;const nn=(String(mm.sqft).match(/[\d,]+/g)||[]).map(x=>parseInt(x.replace(/,/g,""),10)).filter(x=>x>=100&&x<=6000);return nn.length?[Math.min(...nn),Math.max(...nn)]:null})(),bfSqKey=bfSq?bfSq.join("-"):"";ye.useEffect(()=>{if(!bfCounty||!bfSq){bfSetFee(null);return}const q=new URLSearchParams({county:bfCounty,sqft_min:bfSq[0],sqft_max:bfSq[1],septic:c.value==="Yes",well:v.value==="Yes",adu:bfAdu});fetch(bfApi+"/estimate?"+q).then(x=>x.ok?x.json():null).then(x=>bfSetFee(x)).catch(()=>bfSetFee(null))},[bfCounty,bfAdu,bfSqKey,c.value,v.value]);const bfMid=bfFee?Math.round((bfFee.county_fees.low+bfFee.county_fees.high)/2):0,bfPrice=5e3+bfMid,bfFmt=x=>"$"+(x>=1e3?Math.round(x/1e3)+"k":Math.round(x)),bfLabel=bfFee?"$5k + ~"+bfFmt(bfMid)+" fees":"$5k + fees";ye.useEffect(()=>{l.value==="Yes"&&l.updateField({estimated_price:bfPrice})},[bfPrice]);return ye.useEffect(()=>{i.value==="Yes"&&(o.updateField({required:!0}),u.updateField({required:!0})),i.value==="No"&&(o.updateField({required:!1,value:"",estimated_price:0}),u.updateField({required:!1,value:"",estimated_price:0}))},[i]),S.jsxs("form",{className:"calc_form",children:[S.jsx(me,{heading:"Choose Model",children:S.jsx(Od,{model:r,data:e})}),S.jsx(me,{heading:"Do you want Bigfoot to handle your permits? Our in-house permitting service is $5k. County and state permit fees are extra and depend on your county and home size. Pick your county for an estimate.",children:S.jsxs("div",{children:[S.jsxs("div",{style:{display:"flex",gap:"1rem",flexWrap:"wrap",alignItems:"center",marginBottom:"1rem"},children:[S.jsxs("select",{value:bfCounty,"aria-label":"County",onChange:x=>bfSetCounty(x.target.value),style:{padding:"0.6rem 0.8rem",borderRadius:"0.5rem",border:"1px solid #ccc",fontFamily:"inherit",fontSize:"inherit",background:"#fff"},children:[S.jsx("option",{value:"",children:"Which county? (optional)"}),bfCounties.map(x=>S.jsx("option",{value:x.slug,children:x.label},x.slug))]}),S.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.4rem",cursor:"pointer"},children:[S.jsx("input",{type:"checkbox",checked:bfAdu,onChange:x=>bfSetAdu(x.target.checked)}),"This is an ADU behind an existing home"]})]}),S.jsx(_e,{context:l,value:"permits",price:bfPrice,priceYes:bfLabel,priceNo:"$0"}),bfFee&&S.jsx("p",{style:{fontSize:"0.85em",opacity:.8,marginTop:"0.75rem"},children:bfFee.label+" fees for "+bfSq[0]+(bfSq[1]!==bfSq[0]?"\u2013"+bfSq[1]:"")+" sq ft: about "+bfFmt(bfFee.county_fees.low)+" to "+bfFmt(bfFee.county_fees.high)+" (building permit, plan check, school and impact fees; the estimate above uses the midpoint). "+bfFee.disclaimer}),!bfFee&&bfCounty&&!bfSq&&S.jsx("p",{style:{fontSize:"0.85em",opacity:.8,marginTop:"0.75rem"},children:"Choose a model above to estimate county fees."})]})}),S.jsx(me,{heading:"Do you want a two car site builit garage?",children:S.jsx(_e,{context:i,price:5e4,value:"garage",priceYes:"$50k",priceNo:"$0"})}),i.value==="Yes"&&S.jsxs(S.Fragment,{children:[S.jsx(me,{heading:`If so - Do you want a concrete driveway in front of the garage? `,children:S.jsx(_e,{context:o,price:4e3,priceYes:"$4k",priceNo:"$0",value:"driveway"})}),S.jsx(me,{heading:`If so - Do you want a sidewalk or pathway from your garage to the front door?`,children:S.jsx(_e,{context:u,price:3200,priceYes:"$3.2k",priceNo:"$0",value:"sidewalk"})})]}),S.jsx(me,{heading:"Do you want us to do the full install of your new home/adu on a permanent concrete stem wall foundation?",children:S.jsx(_e,{context:s,price:8e4,priceYes:"$80k",priceNo:"$0",value:"foundation_install"})}),S.jsx(me,{heading:"Do you need a septic system?",children:S.jsx(_e,{context:c,price:15e3,priceYes:"$15k",priceNo:"$0",value:"septic"})}),S.jsx(me,{heading:"Do you need a well dug?",children:S.jsx(_e,{context:v,value:"well",price:5e4,priceYes:"$50k",priceNo:"$0"})}),S.jsx(me,{heading:"Do you have public gas lines nearby or on propane?",children:S.jsx(_e,{context:m,value:"gas_propane"})}),S.jsx(me,{heading:"Is there a power pole within 100 ft of where you want your new home/adu?",children:S.jsx(_e,{context:p,value:"power_pole",price:8e3,priceYes:"$8k/pole",priceNo:"$0"})}),S.jsx(me,{heading:"Do you want sprinklers installed?",children:S.jsx(_e,{context:g,value:"sprinklers",price:7e3,priceYes:"$7k",priceNo:"$0"})}),S.jsx(me,{heading:`Do we need to trench more than 100ft for any utility connections?`,children:S.jsx(_e,{context:w,value:"trench",price:1e3,priceYes:"$1k/100ft",priceNo:"$0"})}),S.jsx(me,{heading:"Do you have any of the following: land survey, perc test, soil test, geotechnical report, fault study?",children:S.jsx(_e,{context:k,value:"surveys_studies"})}),S.jsxs("div",{className:"calc_bottom-price_block",children:[S.jsxs("div",{className:"calc_bottom-price_text",children:["The estimated price is ",S.jsx("span",{children:oc(t)})]}),S.jsx("a",{href:"#",type:"button",onClick:n,className:"calc_inquire-btn",children:"Inquire"})]})]})}function Id({data:e}){const t=ye.useContext(Do),[n,r]=ye.useState(0);ye.useEffect(()=>{const i=Object.values(t).reduce((o,u)=>u.estimated_price?o+u.estimated_price:o,0);r(i)},[t]);const l=()=>{const{model:i,permits:o,garage:u,driveway:s,sidewalk:c,foundation_install:v,septic:m,well:p,gas_propane:g,power_pole:w,sprinklers:k,trench:D,surveys_studies:f}=t,a={estimate_price:n,model:i.value,permits:o.value,garage:u.value,driveway:s.value,sidewalk:c.value,foundation_install:v.value,septic:m.value,well:p.value,gas_propane:g.value,power_pole:w.value,sprinklers:k.value,trench:D.value,surveys_studies:f.value};sessionStorage.setItem("estimate",JSON.stringify(a)),window.location.href="/contact"};return S.jsxs("div",{className:"calc_flex-block",children:[S.jsx("div",{className:"calc_sticky-rails",children:S.jsxs("div",{className:"calc_sticky-block",children:[S.jsx("h1",{children:"Pricing Calculator"}),S.jsx("p",{children:"Please note: This is an approximate cost only and not an exact quote. Final pricing may vary"}),S.jsxs("div",{className:"calc_sticky-price",children:["Estimated Price: ",S.jsx("span",{children:oc(n)})]}),S.jsx("a",{href:"#",type:"button",onClick:l,className:"calc_inquire-btn",children:"Inquire"})]})}),S.jsx("div",{className:"calc_app-content",children:S.jsx(Md,{data:e,handleSubmit:l,estimate:n})})]})}const $d=({children:e})=>{const[t,n]=ye.useState({model:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},permits:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},garage:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},driveway:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},sidewalk:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},foundation_install:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},septic:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},well:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},gas_propane:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},power_pole:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},sprinklers:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},trench:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}},surveys_studies:{value:"",estimated_price:0,required:!1,error:!1,updateField:()=>{}}}),r=ye.useCallback((i,o)=>{n(u=>({...u,[i]:{...u[i],...o}}))},[]),l=Object.keys(t).reduce((i,o)=>{const u=t[o];return{...i,[o]:{...u,updateField:s=>r(o,s)}}},{});return S.jsx(Do.Provider,{value:{...l},children:e})};function Ud(){const e=document.querySelector(".model_list");if(!e)return;let t=[];return Array.from(e.querySelectorAll(".model_data")).forEach(r=>{const l=JSON.parse(r.textContent),i={name:l.name,slug:l.slug,bathrooms:l.bathrooms,bedrooms:l.bedrooms,sqft:l.sqft,image:l.image,image_alt:l.image_alt,price_string:l.price_string,price:parseInt(l.price),popular:l.popular==="true"};t.push(i)}),t}function Ad(){document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector("#calculator-app");e&&ic(e).render(S.jsx(ye.StrictMode,{children:S.jsx($d,{children:S.jsx(Id,{data:Ud()})})}))})}function Vd(){const e=()=>{const n=sessionStorage.getItem("estimate");return n?JSON.parse(n):null};(()=>{const n=e();if(!n)return;const r=document.getElementById("calculator_data"),l=` Estimated Price: ${n.estimate_price} Model: ${n.model} Permits: ${n.permits} Garage: ${n.garage} Driveway: ${n.driveway} Sidewalk: ${n.sidewalk} Foundation Install: ${n.foundation_install} Septic: ${n.septic} Well: ${n.well} Gas Propane: ${n.gas_propane} Power Pole: ${n.power_pole} Sprinklers: ${n.sprinklers} Trench: ${n.trench} Surveys Studies: ${n.surveys_studies} `;r.value=l})()}window.location.pathname==="/calculator"&&Ad();window.location.pathname==="/contact"&&Vd();