const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MapView-Clc_EnHi.js","assets/pills-Dduvidoh.js","assets/pills-CuCRB34y.css","assets/PropertyMap-CFE6F_8k.js"])))=>i.map(i=>d[i]); function Od(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Wm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lu={exports:{}},Fl={},iu={exports:{}},$={};/** * @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 Er=Symbol.for("react.element"),Id=Symbol.for("react.portal"),Dd=Symbol.for("react.fragment"),Ad=Symbol.for("react.strict_mode"),Ud=Symbol.for("react.profiler"),Vd=Symbol.for("react.provider"),Bd=Symbol.for("react.context"),Wd=Symbol.for("react.forward_ref"),Hd=Symbol.for("react.suspense"),Qd=Symbol.for("react.memo"),Kd=Symbol.for("react.lazy"),Fo=Symbol.iterator;function Xd(e){return e===null||typeof e!="object"?null:(e=Fo&&e[Fo]||e["@@iterator"],typeof e=="function"?e:null)}var su={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ou=Object.assign,au={};function Ln(e,t,n){this.props=e,this.context=t,this.refs=au,this.updater=n||su}Ln.prototype.isReactComponent={};Ln.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")};Ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uu(){}uu.prototype=Ln.prototype;function Fs(e,t,n){this.props=e,this.context=t,this.refs=au,this.updater=n||su}var Is=Fs.prototype=new uu;Is.constructor=Fs;ou(Is,Ln.prototype);Is.isPureReactComponent=!0;var Io=Array.isArray,cu=Object.prototype.hasOwnProperty,Ds={current:null},du={key:!0,ref:!0,__self:!0,__source:!0};function fu(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)cu.call(t,r)&&!du.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,K=E[B];if(0>>1;Bl(Fn,T))fel(dt,Fn)?(E[B]=dt,E[fe]=T,B=fe):(E[B]=Fn,E[Ne]=T,B=Ne);else if(fel(dt,T))E[B]=dt,E[fe]=T,B=fe;else break e}}return R}function l(E,R){var T=E.sortIndex-R.sortIndex;return T!==0?T:E.id-R.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 a=[],c=[],h=1,f=null,m=3,w=!1,g=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=E)r(c),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(c)}}function x(E){if(j=!1,v(E),!g)if(n(a)!==null)g=!0,ge(C);else{var R=n(c);R!==null&&ct(x,R.startTime-E)}}function C(E,R){g=!1,j&&(j=!1,p(P),P=-1),w=!0;var T=m;try{for(v(R),f=n(a);f!==null&&(!(f.expirationTime>R)||E&&!re());){var B=f.callback;if(typeof B=="function"){f.callback=null,m=f.priorityLevel;var K=B(f.expirationTime<=R);R=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(a)&&r(a),v(R)}else r(a);f=n(a)}if(f!==null)var Je=!0;else{var Ne=n(c);Ne!==null&&ct(x,Ne.startTime-R),Je=!1}return Je}finally{f=null,m=T,w=!1}}var _=!1,L=null,P=-1,I=5,z=-1;function re(){return!(e.unstable_now()-zE||125B?(E.sortIndex=T,t(c,E),n(a)===null&&E===n(c)&&(j?(p(P),P=-1):j=!0,ct(x,T-B))):(E.sortIndex=K,t(a,E),g||w||(g=!0,ge(C))),E},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(E){var R=m;return function(){var T=m;m=R;try{return E.apply(this,arguments)}finally{m=T}}}})(yu);gu.exports=yu;var sf=gu.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 of=y,Pe=sf;function k(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"),Ii=Object.prototype.hasOwnProperty,af=/^[: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]*$/,Ao={},Uo={};function uf(e){return Ii.call(Uo,e)?!0:Ii.call(Ao,e)?!1:af.test(e)?Uo[e]=!0:(Ao[e]=!0,!1)}function cf(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 df(e,t,n,r){if(t===null||typeof t>"u"||cf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ve(e,t,n,r,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 se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){se[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Us=/[\-:]([a-z])/g;function Vs(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(Us,Vs);se[t]=new ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Us,Vs);se[t]=new ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Us,Vs);se[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bs(e,t,n,r){var l=se.hasOwnProperty(t)?se[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var a=` `+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{ai=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yn(e):""}function ff(e){switch(e.tag){case 5:return Yn(e.type);case 16:return Yn("Lazy");case 13:return Yn("Suspense");case 19:return Yn("SuspenseList");case 0:case 2:case 15:return e=ui(e.type,!1),e;case 11:return e=ui(e.type.render,!1),e;case 1:return e=ui(e.type,!0),e;default:return""}}function Vi(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 nn:return"Fragment";case tn:return"Portal";case Di:return"Profiler";case Ws:return"StrictMode";case Ai:return"Suspense";case Ui:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wu:return(e.displayName||"Context")+".Consumer";case ju:return(e._context.displayName||"Context")+".Provider";case Hs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qs:return t=e.displayName||null,t!==null?t:Vi(e.type)||"Memo";case ht:t=e._payload,e=e._init;try{return Vi(e(t))}catch{}}return null}function pf(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 Vi(t);case 8:return t===Ws?"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 Lt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ku(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hf(e){var t=ku(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 $r(e){e._valueTracker||(e._valueTracker=hf(e))}function Nu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ku(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ul(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 Bi(e,t){var n=t.checked;return Q({},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=Lt(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 Cu(e,t){t=t.checked,t!=null&&Bs(e,"checked",t,!1)}function Wi(e,t){Cu(e,t);var n=Lt(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")?Hi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hi(e,t.type,Lt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wo(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 Hi(e,t,n){(t!=="number"||ul(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gn=Array.isArray;function mn(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 ar(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jn={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},mf=["Webkit","ms","Moz","O"];Object.keys(Jn).forEach(function(e){mf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jn[t]=Jn[e]})});function Mu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jn.hasOwnProperty(e)&&Jn[e]?(""+t).trim():t+"px"}function Lu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Mu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var vf=Q({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 Xi(e,t){if(t){if(vf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Yi(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 Gi=null;function Ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qi=null,vn=null,gn=null;function Ko(e){if(e=Mr(e)){if(typeof qi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Vl(t),qi(e.stateNode,e.type,t))}}function zu(e){vn?gn?gn.push(e):gn=[e]:vn=e}function Ru(){if(vn){var e=vn,t=gn;if(gn=vn=null,Ko(e),t)for(e=0;e>>=0,e===0?32:31-(_f(e)/Pf|0)|0}var Fr=64,Ir=4194304;function qn(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 pl(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=qn(u):(i&=o,i!==0&&(r=qn(i)))}else o=n&~l,o!==0?r=qn(o):i!==0&&(r=qn(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 _r(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Be(t),e[t]=n}function Rf(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=er),ta=" ",na=!1;function Ju(e,t){switch(e){case"keyup":return sp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rn=!1;function ap(e,t){switch(e){case"compositionend":return bu(t);case"keypress":return t.which!==32?null:(na=!0,ta);case"textInput":return e=t.data,e===ta&&na?null:e;default:return null}}function up(e,t){if(rn)return e==="compositionend"||!eo&&Ju(e,t)?(e=qu(),el=Zs=yt=null,rn=!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=sa(n)}}function rc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lc(){for(var e=window,t=ul();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ul(e.document)}return t}function to(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 yp(e){var t=lc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rc(n.ownerDocument.documentElement,n)){if(r!==null&&to(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=oa(n,i);var o=oa(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,ln=null,ns=null,nr=null,rs=!1;function aa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rs||ln==null||ln!==ul(r)||(r=ln,"selectionStart"in r&&to(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}),nr&&hr(nr,r)||(nr=r,r=vl(ns,"onSelect"),0an||(e.current=us[an],us[an]=null,an--)}function D(e,t){an++,us[an]=e.current,e.current=t}var zt={},de=Tt(zt),je=Tt(!1),Ht=zt;function Sn(e,t){var n=e.type.contextTypes;if(!n)return zt;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 we(e){return e=e.childContextTypes,e!=null}function yl(){U(je),U(de)}function ma(e,t,n){if(de.current!==zt)throw Error(k(168));D(de,t),D(je,n)}function pc(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(k(108,pf(e)||"Unknown",l));return Q({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zt,Ht=de.current,D(de,e),D(je,je.current),!0}function va(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=pc(e,t,Ht),r.__reactInternalMemoizedMergedChildContext=e,U(je),U(de),D(de,e)):U(je),D(je,n)}var et=null,Bl=!1,ki=!1;function hc(e){et===null?et=[e]:et.push(e)}function Lp(e){Bl=!0,hc(e)}function $t(){if(!ki&&et!==null){ki=!0;var e=0,t=F;try{var n=et;for(F=1;e>=o,l-=o,tt=1<<32-Be(t)+l|n<P?(I=L,L=null):I=L.sibling;var z=m(p,L,v[P],x);if(z===null){L===null&&(L=I);break}e&&L&&z.alternate===null&&t(p,L),d=i(z,d,P),_===null?C=z:_.sibling=z,_=z,L=I}if(P===v.length)return n(p,L),V&&It(p,P),C;if(L===null){for(;PP?(I=L,L=null):I=L.sibling;var re=m(p,L,z.value,x);if(re===null){L===null&&(L=I);break}e&&L&&re.alternate===null&&t(p,L),d=i(re,d,P),_===null?C=re:_.sibling=re,_=re,L=I}if(z.done)return n(p,L),V&&It(p,P),C;if(L===null){for(;!z.done;P++,z=v.next())z=f(p,z.value,x),z!==null&&(d=i(z,d,P),_===null?C=z:_.sibling=z,_=z);return V&&It(p,P),C}for(L=r(p,L);!z.done;P++,z=v.next())z=w(L,p,P,z.value,x),z!==null&&(e&&z.alternate!==null&&L.delete(z.key===null?P:z.key),d=i(z,d,P),_===null?C=z:_.sibling=z,_=z);return e&&L.forEach(function(oe){return t(p,oe)}),V&&It(p,P),C}function N(p,d,v,x){if(typeof v=="object"&&v!==null&&v.type===nn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Tr:e:{for(var C=v.key,_=d;_!==null;){if(_.key===C){if(C=v.type,C===nn){if(_.tag===7){n(p,_.sibling),d=l(_,v.props.children),d.return=p,p=d;break e}}else if(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ht&&xa(C)===_.type){n(p,_.sibling),d=l(_,v.props),d.ref=Hn(p,_,v),d.return=p,p=d;break e}n(p,_);break}else t(p,_);_=_.sibling}v.type===nn?(d=Wt(v.props.children,p.mode,x,v.key),d.return=p,p=d):(x=al(v.type,v.key,v.props,null,p.mode,x),x.ref=Hn(p,d,v),x.return=p,p=x)}return o(p);case tn:e:{for(_=v.key;d!==null;){if(d.key===_)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(p,d.sibling),d=l(d,v.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=zi(v,p.mode,x),d.return=p,p=d}return o(p);case ht:return _=v._init,N(p,d,_(v._payload),x)}if(Gn(v))return g(p,d,v,x);if(An(v))return j(p,d,v,x);Hr(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,v),d.return=p,p=d):(n(p,d),d=Li(v,p.mode,x),d.return=p,p=d),o(p)):n(p,d)}return N}var Nn=yc(!0),xc=yc(!1),Sl=Tt(null),kl=null,dn=null,io=null;function so(){io=dn=kl=null}function oo(e){var t=Sl.current;U(Sl),e._currentValue=t}function fs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xn(e,t){kl=e,io=dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xe=!0),e.firstContext=null)}function Fe(e){var t=e._currentValue;if(io!==e)if(e={context:e,memoizedValue:t,next:null},dn===null){if(kl===null)throw Error(k(308));dn=e,kl.dependencies={lanes:0,firstContext:e}}else dn=dn.next=e;return t}var Ut=null;function ao(e){Ut===null?Ut=[e]:Ut.push(e)}function jc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ao(t)):(n.next=l.next,l.next=n),t.interleaved=n,ot(e,r)}function ot(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 mt=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wc(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 rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,ot(e,n)}return l=r.interleaved,l===null?(t.next=t,ao(r)):(t.next=l.next,l.next=t),r.interleaved=t,ot(e,n)}function nl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ys(e,n)}}function ja(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Nl(e,t,n,r){var l=e.updateQueue;mt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==o&&(u===null?h.firstBaseUpdate=c:u.next=c,h.lastBaseUpdate=a))}if(i!==null){var f=l.baseState;o=0,h=c=a=null,u=i;do{var m=u.lane,w=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,j=u;switch(m=t,w=n,j.tag){case 1:if(g=j.payload,typeof g=="function"){f=g.call(w,f,m);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=j.payload,m=typeof g=="function"?g.call(w,f,m):g,m==null)break e;f=Q({},f,m);break e;case 2:mt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else w={eventTime:w,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(c=h=w,a=f):h=h.next=w,o|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(a=f),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Xt|=o,e.lanes=o,e.memoizedState=f}}function wa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ci.transition;Ci.transition={};try{e(!1),t()}finally{F=n,Ci.transition=r}}function Dc(){return Ie().memoizedState}function $p(e,t,n){var r=_t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ac(e))Uc(t,n);else if(n=jc(e,t,n,r),n!==null){var l=he();We(n,e,r,l),Vc(n,t,r)}}function Op(e,t,n){var r=_t(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ac(e))Uc(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,He(u,o)){var a=t.interleaved;a===null?(l.next=l,ao(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=jc(e,t,l,r),n!==null&&(l=he(),We(n,e,r,l),Vc(n,t,r))}}function Ac(e){var t=e.alternate;return e===H||t!==null&&t===H}function Uc(e,t){rr=El=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ys(e,n)}}var _l={readContext:Fe,useCallback:ae,useContext:ae,useEffect:ae,useImperativeHandle:ae,useInsertionEffect:ae,useLayoutEffect:ae,useMemo:ae,useReducer:ae,useRef:ae,useState:ae,useDebugValue:ae,useDeferredValue:ae,useTransition:ae,useMutableSource:ae,useSyncExternalStore:ae,useId:ae,unstable_isNewReconciler:!1},Fp={readContext:Fe,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:ka,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ll(4194308,4,Tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return ll(4,2,e,t)},useMemo:function(e,t){var n=Xe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xe();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=$p.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:Sa,useDebugValue:yo,useDeferredValue:function(e){return Xe().memoizedState=e},useTransition:function(){var e=Sa(!1),t=e[0];return e=Tp.bind(null,e[1]),Xe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=Xe();if(V){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));Kt&30||Cc(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,ka(_c.bind(null,r,i,e),[e]),r.flags|=2048,Sr(9,Ec.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xe(),t=ne.identifierPrefix;if(V){var n=nt,r=tt;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jr++,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[Ye]=t,e[gr]=r,Zc(e,t,!1,!1),t.stateNode=e;e:{switch(o=Yi(n,r),n){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;l_n&&(t.flags|=128,r=!0,Qn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Cl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!V)return ue(t),null}else 2*q()-i.renderingStartTime>_n&&n!==1073741824&&(t.flags|=128,r=!0,Qn(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=W.current,D(W,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return No(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ce&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Hp(e,t){switch(ro(t),t.tag){case 1:return we(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(),U(je),U(de),po(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fo(t),null;case 13:if(U(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(W),null;case 4:return Cn(),null;case 10:return oo(t.type._context),null;case 22:case 23:return No(),null;case 24:return null;default:return null}}var Kr=!1,ce=!1,Qp=typeof WeakSet=="function"?WeakSet:Set,M=null;function fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function ws(e,t,n){try{n()}catch(r){Y(e,t,r)}}var $a=!1;function Kp(e,t){if(ls=hl,e=lc(),to(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,a=-1,c=0,h=0,f=e,m=null;t:for(;;){for(var w;f!==n||l!==0&&f.nodeType!==3||(u=o+l),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(w=f.firstChild)!==null;)m=f,f=w;for(;;){if(f===e)break t;if(m===n&&++c===l&&(u=o),m===i&&++h===r&&(a=o),(w=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=w}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(is={focusedElem:e,selectionRange:n},hl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var j=g.memoizedProps,N=g.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?j:Ae(t.type,j),N);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(x){Y(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=$a,$a=!1,g}function lr(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&&ws(t,n,i)}l=l.next}while(l!==r)}}function Ql(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 Ss(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 ed(e){var t=e.alternate;t!==null&&(e.alternate=null,ed(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[gr],delete t[as],delete t[Pp],delete t[Mp])),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 td(e){return e.tag===5||e.tag===3||e.tag===4}function Oa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||td(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 ks(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=gl));else if(r!==4&&(e=e.child,e!==null))for(ks(e,t,n),e=e.sibling;e!==null;)ks(e,t,n),e=e.sibling}function Ns(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(Ns(e,t,n),e=e.sibling;e!==null;)Ns(e,t,n),e=e.sibling}var le=null,Ue=!1;function ft(e,t,n){for(n=n.child;n!==null;)nd(e,t,n),n=n.sibling}function nd(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:ce||fn(n,t);case 6:var r=le,l=Ue;le=null,ft(e,t,n),le=r,Ue=l,le!==null&&(Ue?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ue?(e=le,n=n.stateNode,e.nodeType===8?Si(e.parentNode,n):e.nodeType===1&&Si(e,n),fr(e)):Si(le,n.stateNode));break;case 4:r=le,l=Ue,le=n.stateNode.containerInfo,Ue=!0,ft(e,t,n),le=r,Ue=l;break;case 0:case 11:case 14:case 15:if(!ce&&(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)&&ws(n,t,o),l=l.next}while(l!==r)}ft(e,t,n);break;case 1:if(!ce&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Y(n,t,u)}ft(e,t,n);break;case 21:ft(e,t,n);break;case 22:n.mode&1?(ce=(r=ce)||n.memoizedState!==null,ft(e,t,n),ce=r):ft(e,t,n);break;default:ft(e,t,n)}}function Fa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qp),t.forEach(function(r){var l=th.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function De(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*Yp(r/1960))-r,10e?16:e,xt===null)var r=!1;else{if(e=xt,xt=null,Ll=0,O&6)throw Error(k(331));var l=O;for(O|=4,M=e.current;M!==null;){var i=M,o=i.child;if(M.flags&16){var u=i.deletions;if(u!==null){for(var a=0;aq()-So?Bt(e,0):wo|=n),Se(e,t)}function cd(e,t){t===0&&(e.mode&1?(t=Ir,Ir<<=1,!(Ir&130023424)&&(Ir=4194304)):t=1);var n=he();e=ot(e,t),e!==null&&(_r(e,t,n),Se(e,n))}function eh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cd(e,n)}function th(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(k(314))}r!==null&&r.delete(t),cd(e,n)}var dd;dd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)xe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xe=!1,Bp(e,t,n);xe=!!(e.flags&131072)}else xe=!1,V&&t.flags&1048576&&mc(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;il(e,t),e=t.pendingProps;var l=Sn(t,de.current);xn(t,n),l=mo(null,t,r,e,l,n);var i=vo();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,we(r)?(i=!0,xl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,uo(t),l.updater=Hl,t.stateNode=l,l._reactInternals=t,hs(t,r,e,n),t=gs(null,t,r,!0,i,n)):(t.tag=0,V&&i&&no(t),pe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(il(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=rh(r),e=Ae(r,e),l){case 0:t=vs(null,t,r,e,n);break e;case 1:t=za(null,t,r,e,n);break e;case 11:t=Ma(null,t,r,e,n);break e;case 14:t=La(null,t,r,Ae(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),vs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),za(e,t,r,l,n);case 3:e:{if(Yc(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,l=i.element,wc(e,t),Nl(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=En(Error(k(423)),t),t=Ra(e,t,r,n,l);break e}else if(r!==l){l=En(Error(k(424)),t),t=Ra(e,t,r,n,l);break e}else for(Ee=Nt(t.stateNode.containerInfo.firstChild),_e=t,V=!0,Ve=null,n=xc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(kn(),r===l){t=at(e,t,n);break e}pe(e,t,r,n)}t=t.child}return t;case 5:return Sc(t),e===null&&ds(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,ss(r,l)?o=null:i!==null&&ss(r,i)&&(t.flags|=32),Xc(e,t),pe(e,t,o,n),t.child;case 6:return e===null&&ds(t),null;case 13:return Gc(e,t,n);case 4:return co(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nn(t,null,r,n):pe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),Ma(e,t,r,l,n);case 7:return pe(e,t,t.pendingProps,n),t.child;case 8:return pe(e,t,t.pendingProps.children,n),t.child;case 12:return pe(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,D(Sl,r._currentValue),r._currentValue=o,i!==null)if(He(i.value,o)){if(i.children===l.children&&!je.current){t=at(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 a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=rt(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),fs(i.return,n,t),u.lanes|=n;break}a=a.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(k(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),fs(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}pe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,xn(t,n),l=Fe(l),r=r(l),t.flags|=1,pe(e,t,r,n),t.child;case 14:return r=t.type,l=Ae(r,t.pendingProps),l=Ae(r.type,l),La(e,t,r,l,n);case 15:return Qc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),il(e,t),t.tag=1,we(r)?(e=!0,xl(t)):e=!1,xn(t,n),Bc(t,r,l),hs(t,r,l,n),gs(null,t,r,!0,e,n);case 19:return qc(e,t,n);case 22:return Kc(e,t,n)}throw Error(k(156,t.tag))};function fd(e,t){return Au(e,t)}function nh(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 $e(e,t,n,r){return new nh(e,t,n,r)}function Eo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rh(e){if(typeof e=="function")return Eo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hs)return 11;if(e===Qs)return 14}return 2}function Pt(e,t){var n=e.alternate;return n===null?(n=$e(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 al(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Eo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case nn:return Wt(n.children,l,i,t);case Ws:o=8,l|=8;break;case Di:return e=$e(12,n,t,l|2),e.elementType=Di,e.lanes=i,e;case Ai:return e=$e(13,n,t,l),e.elementType=Ai,e.lanes=i,e;case Ui:return e=$e(19,n,t,l),e.elementType=Ui,e.lanes=i,e;case Su:return Xl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ju:o=10;break e;case wu:o=9;break e;case Hs:o=11;break e;case Qs:o=14;break e;case ht:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=$e(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Wt(e,t,n,r){return e=$e(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=$e(22,e,r,t),e.elementType=Su,e.lanes=n,e.stateNode={isHidden:!1},e}function Li(e,t,n){return e=$e(6,e,null,t),e.lanes=n,e}function zi(e,t,n){return t=$e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lh(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=di(0),this.expirationTimes=di(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=di(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function _o(e,t,n,r,l,i,o,u,a){return e=new lh(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$e(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},uo(i),e}function ih(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vd)}catch(e){console.error(e)}}vd(),vu.exports=Me;var ch=vu.exports,Ha=ch;Fi.createRoot=Ha.createRoot,Fi.hydrateRoot=Ha.hydrateRoot;/** * @remix-run/router v1.23.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fh(){return Math.random().toString(36).substr(2,8)}function Ka(e,t){return{usr:e.state,key:e.key,idx:t}}function Ms(e,t,n,r){return n===void 0&&(n=null),Nr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tn(t):t,{state:n,key:t&&t.key||r||fh()})}function Tl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ph(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,u=jt.Pop,a=null,c=h();c==null&&(c=0,o.replaceState(Nr({},o.state,{idx:c}),""));function h(){return(o.state||{idx:null}).idx}function f(){u=jt.Pop;let N=h(),p=N==null?null:N-c;c=N,a&&a({action:u,location:j.location,delta:p})}function m(N,p){u=jt.Push;let d=Ms(j.location,N,p);c=h()+1;let v=Ka(d,c),x=j.createHref(d);try{o.pushState(v,"",x)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;l.location.assign(x)}i&&a&&a({action:u,location:j.location,delta:1})}function w(N,p){u=jt.Replace;let d=Ms(j.location,N,p);c=h();let v=Ka(d,c),x=j.createHref(d);o.replaceState(v,"",x),i&&a&&a({action:u,location:j.location,delta:0})}function g(N){let p=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof N=="string"?N:Tl(N);return d=d.replace(/ $/,"%20"),G(p,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,p)}let j={get action(){return u},get location(){return e(l,o)},listen(N){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Qa,f),a=N,()=>{l.removeEventListener(Qa,f),a=null}},createHref(N){return t(l,N)},createURL:g,encodeLocation(N){let p=g(N);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:m,replace:w,go(N){return o.go(N)}};return j}var Xa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xa||(Xa={}));function hh(e,t,n){return n===void 0&&(n="/"),mh(e,t,n)}function mh(e,t,n,r){let l=typeof t=="string"?Tn(t):t,i=Pn(l.pathname||"/",n);if(i==null)return null;let o=gd(e);vh(o);let u=null,a=_h(i);for(let c=0;u==null&&c{let a={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(G(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=Mt([r,a.relativePath]),h=n.concat(a);i.children&&i.children.length>0&&(G(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),gd(i.children,t,h,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:kh(c,i.index),routesMeta:h})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,o);else for(let a of yd(i.path))l(i,o,a)}),t}function yd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=yd(r.join("/")),u=[];return u.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&u.push(...o),u.map(a=>e.startsWith("/")&&a===""?"/":a)}function vh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Nh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gh=/^:[\w-]+$/,yh=3,xh=2,jh=1,wh=10,Sh=-2,Ya=e=>e==="*";function kh(e,t){let n=e.split("/"),r=n.length;return n.some(Ya)&&(r+=Sh),t&&(r+=xh),n.filter(l=>!Ya(l)).reduce((l,i)=>l+(gh.test(i)?yh:i===""?jh:wh),r)}function Nh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Ch(e,t,n){let{routesMeta:r}=e,l={},i="/",o=[];for(let u=0;u{let{paramName:m,isOptional:w}=h;if(m==="*"){let j=u[f]||"";o=i.slice(0,i.length-j.length).replace(/(.)\/+$/,"$1")}const g=u[f];return w&&!g?c[m]=void 0:c[m]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function Eh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,a)=>(r.push({paramName:u,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function _h(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Pn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mh=e=>Ph.test(e);function Lh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Tn(e):e,i;if(n)if(Mh(n))i=n;else{if(n.includes("//")){let o=n;n=wd(n),zo(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Ga(n.substring(1),"/"):i=Ga(n,t)}else i=t;return{pathname:i,search:Th(r),hash:$h(l)}}function Ga(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Ri(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function zh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xd(e,t){let n=zh(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jd(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Tn(e):(l=Nr({},e),G(!l.pathname||!l.pathname.includes("?"),Ri("?","pathname","search",l)),G(!l.pathname||!l.pathname.includes("#"),Ri("#","pathname","hash",l)),G(!l.search||!l.search.includes("#"),Ri("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,u;if(o==null)u=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;l.pathname=m.join("/")}u=f>=0?t[f]:"/"}let a=Lh(l,u),c=o&&o!=="/"&&o.endsWith("/"),h=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||h)&&(a.pathname+="/"),a}const wd=e=>e.replace(/\/\/+/g,"/"),Mt=e=>wd(e.join("/")),Rh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Th=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$h=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Oh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Sd=["post","put","patch","delete"];new Set(Sd);const Fh=["get",...Sd];new Set(Fh);/** * React Router v6.30.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),y.useCallback(function(c,h){if(h===void 0&&(h={}),!u.current)return;if(typeof c=="number"){r.go(c);return}let f=jd(c,JSON.parse(o),i,h.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Mt([t,f.pathname])),(h.replace?r.replace:r.push)(f,h.state,h)},[t,r,o,i,e])}function Ah(){let{matches:e}=y.useContext(Ft),t=e[e.length-1];return t?t.params:{}}function ei(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Ot),{matches:l}=y.useContext(Ft),{pathname:i}=Zt(),o=JSON.stringify(xd(l,r.v7_relativeSplatPath));return y.useMemo(()=>jd(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Uh(e,t){return Vh(e,t)}function Vh(e,t,n,r){zr()||G(!1);let{navigator:l}=y.useContext(Ot),{matches:i}=y.useContext(Ft),o=i[i.length-1],u=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=Zt(),h;if(t){var f;let N=typeof t=="string"?Tn(t):t;a==="/"||(f=N.pathname)!=null&&f.startsWith(a)||G(!1),h=N}else h=c;let m=h.pathname||"/",w=m;if(a!=="/"){let N=a.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(N.length).join("/")}let g=hh(e,{pathname:w}),j=Kh(g&&g.map(N=>Object.assign({},N,{params:Object.assign({},u,N.params),pathname:Mt([a,l.encodeLocation?l.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?a:Mt([a,l.encodeLocation?l.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),i,n,r);return t&&j?y.createElement(bl.Provider,{value:{location:Cr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:jt.Pop}},j):j}function Bh(){let e=qh(),t=Oh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:l},n):null,null)}const Wh=y.createElement(Bh,null);class Hh extends y.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?y.createElement(Ft.Provider,{value:this.props.routeContext},y.createElement(Nd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qh(e){let{routeContext:t,match:n,children:r}=e,l=y.useContext(Jl);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Ft.Provider,{value:t},r)}function Kh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let h=o.findIndex(f=>f.route.id&&(u==null?void 0:u[f.route.id])!==void 0);h>=0||G(!1),o=o.slice(0,Math.min(o.length,h+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((h,f,m)=>{let w,g=!1,j=null,N=null;n&&(w=u&&f.route.id?u[f.route.id]:void 0,j=f.route.errorElement||Wh,a&&(c<0&&m===0?(Jh("route-fallback"),g=!0,N=null):c===m&&(g=!0,N=f.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,m+1)),d=()=>{let v;return w?v=j:g?v=N:f.route.Component?v=y.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=h,y.createElement(Qh,{match:f,routeContext:{outlet:h,matches:p,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?y.createElement(Hh,{location:n.location,revalidation:n.revalidation,component:j,error:w,children:d(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):d()},null)}var _d=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_d||{}),Pd=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}(Pd||{});function Xh(e){let t=y.useContext(Jl);return t||G(!1),t}function Yh(e){let t=y.useContext(kd);return t||G(!1),t}function Gh(e){let t=y.useContext(Ft);return t||G(!1),t}function Md(e){let t=Gh(),n=t.matches[t.matches.length-1];return n.route.id||G(!1),n.route.id}function qh(){var e;let t=y.useContext(Nd),n=Yh(),r=Md();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Zh(){let{router:e}=Xh(_d.UseNavigateStable),t=Md(Pd.UseNavigateStable),n=y.useRef(!1);return Cd(()=>{n.current=!0}),y.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Cr({fromRouteId:t},i)))},[e,t])}const qa={};function Jh(e,t,n){qa[e]||(qa[e]=!0)}function bh(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function en(e){G(!1)}function em(e){let{basename:t="/",children:n=null,location:r,navigationType:l=jt.Pop,navigator:i,static:o=!1,future:u}=e;zr()&&G(!1);let a=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:a,navigator:i,static:o,future:Cr({v7_relativeSplatPath:!1},u)}),[a,u,i,o]);typeof r=="string"&&(r=Tn(r));let{pathname:h="/",search:f="",hash:m="",state:w=null,key:g="default"}=r,j=y.useMemo(()=>{let N=Pn(h,a);return N==null?null:{location:{pathname:N,search:f,hash:m,state:w,key:g},navigationType:l}},[a,h,f,m,w,g,l]);return j==null?null:y.createElement(Ot.Provider,{value:c},y.createElement(bl.Provider,{children:n,value:j}))}function tm(e){let{children:t,location:n}=e;return Uh(zs(t),n)}new Promise(()=>{});function zs(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,l)=>{if(!y.isValidElement(r))return;let i=[...t,l];if(r.type===y.Fragment){n.push.apply(n,zs(r.props.children,i));return}r.type!==en&&G(!1),!r.props.index||!r.props.children||G(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=zs(r.props.children,i)),n.push(o)}),n}/** * React Router DOM v6.30.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function lm(e,t){let n=Rs(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(i=>{n.append(l,i)})}),n}const im=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],sm=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],om="6";try{window.__reactRouterVersion=om}catch{}const am=y.createContext({isTransitioning:!1}),um="startTransition",Za=Jd[um];function cm(e){let{basename:t,children:n,future:r,window:l}=e,i=y.useRef();i.current==null&&(i.current=dh({window:l,v5Compat:!0}));let o=i.current,[u,a]=y.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},h=y.useCallback(f=>{c&&Za?Za(()=>a(f)):a(f)},[a,c]);return y.useLayoutEffect(()=>o.listen(h),[o,h]),y.useEffect(()=>bh(r),[r]),y.createElement(em,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}const dm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mn=y.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:u,target:a,to:c,preventScrollReset:h,viewTransition:f}=t,m=Ld(t,im),{basename:w}=y.useContext(Ot),g,j=!1;if(typeof c=="string"&&fm.test(c)&&(g=c,dm))try{let v=new URL(window.location.href),x=c.startsWith("//")?new URL(v.protocol+c):new URL(c),C=Pn(x.pathname,w);x.origin===v.origin&&C!=null?c=C+x.search+x.hash:j=!0}catch{}let N=Ih(c,{relative:l}),p=hm(c,{replace:o,state:u,target:a,preventScrollReset:h,relative:l,viewTransition:f});function d(v){r&&r(v),v.defaultPrevented||p(v)}return y.createElement("a",$l({},m,{href:g||N,onClick:j||i?r:d,ref:n,target:a}))}),Xn=y.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:u,to:a,viewTransition:c,children:h}=t,f=Ld(t,sm),m=ei(a,{relative:f.relative}),w=Zt(),g=y.useContext(kd),{navigator:j,basename:N}=y.useContext(Ot),p=g!=null&&vm(m)&&c===!0,d=j.encodeLocation?j.encodeLocation(m).pathname:m.pathname,v=w.pathname,x=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;l||(v=v.toLowerCase(),x=x?x.toLowerCase():null,d=d.toLowerCase()),x&&N&&(x=Pn(x,N)||x);const C=d!=="/"&&d.endsWith("/")?d.length-1:d.length;let _=v===d||!o&&v.startsWith(d)&&v.charAt(C)==="/",L=x!=null&&(x===d||!o&&x.startsWith(d)&&x.charAt(d.length)==="/"),P={isActive:_,isPending:L,isTransitioning:p},I=_?r:void 0,z;typeof i=="function"?z=i(P):z=[i,_?"active":null,L?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let re=typeof u=="function"?u(P):u;return y.createElement(Mn,$l({},f,{"aria-current":I,className:z,ref:n,style:re,to:a,viewTransition:c}),typeof h=="function"?h(P):h)});var Ts;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ts||(Ts={}));var Ja;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ja||(Ja={}));function pm(e){let t=y.useContext(Jl);return t||G(!1),t}function hm(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,viewTransition:u}=t===void 0?{}:t,a=Ed(),c=Zt(),h=ei(e,{relative:o});return y.useCallback(f=>{if(rm(f,n)){f.preventDefault();let m=r!==void 0?r:Tl(c)===Tl(h);a(e,{replace:m,state:l,preventScrollReset:i,relative:o,viewTransition:u})}},[c,a,h,r,l,n,e,i,o,u])}function mm(e){let t=y.useRef(Rs(e)),n=y.useRef(!1),r=Zt(),l=y.useMemo(()=>lm(r.search,n.current?null:t.current),[r.search]),i=Ed(),o=y.useCallback((u,a)=>{const c=Rs(typeof u=="function"?u(l):u);n.current=!0,i("?"+c,a)},[i,l]);return[l,o]}function vm(e,t){t===void 0&&(t={});let n=y.useContext(am);n==null&&G(!1);let{basename:r}=pm(Ts.useViewTransitionState),l=ei(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Pn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Pn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ls(l.pathname,o)!=null||Ls(l.pathname,i)!=null}const gm={home:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M3.5 10.6 12 3.4l8.5 7.2"}),s.jsx("path",{d:"M5.6 9.4V20h12.8V9.4"}),s.jsx("path",{d:"M10 20v-5.6h4V20"})]}),map:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M3.2 6.4 9 4.2l6 2.2 5.8-2.2v13.4L15 19.8l-6-2.2-5.8 2.2z"}),s.jsx("path",{d:"M9 4.2v13.4M15 6.4v13.4"})]}),chart:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M4 20h16"}),s.jsx("path",{d:"M7.2 20v-5.6M12 20V8.8M16.8 20V12"})]}),building:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M5 20V5.6A1.6 1.6 0 0 1 6.6 4h6.2a1.6 1.6 0 0 1 1.6 1.6V20"}),s.jsx("path",{d:"M14.4 9.4h3.4A1.6 1.6 0 0 1 19.4 11v9"}),s.jsx("path",{d:"M3.2 20h17.6"}),s.jsx("path",{d:"M8 8h2.4M8 11.6h2.4M8 15.2h2.4M16.4 13h.9M16.4 16.2h.9"})]}),bed:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M3.4 6.8V18.6"}),s.jsx("path",{d:"M3.4 15.4h17.2v3.2"}),s.jsx("path",{d:"M3.4 12.2h6.2v3.2"}),s.jsx("circle",{cx:"6.5",cy:"9.9",r:"1.35"}),s.jsx("path",{d:"M11.4 12.2h5.8a3.4 3.4 0 0 1 3.4 3.2"})]}),bath:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M3.6 12.4h16.8v1.4a5.2 5.2 0 0 1-5.2 5.2H8.8a5.2 5.2 0 0 1-5.2-5.2z"}),s.jsx("path",{d:"M5.8 12.4V5.9a2.1 2.1 0 0 1 4-1"}),s.jsx("path",{d:"m7 19.4-1 2.1M17 19.4l1 2.1"})]}),drop:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M12 3.6s6 6.4 6 10.6a6 6 0 1 1-12 0C6 10 12 3.6 12 3.6z"}),s.jsx("path",{d:"M9.4 14.2a2.7 2.7 0 0 0 2 2.6"})]}),area:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M4.4 19.6 19.6 4.4"}),s.jsx("path",{d:"M4.4 14v5.6H10"}),s.jsx("path",{d:"M19.6 10V4.4H14"})]}),land:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M4.4 9.6v9.8M9.5 9.6v9.8M14.5 9.6v9.8M19.6 9.6v9.8"}),s.jsx("path",{d:"M3 12.6h18M3 16.4h18"}),s.jsx("path",{d:"M4.4 9.6 12 5.2l7.6 4.4"})]}),calendar:s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:"4",y:"5.6",width:"16",height:"14.8",rx:"2"}),s.jsx("path",{d:"M4 10.2h16M8.2 3.4v4M15.8 3.4v4"})]}),tag:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"m12.9 3.6 7.5 7.5a1.8 1.8 0 0 1 0 2.5l-6.8 6.8a1.8 1.8 0 0 1-2.5 0L3.6 12.9V3.6z"}),s.jsx("circle",{cx:"8",cy:"8",r:"1.5"})]}),camera:s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:"3.4",y:"7",width:"17.2",height:"13",rx:"2"}),s.jsx("path",{d:"M8.6 7 10 4.4h4L15.4 7"}),s.jsx("circle",{cx:"12",cy:"13.2",r:"3.4"})]}),search:s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"10.6",cy:"10.6",r:"6.2"}),s.jsx("path",{d:"m15.3 15.3 5.3 5.3"})]}),arrow:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M4 12h15.2"}),s.jsx("path",{d:"m13.8 6.4 5.4 5.6-5.4 5.6"})]}),check:s.jsx("path",{d:"m5 12.8 4.3 4.4L19 7.4"}),alert:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M12 4.2 2.9 19.4h18.2z"}),s.jsx("path",{d:"M12 10.2v4.4"}),s.jsx("path",{d:"M12 17.4v.05"})]}),phone:s.jsx("path",{d:"M5.2 4h3.6L10.4 8.4 8.3 10.1a12.5 12.5 0 0 0 5.6 5.6l1.7-2.1 4.4 1.6v3.6a1.8 1.8 0 0 1-1.9 1.8A16.4 16.4 0 0 1 3.4 5.9 1.8 1.8 0 0 1 5.2 4z"}),trendup:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"m3.6 17.4 6-6.4 4 3.6 6.8-7.8"}),s.jsx("path",{d:"M15.6 6.8h4.8v4.8"})]}),trenddown:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"m3.6 6.8 6 6.4 4-3.6 6.8 7.8"}),s.jsx("path",{d:"M15.6 17.4h4.8v-4.8"})]}),external:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M14.4 4h5.6v5.6"}),s.jsx("path",{d:"M20 4 11.4 12.6"}),s.jsx("path",{d:"M18.6 13.6V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7.4a2 2 0 0 1 2-2h4.4"})]}),pin:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M12 21.2S5.4 15.7 5.4 10.8a6.6 6.6 0 0 1 13.2 0c0 4.9-6.6 10.4-6.6 10.4z"}),s.jsx("circle",{cx:"12",cy:"10.6",r:"2.3"})]}),leaf:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M5 19.2C5 9.6 12 5 20 4.2c0 9-4.2 15-13.2 15z"}),s.jsx("path",{d:"M5 19.2C7 14 11 10 15 8"})]}),thermo:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M10.4 4.2a1.9 1.9 0 0 1 3.8 0v8.8a4.2 4.2 0 1 1-3.8 0z"}),s.jsx("path",{d:"M12.3 8.4v7"})]}),sun:s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"12",cy:"12",r:"4.2"}),s.jsx("path",{d:"M12 3.2v2M12 18.8v2M3.2 12h2M18.8 12h2M5.8 5.8l1.4 1.4M16.8 16.8l1.4 1.4M18.2 5.8l-1.4 1.4M7.2 16.8l-1.4 1.4"})]}),shield:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M12 3.4 5.2 5.9v5.9c0 4.6 3 7.6 6.8 8.8 3.8-1.2 6.8-4.2 6.8-8.8V5.9z"}),s.jsx("path",{d:"m9.2 12 2 2 3.8-4"})]}),cart:s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"9.6",cy:"19.6",r:"1.35"}),s.jsx("circle",{cx:"17",cy:"19.6",r:"1.35"}),s.jsx("path",{d:"M3.4 4.4h2.2l2.5 10.8h9.6l2.7-7.8H7"})]}),bus:s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:"4.6",y:"3.8",width:"14.8",height:"13.4",rx:"2.4"}),s.jsx("path",{d:"M4.6 10.4h14.8"}),s.jsx("path",{d:"M7.6 20.2v-3M16.4 20.2v-3"}),s.jsx("path",{d:"M8.3 14h.05M15.7 14h.05"})]}),tree:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M12 3.4 6.8 11.4h2.8L5.4 17.8h13.2l-4.2-6.4h2.8z"}),s.jsx("path",{d:"M12 17.8v3.4"})]}),school:s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"m12 4.2 9.8 4.4L12 13 2.2 8.6z"}),s.jsx("path",{d:"M6.6 10.8v5c0 1.6 2.4 3 5.4 3s5.4-1.4 5.4-3v-5"}),s.jsx("path",{d:"M21.8 8.6v5.4"})]}),health:s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"12",cy:"12",r:"8.4"}),s.jsx("path",{d:"M12 8.4v7.2M8.4 12h7.2"})]}),pill:s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:"3.2",y:"8.6",width:"17.6",height:"6.8",rx:"3.4",transform:"rotate(-33 12 12)"}),s.jsx("path",{d:"M12 8.6v6.8",transform:"rotate(-33 12 12)"})]}),people:s.jsxs(s.Fragment,{children:[s.jsx("circle",{cx:"9",cy:"8",r:"3.2"}),s.jsx("path",{d:"M3.6 20a5.4 5.4 0 0 1 10.8 0"}),s.jsx("path",{d:"M15.4 5.4a3.2 3.2 0 0 1 0 5.9M17 14.8a5.4 5.4 0 0 1 3.4 5.2"})]})};function b({name:e,size:t=18,className:n="",stroke:r=1.7}){const l=gm[e];return l?s.jsx("svg",{className:`ico ${n}`,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l}):null}function Hm(e,t=30){return`${{home:''}[e]}`}const $n="/immo/".replace(/\/$/,""),$s={};function ti(e){for(const t of e)$s[t.id]=t.name}function lt(e){return $s[e]?$s[e]:e.startsWith("remax_ag_")?"RE/MAX "+e.slice(9).replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()):e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}async function On(e){const t=new AbortController,n=setTimeout(()=>t.abort(),25e3);try{const r=await fetch(e,{signal:t.signal});if(!r.ok)throw new Error(`API ${r.status} — ${e}`);return await r.json()}finally{clearTimeout(n)}}function ym(e){const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r&&t.set(n,r);return t}function zd(e,t=60,n=0){const r=ym(e);return r.set("limit",String(t)),r.set("offset",String(n)),On(`${$n}/api/listings?${r}`)}const xm=e=>On(`${$n}/api/listings/${encodeURIComponent(e)}`),Ol=e=>On(`${$n}/api/facets${e?`?city=${encodeURIComponent(e)}`:""}`),ni=()=>On(`${$n}/api/sources`),Ro=()=>On(`${$n}/api/stats`),jm=()=>On(`${$n}/api/agencies`),pt=(e,t)=>e!=null?e.toLocaleString("fr-CA",{maximumFractionDigits:0})+" $":t||"Prix sur demande",Os=e=>e!=null?`${Math.round(e).toLocaleString("fr-CA")} pi²`:null,wm=e=>new Date(e*1e3).toLocaleDateString("fr-CA",{day:"numeric",month:"long",year:"numeric"}),Sm="modulepreload",km=function(e){return"/immo/"+e},ba={},Rd=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));l=Promise.allSettled(n.map(a=>{if(a=km(a),a in ba)return;ba[a]=!0;const c=a.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${h}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Sm,c||(f.as="script"),f.crossOrigin="",f.href=a,u&&f.setAttribute("nonce",u),document.head.appendChild(f),c)return new Promise((m,w)=>{f.addEventListener("load",m),f.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${a}`)))})}))}function i(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return l.then(o=>{for(const u of o||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};function eu({l:e}){const t=e.images&&e.images.length>0?e.images[0]:null,n=[];e.bedrooms!=null&&n.push({ico:"bed",txt:`${e.bedrooms} ch.`}),e.bathrooms!=null&&n.push({ico:"bath",txt:`${e.bathrooms} sdb`});const r=Os(e.area_sqft);return r&&n.push({ico:"area",txt:r}),s.jsxs(Mn,{to:`/propriete/${encodeURIComponent(e.uid)}`,className:"card",children:[s.jsxs("div",{className:"card-img",children:[t?s.jsx("img",{src:t,alt:e.title||e.address,loading:"lazy"}):s.jsx("div",{className:"noimg",children:s.jsx(b,{name:"home",size:34})}),e.property_type&&s.jsx("span",{className:"badge type",children:e.property_type}),e.images.length>1&&s.jsxs("span",{className:"badge right",children:[s.jsx(b,{name:"camera",size:12})," ",e.images.length]})]}),s.jsxs("div",{className:"card-body",children:[s.jsx("div",{className:"card-price",children:pt(e.price,e.price_label)}),s.jsx("div",{className:"card-title",children:e.address||e.title}),s.jsxs("div",{className:"card-meta",children:[e.sector&&s.jsx("span",{children:e.sector}),e.sector&&e.city&&s.jsx("span",{className:"sep"}),e.city&&s.jsx("span",{children:e.city})]}),n.length>0&&s.jsx("div",{className:"card-specs",children:n.map(l=>s.jsxs("span",{children:[s.jsx(b,{name:l.ico,size:13})," ",l.txt]},l.ico))}),s.jsxs("div",{className:"card-foot",children:[s.jsx("span",{className:"source-tag",children:lt(e.source)}),e.mls&&s.jsxs("span",{className:"avail",children:["MLS ",e.mls]})]})]})]})}const Nm=y.lazy(()=>Rd(()=>import("./MapView-Clc_EnHi.js"),__vite__mapDeps([0,1,2]))),tu=[1e5,2e5,3e5,4e5,5e5,6e5,75e4,1e6,15e5,2e6,3e6],Cm=[800,1e3,1500,2e3,3e3],Ti=12,Gr=e=>e>=1e6?`${e/1e6} M$`:`${Math.round(e/1e3)} k$`;function Em(e,t){if(t<=7)return Array.from({length:t},(i,o)=>o+1);const n=[1],r=Math.max(2,e-1),l=Math.min(t-1,e+1);r>2&&n.push("…");for(let i=r;i<=l;i++)n.push(i);return l{ri(l.get("view")==="carte"?"carte":"liste")},[l]);const In=y.useMemo(()=>({q:N,city:d,sector:x,region:"",property_type:_,source:P,price_min:z,price_max:oe,bedrooms_min:ke,bathrooms_min:ge,area_min:E,sort:T}),[N,d,x,_,P,z,oe,ke,ge,E,T]);y.useEffect(()=>{ni().then(S=>ti(S.sources)).catch(()=>{}),Ol().then(c).catch(()=>{}),Ro().then(w).catch(()=>{})},[]),y.useEffect(()=>{Ol(d||void 0).then(S=>f(S.sectors)).catch(()=>f([]))},[d]);const To=y.useRef(!0);y.useEffect(()=>{if(To.current){To.current=!1;return}u(1)},[In]),y.useEffect(()=>{const S=new URLSearchParams,X=($d,Oo)=>{Oo&&S.set($d,Oo)};X("q",N),X("city",d),X("sector",x),X("property_type",_),X("source",P),X("price_min",z),X("price_max",oe),X("bedrooms_min",ke),X("bathrooms_min",ge),X("area_min",E),T&&T!=="recent"&&S.set("sort",T),Qe==="carte"&&S.set("view","carte"),o>1&&S.set("page",String(o)),i(S,{replace:!0})},[In,o,Qe,N,d,x,_,P,z,oe,ke,ge,E,T,i]),y.useEffect(()=>{let S=!1;return t(null),j(null),zd(In,Ti,(o-1)*Ti).then(X=>{S||(t(X.listings),r(X.total))}).catch(X=>!S&&j(String(X))),()=>{S=!0}},[In,o]);const Dn=Math.max(1,Math.ceil(n/Ti)),li=S=>{var X;u(Math.min(Math.max(1,S),Dn)),(X=document.getElementById("results-top"))==null||X.scrollIntoView({behavior:"smooth",block:"start"})},ii=()=>{p(""),v(""),C(""),L(""),I(""),re(""),Ze(""),Jt(""),ct(""),R("")},ze=[];N&&ze.push({label:`« ${N} »`,clear:()=>p("")}),d&&ze.push({label:d,clear:()=>{v(""),C("")}}),x&&ze.push({label:x,clear:()=>C("")}),_&&ze.push({label:_,clear:()=>L("")}),z&&ze.push({label:`≥ ${Gr(Number(z))}`,clear:()=>re("")}),oe&&ze.push({label:`≤ ${Gr(Number(oe))}`,clear:()=>Ze("")}),ke&&ze.push({label:`${ke}+ ch.`,clear:()=>Jt("")}),ge&&ze.push({label:`${ge}+ sdb`,clear:()=>ct("")}),E&&ze.push({label:`≥ ${E} pi²`,clear:()=>R("")}),P&&ze.push({label:lt(P),clear:()=>I("")});const Td=((a==null?void 0:a.property_types)??[]).slice(0,7);return s.jsxs("div",{className:"container",children:[s.jsxs("section",{className:"hero",children:[s.jsx("span",{className:"kicker",children:"Agrégateur — Toutes les agences du Québec"}),s.jsxs("h1",{children:["Toutes les propriétés ",s.jsx("span",{className:"outline",children:"à vendre"}),",",s.jsx("br",{}),s.jsx("span",{className:"hl",children:"un seul"})," endroit."]}),s.jsx("p",{className:"lede",children:"Immo-Ka rassemble les propriétés à vendre affichées par les agences de courtage immobilier du Québec — RE/MAX, Sutton, Via Capitale, Proprio Direct, Barnes et plus — mises à jour automatiquement, avec toutes les photos, les détails complets et un lien direct vers l'annonce originale."}),s.jsxs("div",{className:"stat-row",children:[s.jsxs("span",{className:"stat-chip",children:[s.jsx("span",{className:"pulse"})," Données synchronisées en continu"]}),m&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"stat-chip",children:[s.jsx("b",{children:m.total.toLocaleString("fr-CA")})," propriétés"]}),s.jsxs("span",{className:"stat-chip",children:[s.jsx("b",{children:m.sources})," agences"]}),s.jsxs("span",{className:"stat-chip",children:[s.jsx("b",{children:($o=m.cities)==null?void 0:$o.toLocaleString("fr-CA")})," villes"]}),m.avg_price!=null&&s.jsxs("span",{className:"stat-chip",children:["prix moyen ",s.jsxs("b",{children:[Math.round(m.avg_price).toLocaleString("fr-CA")," $"]})]})]})]})]}),K&&s.jsx("div",{className:"sheet-backdrop",onClick:()=>Je(!1),"aria-hidden":"true"}),s.jsxs("section",{className:`filterbar ${K?"open":""}`,"aria-label":"Filtres",children:[s.jsxs("div",{className:"sheet-head",children:[s.jsx("span",{children:"Filtres"}),s.jsx("button",{className:"sheet-close",onClick:()=>Je(!1),"aria-label":"Fermer les filtres",children:"✕"})]}),s.jsxs("div",{className:"f-primary",children:[s.jsxs("div",{className:"f-search",children:[s.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4","aria-hidden":"true",children:[s.jsx("circle",{cx:"11",cy:"11",r:"7"}),s.jsx("path",{d:"m20 20-3.5-3.5"})]}),s.jsx("input",{id:"f-q",placeholder:"Adresse, ville, n° MLS…",value:N,onChange:S=>p(S.target.value),"aria-label":"Recherche"}),N&&s.jsx("button",{className:"f-clear",onClick:()=>p(""),"aria-label":"Effacer la recherche",children:"✕"})]}),s.jsxs("label",{className:"f-ctl",children:[s.jsx("span",{children:"Ville"}),s.jsxs("select",{value:d,onChange:S=>{v(S.target.value),C("")},children:[s.jsx("option",{value:"",children:"Toutes"}),((a==null?void 0:a.cities)??[]).map(S=>s.jsx("option",{value:S,children:S},S))]})]}),s.jsxs("label",{className:"f-ctl",children:[s.jsx("span",{children:"Type"}),s.jsxs("select",{value:_,onChange:S=>L(S.target.value),children:[s.jsx("option",{value:"",children:"Tous"}),((a==null?void 0:a.property_types)??[]).map(S=>s.jsx("option",{value:S,children:S},S))]})]}),s.jsxs("div",{className:"f-ctl",children:[s.jsx("span",{children:"Prix"}),s.jsxs("div",{className:"range-pair",children:[s.jsxs("select",{"aria-label":"Prix minimum",value:z,onChange:S=>re(S.target.value),children:[s.jsx("option",{value:"",children:"Min"}),tu.map(S=>s.jsx("option",{value:S,disabled:!!oe&&S>=Number(oe),children:Gr(S)},S))]}),s.jsx("span",{className:"range-sep",children:"—"}),s.jsxs("select",{"aria-label":"Prix maximum",value:oe,onChange:S=>Ze(S.target.value),children:[s.jsx("option",{value:"",children:"Max"}),tu.map(S=>s.jsx("option",{value:S,disabled:!!z&&S<=Number(z),children:Gr(S)},S))]})]})]}),s.jsxs("button",{className:`f-more ${Ne||dt>0?"on":""}`,onClick:()=>Fn(!Ne),"aria-expanded":Ne,children:["Plus de filtres",dt>0?` · ${dt}`:""," ",Ne?"▴":"▾"]})]}),(Ne||K)&&s.jsxs("div",{className:"f-adv",children:[s.jsxs("div",{className:"f-group",children:[s.jsx("label",{children:"Quartier / secteur"}),s.jsxs("select",{className:"f-native",value:x,onChange:S=>C(S.target.value),children:[s.jsx("option",{value:"",children:"Tous"}),h.map(S=>s.jsx("option",{value:S,children:S},S))]})]}),s.jsxs("div",{className:"f-group",children:[s.jsx("label",{children:"Chambres (min.)"}),s.jsxs("div",{className:"seg",role:"group",children:[s.jsx("button",{className:ke===""?"on":"",onClick:()=>Jt(""),children:"Toutes"}),["1","2","3","4","5"].map(S=>s.jsxs("button",{className:ke===S?"on":"",onClick:()=>Jt(S),children:[S,"+"]},S))]})]}),s.jsxs("div",{className:"f-group",children:[s.jsx("label",{children:"Salles de bain (min.)"}),s.jsxs("div",{className:"seg",role:"group",children:[s.jsx("button",{className:ge===""?"on":"",onClick:()=>ct(""),children:"Toutes"}),["1","2","3"].map(S=>s.jsxs("button",{className:ge===S?"on":"",onClick:()=>ct(S),children:[S,"+"]},S))]})]}),s.jsxs("div",{className:"f-group",children:[s.jsx("label",{children:"Superficie minimale"}),s.jsxs("div",{className:"seg",role:"group",children:[s.jsx("button",{className:E===""?"on":"",onClick:()=>R(""),children:"Peu importe"}),Cm.map(S=>s.jsxs("button",{className:E===String(S)?"on":"",onClick:()=>R(String(S)),children:[S,"+"]},S))]})]}),s.jsxs("div",{className:"f-group",children:[s.jsx("label",{children:"Agence"}),s.jsxs("select",{className:"f-native",value:P,onChange:S=>I(S.target.value),children:[s.jsx("option",{value:"",children:"Toutes"}),((a==null?void 0:a.sources)??[]).map(S=>s.jsxs("option",{value:S.source,children:[lt(S.source)," (",S.n,")"]},S.source))]})]}),s.jsx("div",{className:"f-group f-group-end",children:s.jsxs("button",{className:"btn btn-ghost",onClick:ii,disabled:fe===0,children:["Tout réinitialiser",fe>0?` (${fe})`:""]})})]}),s.jsxs("button",{className:"btn btn-primary sheet-apply",onClick:()=>Je(!1),children:["Voir les résultats ",e?`(${n})`:""]})]}),s.jsx("div",{className:"chips",role:"group","aria-label":"Filtres rapides",children:Td.map(S=>s.jsx("button",{className:`chip ${_===S?"on":""}`,onClick:()=>L(_===S?"":S),children:S},S))}),ze.length>0&&s.jsxs("div",{className:"pills","aria-label":"Filtres actifs",children:[ze.map(S=>s.jsxs("button",{className:"pill",onClick:S.clear,"aria-label":`Retirer le filtre ${S.label}`,children:[S.label," ",s.jsx("span",{className:"pill-x",children:"✕"})]},S.label)),s.jsx("button",{className:"pill pill-clear",onClick:ii,children:"Tout effacer"})]}),s.jsxs("div",{className:"results-head",id:"results-top",children:[s.jsx("h2",{children:"Propriétés à vendre"}),s.jsxs("div",{className:"results-tools",children:[e&&s.jsxs("span",{children:[n.toLocaleString("fr-CA")," résultat",n>1?"s":""]}),s.jsx("label",{className:"sort-ctl",children:s.jsxs("select",{value:T,onChange:S=>B(S.target.value),"aria-label":"Trier",children:[s.jsx("option",{value:"recent",children:"Plus récents"}),s.jsx("option",{value:"price_asc",children:"Prix ↑"}),s.jsx("option",{value:"price_desc",children:"Prix ↓"})]})}),s.jsxs("div",{className:"view-toggle",role:"tablist","aria-label":"Mode d'affichage",children:[s.jsx("button",{role:"tab","aria-selected":Qe==="liste",className:Qe==="liste"?"on":"",onClick:()=>ri("liste"),children:"☰ Liste"}),s.jsx("button",{role:"tab","aria-selected":Qe==="carte",className:Qe==="carte"?"on":"",onClick:()=>ri("carte"),children:"◈ Carte"})]})]})]}),g&&s.jsxs("div",{className:"notice",children:[s.jsx("div",{className:"big",children:s.jsx(b,{name:"alert",size:40})}),s.jsx("h2",{children:"Impossible de charger les annonces"}),s.jsx("p",{children:g}),s.jsx("button",{className:"btn btn-primary",onClick:()=>window.location.reload(),children:"Réessayer"})]}),!g&&Qe==="liste"&&e===null&&s.jsx("div",{className:"grid","aria-busy":"true",children:Array.from({length:8}).map((S,X)=>s.jsxs("div",{className:"skel",children:[s.jsx("div",{className:"sk-img"}),s.jsx("div",{className:"sk-line"}),s.jsx("div",{className:"sk-line short"})]},X))}),!g&&Qe==="liste"&&e!==null&&e.length===0&&s.jsxs("div",{className:"notice",children:[s.jsx("div",{className:"big",children:s.jsx(b,{name:"search",size:40})}),s.jsx("h2",{children:"Aucune propriété ne correspond"}),s.jsxs("p",{children:["Essayez d'élargir vos critères",fe>0&&s.jsxs(s.Fragment,{children:[" — ou ",s.jsxs("button",{className:"link-btn",onClick:ii,children:["retirez les ",fe," filtres actifs"]})]}),"."]})]}),!g&&Qe==="carte"&&s.jsxs("div",{className:"map-split",children:[s.jsx("div",{className:"map-list","aria-label":"Résultats en liste",children:(e??[]).map(S=>s.jsx(eu,{l:S},S.uid))}),s.jsx(y.Suspense,{fallback:s.jsx("div",{className:"mapview map-loading",children:"Chargement de la carte…"}),children:s.jsx(Nm,{filters:In})})]}),!g&&Qe==="liste"&&e!==null&&e.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"grid",children:e.map(S=>s.jsx(eu,{l:S},S.uid))}),Dn>1&&s.jsxs("nav",{className:"pager","aria-label":"Pagination",children:[s.jsx("button",{className:"pager-btn",onClick:()=>li(o-1),disabled:o<=1,children:"‹ Préc."}),Em(o,Dn).map((S,X)=>S==="…"?s.jsx("span",{className:"pager-gap",children:"…"},`e${X}`):s.jsx("button",{className:`pager-btn ${S===o?"on":""}`,onClick:()=>li(S),children:S},S)),s.jsx("button",{className:"pager-btn",onClick:()=>li(o+1),disabled:o>=Dn,children:"Suiv. ›"}),s.jsxs("span",{className:"pager-info",children:["Page ",o," / ",Dn]})]})]}),s.jsxs("button",{className:"fab",onClick:()=>Je(!0),"aria-label":"Ouvrir les filtres",children:["⚙ Filtres",fe>0?` · ${fe}`:""]})]})}const nu=e=>e==null?null:e.toLocaleString("fr-CA",{maximumFractionDigits:0})+" $",$i=e=>e==null?null:Math.round(e)+" %",Pm=[["prox_epicerie","Épiceries","cart"],["prox_transport","Transport en commun","bus"],["prox_parc","Parcs","tree"],["prox_ecole_prim","Écoles primaires","school"],["prox_sante","Soins de santé","health"],["prox_pharmacie","Pharmacies","pill"]];function Mm(e,t){return e<=3?{txt:"Îlot de fraîcheur",cls:"q-badge cool",ico:"leaf"}:e>=7?{txt:`Îlot de chaleur${t!=null?` (+${t.toFixed(1)} °C)`:""}`,cls:"q-badge hot",ico:"thermo"}:{txt:"Température de quartier moyenne",cls:"q-badge neutral",ico:"sun"}}function Lm({q:e}){var o,u,a;const t=e.demographie,r=(t?[["Revenu médian des ménages",nu(t.revenu_median)],["Ménages locataires",$i(t.pct_locataires)],["Loyer moyen du secteur",nu(t.loyer_moyen)],["Âge médian",t.age_median!=null?`${Math.round(t.age_median)} ans`:null],["Français à la maison",$i(t.pct_francais)],["Diplôme universitaire",$i(t.pct_univ)]]:[]).filter(([,c])=>c!=null),l=e.proximite??{},i=Pm.filter(([c])=>typeof l[c]=="number");return r.length===0&&i.length===0&&!e.chaleur&&!e.crime?null:s.jsxs("section",{className:"quartier",children:[s.jsx("h2",{children:"Le quartier"}),s.jsx("p",{className:"q-sub",children:"Secteur immédiat de l'immeuble (aire de diffusion du recensement, ± 500 habitants)."}),r.length>0&&s.jsx("div",{className:"q-grid",children:r.map(([c,h])=>s.jsxs("div",{className:"q-cell",children:[s.jsx("div",{className:"q-val",children:h}),s.jsx("div",{className:"q-label",children:c})]},c))}),i.length>0&&s.jsxs("div",{className:"q-prox",children:[i.map(([c,h,f])=>{const m=Math.max(0,Math.min(1,l[c]));return s.jsxs("div",{className:"q-bar",children:[s.jsxs("span",{className:"q-bar-label",children:[s.jsx(b,{name:f,size:14})," ",h]}),s.jsx("span",{className:"q-bar-track",children:s.jsx("span",{className:"q-bar-fill",style:{width:`${Math.round(m*100)}%`}})}),s.jsx("span",{className:"q-bar-num",children:Math.round(m*100)})]},c)}),s.jsx("div",{className:"fine",children:"Accessibilité 0–100 — mesures de proximité de Statistique Canada."})]}),s.jsxs("div",{className:"q-badges",children:[e.chaleur&&(()=>{const c=Mm(e.chaleur.classe,e.chaleur.ecart);return s.jsxs("span",{className:c.cls,children:[s.jsx(b,{name:c.ico,size:14})," ",c.txt]})})(),((o=e.crime)==null?void 0:o.type)==="points"&&s.jsxs("span",{className:"q-badge neutral",children:[s.jsx(b,{name:"shield",size:14})," ",e.crime.douze_mois," acte",e.crime.douze_mois>1?"s":""," criminel",e.crime.douze_mois>1?"s":""," à moins de 500 m (12 mois)",e.crime.douze_mois_precedents>0&&(e.crime.douze_mois<=e.crime.douze_mois_precedents?` · en baisse (${e.crime.douze_mois_precedents} l'année d'avant)`:` · en hausse (${e.crime.douze_mois_precedents} l'année d'avant)`)]}),((u=e.crime)==null?void 0:u.type)==="igc"&&(()=>{const c=e.crime;if(c.indice_canada!=null&&c.indice_canada>0){const h=Math.round(100*(c.indice-c.indice_canada)/c.indice_canada),f=h<=0;return s.jsxs("span",{className:`q-badge ${f?"cool":"neutral"}`,children:[s.jsx(b,{name:"shield",size:14})," Criminalité ",Math.abs(h)," % ",f?"sous":"au-dessus de"," la moyenne canadienne",s.jsxs("small",{className:"q-badge-sub",children:["(",c.ville," ",c.annee," : ",c.indice," · Canada : ",c.indice_canada,")"]})]})}return s.jsxs("span",{className:"q-badge neutral",children:[s.jsx(b,{name:"shield",size:14})," Gravité de la criminalité (",c.ville,", ",c.annee,") : ",s.jsx("b",{children:c.indice})]})})()]}),s.jsxs("div",{className:"fine",children:["Sources : Statistique Canada (Recensement 2021, licence ouverte), INSPQ (CC-BY 4.0)",((a=e.crime)==null?void 0:a.type)==="points"?", Ville de Montréal (CC-BY 4.0)":"",". Statistiques du secteur, pas de l'immeuble."]})]})}const zm=y.lazy(()=>Rd(()=>import("./PropertyMap-CFE6F_8k.js"),__vite__mapDeps([3,1,2])));function Rm({images:e,titre:t}){const[n,r]=y.useState(0),[l,i]=y.useState(!1),o=y.useRef(null),u=()=>{const c=o.current;c&&r(Math.round(c.scrollLeft/c.clientWidth))},a=c=>{var h;return(h=o.current)==null?void 0:h.scrollTo({left:c*o.current.clientWidth,behavior:"smooth"})};return y.useEffect(()=>{if(!l)return;const c=h=>{h.key==="Escape"&&i(!1),h.key==="ArrowLeft"&&r(f=>Math.max(0,f-1)),h.key==="ArrowRight"&&r(f=>Math.min(e.length-1,f+1))};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[l,e.length]),e.length===0?s.jsx("div",{className:"carousel",children:s.jsx("div",{className:"noimg carousel-empty",children:s.jsx(b,{name:"home",size:44})})}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"carousel",children:[s.jsx("div",{className:"carousel-track",ref:o,onScroll:u,children:e.map((c,h)=>s.jsx("img",{src:c,loading:h===0?"eager":"lazy",alt:`${t} — photo ${h+1} de ${e.length}`,onClick:()=>i(!0)},c))}),s.jsxs("span",{className:"carousel-count","aria-live":"polite",children:[n+1,"/",e.length]}),n>0&&s.jsx("button",{className:"carousel-nav prev","aria-label":"Photo précédente",onClick:()=>a(n-1),children:"‹"}),na(n+1),children:"›"})]}),e.length>1&&s.jsx("div",{className:"thumbs",children:e.map((c,h)=>s.jsx("button",{className:h===n?"on":"",onClick:()=>a(h),"aria-label":`Photo ${h+1}`,children:s.jsx("img",{src:c,alt:"",loading:"lazy"})},c))}),l&&s.jsxs("div",{className:"lightbox",onClick:()=>i(!1),role:"dialog","aria-label":"Photo agrandie",children:[s.jsx("button",{className:"lb-close","aria-label":"Fermer",onClick:()=>i(!1),children:"✕"}),n>0&&s.jsx("button",{className:"lb-nav prev","aria-label":"Précédente",onClick:c=>{c.stopPropagation(),r(n-1)},children:"‹"}),s.jsx("img",{src:e[n],alt:"",onClick:c=>c.stopPropagation()}),n{c.stopPropagation(),r(n+1)},children:"›"}),s.jsxs("span",{className:"lb-count",children:[n+1," / ",e.length]})]})]})}const Tm=new Set(["pieces","price_from"]),$m={Type:"home",Chambres:"bed","Salles de bain":"bath","Salles d'eau":"drop",Superficie:"area",Terrain:"land",Année:"calendar","MLS / Centris":"tag"};function Om(){var f,m,w;const{uid:e}=Ah(),[t,n]=y.useState(null),[r,l]=y.useState(null);if(y.useEffect(()=>{ni().then(g=>ti(g.sources)).catch(()=>{}),e&&(n(null),l(null),xm(e).then(n).catch(g=>l(String(g))),window.scrollTo(0,0))},[e]),r)return s.jsxs("div",{className:"notice container",children:[s.jsx("div",{className:"big",children:s.jsx(b,{name:"alert",size:44})}),s.jsx("h2",{children:"Propriété introuvable"}),s.jsx("p",{children:r}),s.jsx(Mn,{className:"btn btn-primary",to:"/",children:"Retour aux propriétés"})]});if(!t)return s.jsx("div",{className:"container detail",children:s.jsxs("div",{className:"fiche","aria-busy":"true",children:[s.jsx("div",{className:"skel",children:s.jsx("div",{className:"sk-img"})}),s.jsxs("div",{className:"skel",children:[s.jsx("div",{className:"sk-line"}),s.jsx("div",{className:"sk-line"}),s.jsx("div",{className:"sk-line short"})]})]})});const i=[];t.property_type&&i.push({k:"Type",v:t.property_type}),t.bedrooms!=null&&i.push({k:"Chambres",v:String(t.bedrooms)}),t.bathrooms!=null&&i.push({k:"Salles de bain",v:String(t.bathrooms)}),t.powder_rooms!=null&&i.push({k:"Salles d'eau",v:String(t.powder_rooms)}),t.area_sqft!=null&&i.push({k:"Superficie",v:Os(t.area_sqft)}),t.lot_sqft!=null&&i.push({k:"Terrain",v:Os(t.lot_sqft)}),t.year_built!=null&&i.push({k:"Année",v:String(t.year_built)}),t.mls&&i.push({k:"MLS / Centris",v:t.mls});const o=Array.isArray((f=t.details)==null?void 0:f.pieces)?t.details.pieces:[],u=Object.entries(t.details??{}).filter(([g,j])=>!Tm.has(g)&&(typeof j=="string"||typeof j=="number")&&String(j).trim()),a=(t.price_history??[]).filter(g=>g.price!=null),c=a.length>=2&&a[0].price!==a[1].price?{de:a[1].price,a:a[0].price}:null,h=t.updated_at?wm(t.updated_at):null;return s.jsxs("div",{className:"container detail",children:[s.jsxs("nav",{className:"crumbs","aria-label":"Fil d'Ariane",children:[s.jsx(Mn,{to:"/",children:"Propriétés"})," ›",t.city&&s.jsx("span",{children:t.city})," ›",s.jsx("span",{children:t.address||t.title})]}),s.jsxs("div",{className:"fiche",children:[s.jsxs("div",{className:"f-col",children:[s.jsx("section",{className:"f-bloc f-galerie","aria-label":"Photos",children:s.jsx(Rm,{images:t.images??[],titre:t.address||t.title})}),t.description&&s.jsxs("section",{className:"f-bloc f-desc",id:"description",children:[s.jsx("h2",{children:"Description"}),s.jsx("p",{className:"desc-text",children:t.description})]}),u.length>0&&s.jsxs("section",{className:"f-bloc",id:"caracteristiques",children:[s.jsx("h2",{children:"Caractéristiques"}),s.jsx("div",{className:"dtable",children:u.map(([g,j])=>s.jsxs("div",{className:"drow",children:[s.jsx("span",{children:g}),s.jsx("b",{children:String(j)})]},g))})]}),o.length>0&&s.jsxs("section",{className:"f-bloc",id:"pieces",children:[s.jsx("h2",{children:"Pièces"}),s.jsx("div",{className:"rooms-wrap",children:s.jsxs("table",{className:"rooms",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Pièce"}),s.jsx("th",{children:"Niveau"}),s.jsx("th",{children:"Dimensions"}),s.jsx("th",{children:"Revêtement"})]})}),s.jsx("tbody",{children:o.map((g,j)=>s.jsxs("tr",{children:[s.jsx("td",{children:g.nom||"—"}),s.jsx("td",{children:g.niveau||"—"}),s.jsx("td",{children:g.dimensions||"—"}),s.jsx("td",{children:g.revetement||"—"})]},j))})]})})]}),t.features&&t.features.length>0&&s.jsxs("section",{className:"f-bloc",id:"inclusions",children:[s.jsx("h2",{children:"Inclusions"}),s.jsx("div",{className:"amenity-row",children:t.features.map((g,j)=>s.jsxs("span",{className:"amenity",children:[s.jsx(b,{name:"check",size:13})," ",g]},j))})]}),t.lat!=null&&t.lng!=null&&s.jsxs("section",{className:"f-bloc",id:"carte",children:[s.jsx("h2",{children:"Emplacement"}),s.jsx("div",{className:"mini-map",children:s.jsx(y.Suspense,{fallback:s.jsx("div",{className:"mapview map-loading",children:"Chargement de la carte…"}),children:s.jsx(zm,{lat:t.lat,lng:t.lng,price:t.price,deal:t.price!=null&&((m=t.vraiprix)==null?void 0:m.value)!=null&&t.price<=t.vraiprix.value*.95})})})]})]}),s.jsx("div",{className:"f-col",children:s.jsxs("section",{className:"f-bloc f-hero",children:[s.jsx("div",{className:"price",children:pt(t.price,t.price_label)}),t.property_type&&s.jsxs("div",{className:"deal-badge deal-ok",children:[t.property_type,(w=t.details)!=null&&w.price_from?" · à partir de":""]}),s.jsx("h1",{children:t.address||t.title}),s.jsx("div",{className:"loc",children:[t.sector,t.city,t.region].filter(Boolean).join(" · ")}),s.jsx("div",{className:"specs-grid",children:i.map(g=>s.jsxs("div",{className:"spec",children:[s.jsx("span",{className:"spec-ico",children:s.jsx(b,{name:$m[g.k]??"tag",size:17})}),s.jsx("b",{children:g.v}),s.jsx("span",{children:g.k})]},g.k))}),c&&s.jsxs("div",{className:`prix-histo ${c.a{const g=t.price-t.vraiprix.value,j=Math.round(g/t.vraiprix.value*100),N=g>0?"over":"under",p=g>0?`Prix demandé ${j}% au-dessus de l'estimation`:`Prix demandé ${Math.abs(j)}% sous l'estimation`;return Math.abs(j)>=1?s.jsxs("div",{className:`vp-delta vp-${N}`,children:[g>0?"▲":"▼"," ",p]}):s.jsx("div",{className:"vp-delta vp-fair",children:"≈ Prix aligné sur l'estimation"})})(),s.jsx("a",{className:"vp-link",href:t.vraiprix.url,target:"_blank",rel:"noopener noreferrer",children:"Voir l'analyse détaillée ↗"})]}),(t.broker_name||t.broker_phone)&&s.jsxs("div",{className:"broker",children:[s.jsx("div",{className:"broker-k",children:"Courtier"}),t.broker_name&&s.jsx("div",{className:"broker-name",children:t.broker_name}),t.broker_phone&&s.jsxs("a",{className:"broker-tel",href:`tel:${t.broker_phone.replace(/\s/g,"")}`,children:[s.jsx(b,{name:"phone",size:14})," ",t.broker_phone]})]}),s.jsxs("a",{className:"cta",href:t.url,target:"_blank",rel:"noopener noreferrer",children:["Voir l'annonce chez ",lt(t.source)," ",s.jsx(b,{name:"external",size:15})]}),s.jsxs("div",{className:"fine",children:["Agrégé par Immo-Ka — ",lt(t.source),h?` · synchronisé le ${h}`:"","."]})]})})]}),t.quartier&&s.jsx(Lm,{q:t.quartier}),s.jsx("div",{className:"fine f-foot",children:"Les prix et disponibilités sont ceux affichés par la source — chaque fiche renvoie à l'annonce originale de l'agence."}),s.jsxs("div",{className:"cta-sticky",children:[s.jsx("span",{className:"cta-sticky-prix",children:pt(t.price,t.price_label)}),s.jsxs("a",{className:"cta",href:t.url,target:"_blank",rel:"noopener noreferrer",children:["Voir chez ",lt(t.source)," ↗"]})]})]})}function Fm(){const[e,t]=y.useState(null),[n,r]=y.useState(null),[l,i]=y.useState({});y.useEffect(()=>{jm().then(a=>t(a.franchises)).catch(a=>r(String(a)))},[]);const o=(e??[]).reduce((a,c)=>a+c.total,0),u=(e??[]).reduce((a,c)=>a+c.sub_agencies,0);return s.jsxs("div",{className:"container sources",children:[s.jsx("span",{className:"kicker",children:"Registre — agences & sous-agences"}),s.jsx("h1",{children:"Sources par sous-agence"}),s.jsx("p",{className:"sub",children:"Chaque bannière immobilière du Québec est éclatée par sous-agence (bureau). Chaque annonce est synchronisée par un connecteur dédié et dédoublonnée par numéro Centris. Cliquez un compte pour voir les propriétés."}),n&&s.jsxs("div",{className:"notice",children:[" ",n]}),!e&&!n&&s.jsx("div",{className:"notice",children:"Chargement…"}),e&&s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"stats-foot",style:{marginTop:0},children:[s.jsx("b",{children:o.toLocaleString("fr-CA")})," propriétés ·"," ",s.jsx("b",{children:e.length})," bannières ·"," ",s.jsx("b",{children:u.toLocaleString("fr-CA")})," sous-agences"]}),s.jsx("div",{className:"franchise-list",children:e.map(a=>{const c=l[a.franchise]??!1;return s.jsxs("div",{className:"franchise",children:[s.jsxs("button",{className:"franchise-head",onClick:()=>i({...l,[a.franchise]:!c}),"aria-expanded":c,children:[s.jsx("span",{className:"fh-caret",children:c?"▾":"▸"}),s.jsx("span",{className:"fh-name",children:a.franchise}),s.jsxs("span",{className:"fh-sub",children:[a.sub_agencies," sous-agence",a.sub_agencies>1?"s":""]}),s.jsx("span",{className:"fh-count",children:a.total.toLocaleString("fr-CA")})]}),c&&s.jsx("ul",{className:"subagency-list",children:a.agencies.map(h=>s.jsxs("li",{children:[s.jsx("span",{className:"sa-name",children:h.name}),s.jsx(Mn,{className:"count-pill",to:`/?source=${encodeURIComponent(h.sources[0])}`,children:h.count.toLocaleString("fr-CA")})]},h.name))})]},a.franchise)})}),s.jsx("p",{className:"stats-foot",children:"Les sous-agences des grandes bannières (RE/MAX, Via Capitale, Century 21…) servent aussi de source de secours, dédoublonnées par n° Centris — aucun double-comptage."})]})]})}const hn=30,qr=e=>`${(Math.max(-hn,Math.min(hn,e))+hn)/(2*hn)*100}%`;function ru({b:e}){const t=e.median_delta_pct>10?"vp-sur":e.median_delta_pct<0?"vp-sous":"vp-juste";return s.jsxs("div",{className:"vpg-row",children:[s.jsxs("div",{className:"vpg-name",children:[e.banniere,s.jsxs("em",{children:[e.n.toLocaleString("fr-CA")," annonces estimées"]})]}),s.jsxs("div",{className:"vpg-track",children:[s.jsx("span",{className:"vpg-zero"}),s.jsx("span",{className:"vpg-band",style:{left:qr(Math.min(e.p25,e.p75)),width:`calc(${qr(Math.max(e.p25,e.p75))} - ${qr(Math.min(e.p25,e.p75))})`}}),s.jsx("span",{className:`vpg-median ${t}`,style:{left:qr(e.median_delta_pct)}})]}),s.jsxs("div",{className:`vpg-value ${t}`,children:[e.median_delta_pct>0?"+":"",e.median_delta_pct.toLocaleString("fr-CA")," %"]}),s.jsxs("div",{className:"vpg-split",title:`${e.pct_sous5} % sous l'estimation · ${e.pct_juste} % dans l'estimation · ${e.pct_sur10} % à +10 % et plus`,children:[s.jsx("span",{className:"vps-sous",style:{width:`${e.pct_sous5}%`}}),s.jsx("span",{className:"vps-juste",style:{width:`${e.pct_juste}%`}}),s.jsx("span",{className:"vps-sur",style:{width:`${e.pct_sur10}%`}})]})]})}function Oi({rows:e,unit:t}){const n=Math.max(1,...e.map(r=>r.n));return s.jsx("div",{className:"hbars",children:e.map(r=>s.jsxs("div",{className:"hbar-row",children:[s.jsx("div",{className:"hbar-label",children:r.href?s.jsx(Mn,{to:r.href,children:r.key}):r.key}),s.jsx("div",{className:"hbar-track",children:s.jsx("span",{className:"hbar-fill",style:{width:`${r.n/n*100}%`}})}),s.jsxs("div",{className:"hbar-value",children:[r.n.toLocaleString("fr-CA"),t?s.jsxs("em",{children:[" ",t]}):""]})]},r.key))})}function Im(){var h;const[e,t]=y.useState(null),[n,r]=y.useState(null),[l,i]=y.useState(null);y.useEffect(()=>{ni().then(f=>ti(f.sources)).catch(()=>{}),Ro().then(t).catch(()=>{}),Ol().then(r).catch(()=>{}),zd({sort:"price_asc"},2e3,0).then(f=>i(f.listings)).catch(()=>{})},[]);const o=y.useMemo(()=>{if(!l)return[];const f=new Map;for(const m of l)m.property_type&&f.set(m.property_type,(f.get(m.property_type)??0)+1);return[...f.entries()].map(([m,w])=>({key:m,n:w,href:`/?property_type=${encodeURIComponent(m)}`})).sort((m,w)=>w.n-m.n).slice(0,12)},[l]),u=y.useMemo(()=>{if(!l)return[];const f=new Map;for(const m of l)m.city&&f.set(m.city,(f.get(m.city)??0)+1);return[...f.entries()].map(([m,w])=>({key:m,n:w,href:`/?city=${encodeURIComponent(m)}`})).sort((m,w)=>w.n-m.n).slice(0,15)},[l]),a=y.useMemo(()=>n?n.sources.map(f=>({key:lt(f.source),n:f.n,href:`/?source=${encodeURIComponent(f.source)}`})).sort((f,m)=>m.n-f.n).slice(0,15):[],[n]),c=[{v:e?e.total.toLocaleString("fr-CA"):"…",k:"Propriétés à vendre",hero:!0},{v:e?String(e.sources):"…",k:"Agences agrégées"},{v:e?e.cities.toLocaleString("fr-CA"):"…",k:"Villes couvertes"},{v:(e==null?void 0:e.avg_price)!=null?`${Math.round(e.avg_price).toLocaleString("fr-CA")} $`:"…",k:"Prix moyen demandé"},{v:(e==null?void 0:e.min_price)!=null?`${Math.round(e.min_price).toLocaleString("fr-CA")} $`:"…",k:"Prix minimum"},{v:(e==null?void 0:e.max_price)!=null?`${Math.round(e.max_price).toLocaleString("fr-CA")} $`:"…",k:"Prix maximum"}];return s.jsxs("div",{className:"container stats-page",children:[s.jsx("span",{className:"kicker",children:"Le marché agrégé"}),s.jsx("h1",{className:"stats-title",children:"Statistiques"}),s.jsx("p",{className:"sub",children:"Portrait en direct des propriétés à vendre agrégées par Immo-Ka à travers toutes les agences connectées. Répartitions calculées sur un échantillon des annonces actives."}),s.jsx("div",{className:"tiles",children:c.map(f=>s.jsxs("div",{className:`tile ${f.hero?"hero-tile":""}`,children:[s.jsx("div",{className:"tile-v",children:f.v}),s.jsx("div",{className:"tile-k",children:f.k})]},f.k))}),s.jsxs("div",{className:"viz-grid",children:[s.jsxs("div",{className:"viz-card",children:[s.jsx("h2",{children:"Par type de propriété"}),s.jsx("div",{className:"viz-sub",children:"Échantillon des annonces actives"}),o.length?s.jsx(Oi,{rows:o}):s.jsx("p",{className:"fine",children:"Chargement…"})]}),s.jsxs("div",{className:"viz-card",children:[s.jsx("h2",{children:"Par agence"}),s.jsx("div",{className:"viz-sub",children:"Annonces actives (après déduplication)"}),a.length?s.jsx(Oi,{rows:a}):s.jsx("p",{className:"fine",children:"Chargement…"})]})]}),((h=e==null?void 0:e.vraiprix)==null?void 0:h.bannieres)&&e.vraiprix.bannieres.length>0&&s.jsxs("div",{className:"viz-card",children:[s.jsx("h2",{children:"Prix demandé vs valeur Vrai-Prix"}),s.jsx("div",{className:"viz-sub",children:"Écart médian entre le prix demandé et l'estimation indépendante Vrai-Prix, par bannière. La bande grise couvre la moitié centrale des annonces (P25–P75) ; le trait est la médiane."}),s.jsx("div",{className:"vpg-axis",children:s.jsxs("div",{children:[s.jsxs("span",{children:["−",hn," %"]}),s.jsx("span",{children:"estimation Vrai-Prix"}),s.jsxs("span",{children:["+",hn," %"]})]})}),e.vraiprix.ensemble&&s.jsx(ru,{b:e.vraiprix.ensemble}),s.jsx("div",{className:"vpg-sep"}),e.vraiprix.bannieres.map(f=>s.jsx(ru,{b:f},f.banniere)),s.jsxs("div",{className:"vpg-legend",children:[s.jsxs("span",{children:[s.jsx("i",{className:"vps-sous"})," sous l'estimation (≤ −5 %)"]}),s.jsxs("span",{children:[s.jsx("i",{className:"vps-juste"})," dans l'estimation"]}),s.jsxs("span",{children:[s.jsx("i",{className:"vps-sur"})," survalorisé (≥ +10 %)"]})]})]}),s.jsxs("div",{className:"viz-card",children:[s.jsx("h2",{children:"Par ville"}),s.jsx("div",{className:"viz-sub",children:"Top 15 · échantillon des annonces actives"}),u.length?s.jsx(Oi,{rows:u}):s.jsx("p",{className:"fine",children:"Chargement…"})]}),(e==null?void 0:e.recent_syncs)&&e.recent_syncs.length>0&&s.jsxs("div",{className:"viz-card",children:[s.jsx("h2",{children:"Synchronisations récentes"}),s.jsx("div",{className:"viz-sub",children:"Journal du moteur d'agrégation"}),s.jsx("div",{className:"viz-table",children:s.jsxs("table",{children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Agence"}),s.jsx("th",{children:"Trouvées"}),s.jsx("th",{children:"Ajoutées"}),s.jsx("th",{children:"MàJ"}),s.jsx("th",{children:"Retirées"}),s.jsx("th",{children:"Quand"})]})}),s.jsx("tbody",{children:e.recent_syncs.slice(0,15).map((f,m)=>s.jsxs("tr",{children:[s.jsx("td",{children:lt(f.source)}),s.jsx("td",{children:f.found}),s.jsx("td",{children:f.added}),s.jsx("td",{children:f.updated}),s.jsx("td",{children:f.removed}),s.jsx("td",{style:{color:"var(--ink-3)"},children:new Date(f.ts*1e3).toLocaleString("fr-CA")})]},m))})]})})]}),s.jsx("p",{className:"stats-foot",children:"Mise à jour automatique — chaque fiche renvoie à l'annonce originale de l'agence."})]})}function Dm(){const[e,t]=y.useState([]);return y.useEffect(()=>{Promise.all([Ro(),Ol(),ni()]).then(([n,r,l])=>{ti(l.sources);const i=[`${n.total.toLocaleString("fr-CA")} propriétés à vendre`];n.cities&&i.push(`${n.cities} villes`),n.avg_price!=null&&i.push(`Prix moyen ${Math.round(n.avg_price).toLocaleString("fr-CA")} $`);for(const o of r.sources.slice(0,12))i.push(`${lt(o.source)} · ${o.n}`);i.push("Mise à jour automatique"),t(i)}).catch(()=>t(["Immo-Ka — propriétés à vendre au Québec"]))},[]),e.length===0?null:s.jsx("div",{className:"ticker","aria-hidden":"true",children:s.jsx("div",{className:"ticker-track",children:[...e,...e].map((n,r)=>s.jsx("span",{children:n},r))})})}const Am=[{to:"/",label:"Propriétés",icon:"home",end:!0},{to:"/?view=carte",label:"Carte",icon:"map",end:!1,force:!0},{to:"/stats",label:"Stats",icon:"chart",end:!1},{to:"/agences",label:"Agences",icon:"building",end:!1}];function Um(){const[e,t]=y.useState(!1),n=Zt();return y.useEffect(()=>{t(!1)},[n]),y.useEffect(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]),s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"header",children:[s.jsxs("div",{className:"container header-inner",children:[s.jsxs(Xn,{to:"/",className:"brand","aria-label":"Immo-Ka — accueil",children:["Immo",s.jsx("span",{className:"ka",children:"Ka"}),s.jsx("span",{className:"brand-tag",children:"Toutes les agences du Québec — toujours à jour"})]}),s.jsxs("nav",{className:"nav","aria-label":"Navigation principale",children:[s.jsx(Xn,{to:"/",end:!0,className:({isActive:r})=>r?"active":"",children:"Propriétés"}),s.jsx(Xn,{to:"/stats",className:({isActive:r})=>r?"active":"",children:"Stats"}),s.jsx(Xn,{to:"/agences",className:({isActive:r})=>r?"active":"",children:"Agences"})]}),s.jsxs("button",{className:`menu-btn ${e?"open":""}`,"aria-expanded":e,"aria-label":e?"Fermer le menu":"Ouvrir le menu",onClick:()=>t(!e),children:[s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{})]})]}),s.jsxs("div",{className:`mobile-menu ${e?"open":""}`,role:"navigation","aria-label":"Menu mobile",children:[Am.map((r,l)=>s.jsxs(Xn,{to:r.to,end:r.end,style:{transitionDelay:e?`${60+l*45}ms`:"0ms"},className:({isActive:i})=>`mm-link ${i&&!r.force?"active":""}`,onClick:()=>t(!1),children:[s.jsx("span",{className:"mm-ico","aria-hidden":"true",children:s.jsx(b,{name:r.icon,size:19})}),r.label,s.jsx("span",{className:"mm-arrow","aria-hidden":"true",children:s.jsx(b,{name:"arrow",size:15})})]},r.to)),s.jsx("div",{className:"mm-foot",children:"Agrégateur indépendant — mis à jour automatiquement, chaque fiche renvoie à l'annonce originale de l'agence."})]})]}),e&&s.jsx("div",{className:"mm-backdrop",onClick:()=>t(!1),"aria-hidden":"true"}),s.jsx(Dm,{})]})}function Vm(){return s.jsx("footer",{className:"footer",children:s.jsxs("div",{className:"container",children:[s.jsxs("div",{className:"fbrand",children:["Immo",s.jsx("span",{className:"ka",children:"Ka"})]}),s.jsx("div",{className:"frow",children:s.jsxs("div",{children:[s.jsx("b",{children:"Agrégateur indépendant"})," des propriétés à vendre dans la province de Québec. Les annonces proviennent des sites publics des agences de courtage (RE/MAX, Sutton, Via Capitale, Proprio Direct, Barnes, M Immobilier…) et sont rafraîchies automatiquement — chaque fiche renvoie vers l'annonce originale."]})}),s.jsxs("div",{className:"fmono",children:["© ",new Date().getFullYear()," Simon-Pierre Boucher — contact@spboucher.ai"]})]})})}function Bm(){return s.jsxs(s.Fragment,{children:[s.jsx(Um,{}),s.jsx("main",{children:s.jsxs(tm,{children:[s.jsx(en,{path:"/",element:s.jsx(_m,{})}),s.jsx(en,{path:"/propriete/:uid",element:s.jsx(Om,{})}),s.jsx(en,{path:"/stats",element:s.jsx(Im,{})}),s.jsx(en,{path:"/agences",element:s.jsx(Fm,{})}),s.jsx(en,{path:"*",element:s.jsxs("div",{className:"notice container",children:[s.jsx("div",{className:"big",children:"🧭"}),s.jsx("h2",{children:"Page introuvable"}),s.jsx("p",{children:"Le lien demandé n'existe pas."})]})})]})}),s.jsx(Vm,{})]})}Fi.createRoot(document.getElementById("root")).render(s.jsx(hu.StrictMode,{children:s.jsx(cm,{basename:"/immo/".replace(/\/$/,""),children:s.jsx(Bm,{})})}));export{$n as A,Wm as c,Fd as g,Hm as i,s as j,ym as l,y as r,lt as s,Ed as u};