legacy/static/assets/index-dc786e36.js

1151 lines
403 KiB
JavaScript
Raw Normal View History

2023-05-16 22:20:28 +02:00
var Vm=Object.defineProperty;var Km=(e,t,n)=>t in e?Vm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ie=(e,t,n)=>(Km(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var eh={exports:{}},Ns={},th={exports:{}},ee={};/**
* @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 Gi=Symbol.for("react.element"),Jm=Symbol.for("react.portal"),Gm=Symbol.for("react.fragment"),Ym=Symbol.for("react.strict_mode"),Xm=Symbol.for("react.profiler"),Zm=Symbol.for("react.provider"),e0=Symbol.for("react.context"),t0=Symbol.for("react.forward_ref"),n0=Symbol.for("react.suspense"),r0=Symbol.for("react.memo"),i0=Symbol.for("react.lazy"),Wu=Symbol.iterator;function o0(e){return e===null||typeof e!="object"?null:(e=Wu&&e[Wu]||e["@@iterator"],typeof e=="function"?e:null)}var nh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rh=Object.assign,ih={};function Wr(e,t,n){this.props=e,this.context=t,this.refs=ih,this.updater=n||nh}Wr.prototype.isReactComponent={};Wr.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")};Wr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oh(){}oh.prototype=Wr.prototype;function kc(e,t,n){this.props=e,this.context=t,this.refs=ih,this.updater=n||nh}var Ec=kc.prototype=new oh;Ec.constructor=kc;rh(Ec,Wr.prototype);Ec.isPureReactComponent=!0;var qu=Array.isArray,sh=Object.prototype.hasOwnProperty,Cc={current:null},ah={key:!0,ref:!0,__self:!0,__source:!0};function lh(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)sh.call(t,r)&&!ah.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Gi,type:e,key:o,ref:s,props:i,_owner:Cc.current}}function s0(e,t){return{$$typeof:Gi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gi}function a0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vu=/\/+/g;function ua(e,t){return typeof e=="object"&&e!==null&&e.key!=null?a0(""+e.key):t.toString(36)}function To(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Gi:case Jm:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ua(s,0):r,qu(i)?(n="",e!=null&&(n=e.replace(Vu,"$&/")+"/"),To(i,t,n,"",function(u){return u})):i!=null&&(Oc(i)&&(i=s0(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Vu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",qu(e))for(var a=0;a<e.length;a++){o=e[a];var c=r+ua(o,a);s+=To(o,t,n,c,i)}else if(c=o0(e),typeof c=="function")for(e=c.call(e),a=0;!(o=e.next()).done;)o=o.value,c=r+ua(o,a++),s+=To(o,t,n,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function lo(e,t,n){if(e==null)return e;var r=[],i=0;return To(e,r,"","",function(o){return t.call(n,o,i++)}),r}function l0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},Ro={transition:null},c0={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Ro,ReactCurrentOwner:Cc};ee.Children={map:lo,forEach:function(e,t,n){lo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lo(e,function(){t++}),t},toArray:function(e){return lo(e,function(t){return t})||[]},only:function(e){if(!Oc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=Wr;ee.Fragment=Gm;ee.Profiler=Xm;ee
* @license React
* react-jsx-runtime.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 u0=N,d0=Symbol.for("react.element"),f0=Symbol.for("react.fragment"),h0=Object.prototype.hasOwnProperty,p0=u0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g0={key:!0,ref:!0,__self:!0,__source:!0};function ch(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)h0.call(t,r)&&!g0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:d0,type:e,key:o,ref:s,props:i,_owner:p0.current}}Ns.Fragment=f0;Ns.jsx=ch;Ns.jsxs=ch;eh.exports=Ns;var l=eh.exports,dl={},uh={exports:{}},dt={},dh={exports:{}},fh={};/**
* @license React
* scheduler.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.
*/(function(e){function t(B,V){var W=B.length;B.push(V);e:for(;0<W;){var ie=W-1>>>1,oe=B[ie];if(0<i(oe,V))B[ie]=V,B[W]=oe,W=ie;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var V=B[0],W=B.pop();if(W!==V){B[0]=W;e:for(var ie=0,oe=B.length,ke=oe>>>1;ie<ke;){var ue=2*(ie+1)-1,Ee=B[ue],qe=ue+1,ot=B[qe];if(0>i(Ee,W))qe<oe&&0>i(ot,Ee)?(B[ie]=ot,B[qe]=W,ie=qe):(B[ie]=Ee,B[ue]=W,ie=ue);else if(qe<oe&&0>i(ot,W))B[ie]=ot,B[qe]=W,ie=qe;else break e}}return V}function i(B,V){var W=B.sortIndex-V.sortIndex;return W!==0?W:B.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],u=[],d=1,f=null,g=3,h=!1,y=!1,_=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(B){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=B)r(u),V.sortIndex=V.expirationTime,t(c,V);else break;V=n(u)}}function x(B){if(_=!1,p(B),!y)if(n(c)!==null)y=!0,J(j);else{var V=n(u);V!==null&&fe(x,V.startTime-B)}}function j(B,V){y=!1,_&&(_=!1,w(O),O=-1),h=!0;var W=g;try{for(p(V),f=n(c);f!==null&&(!(f.expirationTime>V)||B&&!H());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,g=f.priorityLevel;var oe=ie(f.expirationTime<=V);V=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(c)&&r(c),p(V)}else r(c);f=n(c)}if(f!==null)var ke=!0;else{var ue=n(u);ue!==null&&fe(x,ue.startTime-V),ke=!1}return ke}finally{f=null,g=W,h=!1}}var b=!1,k=null,O=-1,M=5,z=-1;function H(){return!(e.unstable_now()-z<M)}function te(){if(k!==null){var B=e.unstable_now();z=B;var V=!0;try{V=k(!0,B)}finally{V?Q():(b=!1,k=null)}}else b=!1}var Q;if(typeof m=="function")Q=function(){m(te)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,U=$.port2;$.port1.onmessage=te,Q=function(){U.postMessage(null)}}else Q=function(){C(te,0)};function J(B){k=B,b||(b=!0,Q())}function fe(B,V){O=C(function(){B(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,J(j))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(B){switch(g){case 1:case 2:case 3:var V=3;break;default:V=g}var W=g;g=V;try{return B()}finally{g=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,V){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var W=g;g=B;try{return V()}finally{g=W}},e.unstable_scheduleCallback=function(B,V,W){var ie=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ie+W:ie):W=ie,B){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=W+oe,B={id:d++,callback:V,priorityLevel:B,startTime:W,expirationTime:oe,sortIndex:-1},W>ie?(B.sortIndex=W,t(u,B),n(c)===null&&B===n(u)&&(_?(w(O),O=-1):_=!0,fe(x,W-ie))):(B.sortIndex=oe,t(c,B),y||h||(y=!0,J(j))),B},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(B){var V=g;return function(){var W=g;g=V;try{return B.apply(this,arguments)}finally{g=W}}}})(fh);dh.exports=fh;var m0=dh.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 hh=N,ut=m0;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ph=new Set,Oi={};function nr(e,t){Rr(e,t),Rr(e+"Capture",t)}function Rr(e,t){for(Oi[e]=t,e=0;e<t.length;e++)ph.add(t[e])}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fl=Object.prototype.hasOwnProperty,v0=/^[: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]*$/,Ku={},Qu={};function y0(e){return fl.call(Qu,e)?!0:fl.call(Ku,e)?!1:v0.test(e)?Qu[e]=!0:(Ku[e]=!0,!1)}function x0(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 w0(e,t,n,r){if(t===null||typeof t>"u"||x0(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 Ge(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new Ge(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){Ue[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pc=/[\-:]([a-z])/g;function Tc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-
`+da+e}var fa=!1;function ha(e,t){if(!e||fa)return"";fa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var c=`
`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{fa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fi(e):""}function _0(e){switch(e.tag){case 5:return fi(e.type);case 16:return fi("Lazy");case 13:return fi("Suspense");case 19:return fi("SuspenseList");case 0:case 2:case 15:return e=ha(e.type,!1),e;case 11:return e=ha(e.type.render,!1),e;case 1:return e=ha(e.type,!0),e;default:return""}}function ml(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 dr:return"Fragment";case ur:return"Portal";case hl:return"Profiler";case Nc:return"StrictMode";case pl:return"Suspense";case gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mh:return(e.displayName||"Context")+".Consumer";case gh:return(e._context.displayName||"Context")+".Provider";case Ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ic:return t=e.displayName||null,t!==null?t:ml(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return ml(e(t))}catch{}}return null}function S0(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 ml(t);case 8:return t===Nc?"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 Cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j0(e){var t=yh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uo(e){e._valueTracker||(e._valueTracker=j0(e))}function xh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function es(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vl(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cn(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 wh(e,t){t=t.checked,t!=null&&Rc(e,"checked",t,!1)}function yl(e,t){wh(e,t);var n=Cn(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")?xl(e,t.type,n):t.hasOwnProperty("defaultValue")&&xl(e,t.type,Cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yu(e,t,n){if(t.hasOwnProperty("val
`).replace(Av,"")}function xo(e,t,n){if(t=wd(t),wd(e)!==t&&n)throw Error(F(425))}function ls(){}var Al=null,Il=null;function Ll(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fl=typeof setTimeout=="function"?setTimeout:void 0,Iv=typeof clearTimeout=="function"?clearTimeout:void 0,_d=typeof Promise=="function"?Promise:void 0,Lv=typeof queueMicrotask=="function"?queueMicrotask:typeof _d<"u"?function(e){return _d.resolve(null).then(e).catch(Fv)}:Fl;function Fv(e){setTimeout(function(){throw e})}function Ea(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ai(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ai(t)}function _n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Sd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Vr=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Vr,zi="__reactProps$"+Vr,tn="__reactContainer$"+Vr,Ml="__reactEvents$"+Vr,Mv="__reactListeners$"+Vr,zv="__reactHandles$"+Vr;function zn(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sd(e);e!==null;){if(n=e[Bt])return n;e=Sd(e)}return t}e=n,n=e.parentNode}return null}function Zi(e){return e=e[Bt]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function gr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Ms(e){return e[zi]||null}var zl=[],mr=-1;function Rn(e){return{current:e}}function ge(e){0>mr||(e.current=zl[mr],zl[mr]=null,mr--)}function de(e,t){mr++,zl[mr]=e.current,e.current=t}var On={},We=Rn(On),nt=Rn(!1),Jn=On;function Nr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function rt(e){return e=e.childContextTypes,e!=null}function cs(){ge(nt),ge(We)}function jd(e,t,n){if(We.current!==On)throw Error(F(168));de(We,t),de(nt,n)}function lp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,S0(e)||"Unknown",i));return _e({},n,r)}function us(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Jn=We.current,de(We,e),de(nt,nt.current),!0}function bd(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=lp(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,ge(nt),ge(We),de(We,e)):ge(nt),de(nt,n)}var Kt=null,zs=!1,Ca=!1;function cp(e){Kt===null?Kt=[e]:Kt.push(e)}function Bv(e){zs=!0,cp(e)}function Nn(){if(!Ca&&Kt!==null){Ca=!0;var e=0,t=ce;try{var n=Kt;for(ce=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Kt=null,zs=!1}catch(i){throw Kt!==null&&(Kt=Kt.slice(e+1)),Ih(Fc,Nn),i}finally{ce=t,Ca=!1}}return null}var vr=[],yr=0,ds=null,fs=0,gt=[],mt=0,Gn=null,Gt=1,Yt="";function Ln(e,t){vr[yr++]=fs,vr[yr++]=ds,ds=e,fs=t}function up(e,t,n){gt[mt++]=Gt,gt[mt++]=Yt,gt[mt++]=Gn,Gn=e;var r=Gt;e=Yt;var i=32-Tt(r)-1;r&=~(1<<i),n+=1;var o=32-Tt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Gt=1<<32-Tt(t)+i|n<<i|r,Yt=o+e}else Gt=1<<o|n<<i|r,Yt=e}function qc(e){e.return!==null&&(Ln(e,1),up(e,1,0))}function Vc(e){for(;e===ds;)ds=vr[--yr],vr[yr]=null,fs=vr[--yr],vr[yr]=null;for(;e===Gn;)Gn=gt[--mt],gt[mt]=null,Yt=gt[--mt],gt[mt]=null,Gt=gt[--mt],gt[mt]=null}var ct=null,lt=null,ve=!1,Pt=null;function dp(e,t){var n=vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletio
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Na(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qv=typeof WeakMap=="function"?WeakMap:Map;function Bp(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ws||(ws=!0,ec=r),Wl(e,t)},n}function Up(e,t,n){n=Xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Wl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Wl(e,t),typeof r!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Id(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ly.bind(null,e,t,n),t.then(e,e))}function Ld(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Fd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xt(-1,1),t.tag=2,Sn(n,t,1))),n.lanes|=1),e)}var Jv=on.ReactCurrentOwner,et=!1;function Ke(e,t,n,r){t.child=e===null?yp(t,null,n,r):Ir(t,e.child,n,r)}function Md(e,t,n,r,i){n=n.render;var o=t.ref;return Cr(t,i),r=ru(e,t,n,r,o,i),n=iu(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rn(e,t,i)):(ve&&n&&qc(t),t.flags|=1,Ke(e,t,r,i),t.child)}function zd(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!pu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$p(e,t,o,r,i)):(e=$o(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Li,n(s,r)&&e.ref===t.ref)return rn(e,t,i)}return t.flags|=1,e=kn(o,r),e.ref=t.ref,e.return=t,t.child=e}function $p(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Li(o,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,rn(e,t,i)}return ql(e,t,n,r,i)}function Dp(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(_r,st),st|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(_r,st),st|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,de(_r,st),st|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,de(_r,st),st|=r;return Ke(e,t,i,n),t.child}function Hp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ql(e,t,n,r,i){var o=rt(n)?Jn:We.current;return o=Nr(t,o),Cr(t,i),n=ru(e,t,n,r,o,i),r=iu(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rn(e,t,i)):(ve&&r&&qc(t),t.flags|=1,Ke(e,t,n,i),t.child)}function Bd(e,t,n,r,i){if(rt(n)){var o=!0;us(t)}else o=!1;if(Cr(t,i),t.stateNode===null)zo(e,t),mp(t,n,r),Hl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=_t(u):(u=rt(n)?Jn:We.current,u=Nr(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==u)&&Td(t,s,r,u),dn=!1;var g=t.memoizedState;s.state=g,gs(t,r,s,i),c=t.memoizedState,a!==r||g!==c||nt.current||dn?(typeof d=="function"&&(Dl(t,n,d,r),c=t.memoizedState),(a=dn||Pd(t,n,a,r,g,c,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
* @remix-run/router v1.6.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qi.apply(this,arguments)}var vn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(vn||(vn={}));const Zd="popstate";function wy(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return ic("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:bs(i)}return Sy(t,n,null,e)}function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _y(){return Math.random().toString(36).substr(2,8)}function ef(e,t){return{usr:e.state,key:e.key,idx:t}}function ic(e,t,n,r){return n===void 0&&(n=null),qi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kr(t):t,{state:n,key:t&&t.key||r||_y()})}function bs(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 Kr(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 Sy(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=vn.Pop,c=null,u=d();u==null&&(u=0,s.replaceState(qi({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=vn.Pop;let C=d(),w=C==null?null:C-u;u=C,c&&c({action:a,location:_.location,delta:w})}function g(C,w){a=vn.Push;let m=ic(_.location,C,w);n&&n(m,C),u=d()+1;let p=ef(m,u),x=_.createHref(m);try{s.pushState(p,"",x)}catch{i.location.assign(x)}o&&c&&c({action:a,location:_.location,delta:1})}function h(C,w){a=vn.Replace;let m=ic(_.location,C,w);n&&n(m,C),u=d();let p=ef(m,u),x=_.createHref(m);s.replaceState(p,"",x),o&&c&&c({action:a,location:_.location,delta:0})}function y(C){let w=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof C=="string"?C:bs(C);return Pe(w,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,w)}let _={get action(){return a},get location(){return e(i,s)},listen(C){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(Zd,f),c=C,()=>{i.removeEventListener(Zd,f),c=null}},createHref(C){return t(i,C)},createURL:y,encodeLocation(C){let w=y(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:g,replace:h,go(C){return s.go(C)}};return _}var tf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tf||(tf={}));function jy(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Kr(t):t,i=wu(r.pathname||"/",n);if(i==null)return null;let o=hg(e);by(o);let s=null;for(let a=0;s==null&&a<o.length;++a)s=Ay(o[a],Fy(i));return s}function hg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let c={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};c.relativePath.startsWith("/")&&(Pe(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=En([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(Pe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),hg(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Ry(u,o.index),routesMeta:d})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let c of pg(o.path))i(o,s,c)}),t}function pg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=pg(r.join
* React Router v6.11.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ks.apply(this,arguments)}const yg=N.createContext(null),qy=N.createContext(null),Qr=N.createContext(null),Qs=N.createContext(null),An=N.createContext({outlet:null,matches:[],isDataRoute:!1}),xg=N.createContext(null);function Vy(e,t){let{relative:n}=t===void 0?{}:t;to()||Pe(!1);let{basename:r,navigator:i}=N.useContext(Qr),{hash:o,pathname:s,search:a}=Sg(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:En([r,s])),i.createHref({pathname:c,search:a,hash:o})}function to(){return N.useContext(Qs)!=null}function Js(){return to()||Pe(!1),N.useContext(Qs).location}function wg(e){N.useContext(Qr).static||N.useLayoutEffect(e)}function _g(){let{isDataRoute:e}=N.useContext(An);return e?sx():Ky()}function Ky(){to()||Pe(!1);let{basename:e,navigator:t}=N.useContext(Qr),{matches:n}=N.useContext(An),{pathname:r}=Js(),i=JSON.stringify(gg(n).map(a=>a.pathnameBase)),o=N.useRef(!1);return wg(()=>{o.current=!0}),N.useCallback(function(a,c){if(c===void 0&&(c={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let u=mg(a,JSON.parse(i),r,c.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:En([e,u.pathname])),(c.replace?t.replace:t.push)(u,c.state,c)},[e,t,i,r])}function Qy(){let{matches:e}=N.useContext(An),t=e[e.length-1];return t?t.params:{}}function Sg(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=N.useContext(An),{pathname:i}=Js(),o=JSON.stringify(gg(r).map(s=>s.pathnameBase));return N.useMemo(()=>mg(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Jy(e,t){return Gy(e,t)}function Gy(e,t,n){to()||Pe(!1);let{navigator:r}=N.useContext(Qr),{matches:i}=N.useContext(An),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=Js(),u;if(t){var d;let _=typeof t=="string"?Kr(t):t;a==="/"||(d=_.pathname)!=null&&d.startsWith(a)||Pe(!1),u=_}else u=c;let f=u.pathname||"/",g=a==="/"?f:f.slice(a.length)||"/",h=jy(e,{pathname:g}),y=tx(h&&h.map(_=>Object.assign({},_,{params:Object.assign({},s,_.params),pathname:En([a,r.encodeLocation?r.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?a:En([a,r.encodeLocation?r.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),i,n);return t&&y?N.createElement(Qs.Provider,{value:{location:ks({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:vn.Pop}},y):y}function Yy(){let e=ox(),t=Hy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:i},n):null,o)}const Xy=N.createElement(Yy,null);class Zy extends N.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||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?N.createElement(An.Provider,{value:this.props.routeContext},N.createElement(xg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ex(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(yg);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(An.Provider,{value:t},r)}function tx(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return nul
* React Router DOM v6.11.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ac.apply(this,arguments)}function cx(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ux(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dx(e,t){return e.button===0&&(!t||t==="_self")&&!ux(e)}const fx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function hx(e){let{basename:t,children:n,window:r}=e,i=N.useRef();i.current==null&&(i.current=wy({window:r,v5Compat:!0}));let o=i.current,[s,a]=N.useState({action:o.action,location:o.location});return N.useLayoutEffect(()=>o.listen(a),[o]),N.createElement(ax,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const px=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mn=N.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:c,to:u,preventScrollReset:d}=t,f=cx(t,fx),{basename:g}=N.useContext(Qr),h,y=!1;if(typeof u=="string"&&gx.test(u)&&(h=u,px))try{let m=new URL(window.location.href),p=u.startsWith("//")?new URL(m.protocol+u):new URL(u),x=wu(p.pathname,g);p.origin===m.origin&&x!=null?u=x+p.search+p.hash:y=!0}catch{}let _=Vy(u,{relative:i}),C=mx(u,{replace:s,state:a,target:c,preventScrollReset:d,relative:i});function w(m){r&&r(m),m.defaultPrevented||C(m)}return N.createElement("a",ac({},f,{href:h||_,onClick:y||o?r:w,ref:n,target:c}))});var of;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(of||(of={}));var sf;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sf||(sf={}));function mx(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=_g(),c=Js(),u=Sg(e,{relative:s});return N.useCallback(d=>{if(dx(d,n)){d.preventDefault();let f=r!==void 0?r:bs(c)===bs(u);a(e,{replace:f,state:i,preventScrollReset:o,relative:s})}},[c,a,u,r,i,n,e,o,s])}var tt=function(){return tt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tt.apply(this,arguments)};function Ki(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var pe="-ms-",Ei="-moz-",ae="-webkit-",kg="comm",Gs="rule",_u="decl",vx="@import",Eg="@keyframes",yx="@layer",xx=Math.abs,Su=String.fromCharCode,wx=Object.assign;function _x(e,t){return Fe(e,0)^45?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}function Cg(e){return e.trim()}function cn(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,n){return e.replace(t,n)}function Do(e,t){return e.indexOf(t)}function Fe(e,t){return e.charCodeAt(t)|0}function zr(e,t,n){return e.slice(t,n)}function Qt(e){return e.length}function ju(e){return e.length}function Eo(e,t){return t.push(e),e}function Sx(e,t){return e.map(t).join("")}var Ys=1,Br=1,Og=0,jt=0,Ce=0,Jr="";function Xs(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ys,column:Br,length:s,return:""}}function ai(e,t){return wx(Xs("",null,null,"",null,null,0),e,{length:-e.length},t)}function jx(){return Ce}function bx(){return Ce=jt>0?Fe(Jr,--jt):0,Br--,Ce===10&&(Br=1,Ys--),Ce}function Nt(){return Ce=jt<Og?Fe(Jr,jt++):0,Br++,Ce===10&&(Br=1,Ys++),Ce}function Vn(){return Fe(Jr,jt)}function Ho(){return jt}function Zs(e,t){return zr(Jr,e,t)}function lc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kx(e){return Ys=Br=1,Og=Qt(Jr=e),jt=0,[]}funct
`);return n},e}(),qo=new Map,Es=new Map,Ua=1,Co=function(e){if(qo.has(e))return qo.get(e);for(;Es.has(Ua);)Ua++;var t=Ua++;return qo.set(e,t),Es.set(t,e),t},Xx=function(e,t){qo.set(e,t),Es.set(t,e)},Zx="style[".concat(Ur,"][").concat("data-styled-version",'="').concat("6.0.0-rc.1",'"]'),e1=new RegExp("^".concat(Ur,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),t1=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},n1=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
`),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var c=a.match(e1);if(c){var u=0|parseInt(c[1],10),d=c[2];u!==0&&(Xx(d,u),t1(e,d,c[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}};function r1(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Mg=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(a){for(var c=a.childNodes,u=c.length;u>=0;u--){var d=c[u];if(d&&d.nodeType===1&&d.hasAttribute(Ur))return d}}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Ur,"active"),r.setAttribute("data-styled-version","6.0.0-rc.1");var s=r1();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},i1=function(){function e(t){this.element=Mg(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var s=r[i];if(s.ownerNode===n)return s}throw no(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),o1=function(){function e(t){this.element=Mg(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),s1=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),pf=bu,a1={isServer:!bu,useCSSOMInjection:!Mx},zg=function(){function e(t,n,r){t===void 0&&(t=er),n===void 0&&(n={}),this.options=tt(tt({},a1),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bu&&pf&&(pf=!1,function(i){for(var o=document.querySelectorAll(Zx),s=0,a=o.length;s<a;s++){var c=o[s];c&&c.getAttribute(Ur)!=="active"&&(n1(i,c),c.parentNode&&c.parentNode.removeChild(c))}}(this))}return e.registerId=function(t){return Co(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(tt(tt({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new s1(i):r?new i1(i):new o1(i)}(this.options),new Yx(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Co(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Co(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Co(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return function(t){for(var n=t.getTag(),r=n.length,i="",o=function(a){var c=function(h){return Es.get(h)}(a);if(c===void 0)return"continue";var u=t.names.get(c),d=n.getGroup(a);if(u===void 0||d.length===0)return"continue";var f="".concat(Ur,".g").concat(a,'[id="').concat(c,'"]'),g="";u!==void 0&&u.forEach(function(h){h.length>0&&(g+="".concat(h,","))}),i+="".concat(d).concat(f,'{content:"').concat(g,'"}').concat(`/*!sc*/
`)},s=0;s<r;s++)o(s);return i}(this)},e}(),l1=/&/g,c1=/^\s*\/\/.*$/gm;function Bg(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Bg(n.children,t)),n})}function u1(e){var t,n,r,i=e===void 0?er:e,o=i.options,s=o===void 0?er:o,a=i.plugins,c=a===void 0?ku:a,u=function(g,h,y){return y===n||y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):g},d=c.slice();s.prefix&&d.unshift(Lx),d.push(function(g){g.type===Gs&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(l1,n).replace(r,u))},Ax);var f=function(g,h,y,_){h===void 0&&(h=""),y===void 0&&(y=""),_===void 0&&(_="&"),t=_,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var C=g.replace(c1,""),w=Rx(y||h?"".concat(y," ").concat(h," { ").concat(C," }"):C);return s.namespace&&(w=Bg(w,s.namespace)),function(m,p){for(var x=[],j=0,b=void 0;j<m.length;j+=1)(b=p(m[j],j,m,p))&&x.push(b);return x}(w,Ix(d))};return f.hash=c.length?c.reduce(function(g,h){return h.name||no(15),Sr(g,h.name)},5381).toString():"",f}var d1=new zg,hc=u1(),Ug=bt.createContext({shouldForwardProp:void 0,styleSheet:d1,stylis:hc});Ug.Consumer;bt.createContext(void 0);function gf(){return N.useContext(Ug)}var $g=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=hc);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.toString=function(){throw no(12,String(r.name))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=hc),this.name+t.hash},e}(),f1=function(e){return e>="A"&&e<="Z"};function mf(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;f1(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Dg=function(e){return e==null||e===!1||e===""},Hg=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!Dg(o)&&(Array.isArray(o)&&o.isCss||$r(o)?r.push("".concat(mf(i),":"),o,";"):Qi(o)?r.push.apply(r,Ki(Ki(["".concat(i," {")],Hg(o),!1),["}"],!1)):r.push("".concat(mf(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Fx||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Kn(e,t,n,r){if(Dg(e))return[];if(Eu(e))return[".".concat(e.styledComponentId)];if($r(e)){if(!$r(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return Kn(i,t,n,r)}var o;return e instanceof $g?n?(e.inject(n,r),[e.getName(r)]):[e]:Qi(e)?Hg(e):Array.isArray(e)?e.flatMap(function(s){return Kn(s,t,n,r)}):[e.toString()]}function h1(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($r(n)&&!Eu(n))return!1}return!0}var p1=Rg("6.0.0-rc.1"),g1=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&h1(t),this.componentId=n,this.baseHash=Sr(p1,n),this.baseStyle=r,zg.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=$n(i,this.staticRulesId);else{var o=dc(Kn(this.rules,t,n,r)),s=uc(Sr(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}i=$n(i,s),this.staticRulesId=s}else{for(var c=Sr(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")u+=f;else if(f){var g=dc(Kn(f,t,n,r));c=Sr(c,g),u+=g}}if(u){var h=uc(c>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(u,".".concat(h),void 0,this.componentId)),i=$n(i,h)}}return i},e}(),Wg=bt.createContext(void 0);Wg.Consumer;function m1(){return N.useContext(Wg)}var $a={};function v1(e,t,n){var r=Eu(e),i=e,o=!Ba(e),s=t.attrs,a=s===void 0?ku:s,c=t.componentId,u=c===void 0?function(j,b){var
width: ${e=>e.width?e.width:24}px;
height: ${e=>e.height?e.height:24}px;
background: url(${e=>e.src});
background-repeat: no-repeat;
background-position: center;
background-size: contain;
margin: 0 8px;
display: inline-block
`,x1=P.header`
min-width: 950px;
display: flex;
justify-content: space-between;
align-items: center;
margin: 18px 8%;
`,w1=P.section`
display: flex;
align-items: center;
`,_1=P.div`
width: 1px;
height: 37px;
margin: 0px 17px;
background-color: #a9a9a9;
`,S1=P.button`
width: 150px;
height: 28px;
margin-left: 20px;
border-radius: 40px;
background-color: #CCC;
font-size: 15px;
& ${Y} {
margin-left: 0;
}
`,j1=P.h1`
user-select: none;
`,Vo=P.div`
& a:hover {
color: #0050A1;
transition: 0.3s ease;
}
`,b1=P.nav`
display: flex;
align-items: center;
& ${Vo} {
margin-right: 55px
}
`,k1=function(){return l.jsxs(x1,{children:[l.jsxs(w1,{children:[l.jsx("a",{href:"https://vvsu.ru",children:l.jsx("img",{width:"100",height:"32",src:"/images/vvsu_logo.png"})}),l.jsx(_1,{}),l.jsx(Mn,{to:"/",children:l.jsx(j1,{children:"Pairent"})}),l.jsx(Mn,{to:"/",children:l.jsxs(S1,{children:[l.jsx(Y,{src:"/images/icons/pin.svg",width:"8",height:"14"}),"Владивосток"]})})]}),l.jsxs(b1,{children:[l.jsx(Vo,{children:l.jsxs(Mn,{to:"/favorites",children:[l.jsx(Y,{src:"/images/icons/heart.svg",width:"16",height:"14"}),"Избранное"]})}),l.jsx(Vo,{children:l.jsxs(Mn,{to:"/comparisons",children:[l.jsx(Y,{src:"/images/icons/stats.svg",width:"16",height:"14"}),"Сравнения"]})}),l.jsx(Vo,{children:l.jsxs(Mn,{to:"/",children:[l.jsx(Y,{src:"/images/icons/chat-bubble.svg",width:"16",height:"14"}),"Чаты"]})}),l.jsx(Mn,{to:"/",children:l.jsx(Y,{src:"/images/icons/user.svg",width:"32",height:"32"})})]})]})};function Kg(e,t){return function(){return e.apply(t,arguments)}}const{toString:E1}=Object.prototype,{getPrototypeOf:Cu}=Object,ea=(e=>t=>{const n=E1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Wt=e=>(e=e.toLowerCase(),t=>ea(t)===e),ta=e=>t=>typeof t===e,{isArray:Gr}=Array,Ji=ta("undefined");function C1(e){return e!==null&&!Ji(e)&&e.constructor!==null&&!Ji(e.constructor)&&xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qg=Wt("ArrayBuffer");function O1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qg(e.buffer),t}const P1=ta("string"),xt=ta("function"),Jg=ta("number"),na=e=>e!==null&&typeof e=="object",T1=e=>e===!0||e===!1,Ko=e=>{if(ea(e)!=="object")return!1;const t=Cu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},R1=Wt("Date"),N1=Wt("File"),A1=Wt("Blob"),I1=Wt("FileList"),L1=e=>na(e)&&xt(e.pipe),F1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xt(e.append)&&((t=ea(e))==="formdata"||t==="object"&&xt(e.toString)&&e.toString()==="[object FormData]"))},M1=Wt("URLSearchParams"),z1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ro(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Gr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function Gg(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Yg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Xg=e=>!Ji(e)&&e!==Yg;function gc(){const{caseless:e}=Xg(this)&&this||{},t={},n=(r,i)=>{const o=e&&Gg(t,i)||i;Ko(t[o])&&Ko(r)?t[o]=gc(t[o],r):Ko(r)?t[o]=gc({},r):Gr(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ro(arguments[r],n);return t}const B1=(e,t,n,{allOwnKeys:r}={})=>(ro(t,(i,o)=>{n&&xt(i)?e[o]=Kg(i,n):e[o]=i},{allOwnKeys:r}),e),U1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},D1=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Cu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},H1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},W1=e=>{if(!e)return null;if(Gr(e))return e;let t=e.length;if(!Jg(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},q1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Cu(Uint8Array)),V1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},K1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Q1=Wt("H
`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&_w[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bf=Symbol("internals");function li(e){return e&&String(e).trim().toLowerCase()}function Qo(e){return e===!1||e==null?e:R.isArray(e)?e.map(Qo):String(e)}function jw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const bw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ha(e,t,n,r,i){if(R.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function kw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ew(e,t){const n=R.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class oa{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,c,u){const d=li(c);if(!d)throw new Error("header name must be a non-empty string");const f=R.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||c]=Qo(a))}const s=(a,c)=>R.forEach(a,(u,d)=>o(u,d,c));return R.isPlainObject(t)||t instanceof this.constructor?s(t,n):R.isString(t)&&(t=t.trim())&&!bw(t)?s(Sw(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=li(t),t){const r=R.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return jw(i);if(R.isFunction(n))return n.call(this,i,r);if(R.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=li(t),t){const r=R.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ha(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=li(s),s){const a=R.findKey(r,s);a&&(!n||Ha(r,r[a],a,n))&&(delete r[a],i=!0)}}return R.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Ha(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return R.forEach(this,(i,o)=>{const s=R.findKey(r,o);if(s){n[s]=Qo(i),delete n[o];return}const a=t?kw(o):String(o).trim();a!==o&&delete n[o],n[a]=Qo(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return R.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&R.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[bf]=this[bf]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=li(s);r[a]||(Ew(i,s),r[a]=!0)}return R.isArray(t)?t.forEach(o):o(t),this}}oa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.freezeMethods(oa.prototype);R.freezeMethods(oa);const Zt=oa;function Wa(e,t){const n=this||Pu,r=t||n,i=Zt.from(r.headers);let o=r.data;return R.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function lm(e){return!!(e&&e.__CANCEL__)}function io(e,t,n){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,n),this.name="CanceledError"}R.inherits(io,ne,{__CANCEL__:!0});function Cw(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ne("Request failed with status code "+n.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ow=Ut.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,a){const c=[];c.push(n+"="+encodeURIComponent(r)),R.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),R.isString(o)&&c.push("path="+o),R.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Pw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tw(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function cm(e,t){return e&&!Pw(t)?Tw(e,t):t}const Rw=Ut.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=R.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Nw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Aw(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[o];s||(s=u),n[i]=c,r[i]=u;let f=o,g=0;for(;f!==i;)g+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;const h=d&&u-d;return h?Math.round(g*1e3/h):void 0}}function kf(e,t){let n=0;const r=Aw(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,c=r(a),u=o<=s;n=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const Iw=typeof XMLHttpRequest<"u",Lw=Iw&&function(e){return new Promise(function(n,r){let i=e.data;const o=Zt.from(e.headers).normalize(),s=e.responseType;let a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}R.isFormData(i)&&(Ut.isStandardBrowserEnv||Ut.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+y))}const d=cm(e.baseURL,e.url);u.open(e.method.toUpperCase(),om(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const h=Zt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};Cw
display: flex;
justify-content: space-between;
margin-top: 22px;
`,Ww=P.div`
display: flex;
& img {
}
`,qw=P.img`
width: 350px;
height: 250px;
`,Vw=P.div`
padding-left: 34px;
& h3 {
font-weight: 600;
font-size: 24px;
color: #222;
}
`,Kw=P.p`
margin-top: 4px;
font-size: 16px;
color: #222;
`,Pf=P.div`
display: flex;
justify-content: space-around;
align-items: center;
width: fit-content;
height: 38px;
border: 1px solid #A9A9A9;
border-radius: 16px;
margin-right: 8px;
padding-right: 8px;
`,Qw=P.div`
display: flex;
margin-top: 10px;
& p {
font-weight: 500;
font-size: 15px;
color: #A9A9A9;
}
`,ar=P.td`
width: fit-content;
padding: 0 5px;
border-right: 1px solid #e1e3e1;
& ${Y} {
display:inline-block;
}
`,Jw=P.div`
width: 500px;
padding-top: 10px;
display: flex
`,Yo=P.div`
width: 32px;
height: 32px;
margin-right: 10px;
user-select: none;
font-weight: 600;
font-size: 16px;
display: flex;
align-items: center;
border: 1px solid black;
border-color: #e2e0e2 #e2e0e2 #d1cfd1;
border-radius: 32px;
box-shadow: 0 1px 1px #00000020;
`,Gw=P.div``,Yw=P(Yo)`
width: fit-content;
background: #E3F0FF;
color: #007EFF;
padding-right: 10px;
`,pm=P.div``,Xw=P.div`
text-align: right;
& ${pm} {
display: flex;
justify-content: end;
align-items: center;
}
`,Nu=P.p`
color: gray;
`,Zw=P(Nu)`
font-size: 16px;
margin-right: 18px
`,e_=P(Nu)`
margin-top: 48px;
font-size: 15px;
line-height: 18px;
word-wrap: break-word;
`,t_=P(Nu)`
margin-top: 48px;
font-size: 15px;
`,n_=e=>l.jsx("svg",{width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e.up?180:0}deg)`,marginRight:4},children:l.jsx("path",{d:"M7 12L13.9282 0H0.0717969L7 12Z",fill:e.up?"tomato":"limegreen"})}),r_=function(e){return l.jsxs(Hw,{children:[l.jsxs(Ww,{children:[l.jsx(qw,{src:"/images/apartment.png"}),l.jsxs(Vw,{children:[l.jsxs("h3",{children:[e.results.perimetrs," м², ",e.results.rooms==0?"":e.results.rooms,e.results.rooms==0?"Гостинка":e.results.rooms>1?"-х комнатная":" комнатная"]}),l.jsxs(Kw,{children:[e.results.address,", ",e.results.floor," этаж из ",e.results.floorHouse]}),l.jsxs(Qw,{children:[l.jsxs(Pf,{children:[l.jsx(Y,{src:"/images/icons/bus.svg",width:20,height:21}),l.jsxs("p",{children:[e.results.timeToBus," мин"]})]}),l.jsxs(Pf,{children:[l.jsx(Y,{src:"/images/icons/train.svg",width:18,height:20}),l.jsxs("p",{children:[e.results.timeToTrain," мин"]})]})]}),l.jsx("div",{style:{height:24}}),l.jsx("table",{children:l.jsxs("tbody",{children:[l.jsxs("tr",{children:[l.jsxs(ar,{children:[l.jsx(Y,{src:"/images/icons/chair.svg"}),l.jsx(Y,{src:"/images/icons/paw.svg"})]}),l.jsxs(ar,{children:[l.jsx(Y,{src:"/images/icons/parking.svg"}),l.jsx(Y,{src:"/images/icons/dish.svg"})]}),l.jsxs(ar,{style:{borderRight:0},children:[l.jsx(Y,{src:"/images/icons/burger.svg"}),l.jsx(Y,{src:"/images/icons/game.svg"})]})]}),l.jsxs("tr",{children:[l.jsxs(ar,{children:[l.jsx(Y,{src:"/images/icons/wifi.svg"}),l.jsx(Y,{src:"/images/icons/paint.svg"})]}),l.jsxs(ar,{children:[l.jsx(Y,{src:"/images/icons/recycle.svg"}),l.jsx(Y,{src:"/images/icons/up-down-arrows.svg"})]}),l.jsxs(ar,{style:{borderRight:0},children:[l.jsx(Y,{src:"/images/icons/store.svg"}),l.jsx(Y,{src:"/images/icons/drugs.svg"})]})]})]})}),l.jsx("div",{style:{height:12}}),l.jsxs(Jw,{children:[l.jsxs(Yw,{children:[l.jsx(Y,{src:"/images/icons/phone.svg",width:16,height:17}),l.jsx(Gw,{children:"Показать телефон"})]}),l.jsx(Yo,{children:l.jsx(Y,{src:"/images/icons/heart.svg",width:18,height:17})}),l.jsx(Yo,{children:l.jsx(Y,{src:"/images/icons/stack.svg",width:18,height:19})}),l.jsx(Yo,{children:l.jsx(Y,{src:"/images/icons/pencil.svg",width:16,height:17})})]})]})]}),l.jsxs(Xw,{children:[l.jsxs(pm,{children:[l.jsx(n_,{up:e.results.lastPrice>e.results.price}),l.jsxs("h3",{children:[e.results.price," ₽"]})]}),l.jsx(Zw,{children:"в месяц"}),l.jsx(e_,{children:e.results.description}),l.jsx(t_,{children:e.results.dateCreate})]})]})},i_=P.li`
border-bottom: 1px solid;
border-image: linear-gradient(to right, transparent 33.5%, #c2c4c2 33.5%) 100% 1;
box-sizing: border-box;
list-style-type: none;
padding: 20px 0;
& section {
margin-top: 0;
}
`;function gm(e){const t=e.list;return t.length==0?null:l.jsx("ul",{children:t.map((n,r)=>l.jsx(i_,{children:l.jsx(r_,{results:n})},r))})}const Xr=e=>{const[t,n]=N.useState(!1),[r,i]=N.useState("");return[async(...s)=>{try{n(!0),await e(...s)}catch(a){i(a.message)}finally{n(!1)}},t,r]},sa=(e,t)=>Math.ceil(e/t),Au=e=>{let t=[];for(let n=0;n<e;n++)t.push(n+1);return t},o_=(e,t)=>{let n=Au(e),r=t!==1?t-1:t,i=t<n.length?t+1:t;return[r,i]},Tf=P(Y)`
margin: 0;
transform: translateY(2px);
`,s_=P.div`
margin: 24px auto;
display: inline-block;
width: 100%;
text-align: center;
`,mi=P.button`
background: #fefefe;
border-radius: 6px;
min-width: 32px;
height: 32px;
transition: 100ms ease;
margin-right: 10px;
font-size: 11pt;
${e=>e.is_active?`
color: royalblue;
font-weight: 600;
border: 1px solid royalblue;
`:""}
&:hover {
background: #f2f2f2;
}
&:active {
background: #eeefee;
}
`,a_=P(mi)`
background: url(/images/icons/dots.svg) no-repeat;
background-position: center;
background-size: 20px;
user-select: none;
&:hover, &:active {
background: url(/images/icons/caret-double-blue.svg) no-repeat;
background-position: center;
background-size: 14px;
}
`,l_=(e,t)=>{if(t<e)throw"Stop value can't be smaller than start value.";let n=[];for(let r=e;r!=t;r++)n.push(r);return n};class aa extends bt.Component{constructor(n){super(n);Ie(this,"props");this.state={value:n.value},this.value_controlled=n.value!=null,this.updateValue=this.updateValue.bind(this)}updateValue(n){this.props.pages!=0&&(n<0&&(n=0),n>this.props.pages&&(n=this.props.pages)),this.props.onChange(n),!this.value_controlled&&this.setState({value:n})}render(){const{pages:n}=this.props;let r=this.state.value;return this.value_controlled&&(r=this.props.value),l.jsxs(s_,{children:[this.props.viewAllButton?l.jsx(mi,{style:{float:"left",padding:"0 16px"},children:"Показать все"}):null,this.props.sideButtons?l.jsx(mi,{onClick:()=>this.updateValue(r-1),children:l.jsx(Tf,{width:"16",height:"16",style:{transform:"rotate(180deg) translateY(-2px)"},src:"/images/icons/caret-right.svg"})}):null,l_(0,n).map((i,o)=>!(o==0|o==n-1)&&o<r-2|o>r+2?o==r-3|o==r+3?l.jsx(a_,{style:{transform:o==r-3?"rotate(180deg)":""},onClick:()=>{o==r-3?this.updateValue(r-3):this.updateValue(r+3)},children:" "}):null:l.jsx(mi,{is_active:r==o,onClick:()=>this.updateValue(o),children:o+1},o)),this.props.sideButtons?l.jsx(mi,{onClick:()=>this.updateValue(r+1),children:l.jsx(Tf,{width:"16",height:"16",src:"/images/icons/caret-right.svg"})}):null]})}}Ie(aa,"defaultProps",{onChange:()=>{},disabled:!1,sideButtons:!0,value:0,styles:{},viewAllButton:!1,onViewAll:()=>{}});const c_=()=>{const[e,t]=N.useState([]),[n,r]=N.useState(0),[i,o]=N.useState(1),[s,a]=N.useState(5),[c,u,d]=Xr(async h=>{let y=(i-1)*h;const _=await Yr.getAll(h,y);t(_.data.results);let C=_.data.count;r(sa(C,h))});N.useEffect(()=>{c(s)},[i,s]);const f=h=>{o(h)},g=()=>{a(n*s),o(1)};return!e.length&&!u&&!d?l.jsx("h1",{style:{textAlign:"center"},children:"В избранном ничего нет :/"}):d?l.jsxs("h1",{style:{textAlign:"center"},children:["Произошла ошибка (",d,")"]}):l.jsxs(l.Fragment,{children:[u&&l.jsx("h1",{style:{textAlign:"center"},children:"Идет загрузка..."}),l.jsx(gm,{list:e}),l.jsx(aa,{value:i,onChange:f,onViewAll:g,viewAllButton:!0,pages:n})]})};const mm=function(e){return l.jsxs("div",{className:"viewedElem",children:[l.jsx("img",{src:"/images/apartment.png",alt:""}),l.jsxs("p",{children:[e.results.perimetrs," м², ",e.results.rooms==0?"":e.results.rooms,e.results.rooms==0?"Гостинка":e.results.rooms>1?"-х комнатная":" комнатная"]}),l.jsxs("h3",{children:[e.results.price,"₽ / мес."]}),l.jsx("p",{children:e.results.address})]})};const Iu=function(){const[e,t]=N.useState([]),[n,r]=N.useState(0),[i,o]=N.useState(1),s=4,[a,c]=N.useState(0),[u,d,f]=Xr(async h=>{let y=(i-1)*h;const _=await Yr.getAll(h,y);t(_.data.results),c(_.data.count),r(sa(a,h))});N.useEffect(()=>{u(s)},[i]);const g=h=>{o(h)};return l.jsx(l.Fragment,{children:l.jsxs("section",{className:"viewedSection",children:[l.jsxs("div",{className:"viewedTittle",children:[l.jsxs("h2",{children:["Недавно просмотренные ",l.jsx("span",{children:a})]}),l.jsxs("div",{className:"viewedBtnSection",children:[l.jsx("button",{className:"btnViewed",children:"Посмотреть все Недавние"}),l.jsxs("div",{className:"viewedBtn",children:[l.jsx("button",{className:"btnPrevious",onClick:()=>g(i!==1?i-1:i),children:l.jsx("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M0.238707 8.62179L6.83881 15.7424C7.15713 16.0859 7.6732 16.0859 7.99148 15.7424L8.76127 14.9119C9.07904 14.5691 9.07965 14.0134 8.76263 13.6698L3.53193 7.99998L8.76263 2.33019C9.07965 1.98655 9.07904 1.43091 8.76127 1.08808L7.99148 0.257567C7.67316 -0.0858556 7.15709 -0.0858556 6.83881 0.257567L0.238741 7.37821C-0.0795746 7.72159 -0.0795746 8.27837 0.238707 8.62179Z",fill:"black"})})}),l.jsx("button",{className:"btnNext",onClick:()=>g(i<Au(n).length?i+1:i),children:l.jsx("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M
display: flex;
justify-content: space-between;
margin-top: 24px;
padding: 0 3% 0 3%;
`,Nf=P.div`
display: flex;
align-items: center;
& h2 {
margin: 0px;
padding: 0px;
margin-left: 31px;
font-size: 24px;
color: #222;
}
`,d_=P.button`
display: flex;
justify-content: space-evenly;
align-items: center;
width: 180px;
height: 36px;
color: #BABABA;
background: #fff;
border: 1px solid #ccc;
border-radius: 12px;
font-size: 15px;
`,Af=P.button`
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 20px;
background: #fff;
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.25);
margin-right: 10px;
`,f_=function({title:e,totalPages:t,page:n,changePage:r,displayPages:i}){let[o,s]=o_(t,n);return l.jsxs(u_,{children:[l.jsxs(Nf,{children:[l.jsx(Mn,{to:"/",children:l.jsxs(d_,{children:[l.jsx(Y,{src:"/images/icons/left-arrow-light.svg",width:10,height:16}),"Вернуться назад"]})}),l.jsx("h2",{children:e})]}),l.jsx(Nf,{children:i?l.jsxs(l.Fragment,{children:[l.jsx(Af,{onClick:()=>r(o),children:l.jsx(Y,{src:"/images/icons/left-arrow.svg",width:9,height:16})}),l.jsx(Af,{onClick:()=>r(s),children:l.jsx(Y,{src:"/images/icons/right-arrow.svg",width:9,height:16})})]}):null})]})},h_=P.div`
width: 20%;
margin-top: 26px;
position:relative;
`,p_=P.img`
width: 100%;
`,g_=P.h3`
margin-top: 16px;
font-weight: 600;
font-size: 20px;
color: #222;
`,m_=P.p`
margin-top: 16px;
font-size: 16px;
color: #0050A1;
`,v_=P.div`
display: flex;
margin-top: 9px;
& p {
font-weight: 500;
font-size: 15px;
color: #A9A9A9;
}
`,If=P.div`
display: flex;
justify-content: space-around;
align-items: center;
width: fit-content;
height: 38px;
border: 1px solid #A9A9A9;
border-radius: 16px;
margin-right: 8px;
padding-right: 8px;
`,y_=P.button`
width: 180px;
height: 36px;
background: #175FA9;
border-radius: 12px;
font-weight: 500;
font-size: 16px;
color: #fff;
position: absolute;
bottom:-62px;
`,x_=function(e){return l.jsxs(h_,{children:[l.jsx(p_,{src:"/images/apartment.png"}),l.jsxs(g_,{children:[e.results.price," ₽ / мес."]}),l.jsx(m_,{children:e.results.address}),l.jsxs(v_,{children:[l.jsxs(If,{children:[l.jsx(Y,{src:"/images/icons/bus.svg",width:20,height:21}),l.jsxs("p",{children:[e.results.timeToBus," мин"]})]}),l.jsxs(If,{children:[l.jsx(Y,{src:"/images/icons/train.svg",width:18,height:20}),l.jsxs("p",{children:[e.results.timeToTrain," мин"]})]})]}),l.jsx(y_,{children:"Показать контакты"})]})},w_=P.section`
display: flex;
justify-content: space-between;
padding-left: 3%;
`,__=P.div`
width: 19%;
`,Ka=P.h3`
font-weight: 600;
font-size: 16px;
display: flex;
align-items: center;
`,Qa=P.div`
margin-top: 86px;
`,Ja=P.p`
margin-left: 3%;
font-weight: 500;
font-size: 16px;
color: rgba(0, 0, 0, 0.5);
`,Ga=P.div`
height: 2px;
margin-top: 8px;
width: 100%;
background-color: #CCC;
`,Ya=P.section`
display: flex;
justify-content: space-between;
margin-left: 3%;
`,me=P.h3`
margin-top: 33px;
font-weight: 600;
font-size: 16px;
`,Xe=P.p`
color: rgba(0, 0, 0, 0.5);
margin-top: 33px;
font-weight: 600;
font-size: 16px;
`,Xa=P.div`
width: 20%;
text-align: center;
`,S_=()=>{const[e,t]=N.useState([]),[n,r]=N.useState(0),[i,o]=N.useState(1),s=4,[a,c,u]=Xr(async f=>{let g=(i-1)*f;const h=await Yr.getAll(f,g);t(h.data.results);let y=h.data.count;r(sa(y,f))});N.useEffect(()=>{a(s)},[i]);const d=f=>{o(f)};return l.jsxs(l.Fragment,{children:[l.jsx(f_,{title:"Сравнения квартир",totalPages:n,page:i,changePage:d,displayPages:!0}),l.jsxs(w_,{children:[l.jsxs(__,{children:[l.jsx(Ka,{style:{height:300},children:"Фото"}),l.jsx(Ka,{style:{height:1},children:"Cтоимость"}),l.jsx(Ka,{style:{height:65},children:"Адрес"})]}),e.map((f,g)=>l.jsx(l.Fragment,{children:l.jsx(x_,{results:f})}))]}),l.jsxs(Qa,{children:[l.jsx(Ja,{children:"Характеристики"}),l.jsx(Ga,{})]}),l.jsxs(Ya,{children:[l.jsxs("div",{children:[l.jsx(me,{children:"Количество комнат"}),l.jsx(me,{children:"Этаж"}),l.jsx(me,{children:"Общая площадь"}),l.jsx(me,{children:"Санузел"})]}),e.map((f,g)=>l.jsxs(Xa,{children:[l.jsx(me,{children:f.rooms===0?"Гостинка":f.rooms}),l.jsxs(me,{children:[f.floor," из ",f.floorHouse]}),l.jsxs(me,{children:[f.perimetrs," м²"]}),l.jsx(Xe,{children:f.isBathroom?"✓":"—"})]}))]}),l.jsxs(Qa,{children:[l.jsx(Ja,{children:"Удобства"}),l.jsx(Ga,{})]}),l.jsxs(Ya,{children:[l.jsxs("div",{children:[l.jsx(me,{children:"Мебель"}),l.jsx(me,{children:"Интернет"}),l.jsx(me,{children:"Телевизор"}),l.jsx(me,{children:"Стиральная машинка"}),l.jsx(me,{children:"Холодильник"}),l.jsx(me,{children:"Кондиционер"}),l.jsx(me,{children:"Можно с детьми"}),l.jsx(me,{children:"Можно с животными"}),l.jsx(me,{children:"Свежий ремонт"})]}),e.map((f,g)=>l.jsxs(Xa,{children:[l.jsx(Xe,{children:f.isFurniture?"✓":"—"}),l.jsx(Xe,{children:f.isInternet?"✓":"—"}),l.jsx(Xe,{children:f.isTelevision?"✓":"—"}),l.jsx(Xe,{children:f.isWasher?"✓":"—"}),l.jsx(Xe,{children:f.isRefrigerator?"✓":"—"}),l.jsx(Xe,{children:f.isAirConditioning?"✓":"—"}),l.jsx(Xe,{children:f.isChild?"✓":"—"}),l.jsx(Xe,{children:f.isAnimal?"✓":"—"}),l.jsx(Xe,{children:f.isFreshRepair?"✓":"—"})]}))]}),l.jsxs(Qa,{children:[l.jsx(Ja,{children:"О здании"}),l.jsx(Ga,{})]}),l.jsxs(Ya,{children:[l.jsxs("div",{children:[l.jsx(me,{children:"Высота потолков"}),l.jsx(me,{children:"Количество этажей"}),l.jsx(me,{children:"Лифт"}),l.jsx(me,{children:"Мусоропровод"}),l.jsx(me,{children:"Закрытая парковка"}),l.jsx(me,{children:"Охрана или консьерж"})]}),e.map((f,g)=>l.jsxs(Xa,{children:[l.jsxs(me,{children:[f.ceilingHeight," м"]}),l.jsx(me,{children:f.floorHouse}),l.jsx(Xe,{children:f.isElevator?"✓":"—"}),l.jsx(Xe,{children:f.isGarbageChute?"✓":"—"}),l.jsx(Xe,{children:f.isParking?"✓":"—"}),l.jsx(Xe,{children:f.isConcierge?"✓":"—"})]}))]})]})},Lf=function(){return l.jsxs(l.Fragment,{children:[l.jsx(S_,{}),l.jsx(Iu,{})]})},j_=function(){const[e,t]=N.useState([]),[n,r]=N.useState(0),[i,o]=N.useState(1),s=4,[a,c]=N.useState(0),[u,d,f]=Xr(async h=>{let y=(i-1)*h;const _=await Yr.getAll(h,y);t(_.data.results),c(_.data.count),r(sa(a,h))});N.useEffect(()=>{u(s)},[i]);const g=h=>{o(h)};return l.jsx(l.Fragment,{children:l.jsxs("section",{className:"viewedSection",children:[l.jsxs("div",{className:"viewedTittle",children:[l.jsxs("h2",{children:["Похожие объявления ",l.jsx("span",{children:a})]}),l.jsxs("div",{className:"viewedBtnSection",children:[l.jsx("button",{className:"btnViewed",children:"Посмотреть все Похожие"}),l.jsxs("div",{className:"viewedBtn",children:[l.jsx("button",{className:"btnPrevious",onClick:()=>g(i!==1?i-1:i),children:l.jsx("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M0.238707 8.62179L6.83881 15.7424C7.15713 16.0859 7.6732 16.0859 7.99148 15.7424L8.76127 14.9119C9.07904 14.5691 9.07965 14.0134 8.76263 13.6698L3.53193 7.99998
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(s==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var c in o)t.call(o,c)&&o[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(vm);var b_=vm.exports;const so=Pn(b_),ym=["xxl","xl","lg","md","sm","xs"],xm="xs",Lu=N.createContext({prefixes:{},breakpoints:ym,minBreakpoint:xm});function la(e,t){const{prefixes:n}=N.useContext(Lu);return e||n[t]||t}function Fu(){const{breakpoints:e}=N.useContext(Lu);return e}function Mu(){const{minBreakpoint:e}=N.useContext(Lu);return e}var Za={exports:{}},el,Ff;function k_(){if(Ff)return el;Ff=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return el=e,el}var tl,Mf;function E_(){if(Mf)return tl;Mf=1;var e=k_();function t(){}function n(){}return n.resetWarningCache=t,tl=function(){function r(s,a,c,u,d,f){if(f!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},tl}var zf;function zu(){return zf||(zf=1,Za.exports=E_()()),Za.exports}zu();function C_({as:e,bsPrefix:t,className:n,...r}){t=la(t,"col");const i=Fu(),o=Mu(),s=[],a=[];return i.forEach(c=>{const u=r[c];delete r[c];let d,f,g;typeof u=="object"&&u!=null?{span:d,offset:f,order:g}=u:d=u;const h=c!==o?`-${c}`:"";d&&s.push(d===!0?`${t}${h}`:`${t}${h}-${d}`),g!=null&&a.push(`order${h}-${g}`),f!=null&&a.push(`offset${h}-${f}`)}),[{...r,className:so(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const wm=N.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:s}]=C_(e);return l.jsx(i,{...r,ref:t,className:so(n,!s.length&&o)})});wm.displayName="Col";const le=wm,_m=N.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...i},o)=>{const s=la(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return l.jsx(n,{ref:o,...i,className:so(r,t?`${s}${a}`:s)})});_m.displayName="Container";const O_=_m,Sm=N.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=la(e,"row"),s=Fu(),a=Mu(),c=`${o}-cols`,u=[];return s.forEach(d=>{const f=r[d];delete r[d];let g;f!=null&&typeof f=="object"?{cols:g}=f:g=f;const h=d!==a?`-${d}`:"";g!=null&&u.push(`${c}${h}-${g}`)}),l.jsx(n,{ref:i,...r,className:so(t,o,...u)})});Sm.displayName="Row";const at=Sm;function P_(e,t=ym,n=xm){const r=[];return Object.entries(e).forEach(([i,o])=>{o!=null&&(typeof o=="object"?t.forEach(s=>{const a=o[s];if(a!=null){const c=s!==n?`-${s}`:"";r.push(`${i}${c}-${a}`)}}):r.push(`${i}-${o}`))}),r}const jm=N.forwardRef(({as:e="div",bsPrefix:t,className:n,direction:r,gap:i,...o},s)=>{t=la(t,r==="horizontal"?"hstack":"vstack");const a=Fu(),c=Mu();return l.jsx(e,{...o,ref:s,className:so(n,t,...P_({gap:i},a,c))})});jm.displayName="Stack";const Dn=jm;var bm={exports:{}};(function(e,t){(function(r,i){e.exports=i(zu(),N)})(Jt,function(n,r){return function(i){var o={};function s(a){if(o[a])return o[a].exports;var c=o[a]={i:a,l:!1,exports:{}};return i[a].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=i,s.c=o,s.d=function(a,c,u){s.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:u})},s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,c){if(1&c&&(a=s(a)),8&c||4&c&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{e
margin-left: 0px;
margin-right: 0px;
`,N_=P.div`
max-width: 800px;
`,A_=P.div`
max-width: 800px;
max-height: 500px;
clip-path: inset(0% 0% 5% 0% round 20px);
`,I_=P.div`
font-size: 15px;
line-height: 18px;
font-weight: 300;
color: #C0C0C0;
margin-bottom: 8px;
display: flex;
align-items: center;
& span {
margin-left: 15px;
font-size: 15px;
line-height: 18px;
font-weight: 300;
color: #C0C0C0;
}
`,L_=P.h3`
font-size: 20px;
line-height: 24px;
font-weight: 500;
margin-bottom: 10px;
`,F_=P.button`
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 20px;
background: #FFFFFF;
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.25);
margin-right: 10px;
`,M_=P.button`
display: flex;
align-items: center;
justify-content: center;
background: #FFFFFF;
width: 201px;
height: 28px;
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
border-radius: 8px;
font-style: normal;
font-weight: 500;
font-size: 14px;
margin-bottom: 12px;
`,Bf=P.div`
background: #E3F0FF;
border-radius: 20px;
padding: 13px 16px 11px 17px;
`,z_=P.p`
font-style: normal;
font-weight: 600;
font-size: 16px;
line-height: 18px;
margin-bottom: 15px;
`,B_=P.h3`
font-size: 15px;
line-height: 18px;
text-align: end;
`,ci=P.div`
height: 1px;
margin-top: 9px;
margin-bottom: 9px;
width: 100%;
background-color: #CCC;
`,nl=P.div`
max-width: 256px;
max-height: 160px;
background: #FFFFFF;
border: 1px solid #C0C0C0;
border-radius: 20px;
padding: 8px;
&:hover {
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.25);
cursor: pointer;
}
`,rl=P.img`
width:100%;
max-height: 120px;
margin-bottom: 4px;
border-radius: 12px;
`,il=P.p`
font-weight: 500;
font-size: 16px;
line-height: 15px;
`,ol=P.span`
font-weight: 500;
font-size: 14px;
line-height: 17px;
color: #BABABA;
`,U_=P.h3`
font-weight: 600;
font-size: 20px;
line-height: 24px;
padding-left: 0px;
margin-top: 35px;
margin-bottom: 10px;
`,$_=P.p`
font-weight: 500;
font-size: 15px;
line-height: 18px;
`,Uf=P.button`
background: #007EFF;
border-radius: 12px;
height: 36px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-weight: 500;
font-size: 16px;
line-height: 19px;
color: #FFFFFF;
&:hover {
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.25);
cursor: pointer;
}
`,D_=P.button`
border-radius: 12px;
background: #2348CC;
height: 36px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-weight: 500;
font-size: 16px;
line-height: 19px;
color: #FFFFFF;
&:hover {
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.25);
cursor: pointer;
}
`,H_=P.input`
border: 1px solid #CCCCCC;
border-radius: 12px;
height: 36px;
width: 100%;
font-weight: 500;
font-size: 15px;
line-height: 18px;
padding-left: 46px;
&::placeholder {
font-weight: 500;
font-size: 15px;
line-height: 18px;
color: #CCCCCC;
}
`,W_=P.div`
align-items: center;
justify-content: center;
text-align: center;
`,Em=P.p`
font-weight: 500;
font-size: 20px;
line-height: 24px;
color: #000000;
`,xc=P(Em)`
font-size: 15px;
line-height: 18px;
`,q_=P.p`
font-weight: 300;
font-size: 16px;
line-height: 24px;
color: #C0C0C0;
`,V_=P.div`
position: relative;
& input {
padding-left: 30px;
background-image: url("/images/icons/pencil-gray.svg");
background-size: 16px 16px;
background-repeat: no-repeat;
background-position: 8px 0.6rem;
}
`,$f=P.table`
margin-left: 15px;
width: 100%;
& td {
padding-top: 19px;
}
`,lr=e=>l.jsxs(at,{children:[l.jsx(le,{xs:e.columnsize,children:l.jsx(z_,{children:e.title})}),l.jsx(le,{className:"end",children:l.jsx(B_,{children:e.price})})]}),sl=e=>l.jsx(le,{children:l.jsxs(W_,{children:[l.jsx(Em,{children:e.params}),l.jsx(q_,{children:e.title})]})}),al=e=>l.jsxs(at,{style:{marginBottom:16},children:[l.jsx(le,{xs:2,className:"d-flex justify-content-center",children:l.jsx(zt,{src:e.icon,width:e.width,height:e.height})}),l.jsx(le,{children:l.jsx(xc,{children:e.text})})]}),In=e=>l.jsxs(at,{children:[l.jsx(le,{xs:1,children:l.jsx(zt,{src:e.iconFirst,width:20,height:20})}),l.jsx(le,{xs:5,children:l.jsx(xc,{children:e.textFirst})}),l.jsx(le,{xs:1,children:l.jsx(zt,{src:e.iconSecond,width:20,height:20})}),l.jsx(le,{xs:5,children:l.jsx(xc,{children:e.textSecond})})]}),K_=function(){const t=Qy().id,[n,r]=N.useState([]),[i,o,s]=Xr(async a=>{const c=await Yr.getById(a);r(c.data)});return N.useEffect(()=>{i(t)},[]),l.jsx(O_,{fluid:"xl",style:{marginBottom:50,marginTop:50},children:l.jsxs(at,{children:[l.jsx(le,{xs:8,children:l.jsx(Dn,{children:l.jsxs(N_,{children:[l.jsx(A_,{children:l.jsxs(km,{cssModule:R_,bullets:!1,children:[l.jsx("div",{"data-src":"/images/house-s.jpg"}),l.jsx("div",{"data-src":"/images/house-s-2.jpg"})]})}),l.jsxs(at,{children:[l.jsx(le,{xs:4,children:l.jsxs(nl,{children:[l.jsx(rl,{src:"/images/plan.png"}),l.jsx(il,{children:"Планировка"}),l.jsx(ol,{children:"Схема помещений"})]})}),l.jsx(le,{xs:4,children:l.jsxs(nl,{children:[l.jsx(rl,{src:"/images/location.png"}),l.jsx(il,{children:"Расположение"}),l.jsx(ol,{children:"Показать на карте"})]})}),l.jsx(le,{xs:4,children:l.jsxs(nl,{children:[l.jsx(rl,{src:"/images/panorama.png"}),l.jsx(il,{children:"Панорама"}),l.jsx(ol,{children:"Обзор вокруг"})]})})]}),l.jsxs("div",{children:[l.jsx(U_,{children:"Описание"}),l.jsx($_,{children:n.description})]}),l.jsx(j_,{}),l.jsx(Iu,{})]})})}),l.jsx(le,{xs:4,children:l.jsxs(Dn,{children:[l.jsx("div",{style:{marginBottom:12},children:l.jsxs(I_,{children:[n.dateCreate," ",l.jsx("span",{children:"78"})," ",l.jsx(zt,{style:{marginLeft:5},src:"/images/icons/eye.svg",width:16,height:10})]})}),l.jsxs(L_,{children:[n.perimetrs," м², ",n.rooms==0?"":n.rooms,n.rooms==0?"Гостинка":n.rooms>1?"-х комнатная":" комнатная"]}),l.jsx("div",{children:l.jsxs(at,{children:[l.jsx(le,{xs:10,children:l.jsxs("h1",{style:{marginBottom:12},children:[n.price," ₽ / мес."]})}),l.jsx(le,{xs:2,children:l.jsx(F_,{children:l.jsx(zt,{src:"/images/icons/heart.svg",width:18,height:16})})})]})}),l.jsxs(M_,{children:[l.jsx(zt,{style:{marginRight:5},src:"/images/icons/stats.svg",width:16,height:12}),"Добавить к сравнению"]}),l.jsxs(Bf,{children:[l.jsxs(Dn,{children:[l.jsx(lr,{columnsize:9,title:"Оплата в первый месяц",price:`${n.price} `}),l.jsx(lr,{columnsize:9,title:"Залог",price:`${n.bail} `}),l.jsx(lr,{columnsize:9,title:"Комиссия агенству",price:`${n.agencyCommission} `}),l.jsx(lr,{columnsize:9,title:"Коммун. услуги",price:`${n.utilitiesPrice}`})]}),l.jsx(ci,{}),l.jsxs(Dn,{children:[l.jsx(lr,{columnsize:8,title:"Итого",price:`${n.price+n.bail+n.agencyCommission} + КУ`}),l.jsx(lr,{columnsize:9,title:"Мин. срок аренды",price:`${n.minimumLeasePeriod} мес.`})]})]}),l.jsxs(at,{style:{marginTop:14},children:[l.jsx(le,{xs:7,children:l.jsxs(Uf,{children:[l.jsx(zt,{style:{marginRight:5},src:"/images/icons/two-people.svg",width:20,height:16}),"Снимать вдвоём"]})}),l.jsx(le,{children:l.jsxs(Uf,{children:[l.jsx(zt,{style:{marginRight:5},src:"/images/icons/people.svg",width:14,height:16}),"Снять"]})})]}),l.jsxs(D_,{style:{marginTop:12},children:[l.jsx(zt,{style:{marginRight:5},src:"/images/icons/phone-white.svg",width:16,height:16}),"Показать телефон +7 (xxx) xxx-xx-xx"]}),l.jsx(V_,{children:l.jsx(H_,{style:{marginTop:12},placeholder:"Добавить заметку"})}),l.jsx(ci,{style:{marginTop:17}}),l.j
@keyframes `.concat(r,` {
`).concat(t,`
}
`);return o&&o.insertRule(s,0),r},Os;(function(e){e.maroon="#800000",e.red="#FF0000",e.orange="#FFA500",e.yellow="#FFFF00",e.olive="#808000",e.green="#008000",e.purple="#800080",e.fuchsia="#FF00FF",e.lime="#00FF00",e.teal="#008080",e.aqua="#00FFFF",e.blue="#0000FF",e.navy="#000080",e.black="#000000",e.gray="#808080",e.silver="#C0C0C0",e.white="#FFFFFF"})(Os||(Os={}));var G_=function(e,t){if(Object.keys(Os).includes(e)&&(e=Os[e]),e[0]==="#"&&(e=e.slice(1)),e.length===3){var n="";e.split("").forEach(function(i){n+=i,n+=i}),e=n}var r=(e.match(/.{2}/g)||[]).map(function(i){return parseInt(i,16)}).join(", ");return"rgba(".concat(r,", ").concat(t,")")},Ps=globalThis&&globalThis.__assign||function(){return Ps=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ps.apply(this,arguments)},Y_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ao(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,i=r===void 0?"#000000":r,o=e.speedMultiplier,s=o===void 0?1:o,a=e.cssOverride,c=a===void 0?{}:a,u=e.size,d=u===void 0?50:u,f=Y_(e,["loading","color","speedMultiplier","cssOverride","size"]),g=Cm(d),h=g.value,y=g.unit,_=Ps({display:"inherit",position:"relative",width:Oo(d),height:Oo(d),transform:"rotate(165deg)"},c),C=h/5,w=(h-C)/2,m=w-C,p=G_(i,.75),x=Hf("HashLoader","0% {width: ".concat(C,"px; box-shadow: ").concat(w,"px ").concat(-m,"px ").concat(p,", ").concat(-w,"px ").concat(m,"px ").concat(p,`}
35% {width: `).concat(Oo(d),"; box-shadow: 0 ").concat(-m,"px ").concat(p,", 0 ").concat(m,"px ").concat(p,`}
70% {width: `).concat(C,"px; box-shadow: ").concat(-w,"px ").concat(-m,"px ").concat(p,", ").concat(w,"px ").concat(m,"px ").concat(p,`}
100% {box-shadow: `).concat(w,"px ").concat(-m,"px ").concat(p,", ").concat(-w,"px ").concat(m,"px ").concat(p,"}"),"before"),j=Hf("HashLoader","0% {height: ".concat(C,"px; box-shadow: ").concat(m,"px ").concat(w,"px ").concat(i,", ").concat(-m,"px ").concat(-w,"px ").concat(i,`}
35% {height: `).concat(Oo(d),"; box-shadow: ").concat(m,"px 0 ").concat(i,", ").concat(-m,"px 0 ").concat(i,`}
70% {height: `).concat(C,"px; box-shadow: ").concat(m,"px ").concat(-w,"px ").concat(i,", ").concat(-m,"px ").concat(w,"px ").concat(i,`}
100% {box-shadow: `).concat(m,"px ").concat(w,"px ").concat(i,", ").concat(-m,"px ").concat(-w,"px ").concat(i,"}"),"after"),b=function(k){return{position:"absolute",top:"50%",left:"50%",display:"block",width:"".concat(h/5).concat(y),height:"".concat(h/5).concat(y),borderRadius:"".concat(h/10).concat(y),transform:"translate(-50%, -50%)",animationFillMode:"none",animation:"".concat(k===1?x:j," ").concat(2/s,"s infinite")}};return n?N.createElement("span",Ps({style:_},f),N.createElement("span",{style:b(1)}),N.createElement("span",{style:b(2)})):null}var Om={exports:{}};(function(e,t){(function(r,i){e.exports=i(zu(),N)})(Jt,function(n,r){return function(i){var o={};function s(a){if(o[a])return o[a].exports;var c=o[a]={i:a,l:!1,exports:{}};return i[a].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=i,s.c=o,s.d=function(a,c,u){s.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:u})},s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,c){if(1&c&&(a=s(a)),8&c||4&c&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),2&c&&typeof a!="string")for(var d in a)s.d(u,d,function(f){return a[f]}.bind(null,d));return u},s.n=function(a){var c=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(c,"a",c),c},s.o=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)},s.p="",s(s.s=6)}([function(i,o,s){function a(f,g){for(var h=0;h<g.length;h++){var y=g[h];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(f,y.key,y)}}s.d(o,"a",function(){return c}),s.d(o,"b",function(){return u}),s.d(o,"c",function(){return d});var c=function(){function f(){(function(h,y){if(!(h instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),typeof window<"u"&&(this.image=new Image,this.resolve=null,this.video=document.createElement("video"),this.events())}return function(h,y,_){return y&&a(h.prototype,y),_&&a(h,_),h}(f,[{key:"events",value:function(){var h=this;this.video.addEventListener("loadeddata",function(){return h.resolve&&h.resolve(!0)}),this.video.addEventListener("loadeddata",function(){return h.resolve&&h.resolve(!1)}),this.image.onload=function(){return h.resolve&&h.resolve(!0)},this.image.onerror=function(){return h.resolve&&h.resolve(!1)}}},{key:"load",value:function(h){var y=this;return new Promise(function(_){h||_(!0),y.resolve=_,y.loading=!0,y.ended=!1,h.match(/\.(mp4|webm)/i)&&y.video.setAttribute("src",h),h.match(/\.(png|jp(e)?g|gif|webp)/i)&&(y.image.src=h,(y.image.width>0||y.image.height>0)&&_(!0))})}},{key:"loadImage",value:function(h){var y=this,_=new Image,C=!1;_.onload=function(){C||y.pumpLoaded()},_.onerror=function(){C||y.pumpLoaded()},_.src=h,C===!1&&(_.width>0||_.height>0)&&(C=!0,this.pumpLoaded())}},{key:"loadVideo",value:function(h){var y=this,_=document.createElement("video");_.addEventListener("loadeddata",function(){y.pumpLoaded()}),_.addEventListener("error",function(){y.pumpLoaded()}),_.setAttribute("src",h)}},{key:"pumpLoaded",value:function(){this.loaded+=1,this.loaded===this.toLoad&&this.resolver(!0)}},{key:"startLoad",value:function(h){h.match(/\.(mp4|webm)/i)&&this.loadVideo(h),h.match(/\.(png|jp(e)?g|gif|webp)/i)&&this.loadImage(h)}},{key:"loadMultiple",value:function(h){var y=this;return this.loaded=0,this.toLoad=h.length,new Promise(function(_){y.resolver=_,h.forEach(function(C){y.startLoad(C)})})}}]),f}();function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1?arguments[1]:void 0;if(!g)return f.join(" ").trim();for(var h=[],y=f.length;y--;)g[f[y]]&&h.push(g[f[y]]);return h}function d(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",g=arguments.length>1?arguments[1]:void 0;return g&&g[f]||f}},function(i,o,s){s.d(o,"a",function(){return g}),s.d(o,"b",function(){return h}),s.d(o,"c",function(){return y}),s.d(o,"e",function(){return
padding: 6px 10px;
border: 1px solid #c2c4c2;
border-radius: 6px;
box-shadow: 0 2px 2px #00000010
`,Po=P(Y)`
margin-left:0;
`,rS=P.p`
font-size: 20pt;
font-weight: 600;
text-align: center;
margin: 32px 0;
text-shadow: 0 2px 1px #00000020;
`,iS=P.div`
background: url(/images/filter.png);
height: 300px;
width: 1150px;
margin: 0 auto;
margin-bottom: 60px;
border-radius: 20px;
box-shadow: 0 2px 12px #00000060;
padding: 30px;
text-shadow: 0 2px 16px #ffffffa0;
`,oS=P.div`
display: block;
margin: 12px 0;
`,wc=P.button`
width: fit-content;
height: 27px;
display: inline-block;
margin-right: 16px;
border-radius: 10px;
padding: 0 16px;
box-shadow: 0 2px 16px #ffffff30;
color: ${e=>e.active?"green":"black"};
box-sizing: border-box;
${e=>e.active?"font-weight: 600;":""}
`,sS=P.h1`
font-size: 16pt;
color: #f0f4f0;
user-select: none;
padding-bottom: 6px;
border-bottom: 1px solid #f0f2f060;
margin-bottom: 20px; padding-bottom: 1px
`,aS=P(wc)`
float: right;
color: darkred;
margin-right: 0;
`,lS=P.button`
background: royalblue;
padding: 10px;
border-radius: 8px;
color: #f9f9f9;
width: 180px;
&:disabled {
background: #3a5dc8;
}
`,cS=P.div`
background: #f2f3f2;
border-radius: 12px;
width: 100%;
height: 56px;
margin: 12px 0;
font-weight: 400;
padding: 0 16px
`,uS=P.div`
display: flex;
align-items: center
`,ll=P.div`
height: 55px;
width: 1px;
border-left: 1px solid #c1c3c1;
display: inline-block;
margin: 0 20px
`,ui=P.input`
border: 0; background: 0;
margin: 0 16px;
margin-right: 0;
font-size: 105%;
width: 30px;
outline: none;
`,dS=P.div`
width: 1150px;
margin: 50px auto
`,Wf=P.h3`
font-weight: 500;
margin: 48px 0;
text-align: center;
`,fS=P.div`
filter: drop-shadow(0 2px 8px #00000060);
clip-path: inset(0% 0% 0% 0% round 16px);
& .awssld, .awssld__container {
width: 1150px;
height: 200px;
}
`,hS=e=>{const t=[{value:0,label:"Гостинка"},{value:1,label:"1 комната"},{value:2,label:"2 комнаты"},{value:3,label:"3 комнаты"},{value:4,label:"4 комнаты"},{value:-1,label:"Выберите"}],n={per_day:!1,per_month:!0,area_from:"",area_to:"",price_from:"",price_to:"",address:"",rooms:t[5],form_err:!1};let r=window.sessionStorage.getItem("pairent_filters");r&&(r=JSON.parse(r));const[i,o]=N.useState(r||n),s=c=>(window.sessionStorage.setItem("pairent_filters",JSON.stringify({...i,...c})),o({...i,...c})),a=()=>{let c=new Q_;c.address=i.address,c.area_range={from:i.area_from,to:i.area_to},c.price_range={from:i.price_from,to:i.price_to},i.per_day&&c.lease_period.push("day"),i.per_month&&c.lease_period.push("month"),i.rooms.value!=-1&&(c.rooms=i.rooms.value),e.onSubmit&&e.onSubmit(c)};return l.jsxs(iS,{children:[l.jsx(sS,{children:"Фильтры"}),l.jsxs(oS,{children:[l.jsxs(wc,{active:i.per_day?1:0,onClick:()=>s({per_day:!i.per_day}),children:[l.jsx(Po,{src:"/images/icons/calendar-day.svg",width:"14",height:"14"}),"Посуточно"]}),l.jsxs(wc,{active:i.per_month?1:0,onClick:()=>s({per_month:!i.per_month}),children:[l.jsx(Po,{src:"/images/icons/calendar.svg",width:"14",height:"14"}),"Ежемесячно"]}),l.jsxs(aS,{onClick:()=>s(n),children:[l.jsx(Po,{src:"/images/icons/eraser-fill.svg",width:"14",height:"14"}),"Сбросить"]})]}),l.jsx(cS,{children:l.jsxs(uS,{children:["Площадь",l.jsx("span",{style:{color:"gray",paddingLeft:10},children:" от "}),l.jsx(ui,{type:"text",placeholder:"—",maxLength:"3",value:i.area_from,onChange:c=>s({area_from:c.target.value})}),l.jsx("span",{style:{color:"gray",paddingLeft:10},children:" до "}),l.jsx(ui,{type:"text",placeholder:"—",maxLength:"3",value:i.area_to,onChange:c=>s({area_to:c.target.value})}),"м²",l.jsx(ll,{}),l.jsx(nS,{onChange:c=>s({rooms:t[c.target.value]??t[5]}),value:i.rooms.value,children:t.map((c,u)=>l.jsx("option",{value:c.value,label:c.label},u))}),l.jsx(ll,{}),"Цена",l.jsx("span",{style:{color:"gray",paddingLeft:6},children:" от "}),l.jsx(ui,{type:"text",placeholder:"—",value:i.price_from,onChange:c=>s({price_from:c.target.value}),style:{width:60}}),l.jsx("span",{style:{color:"gray",paddingLeft:6},children:" до "}),l.jsx(ui,{type:"text",placeholder:"—",value:i.price_to,onChange:c=>s({price_to:c.target.value}),style:{width:60}}),"₽",l.jsx(ll,{}),l.jsx(ui,{type:"text",placeholder:"Район, квартал, ж/д, индекс...",value:i.address,onChange:c=>s({address:c.target.value}),style:{width:300,marginLeft:0}})]})}),l.jsx("div",{style:{float:"right"},children:l.jsx(lS,{onClick:a,disabled:e.loading,children:e.loading?l.jsxs(l.Fragment,{children:[l.jsx(ao,{color:"#a1adb3",cssOverride:{marginRight:6,transform:"translate(-3px, 2px) scale(1.3)"},size:14}),"Загрузка данных..."]}):l.jsxs(l.Fragment,{children:[l.jsx(Po,{src:"/images/icons/search.svg",width:"14",height:"14"}),"Показать варианты"]})})})]})};class pS extends bt.Component{constructor(t){super(t),this.state={apartments:[],pageSize:10,page:1,data_loaded:!1,load_err:!1,loading_filters:!1},Yr.getAll(100).then(n=>{this.setState({apartments:n.data.results,data_loaded:!0})}).catch(n=>{this.setState({data_loaded:!0,apartments:[],load_err:n.message})}),this.filterData=this.filterData.bind(this)}async filterData(t){this.setState({loading_filters:!0});const r=await(await fetch(tS+"/api/apartaments/filters/",{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).catch(i=>console.error(i))).json();this.setState({apartments:r,data_loaded:!0,loading_filters:!1,load_err:!1})}render(){let{page:t,pageSize:n}=this.state,r=Math.floor(this.state.apartments.length/n),i=this.state.apartments.slice(t*n,t*n+n);return l.jsxs(dS,{children:[l.jsx(fS,{children:l.jsxs(eS,{play:!0,cancelOnInteraction:!1,interval:8e3,bullets:!1,children:[l.jsx("a",{href:"https://vvsu.ithub.ru/dod","data-src":"/images/OpenDoorDay.jpg"}),l.jsx("div",{"data-src":"/images/Business.jpg"})]})}),l.jsxs(rS,{children:["Выбор
box-shadow: 0 2px 1px #00000010;
border: 1px solid #c2c4c2;
border-radius: 14px;
`,_S=P.button`
border: 1px solid #c2c4c2;
display: inline-block;
padding: 12px 16px;
border-radius: 14px;
background: #ffffff;
color: gray;
box-shadow: 0 2px 1px #00000010;
font-size: 12pt;
float: left;
& ${Y} {
transform: translate(-4px, 2px)
}
`,SS=P.div`
text-align: center;
height: 100px;
padding-top: 32px;
z-index: 1;
position: relative;
top: 0;
& h2 {
font-weight: 600;
text-align: center;
padding: 0;
display: inline-block;
transform: translateY(6px);
}
`,jS=P.div`
display: inline-block;
float: right
`,qf=P(Pm)`
display: inline-block;
border: 1px solid #c2c4c2;
border-radius: 14px;
padding: 6px 10px;
margin: 0 12px;
font-size: 11pt;
width: 160px;
& input[type=text] {
margin: 0 8px;
display: inline-block;
width: 20px;
border: 0;
border-bottom: 1px solid gray;
outline: none;
padding-bottom: 2px;
}
`,Vf=P.div`
border-top: 1px solid #c2c4c2;
margin-top: 6px;
padding-top: 8px;
font-size: 10pt;
transform: translate(4px)
`,bS=P.button`
background: royalblue;
width: 40px;
height: 40px;
border-radius: 20px;
float: right;
margin: 0 10px;
box-shadow: 0 2px 1px #00000020;
transition: 250ms ease;
transform: translateY(12px);
&:hover {
box-shadow: 0 2px 2px #00000060;
}
`,kS=P.div`
margin: 32px auto;
margin-bottom: 0;
display: block;
`,Tm=P.button`
background: white;
border: 2px solid royalblue;
border-radius: 12px;
color: royalblue;
font-weight: 600;
line-height: 20px;
transition: 150ms ease;
width: 100%;
font-size: 10.5pt;
height: 36px;
opacity: 0;
padding: 0px 10px;
clip-path: border-box;
box-sizing: border-box;
& svg {
fill: royalblue;
margin: 0;
margin-right: 6px;
transform: translateY(2px);
}
&:hover {
color: white;
background: royalblue;
}
&:hover svg {
fill: white
}
`,ES=y1`
0%, 50% {
opacity: 0;
transform: scale(1.05)
}
to {
opacity: 1;
transform: scale(1)
}
`,CS=P(Pm)`
display: inline-block;
padding: 10px;
padding-top: 20px;
background: white;
width: 200px;
height: 256px;
margin-right: 20px;
margin-bottom: 84px;
text-align: center;
animation: ${ES} 500ms ease;
& h4 {
margin: 10px 0;
font-weight: 600;
}
& p {
margin: 10px 0;
height: 74px;
color: gray;
font-size: 10pt;
}
transition: 150ms ease;
&:hover > ${Tm} {
opacity: 1;
padding: 6px 10px;
}
&:hover {
height: 300px;
margin-bottom: 40px;
}
`,OS=P.div`
height: 0px;
`,Rm=P.div`
float: left;
transform: translate(90%, -100%);
background: lightgray;
border: 3px solid white;
border-radius: 100px;
width: 36px; height: 36px;
`,PS=P(Rm)`
float: right;
transform: translate(-75%, -100%);
background: limegreen;
& p {
transform: translateY(6px);
font-size: 11pt;
font-weight: 600;
color: white;
text-shadow: 0 2px 1px #00000040;
margin: 0;
height: auto;
}
`,TS=P.h2`
text-align: center;
line-height: 3.5em;
margin: 0;
padding: 100px 0;
& span {
display: inline;
margin: 0px auto
}
`;class RS extends bt.Component{constructor(n){super(n);Ie(this,"props")}render(){return l.jsxs("div",{children:["123",this.props.value.map(n=>l.jsxs(CS,{children:[l.jsx(Y,{src:"/images/icons/user.svg",width:"100",height:"100"}),l.jsxs(OS,{children:[l.jsx(Rm,{children:l.jsx(Y,{src:"/images/icons/question.svg",style:{margin:"5px 0"},width:"20",height:"20"})}),l.jsx(PS,{children:l.jsx("p",{children:"?"})})]}),l.jsx("h4",{className:"inner-element",children:"User, 0"}),l.jsx("p",{children:"No description provided."}),l.jsxs(Tm,{children:[l.jsx(wS,{}),"Перейти в чат"]})]}))]})}}class NS extends bt.Component{constructor(t){super(t),this.state={data:[{}],loading:!1}}componentDidMount(){}render(){return l.jsxs(kS,{children:[l.jsxs("h2",{style:{textAlign:"center",lineHeight:"11pt",marginBottom:32},children:["Выбери соседа",l.jsx("br",{}),l.jsx("br",{}),l.jsxs("span",{style:{fontSize:"11pt",fontWeight:500},children:["Не забывай, с этим человеком",l.jsx("br",{}),"придется жить бок-о-бок!"]})]}),this.state.loading?l.jsx(RS,{value:this.state.data}):l.jsxs(TS,{children:["Пожалуйста подождите, идет загрузка данных",l.jsx("br",{}),l.jsx(ao,{color:"#0077aa"})]})]})}}class AS extends bt.Component{render(){return l.jsxs(jS,{children:[l.jsxs(qf,{children:["Совместимость",l.jsxs(Vf,{children:["от",l.jsx("input",{type:"text"}),"до",l.jsx("input",{type:"text"})]})]}),l.jsxs(qf,{children:["Возраст",l.jsxs(Vf,{children:["от",l.jsx("input",{type:"text"}),"до",l.jsx("input",{type:"text"})]})]}),l.jsx(bS,{children:l.jsx(Y,{src:"/images/icons/search.svg",width:"18",height:"18"})})]})}}class IS extends bt.Component{constructor(t){super(t),this.state={}}render(){return l.jsxs(l.Fragment,{children:[l.jsxs(SS,{children:[l.jsxs(_S,{children:[l.jsx(Y,{src:"/images/icons/left-arrow-light.svg",width:10,height:16}),"Вернуться назад"]}),l.jsx(AS,{})]}),l.jsxs("div",{style:{transform:"translateY(-100px)",position:"relative",top:0,zIndex:0},children:[l.jsx(NS,{}),l.jsx(aa,{pages:0})]})]})}}const LS=P.button`
background: white;
border: 2px solid royalblue;
border-radius: 12px;
color: royalblue;
font-weight: 600;
line-height: 20px;
transition: 150ms ease;
width: 100%;
font-size: 10.5pt;
height: 36px;
padding: 6px 10px;
clip-path: border-box;
box-sizing: border-box;
& svg {
fill: royalblue;
margin: 0;
margin-right: 6px;
transform: translateY(2px);
}
&:hover {
color: white;
background: royalblue;
}
&:hover svg {
fill: white
}
`,Nm=P.div`
position: fixed;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
border: 1px solid #c2c4c2;
border-radius: 12px;
padding: 24px 36px;
background: white;
box-shadow: 0 2px 1px #00000010;
text-align: center;
& hr {
margin-bottom: 24px;
height: 0px;
border: 0;
border-bottom: 1px solid #c2c4c2;
box-shadow: 0 2px 1px #c2c4c280;
}
`;function FS(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Am={exports:{}};const MS={},zS=Object.freeze(Object.defineProperty({__proto__:null,default:MS},Symbol.toStringTag,{value:"Module"})),BS=Qm(zS);(function(e,t){(function(n,r){e.exports=r()})(Jt,function(){var n=n||function(r,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof Jt<"u"&&Jt.crypto&&(o=Jt.crypto),!o&&typeof FS=="function")try{o=BS}catch{}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function m(){}return function(p){var x;return m.prototype=p,x=new m,m.prototype=null,x}}(),c={},u=c.lib={},d=u.Base=function(){return{extend:function(m){var p=a(this);return m&&p.mixIn(m),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var p in m)m.hasOwnProperty(p)&&(this[p]=m[p]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=u.WordArray=d.extend({init:function(m,p){m=this.words=m||[],p!=i?this.sigBytes=p:this.sigBytes=m.length*4},toString:function(m){return(m||h).stringify(this)},concat:function(m){var p=this.words,x=m.words,j=this.sigBytes,b=m.sigBytes;if(this.clamp(),j%4)for(var k=0;k<b;k++){var O=x[k>>>2]>>>24-k%4*8&255;p[j+k>>>2]|=O<<24-(j+k)%4*8}else for(var M=0;M<b;M+=4)p[j+M>>>2]=x[M>>>2];return this.sigBytes+=b,this},clamp:function(){var m=this.words,p=this.sigBytes;m[p>>>2]&=4294967295<<32-p%4*8,m.length=r.ceil(p/4)},clone:function(){var m=d.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var p=[],x=0;x<m;x+=4)p.push(s());return new f.init(p,m)}}),g=c.enc={},h=g.Hex={stringify:function(m){for(var p=m.words,x=m.sigBytes,j=[],b=0;b<x;b++){var k=p[b>>>2]>>>24-b%4*8&255;j.push((k>>>4).toString(16)),j.push((k&15).toString(16))}return j.join("")},parse:function(m){for(var p=m.length,x=[],j=0;j<p;j+=2)x[j>>>3]|=parseInt(m.substr(j,2),16)<<24-j%8*4;return new f.init(x,p/2)}},y=g.Latin1={stringify:function(m){for(var p=m.words,x=m.sigBytes,j=[],b=0;b<x;b++){var k=p[b>>>2]>>>24-b%4*8&255;j.push(String.fromCharCode(k))}return j.join("")},parse:function(m){for(var p=m.length,x=[],j=0;j<p;j++)x[j>>>2]|=(m.charCodeAt(j)&255)<<24-j%4*8;return new f.init(x,p)}},_=g.Utf8={stringify:function(m){try{return decodeURIComponent(escape(y.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return y.parse(unescape(encodeURIComponent(m)))}},C=u.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=_.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var p,x=this._data,j=x.words,b=x.sigBytes,k=this.blockSize,O=k*4,M=b/O;m?M=r.ceil(M):M=r.max((M|0)-this._minBufferSize,0);var z=M*k,H=r.min(z*4,b);if(z){for(var te=0;te<z;te+=k)this._doProcessBlock(j,te);p=j.splice(0,z),x.sigBytes-=H}return new f.init(p,H)},clone:function(){var m=d.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});u.Hasher=C.extend({cfg:d.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var p=this._doFinalize();return p},blockSize:16,_createHelper:function
font-size: 11pt;
width: 250px;
height: 60px;
padding: 16px 20px;
font-size: 11.5pt;
font-weight: 700;
cursor: ${e=>e.disabled?"default":"pointer"};
& svg {
height: 14pt;
transform: translateY(4px);
margin-left: 10px;
}
&:hover {
background: ${e=>e.disabled?"white":"royalblue"};
}
`,Xf=P.p`
font-size: 8pt;
color: gray;
margin-top: 16px;
`,Nj=()=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 451.5 155.9",children:l.jsx("path",{fillRule:"evenodd",d:"M408.7 0h42.8L416 102.5l-2.8 8.1c-8.2 23.9-33.9 43.6-58 45.2h-.6c-.8.1-1.6.1-2.5.1H348c-.8 0-1.6 0-2.4-.1h-43l15.7-45.2.3-.8h35.7c9.1 0 19.2-7.8 22.5-17.2l.4-1 1.2-3.5h-32.7c-4.4 0-19.5 0-13.1-18.5l4.4-12.9 3.9-11.2L356.5 0H393l-21.7 62.8H387c2.6-7.5 15.8-45.6 21.7-62.8zm-91.2 0h25.9l-15.7 45.3h-7c-9.6 0-20.1 7.9-23.5 17.4L265 155.9c-.5 0-1-.1-1.5-.1h-43l15.8-45.2 7.8-22.6 14.8-42.5c8.3-24.1 34.4-44 58.6-45.2V0zM208 0h48.7l-20.1 58.1c-3.2 9.1-9.4 15.2-19.4 17.2l16.8.1-12.3 35.2c-8.2 23.9-33.9 43.6-58 45.2h-.7c-.8.1-1.6.1-2.5.1h-4.1c-.8 0-1.6 0-2.4-.1h-43l38.2-110.4c8.4-24.1 34.4-44 58.7-45.2l.1-.2zm-12.7 40.8h15.4l-8.1 23h-23.9l4.4-12.5c1.7-4.6 7.3-10.5 12.2-10.5zm-25.6 48.8H194l-5.5 16.1c-1.1 3.4-6.1 10.8-13.6 10.8h-14.1l8.9-26.9zM96.9 0h48.7l-20.2 58.1c-3.2 9.1-9.4 15.2-19.4 17.2l16.8.1-9.3 27.1h-.2l-2.8 8.1c-8.2 23.9-33.9 43.6-58 45.2h-.6c-.8.1-1.7.1-2.5.1h-4.1c-.8 0-1.6 0-2.4-.1H0l15.7-45.2L23.6 88l14.7-42.5C46.7 21.4 72.7 1.5 97 .3V0zM84.2 40.8h15.4l-8.1 23H67.6L72 51.3c1.7-4.6 7.3-10.5 12.2-10.5zM58.6 89.6h24.3l-5.5 16.1c-1.1 3.4-6.1 10.8-13.5 10.8H49.7l8.9-26.9z",clipRule:"evenodd"})});class Aj extends bt.Component{constructor(t){super(t),this.state={loading:!1,error:JSON.parse(window.localStorage.getItem("auth_fail"))},window.localStorage.removeItem("auth_fail"),this.openid=this.openid.bind(this)}async openid(){if(this.state.loading===!0)return;this.setState({loading:!0}),Qn.setLogger(console),Qn.setLevel(Qn.NONE),new Ej(Tj).signinRedirect()}render(){return Tr.isCached()&&(window.location.href="/"),l.jsx("div",{style:{height:"65vh"},children:l.jsxs(Nm,{children:[l.jsx("h2",{children:"Вход"}),l.jsx("hr",{}),l.jsx(Rj,{onClick:this.openid,disabled:this.state.loading,children:this.state.loading?l.jsx(ao,{size:"24px",color:"#4169e1"}):l.jsxs(l.Fragment,{children:["Войти через",l.jsx(Nj,{})]})}),l.jsxs(Xf,{children:["Вход осуществляется только через",l.jsx("br",{}),"Систему Единого Входа ВВГУ"]}),this.state.error?l.jsxs(Xf,{style:{color:"darkred",fontWeight:"600"},children:["Произошла ошибка: ",this.state.error.error,this.state.error.error_description?l.jsxs(l.Fragment,{children:[l.jsx("br",{}),this.state.error.error_description]}):null]}):null]})})}}const Ij=P.div`
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 400px;
text-align: center;
& h2 {
font-size: 1.8em;
font-weight: 600;
margin: 1.5em 0;
}
`,Lj=P.p`
font-family: monospace;
margin: 10px 0;
width: 780px;
`;class Fj extends bt.Component{constructor(t){super(t),this.response=new Xo(new URL(window.location.href).searchParams)}async componentDidMount(){if(this.response.error)return;window.localStorage.removeItem("auth_fail");let t="?";for(const r in localStorage)if(r.startsWith("oidc.")){t=JSON.parse(localStorage[r]).code_verifier,localStorage.removeItem(r);break}const n=await Tr.login({...this.response,code_verifier:t});if(n.error){window.localStorage.setItem("auth_fail",JSON.stringify(n)),window.location.href="/login";return}n.new_user?window.location.href="/register":window.location.href="/"}render(){return l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{height:"65vh"},children:l.jsxs(Ij,{children:[l.jsx("h2",{children:"Подождите пожалуйста"}),l.jsx("div",{style:{margin:"36px auto",width:"fit-content"},children:l.jsx(ao,{size:"80px",color:"#0077aa"})})]})}),this.response.error?l.jsx("div",{children:l.jsxs(Nm,{children:[l.jsx("h2",{children:"Ошибка авторизации"}),l.jsx("p",{children:this.response.error}),l.jsx(Lj,{children:this.response.error_description})]})}):null]})}}const Mj=P.button`
border: 1px solid #c2c4c2;
display: inline-block;
padding: 12px 16px;
border-radius: 14px;
background: #ffffff;
color: gray;
box-shadow: 0 2px 1px #00000010;
font-size: 12pt;
float: left;
& ${Y} {
transform: translate(-4px, 2px)
}
`,zj=P.div`
height: 100px;
padding-top: 32px;
z-index: 1;
position: relative;
display: flex;
align-items: center;
top: 0;
& h2 {
margin-left: 28px;
font-weight: 600;
padding: 0;
display: inline-block;
transform: translateY(4px);
}
& span {
margin-left: 14px;
font-weight: 500;
font-size: 18px;
line-height: 19px;
}
`,Bj=P.div`
width: 1270px;
height: 650px;
background: #FFFFFF;
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.25);
border-radius: 20px;
margin: 27px auto;
`,Uj=P(at)`
padding: 30px 26px 30px 36px;
`,$j=P.img`
width: 256px;
height: 256px;
margin: 25px 0px 0px 65px;
border-radius: 50%;
box-shadow: 0px 0px 12px 2px rgba(0, 0, 0, 0.34);
`,Dj=P.button`
display: flex;
align-items: center;
justify-content: center;
width: 192px;
height: 32px;
margin: 16px auto 0px;
font-weight: 700;
font-size: 16px;
line-height: 19px;
color: #FFFFFF;
background: #007EFF;
border-radius: 12px;
`,Hj=P.p`
font-weight: 700;
font-size: 20px;
line-height: 24px;
`,Hn=P.p`
font-weight: 500;
font-size: 14px;
line-height: 24px;
`,Wj=P.input`
border: 1px solid #CCCCCC;
border-radius: 12px;
width: ${e=>e.width}px;
height: ${e=>e.height}px;
padding-left: 10px;
font-weight: 500;
font-size: 14px;
line-height: 18px;
color: #000000;
&::placeholder {
font-weight: 500;
font-size: 12px;
line-height: 24px;
color: #CCCCCC;
}
`,Zf=P.textarea`
border: 1px solid #CCCCCC;
border-radius: 12px;
margin: 16px 0px 0px 55px;
resize: none;
padding: 8px;
font-weight: 500;
font-size: 14px;
line-height: 18px;
color: #000000;
&::placeholder {
font-weight: 500;
font-size: 14px;
line-height: 24px;
color: #CCCCCC;
}
`,qj=P.div`
width: calc(100% + 15px);
height: 28px;
padding: 0;
font-size: 14px;
line-height: 28px;
display: inline-block;
align-items: center;
text-align: center;
color: #FFFFFF;
background: ${e=>e.background};
border-radius: 20px;
`,Vj=P.button`
width: 28px;
height: 28px;
padding: 0px;
font-weight: 700;
font-size: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
border-radius: 70%;
color: #FFFFFF;
background: #D9D9D9;
`,Kj=P.button`
margin-top: 14px;
width: auto;
height: 27px;
padding: 0;
font-weight: 500;
font-size: 14px;
line-height: 17px;
text-align: left;
color: #007EFF;
background: none;
`,cr=e=>l.jsx(l.Fragment,{children:l.jsxs(at,{style:{marginTop:e.marginTop,marginLeft:19},children:[l.jsx(le,{xs:5,children:l.jsx(Hn,{children:e.title})}),l.jsx(le,{children:l.jsx(Hn,{children:e.text})})]})}),di=e=>l.jsx(l.Fragment,{children:l.jsxs(at,{style:{marginTop:e.marginTop,marginLeft:19},children:[l.jsx(le,{xs:5,children:l.jsx(Hn,{children:e.title})}),l.jsx(le,{xs:5,children:l.jsx(Wj,{width:e.width,height:e.height,placeholder:e.placeholderInput,value:e.valueInput})})]})}),cl=e=>{const t=e.list;return t.length==0?l.jsx(l.Fragment,{children:l.jsx("h1",{children:"Вы ничего не указали"})}):l.jsx(l.Fragment,{children:l.jsxs(at,{style:{marginLeft:19},children:[t.map((n,r)=>l.jsx(le,{style:{paddingLeft:0,marginRight:9,marginTop:10},children:l.jsx(qj,{background:n.color,children:n.text})},r)),e.button?l.jsx(l.Fragment,{children:l.jsx(le,{style:{paddingLeft:0,marginRight:9,marginTop:10},children:l.jsx(Vj,{children:"+"})})}):l.jsx(l.Fragment,{children:l.jsx(Kj,{children:"Изменить.."})})]})})},Qj=function(){const[e,t]=N.useState(),n=1,[r,i,o]=Xr(async u=>{const d=await Tr.getById(u);t(d),console.log(e.name)});N.useEffect(()=>{r(n)},[]);const s=[{text:"Честность",color:"#3F51B5"},{text:"Аккуратность",color:"#03BCD6"},{text:"Музыкальность",color:"#E91D65"},{text:"Общительность",color:"#03A9F4"},{text:"Дружелюбность",color:"#8CC34D"}],a=[{text:"Честность",color:"#3F51B5"},{text:"Аккуратность",color:"#03BCD6"},{text:"Музыкальность",color:"#E91D65"},{text:"Общительность",color:"#03A9F4"},{text:"Дружелюбность",color:"#8CC34D"},{text:"Мудрость",color:"#FF5923"},{text:"Адекватность",color:"#2196F4"},{text:"Щедрость",color:"#FFC308"},{text:"Вежливость",color:"#9D28B2"}],c=[{text:"Курит",color:"#94740B"},{text:"Равнодушие",color:"#D9B8B0"},{text:"Эгоист",color:"#6E3F58"},{text:"Лень",color:"#9F6844"},{text:"Лживость",color:"#AD9029"},{text:"Диструктивность",color:"#9A150C"},{text:"Токсичность",color:"#608426"}];return l.jsxs(l.Fragment,{children:[l.jsxs(zj,{children:[l.jsxs(Mj,{children:[l.jsx(Y,{src:"/images/icons/left-arrow-light.svg",width:10,height:16}),"Вернуться назад"]}),l.jsxs("h2",{children:["Личный кабинет",l.jsx("span",{children:"/ Мои данные"})]})]}),l.jsx(Bj,{children:l.jsxs(Uj,{children:[l.jsx(le,{children:l.jsxs(Dn,{children:[l.jsx(Hj,{children:"Добрый день, Александр!"}),l.jsx(Hn,{children:"Ваш статус - Студент"}),l.jsx($j,{src:"/images/avatar-test.jpg"}),l.jsxs(Dj,{children:[l.jsx(Y,{src:"/images/icons/camera.svg",width:18,height:16}),"Загрузить фото"]}),l.jsx(Zf,{rows:3,cols:30,placeholder:"Опиши себя парой предложений.."}),l.jsx(Zf,{style:{marginTop:9},rows:3,cols:30,placeholder:"Напишите сюда свои хобби.."})]})}),l.jsx(le,{children:l.jsxs(Dn,{style:{borderLeft:"1px solid #CCCCCC",height:"100%"},children:[l.jsx(cr,{marginTop:13,title:"Имя",text:"Александр"}),l.jsx(cr,{marginTop:13,title:"Фамилия",text:"Манаенков"}),l.jsx(cr,{marginTop:13,title:"Отчество",text:"Викторович"}),l.jsx(cr,{marginTop:13,title:"Дата рождения",text:"14.09.2004"}),l.jsx(cr,{marginTop:33,title:"Факультет",text:"Информационные системы (по отраслям)"}),l.jsx(cr,{marginTop:44,title:"Группа",text:"СО-ИС-20"}),l.jsx(di,{marginTop:33,title:"Телефон",width:190,height:32,placeholderInput:"Введите номер телефона"}),l.jsx(di,{marginTop:10,title:"E-mail",width:190,height:32,placeholderInput:"Введите E-mail"}),l.jsx(di,{marginTop:10,title:"Telegram",width:190,height:32,placeholderInput:"Введите Ваш телеграмм"}),l.jsx(di,{marginTop:10,title:"Discord",width:190,height:32,placeholderInput:"Введите Ваш дискорд"}),l.js