mirror of
https://github.com/yawaflua/SusMarket.git
synced 2025-12-08 19:49:36 +02:00
3 lines
314 KiB
JavaScript
3 lines
314 KiB
JavaScript
/*! For license information please see main.ff00eb34.js.LICENSE.txt */
|
|
(()=>{"use strict";var e={463:(e,t,n)=>{var r=n(791),a=n(296);function i(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 o=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},h={};function m(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(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){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function V(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var A,F=Object.assign;function O(e){if(void 0===A)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var z=!1;function B(e,t){if(!e||z)return"";z=!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()}}),"object"===typeof Reflect&&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&&"string"===typeof u.stack){for(var a=u.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s]){var l="\n"+a[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?O(e):""}function I(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case w:return"Portal";case _:return"Profiler";case k:return"StrictMode";case j:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return U(e(t))}catch(n){}}return null}function H(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=(e=t.render).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 U(t);case 8:return t===k?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){K(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Se=null,ke=null;function _e(e){if(e=ba(e)){if("function"!==typeof we)throw Error(i(280));var t=e.stateNode;t&&(t=Ca(t),we(e.stateNode,e.type,t))}}function Ee(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Pe(){if(Se){var e=Se,t=ke;if(ke=Se=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Te(e,t){return e(t)}function je(){}var Ne=!1;function Le(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Te(e,t,n)}finally{Ne=!1,(null!==Se||null!==ke)&&(je(),Pe())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var r=Ca(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Re=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Re=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Re=!1}function Ve(e,t,n,r,a,i,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ae=!1,Fe=null,Oe=!1,ze=null,Be={onError:function(e){Ae=!0,Fe=e}};function Ie(e,t,n,r,a,i,o,s,l){Ae=!1,Fe=null,Ve.apply(Be,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Ue(e)!==e)throw Error(i(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return We(a),e;if(o===r)return We(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Qe(e):null}function Qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Qe(e);if(null!==t)return t;e=e.sibling}return null}var Ye=a.unstable_scheduleCallback,Ze=a.unstable_cancelCallback,qe=a.unstable_shouldYield,Ge=a.unstable_requestPaint,Ke=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,it=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~a;0!==s?r=dt(s):0!==(i&=o)&&(r=dt(i))}else 0!==(o=n&~a)?r=dt(o):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-ot(t)),r|=e[n],t&=~a;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var Ct,wt,St,kt,_t,Et=!1,Pt=[],Tt=null,jt=null,Nt=null,Lt=new Map,Mt=new Map,Rt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Vt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function At(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=ba(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ft(e){var t=ya(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void _t(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ot(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ba(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function zt(e,t,n){Ot(e)&&n.delete(t)}function Bt(){Et=!1,null!==Tt&&Ot(Tt)&&(Tt=null),null!==jt&&Ot(jt)&&(jt=null),null!==Nt&&Ot(Nt)&&(Nt=null),Lt.forEach(zt),Mt.forEach(zt)}function It(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Bt)))}function Ut(e){function t(t){return It(t,e)}if(0<Pt.length){It(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&It(Tt,e),null!==jt&&It(jt,e),null!==Nt&&It(Nt,e),Lt.forEach(t),Mt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Rt.shift()}var Ht=x.ReactCurrentBatchConfig,Wt=!0;function $t(e,t,n,r){var a=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=a,Ht.transition=i}}function Qt(e,t,n,r){var a=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=a,Ht.transition=i}}function Yt(e,t,n,r){if(Wt){var a=qt(e,t,n,r);if(null===a)Wr(e,t,r,Zt,n),Vt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Tt=At(Tt,e,t,n,r,a),!0;case"dragenter":return jt=At(jt,e,t,n,r,a),!0;case"mouseover":return Nt=At(Nt,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Lt.set(i,At(Lt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Mt.set(i,At(Mt.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Vt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==a;){var i=ba(a);if(null!==i&&Ct(i),null===(i=qt(e,t,n,r))&&Wr(e,t,r,Zt,n),i===a)break;a=i}null!==a&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Zt=null;function qt(e,t,n,r){if(Zt=null,null!==(e=ya(e=Ce(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),dn=F({},un,{view:0,detail:0}),fn=an(dn),pn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=an(pn),mn=an(F({},pn,{dataTransfer:0})),gn=an(F({},dn,{relatedTarget:0})),vn=an(F({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(yn),xn=an(F({},un,{data:0})),Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function _n(){return kn}var En=F({},dn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=an(En),Tn=an(F({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=an(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Nn=an(F({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=F({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=an(Ln),Rn=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Vn=null;c&&"documentMode"in document&&(Vn=document.documentMode);var An=c&&"TextEvent"in window&&!Vn,Fn=c&&(!Dn||Vn&&8<Vn&&11>=Vn),On=String.fromCharCode(32),zn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function In(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){Ee(r),0<(t=Qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,Yn=null;function Zn(e){Or(e,0)}function qn(e){if(Y(xa(e)))return e}function Gn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Xn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Qn&&(Qn.detachEvent("onpropertychange",nr),Yn=Qn=null)}function nr(e){if("value"===e.propertyName&&qn(Yn)){var t=[];$n(t,Yn,e,Ce(e)),Le(Zn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Yn)}function ir(e,t){if("click"===e)return qn(t)}function or(e,t){if("input"===e||"change"===e)return qn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=cr(n,i);var o=cr(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Z(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Cr("Animation","AnimationEnd"),animationiteration:Cr("Animation","AnimationIteration"),animationstart:Cr("Animation","AnimationStart"),transitionend:Cr("Transition","TransitionEnd")},Sr={},kr={};function _r(e){if(Sr[e])return Sr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=_r("animationend"),Pr=_r("animationiteration"),Tr=_r("animationstart"),jr=_r("transitionend"),Nr=new Map,Lr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Nr.set(e,t),l(t,[e])}for(var Rr=0;Rr<Lr.length;Rr++){var Dr=Lr[Rr];Mr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(Pr,"onAnimationIteration"),Mr(Tr,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(jr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,s,l,u){if(Ie.apply(this,arguments),Ae){if(!Ae)throw Error(i(198));var c=Fe;Ae=!1,Fe=null,Oe||(Oe=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;Fr(a,s,u),i=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;Fr(a,s,u),i=l}}}if(Oe)throw e=ze,Oe=!1,ze=null,e}function zr(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Ir="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[Ir]){e[Ir]=!0,o.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ir]||(t[Ir]=!0,Br("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Gt(t)){case 1:var a=$t;break;case 4:a=Qt;break;default:a=Yt}n=a.bind(null,t,n,e),a=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,a){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=ya(s)))return;if(5===(l=o.tag)||6===l){r=i=o;continue e}s=s.parentNode}}r=r.return}Le((function(){var r=i,a=Ce(n),o=[];e:{var s=Nr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jn;break;case Er:case Pr:case Tr:l=vn;break;case jr:l=Nn;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Me(h,f))&&c.push($r(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,a),o.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!ya(u)&&!u[ha])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ya(u):null)&&(u!==(d=Ue(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:xa(l),p=null==u?s:xa(u),(s=new c(m,h+"leave",l,n,a)).target=d,s.relatedTarget=p,m=null,ya(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Yr(p))h++;for(p=0,m=f;m;m=Yr(m))p++;for(;0<h-p;)c=Yr(c),h--;for(;0<p-h;)f=Yr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==l&&Zr(o,s,l,c,!1),null!==u&&null!==d&&Zr(o,d,u,c,!0)}if("select"===(l=(s=r?xa(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Gn;else if(Wn(s))if(Kn)g=or;else{g=ar;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?$n(o,g,n,a):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xa(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(o,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(o,n,a)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=en()):(Xt="value"in(Kt=a)?Kt.value:Kt.textContent,Un=!0)),0<(v=Qr(r,b)).length&&(b=new xn(b,e,null,n,a),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=In(n))&&(b.data=y))),(y=An?function(e,t){switch(e){case"compositionend":return In(t);case"keypress":return 32!==t.which?null:(zn=!0,On);case"textInput":return(e=t.data)===On&&zn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Jt=Xt=Kt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Qr(r,"onBeforeInput")).length&&(a=new xn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=y))}Or(o,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Me(e,n))&&r.unshift($r(e,i,a)),null!=(i=Me(e,t))&&r.push($r(e,i,a))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=Me(n,i))&&o.unshift($r(n,l,s)):a||null!=(l=Me(n,i))&&o.push($r(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var qr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Kr(e){return("string"===typeof e?e:""+e).replace(qr,"\n").replace(Gr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(i(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"===typeof setTimeout?setTimeout:void 0,aa="function"===typeof clearTimeout?clearTimeout:void 0,ia="function"===typeof Promise?Promise:void 0,oa="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ia?function(e){return ia.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Ut(t)}function ua(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ca(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),fa="__reactFiber$"+da,pa="__reactProps$"+da,ha="__reactContainer$"+da,ma="__reactEvents$"+da,ga="__reactListeners$"+da,va="__reactHandles$"+da;function ya(e){var t=e[fa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[fa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ca(e);null!==e;){if(n=e[fa])return n;e=ca(e)}return t}n=(e=n).parentNode}return null}function ba(e){return!(e=e[fa]||e[ha])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Ca(e){return e[pa]||null}var wa=[],Sa=-1;function ka(e){return{current:e}}function _a(e){0>Sa||(e.current=wa[Sa],wa[Sa]=null,Sa--)}function Ea(e,t){Sa++,wa[Sa]=e.current,e.current=t}var Pa={},Ta=ka(Pa),ja=ka(!1),Na=Pa;function La(e,t){var n=e.type.contextTypes;if(!n)return Pa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ma(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ra(){_a(ja),_a(Ta)}function Da(e,t,n){if(Ta.current!==Pa)throw Error(i(168));Ea(Ta,t),Ea(ja,n)}function Va(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(i(108,H(e)||"Unknown",a));return F({},n,r)}function Aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pa,Na=Ta.current,Ea(Ta,e),Ea(ja,ja.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Va(e,t,Na),r.__reactInternalMemoizedMergedChildContext=e,_a(ja),_a(Ta),Ea(Ta,e)):_a(ja),Ea(ja,n)}var Oa=null,za=!1,Ba=!1;function Ia(e){null===Oa?Oa=[e]:Oa.push(e)}function Ua(){if(!Ba&&null!==Oa){Ba=!0;var e=0,t=bt;try{var n=Oa;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Oa=null,za=!1}catch(a){throw null!==Oa&&(Oa=Oa.slice(e+1)),Ye(Je,Ua),a}finally{bt=t,Ba=!1}}return null}var Ha=[],Wa=0,$a=null,Qa=0,Ya=[],Za=0,qa=null,Ga=1,Ka="";function Xa(e,t){Ha[Wa++]=Qa,Ha[Wa++]=$a,$a=e,Qa=t}function Ja(e,t,n){Ya[Za++]=Ga,Ya[Za++]=Ka,Ya[Za++]=qa,qa=e;var r=Ga;e=Ka;var a=32-ot(r)-1;r&=~(1<<a),n+=1;var i=32-ot(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Ga=1<<32-ot(t)+a|n<<a|r,Ka=i+e}else Ga=1<<i|n<<a|r,Ka=e}function ei(e){null!==e.return&&(Xa(e,1),Ja(e,1,0))}function ti(e){for(;e===$a;)$a=Ha[--Wa],Ha[Wa]=null,Qa=Ha[--Wa],Ha[Wa]=null;for(;e===qa;)qa=Ya[--Za],Ya[Za]=null,Ka=Ya[--Za],Ya[Za]=null,Ga=Ya[--Za],Ya[Za]=null}var ni=null,ri=null,ai=!1,ii=null;function oi(e,t){var n=Mu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,ri=ua(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qa?{id:Ga,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ni=e,ri=null,!0);default:return!1}}function li(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ai){var t=ri;if(t){var n=t;if(!si(e,t)){if(li(e))throw Error(i(418));t=ua(n.nextSibling);var r=ni;t&&si(e,t)?oi(r,n):(e.flags=-4097&e.flags|2,ai=!1,ni=e)}}else{if(li(e))throw Error(i(418));e.flags=-4097&e.flags|2,ai=!1,ni=e}}}function ci(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function di(e){if(e!==ni)return!1;if(!ai)return ci(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ri)){if(li(e))throw fi(),Error(i(418));for(;t;)oi(e,t),t=ua(t.nextSibling)}if(ci(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=ua(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=ni?ua(e.stateNode.nextSibling):null;return!0}function fi(){for(var e=ri;e;)e=ua(e.nextSibling)}function pi(){ri=ni=null,ai=!1}function hi(e){null===ii?ii=[e]:ii.push(e)}var mi=x.ReactCurrentBatchConfig;function gi(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vi=ka(null),yi=null,bi=null,xi=null;function Ci(){xi=bi=yi=null}function wi(e){var t=vi.current;_a(vi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ki(e,t){yi=e,xi=bi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xs=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===bi){if(null===yi)throw Error(i(308));bi=e,yi.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var Ei=null;function Pi(e){null===Ei?Ei=[e]:Ei.push(e)}function Ti(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Pi(t)):(n.next=a.next,a.next=n),t.interleaved=n,ji(e,r)}function ji(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ni=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ri(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&jl)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,ji(e,n)}return null===(a=r.interleaved)?(t.next=t,Pi(r)):(t.next=a.next,a.next=t),r.interleaved=t,ji(e,n)}function Vi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ai(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var a=e.updateQueue;Ni=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?i=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=a.baseState;for(o=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=F({},d,f);break e;case 2:Ni=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,o|=f;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(f=s).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Fl|=o,e.lanes=o,e.memoizedState=d}}function Oi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(i(191,a));a.call(r)}}}var zi=(new r.Component).refs;function Bi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ii={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),i=Ri(r,a);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Di(e,i,a))&&(ru(t,e,a,r),Vi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),i=Ri(r,a);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Di(e,i,a))&&(ru(t,e,a,r),Vi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),a=Ri(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=Di(e,a,r))&&(ru(t,e,r,n),Vi(t,e,r))}};function Ui(e,t,n,r,a,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,i))}function Hi(e,t,n){var r=!1,a=Pa,i=t.contextType;return"object"===typeof i&&null!==i?i=_i(i):(a=Ma(t)?Na:Ta.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?La(e,a):Pa),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ii,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Wi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ii.enqueueReplaceState(t,t.state,null)}function $i(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=zi,Li(e);var i=t.contextType;"object"===typeof i&&null!==i?a.context=_i(i):(i=Ma(t)?Na:Ta.current,a.context=La(e,i)),a.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ii.enqueueReplaceState(a,a.state,null),Fi(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4194308)}function Qi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;t===zi&&(t=a.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zi(e){return(0,e._init)(e._payload)}function qi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Du(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ou(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===M&&Zi(i)===t.type)?((r=a(t,n.props)).ref=Qi(e,t,n),r.return=e,r):((r=Vu(n.type,n.key,n.props,null,e.mode,r)).ref=Qi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zu(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Au(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Ou(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case C:return(n=Vu(t.type,t.key,t.props,null,e.mode,n)).ref=Qi(e,null,t),n.return=e,n;case w:return(t=zu(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(te(t)||V(t))return(t=Au(t,e.mode,n,null)).return=e,t;Yi(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==a?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===a?u(e,t,n,r):null;case w:return n.key===a?c(e,t,n,r):null;case M:return p(e,t,(a=n._init)(n._payload),r)}if(te(n)||V(n))return null!==a?null:d(e,t,n,r,null);Yi(e,n)}return null}function h(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case M:return h(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||V(r))return d(t,e=e.get(n)||null,r,a,null);Yi(t,r)}return null}function m(a,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(a,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(a,d),i=o(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(a,d),ai&&Xa(a,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(a,s[m],l))&&(i=o(d,i,m),null===c?u=d:c.sibling=d,c=d);return ai&&Xa(a,m),u}for(d=r(a,d);m<s.length;m++)null!==(g=h(d,a,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=o(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(a,e)})),ai&&Xa(a,m),u}function g(a,s,l,u){var c=V(l);if("function"!==typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(a,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(a,m),s=o(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(a,m),ai&&Xa(a,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(a,y.value,u))&&(s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return ai&&Xa(a,g),c}for(m=r(a,m);!y.done;g++,y=l.next())null!==(y=h(m,a,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(a,e)})),ai&&Xa(a,g),c}return function e(r,i,o,l){if("object"===typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case C:e:{for(var u=o.key,c=i;null!==c;){if(c.key===u){if((u=o.type)===S){if(7===c.tag){n(r,c.sibling),(i=a(c,o.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===M&&Zi(u)===c.type){n(r,c.sibling),(i=a(c,o.props)).ref=Qi(r,c,o),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===S?((i=Au(o.props.children,r.mode,l,o.key)).return=r,r=i):((l=Vu(o.type,o.key,o.props,null,r.mode,l)).ref=Qi(r,i,o),l.return=r,r=l)}return s(r);case w:e:{for(c=o.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(r,i.sibling),(i=a(i,o.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zu(o,r.mode,l)).return=r,r=i}return s(r);case M:return e(r,i,(c=o._init)(o._payload),l)}if(te(o))return m(r,i,o,l);if(V(o))return g(r,i,o,l);Yi(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==i&&6===i.tag?(n(r,i.sibling),(i=a(i,o)).return=r,r=i):(n(r,i),(i=Ou(o,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Gi=qi(!0),Ki=qi(!1),Xi={},Ji=ka(Xi),eo=ka(Xi),to=ka(Xi);function no(e){if(e===Xi)throw Error(i(174));return e}function ro(e,t){switch(Ea(to,t),Ea(eo,e),Ea(Ji,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_a(Ji),Ea(Ji,t)}function ao(){_a(Ji),_a(eo),_a(to)}function io(e){no(to.current);var t=no(Ji.current),n=le(t,e.type);t!==n&&(Ea(eo,e),Ea(Ji,n))}function oo(e){eo.current===e&&(_a(Ji),_a(eo))}var so=ka(0);function lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=[];function co(){for(var e=0;e<uo.length;e++)uo[e]._workInProgressVersionPrimary=null;uo.length=0}var fo=x.ReactCurrentDispatcher,po=x.ReactCurrentBatchConfig,ho=0,mo=null,go=null,vo=null,yo=!1,bo=!1,xo=0,Co=0;function wo(){throw Error(i(321))}function So(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ko(e,t,n,r,a,o){if(ho=o,mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ss:ls,e=n(r,a),bo){o=0;do{if(bo=!1,xo=0,25<=o)throw Error(i(301));o+=1,vo=go=null,t.updateQueue=null,fo.current=us,e=n(r,a)}while(bo)}if(fo.current=os,t=null!==go&&null!==go.next,ho=0,vo=go=mo=null,yo=!1,t)throw Error(i(300));return e}function _o(){var e=0!==xo;return xo=0,e}function Eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vo?mo.memoizedState=vo=e:vo=vo.next=e,vo}function Po(){if(null===go){var e=mo.alternate;e=null!==e?e.memoizedState:null}else e=go.next;var t=null===vo?mo.memoizedState:vo.next;if(null!==t)vo=t,go=e;else{if(null===e)throw Error(i(310));e={memoizedState:(go=e).memoizedState,baseState:go.baseState,baseQueue:go.baseQueue,queue:go.queue,next:null},null===vo?mo.memoizedState=vo=e:vo=vo.next=e}return vo}function To(e,t){return"function"===typeof t?t(e):t}function jo(e){var t=Po(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=go,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(null!==a){o=a.next,r=r.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((ho&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,mo.lanes|=d,Fl|=d}c=c.next}while(null!==c&&c!==o);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{o=a.lane,mo.lanes|=o,Fl|=o,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function No(e){var t=Po(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);sr(o,t.memoizedState)||(xs=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lo(){}function Mo(e,t){var n=mo,r=Po(),a=t(),o=!sr(r.memoizedState,a);if(o&&(r.memoizedState=a,xs=!0),r=r.queue,Wo(Vo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==vo&&1&vo.memoizedState.tag){if(n.flags|=2048,zo(9,Do.bind(null,n,r,a,t),void 0,null),null===Nl)throw Error(i(349));0!==(30&ho)||Ro(n,t,a)}return a}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Do(e,t,n,r){t.value=n,t.getSnapshot=r,Ao(t)&&Fo(e)}function Vo(e,t,n){return n((function(){Ao(t)&&Fo(e)}))}function Ao(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Fo(e){var t=ji(e,1);null!==t&&ru(t,e,1,-1)}function Oo(e){var t=Eo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mo,e),[t.memoizedState,e]}function zo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bo(){return Po().memoizedState}function Io(e,t,n,r){var a=Eo();mo.flags|=e,a.memoizedState=zo(1|t,n,void 0,void 0===r?null:r)}function Uo(e,t,n,r){var a=Po();r=void 0===r?null:r;var i=void 0;if(null!==go){var o=go.memoizedState;if(i=o.destroy,null!==r&&So(r,o.deps))return void(a.memoizedState=zo(t,n,i,r))}mo.flags|=e,a.memoizedState=zo(1|t,n,i,r)}function Ho(e,t){return Io(8390656,8,e,t)}function Wo(e,t){return Uo(2048,8,e,t)}function $o(e,t){return Uo(4,2,e,t)}function Qo(e,t){return Uo(4,4,e,t)}function Yo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Zo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Uo(4,4,Yo.bind(null,t,e),n)}function qo(){}function Go(e,t){var n=Po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ko(e,t){var n=Po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&So(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xo(e,t,n){return 0===(21&ho)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),mo.lanes|=n,Fl|=n,e.baseState=!0),t)}function Jo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{bt=n,po.transition=r}}function es(){return Po().memoizedState}function ts(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))as(t,n);else if(null!==(n=Ti(e,t,n,r))){ru(n,e,r,tu()),is(n,t,r)}}function ns(e,t,n){var r=nu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,o)){var l=t.interleaved;return null===l?(a.next=a,Pi(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(u){}null!==(n=Ti(e,t,a,r))&&(ru(n,e,r,a=tu()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===mo||null!==t&&t===mo}function as(e,t){bo=yo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var os={readContext:_i,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useInsertionEffect:wo,useLayoutEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useMutableSource:wo,useSyncExternalStore:wo,useId:wo,unstable_isNewReconciler:!1},ss={readContext:_i,useCallback:function(e,t){return Eo().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Ho,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Io(4194308,4,Yo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Io(4194308,4,e,t)},useInsertionEffect:function(e,t){return Io(4,2,e,t)},useMemo:function(e,t){var n=Eo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Eo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,mo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Eo().memoizedState=e},useState:Oo,useDebugValue:qo,useDeferredValue:function(e){return Eo().memoizedState=e},useTransition:function(){var e=Oo(!1),t=e[0];return e=Jo.bind(null,e[1]),Eo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mo,a=Eo();if(ai){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Nl)throw Error(i(349));0!==(30&ho)||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ho(Vo.bind(null,r,o,e),[e]),r.flags|=2048,zo(9,Do.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Eo(),t=Nl.identifierPrefix;if(ai){var n=Ka;t=":"+t+"R"+(n=(Ga&~(1<<32-ot(Ga)-1)).toString(32)+n),0<(n=xo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Co++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:_i,useCallback:Go,useContext:_i,useEffect:Wo,useImperativeHandle:Zo,useInsertionEffect:$o,useLayoutEffect:Qo,useMemo:Ko,useReducer:jo,useRef:Bo,useState:function(){return jo(To)},useDebugValue:qo,useDeferredValue:function(e){return Xo(Po(),go.memoizedState,e)},useTransition:function(){return[jo(To)[0],Po().memoizedState]},useMutableSource:Lo,useSyncExternalStore:Mo,useId:es,unstable_isNewReconciler:!1},us={readContext:_i,useCallback:Go,useContext:_i,useEffect:Wo,useImperativeHandle:Zo,useInsertionEffect:$o,useLayoutEffect:Qo,useMemo:Ko,useReducer:No,useRef:Bo,useState:function(){return No(To)},useDebugValue:qo,useDeferredValue:function(e){var t=Po();return null===go?t.memoizedState=e:Xo(t,go.memoizedState,e)},useTransition:function(){return[No(To)[0],Po().memoizedState]},useMutableSource:Lo,useSyncExternalStore:Mo,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=I(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ri(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,Ql=r),fs(0,t)},n}function ms(e,t,n){(n=Ri(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){fs(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!==typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,a){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ri(-1,1)).tag=2,Di(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var bs=x.ReactCurrentOwner,xs=!1;function Cs(e,t,n,r){t.child=null===e?Ki(t,null,n,r):Gi(t,e.child,n,r)}function ws(e,t,n,r,a){n=n.render;var i=t.ref;return ki(t,a),r=ko(e,t,n,r,i,a),n=_o(),null===e||xs?(ai&&n&&ei(t),t.flags|=1,Cs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$s(e,t,a))}function Ss(e,t,n,r,a){if(null===e){var i=n.type;return"function"!==typeof i||Ru(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,a))}if(i=e.child,0===(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(o,r)&&e.ref===t.ref)return $s(e,t,a)}return t.flags|=1,(e=Du(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=i,0===(e.lanes&a))return t.lanes=e.lanes,$s(e,t,a);0!==(131072&e.flags)&&(xs=!0)}}return Ps(e,t,n,r,a)}function _s(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ea(Dl,Rl),Rl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ea(Dl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ea(Dl,Rl),Rl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ea(Dl,Rl),Rl|=r;return Cs(e,t,a,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,a){var i=Ma(n)?Na:Ta.current;return i=La(t,i),ki(t,a),n=ko(e,t,n,r,i,a),r=_o(),null===e||xs?(ai&&r&&ei(t),t.flags|=1,Cs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$s(e,t,a))}function Ts(e,t,n,r,a){if(Ma(n)){var i=!0;Aa(t)}else i=!1;if(ki(t,a),null===t.stateNode)Ws(e,t),Hi(t,n,r),$i(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"===typeof u&&null!==u?u=_i(u):u=La(t,u=Ma(n)?Na:Ta.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==u)&&Wi(t,o,r,u),Ni=!1;var f=t.memoizedState;o.state=f,Fi(t,r,o,a),l=t.memoizedState,s!==r||f!==l||ja.current||Ni?("function"===typeof c&&(Bi(t,n,c,r),l=t.memoizedState),(s=Ni||Ui(t,n,s,r,f,l,u))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Mi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:gi(t.type,s),o.props=u,d=t.pendingProps,f=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=_i(l):l=La(t,l=Ma(n)?Na:Ta.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||f!==l)&&Wi(t,o,r,l),Ni=!1,f=t.memoizedState,o.state=f,Fi(t,r,o,a);var h=t.memoizedState;s!==d||f!==h||ja.current||Ni?("function"===typeof p&&(Bi(t,n,p,r),h=t.memoizedState),(u=Ni||Ui(t,n,u,r,f,h,l)||!1)?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return js(e,t,n,r,i,a)}function js(e,t,n,r,a,i){Es(e,t);var o=0!==(128&t.flags);if(!r&&!o)return a&&Fa(t,n,!1),$s(e,t,i);r=t.stateNode,bs.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Gi(t,e.child,null,i),t.child=Gi(t,null,s,i)):Cs(e,t,s,i),t.memoizedState=r.state,a&&Fa(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?Da(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Da(0,t.context,!1),ro(e,t.containerInfo)}function Ls(e,t,n,r,a){return pi(),hi(a),t.flags|=256,Cs(e,t,n,r),t.child}var Ms,Rs,Ds,Vs,As={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Os(e,t,n){var r,a=t.pendingProps,o=so.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ea(so,1&o),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,s?(a=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Fu(l,a,0,null),e=Au(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(n),t.memoizedState=As,e):zs(t,l));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,a,o,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=Fu({mode:"visible",children:r.children},a,0,null),(o=Au(o,a,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Gi(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=As,o);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=ds(o=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(r=Nl)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|s))?0:a)&&a!==o.retryLane&&(o.retryLane=a,ji(e,a),ru(r,e,a,-1))}return gu(),Bs(e,t,s,r=ds(Error(i(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ri=ua(a.nextSibling),ni=t,ai=!0,ii=null,null!==e&&(Ya[Za++]=Ga,Ya[Za++]=Ka,Ya[Za++]=qa,Ga=e.id,Ka=e.overflow,qa=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,o,n);if(s){s=a.fallback,l=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:a.children};return 0===(1&l)&&t.child!==o?((a=t.child).childLanes=0,a.pendingProps=u,t.deletions=null):(a=Du(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=Du(r,s):(s=Au(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Fs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=As,a}return e=(s=e.child).sibling,a=Du(s,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function zs(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&hi(r),Gi(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Is(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function Us(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Hs(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Cs(e,t,r.children,n),0!==(2&(r=so.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Is(e,n,t);else if(19===e.tag)Is(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ea(so,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===lo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Us(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===lo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Us(t,!0,n,null,i);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Du(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Du(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qs(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zs(e,t,n){var r=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Ma(t.type)&&Ra(),Ys(t),null;case 3:return r=t.stateNode,ao(),_a(ja),_a(Ta),co(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ii&&(su(ii),ii=null))),Rs(e,t),Ys(t),null;case 5:oo(t);var a=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ys(t),null}if(e=no(Ji.current),di(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[fa]=t,r[pa]=o,e=0!==(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(a=0;a<Vr.length;a++)zr(Vr[a],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":G(r,o),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},zr("invalid",r);break;case"textarea":ae(r,o),zr("invalid",r)}for(var l in ye(n,o),a=null,o)if(o.hasOwnProperty(l)){var u=o[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==o.suppressHydrationWarning&&Xr(r.textContent,u,e),a=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==o.suppressHydrationWarning&&Xr(r.textContent,u,e),a=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":Q(r),J(r,o,!0);break;case"textarea":Q(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fa]=t,e[pa]=r,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),a=r;break;case"iframe":case"object":case"embed":zr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Vr.length;a++)zr(Vr[a],e);a=r;break;case"source":zr("error",e),a=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),a=r;break;case"details":zr("toggle",e),a=r;break;case"input":G(e,r),a=q(e,r),zr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=F({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),zr("invalid",e)}for(o in ye(n,a),u=a)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?ge(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===o?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=c&&"onScroll"===o&&zr("scroll",e):null!=c&&b(e,o,c,l))}switch(n){case"input":Q(e),J(e,r,!1);break;case"textarea":Q(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)Vs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=no(to.current),no(Ji.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[fa]=t,(o=r.nodeValue!==n)&&null!==(e=ni))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fa]=t,t.stateNode=r}return Ys(t),null;case 13:if(_a(so),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))fi(),pi(),t.flags|=98560,o=!1;else if(o=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[fa]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),o=!1}else null!==ii&&(su(ii),ii=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&so.current)?0===Vl&&(Vl=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return ao(),Rs(e,t),null===e&&Ur(t.stateNode.containerInfo),Ys(t),null;case 10:return wi(t.type._context),Ys(t),null;case 19:if(_a(so),null===(o=t.memoizedState))return Ys(t),null;if(r=0!==(128&t.flags),null===(l=o.rendering))if(r)Qs(o,!1);else{if(0!==Vl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=lo(e))){for(t.flags|=128,Qs(o,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ea(so,1&so.current|2),t.child}e=e.sibling}null!==o.tail&&Ke()>Hl&&(t.flags|=128,r=!0,Qs(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=lo(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Qs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ai)return Ys(t),null}else 2*Ke()-o.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Qs(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,n=so.current,Ea(so,r?1&n|2:1&n),t):(Ys(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Rl)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function qs(e,t){switch(ti(t),t.tag){case 1:return Ma(t.type)&&Ra(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ao(),_a(ja),_a(Ta),co(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(_a(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _a(so),null;case 4:return ao(),null;case 10:return wi(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Ms=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Ds=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,no(Ji.current);var i,o=null;switch(n){case"input":a=q(e,a),r=q(e,r),o=[];break;case"select":a=F({},a,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case"textarea":a=re(e,a),r=re(e,r),o=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var l=a[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Vs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Ks=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){_u(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){_u(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&tl(t,n,i)}a=a.next}while(a!==r)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fa],delete t[pa],delete t[ma],delete t[ga],delete t[va])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,fl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Ks||el(n,t);case 6:var r=dl,a=fl;dl=null,pl(e,t,n),fl=a,null!==(dl=r)&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),Ut(e)):la(dl,n.stateNode));break;case 4:r=dl,a=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=a;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(0!==(2&i)||0!==(4&i))&&tl(n,t,o),a=a.next}while(a!==r)}pl(e,t,n);break;case 1:if(!Ks&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){_u(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,pl(e,t,n),Ks=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=ju.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(i(160));hl(o,s,a),dl=null,fl=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(c){_u(a,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&r){try{rl(3,e,e.return),al(3,e)}catch(g){_u(e,e.return,g)}try{rl(5,e,e.return)}catch(g){_u(e,e.return,g)}}break;case 1:gl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var a=e.stateNode;try{fe(a,"")}catch(g){_u(e,e.return,g)}}if(4&r&&null!=(a=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===o.type&&null!=o.name&&K(a,o),be(l,s);var c=be(l,o);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(a,f):"dangerouslySetInnerHTML"===d?de(a,f):"children"===d?fe(a,f):b(a,d,f,c)}switch(l){case"input":X(a,o);break;case"textarea":ie(a,o);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?ne(a,!!o.multiple,h,!1):p!==!!o.multiple&&(null!=o.defaultValue?ne(a,!!o.multiple,o.defaultValue,!0):ne(a,!!o.multiple,o.multiple?[]:"",!1))}a[pa]=o}catch(g){_u(e,e.return,g)}}break;case 6:if(gl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(i(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(g){_u(e,e.return,g)}}break;case 3:if(gl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(g){_u(e,e.return,g)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(a=e.child).flags&&(o=null!==a.memoizedState,a.stateNode.isHidden=o,!o||null!==a.alternate&&null!==a.alternate.memoizedState||(Ul=Ke())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(c=Ks)||d,gl(t,e),Ks=c):gl(t,e),yl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){_u(r,n,g)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){wl(f);continue}}null!==h?(h.return=p,Js=h):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{a=f.stateNode,c?"function"===typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=f.stateNode,s=void 0!==(u=f.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(g){_u(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){_u(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),yl(e),4&r&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(fe(a,""),r.flags&=-33),cl(e,ll(e),a);break;case 3:case 4:var o=r.stateNode.containerInfo;ul(e,ll(e),o);break;default:throw Error(i(161))}}catch(s){_u(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var a=Js,i=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||Gs;if(!o){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Gs;var u=Ks;if(Gs=o,(Ks=l)&&!u)for(Js=a;null!==Js;)l=(o=Js).child,22===o.tag&&null!==o.memoizedState?Sl(a):null!==l?(l.return=o,Js=l):Sl(a);for(;null!==i;)Js=i,xl(i,t,n),i=i.sibling;Js=a,Gs=s,Ks=u}Cl(e)}else 0!==(8772&a.subtreeFlags)&&null!==i?(i.return=a,Js=i):Cl(e)}}function Cl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||al(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:gi(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Oi(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Oi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ut(f)}}}break;default:throw Error(i(163))}Ks||512&t.flags&&il(t)}catch(p){_u(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){_u(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){_u(t,a,l)}}var i=t.return;try{il(t)}catch(l){_u(t,i,l)}break;case 5:var o=t.return;try{il(t)}catch(l){_u(t,o,l)}}}catch(l){_u(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var kl,_l=Math.ceil,El=x.ReactCurrentDispatcher,Pl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,jl=0,Nl=null,Ll=null,Ml=0,Rl=0,Dl=ka(0),Vl=0,Al=null,Fl=0,Ol=0,zl=0,Bl=null,Il=null,Ul=0,Hl=1/0,Wl=null,$l=!1,Ql=null,Yl=null,Zl=!1,ql=null,Gl=0,Kl=0,Xl=null,Jl=-1,eu=0;function tu(){return 0!==(6&jl)?Ke():-1!==Jl?Jl:Jl=Ke()}function nu(e){return 0===(1&e.mode)?1:0!==(2&jl)&&0!==Ml?Ml&-Ml:null!==mi.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function ru(e,t,n,r){if(50<Kl)throw Kl=0,Xl=null,Error(i(185));vt(e,n,r),0!==(2&jl)&&e===Nl||(e===Nl&&(0===(2&jl)&&(Ol|=n),4===Vl&&lu(e,Ml)),au(e,r),1===n&&0===jl&&0===(1&t.mode)&&(Hl=Ke()+500,za&&Ua()))}function au(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ot(i),s=1<<o,l=a[o];-1===l?0!==(s&n)&&0===(s&r)||(a[o]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Nl?Ml:0);if(0===r)null!==n&&Ze(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ze(n),1===t)0===e.tag?function(e){za=!0,Ia(e)}(uu.bind(null,e)):Ia(uu.bind(null,e)),oa((function(){0===(6&jl)&&Ua()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Jl=-1,eu=0,0!==(6&jl))throw Error(i(327));var n=e.callbackNode;if(Su()&&e.callbackNode!==n)return null;var r=ft(e,e===Nl?Ml:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var a=jl;jl|=2;var o=mu();for(Nl===e&&Ml===t||(Wl=null,Hl=Ke()+500,pu(e,t));;)try{bu();break}catch(l){hu(e,l)}Ci(),El.current=o,jl=a,null!==Ll?t=0:(Nl=null,Ml=0,t=Vl)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(r=a,t=ou(e,a))),1===t)throw n=Al,pu(e,0),lu(e,r),au(e,Ke()),n;if(6===t)lu(e,r);else{if(a=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!sr(i(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=vu(e,r))&&(0!==(o=ht(e))&&(r=o,t=ou(e,o))),1===t))throw n=Al,pu(e,0),lu(e,r),au(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:wu(e,Il,Wl);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Ul+500-Ke())){if(0!==ft(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(wu.bind(null,e,Il,Wl),t);break}wu(e,Il,Wl);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>a&&(a=s),r&=~o}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ra(wu.bind(null,e,Il,Wl),r);break}wu(e,Il,Wl);break;default:throw Error(i(329))}}}return au(e,Ke()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Il,Il=n,null!==t&&su(t)),e}function su(e){null===Il?Il=e:Il.push.apply(Il,e)}function lu(e,t){for(t&=~zl,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!==(6&jl))throw Error(i(327));Su();var t=ft(e,0);if(0===(1&t))return au(e,Ke()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Al,pu(e,0),lu(e,t),au(e,Ke()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Il,Wl),au(e,Ke()),null}function cu(e,t){var n=jl;jl|=1;try{return e(t)}finally{0===(jl=n)&&(Hl=Ke()+500,za&&Ua())}}function du(e){null!==ql&&0===ql.tag&&0===(6&jl)&&Su();var t=jl;jl|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,0===(6&(jl=t))&&Ua()}}function fu(){Rl=Dl.current,_a(Dl)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(ti(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ra();break;case 3:ao(),_a(ja),_a(Ta),co();break;case 5:oo(r);break;case 4:ao();break;case 13:case 19:_a(so);break;case 10:wi(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Nl=e,Ll=e=Du(e.current,null),Ml=Rl=t,Vl=0,Al=null,zl=Ol=Fl=0,Il=Bl=null,null!==Ei){for(t=0;t<Ei.length;t++)if(null!==(r=(n=Ei[t]).interleaved)){n.interleaved=null;var a=r.next,i=n.pending;if(null!==i){var o=i.next;i.next=a,r.next=o}n.pending=r}Ei=null}return e}function hu(e,t){for(;;){var n=Ll;try{if(Ci(),fo.current=os,yo){for(var r=mo.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}yo=!1}if(ho=0,vo=go=mo=null,bo=!1,xo=0,Pl.current=null,null===n||null===n.return){Vl=1,Al=t,Ll=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=Ml,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&gs(o,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0===(1&t)){gs(o,c,t),gu();break e}u=Error(i(426))}else if(ai&&1&l.mode){var v=vs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),ys(v,s,l,0,t),hi(cs(u,l));break e}}o=u=cs(u,l),4!==Vl&&(Vl=2),null===Bl?Bl=[o]:Bl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Ai(o,hs(0,u,t));break e;case 1:l=u;var y=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Yl||!Yl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Ai(o,ms(o,l,t));break e}}o=o.return}while(null!==o)}Cu(n)}catch(x){t=x,Ll===n&&null!==n&&(Ll=n=n.return);continue}break}}function mu(){var e=El.current;return El.current=os,null===e?os:e}function gu(){0!==Vl&&3!==Vl&&2!==Vl||(Vl=4),null===Nl||0===(268435455&Fl)&&0===(268435455&Ol)||lu(Nl,Ml)}function vu(e,t){var n=jl;jl|=2;var r=mu();for(Nl===e&&Ml===t||(Wl=null,pu(e,t));;)try{yu();break}catch(a){hu(e,a)}if(Ci(),jl=n,El.current=r,null!==Ll)throw Error(i(261));return Nl=null,Ml=0,Vl}function yu(){for(;null!==Ll;)xu(Ll)}function bu(){for(;null!==Ll&&!qe();)xu(Ll)}function xu(e){var t=kl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?Cu(e):Ll=t,Pl.current=null}function Cu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Zs(n,t,Rl)))return void(Ll=n)}else{if(null!==(n=qs(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Vl=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Vl&&(Vl=5)}function wu(e,t,n){var r=bt,a=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{Su()}while(null!==ql);if(0!==(6&jl))throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-ot(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}(e,o),e===Nl&&(Ll=Nl=null,Ml=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Zl||(Zl=!0,Nu(tt,(function(){return Su(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=jl;jl|=4,Pl.current=null,function(e,t){if(ea=Wt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(C){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==a&&3!==f.nodeType||(l=s+a),f!==o||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===a&&(l=s),p===o&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:gi(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(C){_u(t,t.return,C)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),vl(n,e),hr(ta),Wt=!!ea,ta=ea=null,e.current=n,bl(n,e,a),Ge(),jl=l,bt=s,Tl.transition=o}else e.current=n;if(Zl&&(Zl=!1,ql=e,Gl=a),o=e.pendingLanes,0===o&&(Yl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(at,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),au(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if($l)throw $l=!1,e=Ql,Ql=null,e;0!==(1&Gl)&&0!==e.tag&&Su(),o=e.pendingLanes,0!==(1&o)?e===Xl?Kl++:(Kl=0,Xl=e):Kl=0,Ua()}(e,t,n,r)}finally{Tl.transition=a,bt=r}return null}function Su(){if(null!==ql){var e=xt(Gl),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Gl=0,0!==(6&jl))throw Error(i(331));var a=jl;for(jl|=4,Js=e.current;null!==Js;){var o=Js,s=o.child;if(0!==(16&Js.flags)){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,o)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(ol(d),d===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,Js=s;else e:for(;null!==Js;){if(0!==(2048&(o=Js).flags))switch(o.tag){case 0:case 11:case 15:rl(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Js=y;break e}Js=o.return}}var b=e.current;for(Js=b;null!==Js;){var x=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Js=x;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:al(9,l)}}catch(w){_u(l,l.return,w)}if(l===s){Js=null;break e}var C=l.sibling;if(null!==C){C.return=l.return,Js=C;break e}Js=l.return}}if(jl=a,Ua(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(at,e)}catch(w){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function ku(e,t,n){e=Di(e,t=hs(0,t=cs(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),au(e,t))}function _u(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){t=Di(t,e=ms(t,e=cs(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),au(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Ml&n)===n&&(4===Vl||3===Vl&&(130023424&Ml)===Ml&&500>Ke()-Ul?pu(e,0):zl|=n),au(e,t)}function Pu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=ji(e,t))&&(vt(e,t,n),au(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function ju(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Pu(e,n)}function Nu(e,t){return Ye(e,t)}function Lu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mu(e,t,n,r){return new Lu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Du(e,t){var n=e.alternate;return null===n?((n=Mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vu(e,t,n,r,a,o){var s=2;if(r=e,"function"===typeof e)Ru(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Au(n.children,a,o,t);case k:s=8,a|=8;break;case _:return(e=Mu(12,n,t,2|a)).elementType=_,e.lanes=o,e;case j:return(e=Mu(13,n,t,a)).elementType=j,e.lanes=o,e;case N:return(e=Mu(19,n,t,a)).elementType=N,e.lanes=o,e;case R:return Fu(n,a,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case P:s=9;break e;case T:s=11;break e;case L:s=14;break e;case M:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Mu(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Au(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function Fu(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Ou(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function zu(e,t,n){return(t=Mu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Iu(e,t,n,r,a,i,o,s,l){return e=new Bu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Mu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Uu(e){if(!e)return Pa;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ma(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ma(n))return Va(e,n,t)}return t}function Hu(e,t,n,r,a,i,o,s,l){return(e=Iu(n,r,!0,e,0,i,0,s,l)).context=Uu(null),n=e.current,(i=Ri(r=tu(),a=nu(n))).callback=void 0!==t&&null!==t?t:null,Di(n,i,a),e.current.lanes=a,vt(e,a,r),au(e,r),e}function Wu(e,t,n,r){var a=t.current,i=tu(),o=nu(a);return n=Uu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ri(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Di(a,t,o))&&(ru(e,a,o,i),Vi(e,a,o)),o}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yu(e,t){Qu(e,t),(e=e.alternate)&&Qu(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ja.current)xs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),pi();break;case 5:io(t);break;case 1:Ma(t.type)&&Aa(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ea(vi,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ea(so,1&so.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Os(e,t,n):(Ea(so,1&so.current),null!==(e=$s(e,t,n))?e.sibling:null);Ea(so,1&so.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ea(so,so.current),r)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,n)}return $s(e,t,n)}(e,t,n);xs=0!==(131072&e.flags)}else xs=!1,ai&&0!==(1048576&t.flags)&&Ja(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var a=La(t,Ta.current);ki(t,n),a=ko(null,t,r,e,a,n);var o=_o();return t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ma(r)?(o=!0,Aa(t)):o=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Li(t),a.updater=Ii,t.stateNode=a,a._reactInternals=t,$i(t,r,e,n),t=js(null,t,r,!0,o,n)):(t.tag=0,ai&&o&&ei(t),Cs(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"===typeof e)return Ru(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===L)return 14}return 2}(r),e=gi(r,e),a){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,gi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ps(e,t,r,a=t.elementType===r?a:gi(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ts(e,t,r,a=t.elementType===r?a:gi(r,a),n);case 3:e:{if(Ns(t),null===e)throw Error(i(387));r=t.pendingProps,a=(o=t.memoizedState).element,Mi(e,t),Fi(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ls(e,t,r,n,a=cs(Error(i(423)),t));break e}if(r!==a){t=Ls(e,t,r,n,a=cs(Error(i(424)),t));break e}for(ri=ua(t.stateNode.containerInfo.firstChild),ni=t,ai=!0,ii=null,n=Ki(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===a){t=$s(e,t,n);break e}Cs(e,t,r,n)}t=t.child}return t;case 5:return io(t),null===e&&ui(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==o&&na(r,o)&&(t.flags|=32),Es(e,t),Cs(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Os(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Gi(t,null,r,n):Cs(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ws(e,t,r,a=t.elementType===r?a:gi(r,a),n);case 7:return Cs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Cs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Ea(vi,r._currentValue),r._currentValue=s,null!==o)if(sr(o.value,s)){if(o.children===a.children&&!ja.current){t=$s(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Ri(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Si(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Si(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}Cs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ki(t,n),r=r(a=_i(a)),t.flags|=1,Cs(e,t,r,n),t.child;case 14:return a=gi(r=t.type,t.pendingProps),Ss(e,t,r,a=gi(r.type,a),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gi(r,a),Ws(e,t),t.tag=1,Ma(r)?(e=!0,Aa(t)):e=!1,ki(t,n),Hi(t,r,a),$i(t,r,a,n),js(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return _s(e,t,n)}throw Error(i(156,t.tag))};var Zu="function"===typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if("function"===typeof a){var s=a;a=function(){var e=$u(o);s.call(e)}}Wu(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"===typeof r){var i=r;r=function(){var e=$u(o);i.call(e)}}var o=Hu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=o,e[ha]=o.current,Ur(8===e.nodeType?e.parentNode:e),du(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"===typeof r){var s=r;r=function(){var e=$u(l);s.call(e)}}var l=Iu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[ha]=l.current,Ur(8===e.nodeType?e.parentNode:e),du((function(){Wu(t,l,n,r)})),l}(n,t,e,a,r);return $u(o)}Gu.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Wu(e,t,null,null)},Gu.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Wu(null,e,null,null)})),t[ha]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Ft(e)}},Ct=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),au(t,Ke()),0===(6&jl)&&(Hl=Ke()+500,Ua()))}break;case 13:du((function(){var t=ji(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Yu(e,1)}},wt=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)ru(t,e,134217728,tu());Yu(e,134217728)}},St=function(e){if(13===e.tag){var t=nu(e),n=ji(e,t);if(null!==n)ru(n,e,t,tu());Yu(e,t)}},kt=function(){return bt},_t=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Ca(r);if(!a)throw Error(i(90));Y(r),X(r,a)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cu,je=du;var tc={usingClientEntryPoint:!1,Events:[ba,xa,Ca,Ee,Pe,cu]},nc={findFiberByHostInstance:ya,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{at=ac.inject(rc),it=ac}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Ku(e))throw Error(i(299));var n=!1,r="",a=Zu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Iu(e,1,!1,null,0,n,0,r,a),e[ha]=t.current,Ur(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ku(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,a=!1,o="",s=Zu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,a,0,o,s),e[ha]=t.current,Ur(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Gu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[ha]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},250:(e,t,n)=>{var r=n(164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},164:(e,t,n)=>{!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(463)},374:(e,t,n)=>{var r=n(791),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},117:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,m(x,v.prototype),x.isPureReactComponent=!0;var C=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var a,i={},o=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,a)&&!k.hasOwnProperty(a)&&(i[a]=t[a]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===i[a]&&(i[a]=l[a]);return{$$typeof:n,type:e,key:o,ref:s,props:i,_owner:S.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,a,i,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return o=o(l=e),e=""===i?"."+T(l,0):i,C(o)?(a="",null!=e&&(a=e.replace(P,"$&/")+"/"),j(o,t,a,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,a+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+e)),t.push(o)),1;if(l=0,i=""===i?".":i+":",C(e))for(var u=0;u<e.length;u++){var c=i+T(s=e[u],u);l+=j(s,t,a,c,o)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=j(s=s.value,t,a,c=i+T(s,u++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],a=0;return j(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},R={transition:null},D={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=a,t.Profiler=o,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!k.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}return{$$typeof:n,type:e.type,key:i,ref:o,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return M.current.useTransition()},t.version="18.2.0"},791:(e,t,n)=>{e.exports=n(117)},184:(e,t,n)=>{e.exports=n(374)},813:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<i(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<a&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<a&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function C(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,R(w);else{var t=r(c);null!==t&&D(C,t.startTime-e)}}function w(e,n){m=!1,g&&(g=!1,y(E),E=-1),h=!0;var i=p;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!j());){var o=f.callback;if("function"===typeof o){f.callback=null,p=f.priorityLevel;var s=o(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(u)&&a(u),x(n)}else a(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&D(C,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,_=null,E=-1,P=5,T=-1;function j(){return!(t.unstable_now()-T<P)}function N(){if(null!==_){var e=t.unstable_now();T=e;var n=!0;try{n=_(!0,e)}finally{n?S():(k=!1,_=null)}}else k=!1}if("function"===typeof b)S=function(){b(N)};else if("undefined"!==typeof MessageChannel){var L=new MessageChannel,M=L.port2;L.port1.onmessage=N,S=function(){M.postMessage(null)}}else S=function(){v(N,0)};function R(e){_=e,k||(k=!0,S())}function D(e,n){E=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,R(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,i){var o=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?o+i:o:i=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>o?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(y(E),E=-1):g=!0,D(C,i-o))):(e.sortIndex=s,n(u,e),m||h||(m=!0,R(w))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},296:(e,t,n)=>{e.exports=n(813)}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,n.d(i,o),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{var e,t=n(791),r=n.t(t,2),a=n(250),i=n(164),o=n.t(i,2);function s(){return s=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},s.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const l="popstate";function u(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function c(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,r){return void 0===n&&(n=null),s({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?h(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function p(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 h(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 m(t,n,r,a){void 0===a&&(a={});let{window:i=document.defaultView,v5Compat:o=!1}=a,c=i.history,h=e.Pop,m=null,g=v();function v(){return(c.state||{idx:null}).idx}function y(){h=e.Pop;let t=v(),n=null==t?null:t-g;g=t,m&&m({action:h,location:x.location,delta:n})}function b(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:p(e);return u(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,c.replaceState(s({},c.state,{idx:g}),""));let x={get action(){return h},get location(){return t(i,c)},listen(e){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(l,y),m=e,()=>{i.removeEventListener(l,y),m=null}},createHref:e=>n(i,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,n){h=e.Push;let a=f(x.location,t,n);r&&r(a,t),g=v()+1;let s=d(a,g),l=x.createHref(a);try{c.pushState(s,"",l)}catch(u){if(u instanceof DOMException&&"DataCloneError"===u.name)throw u;i.location.assign(l)}o&&m&&m({action:h,location:x.location,delta:1})},replace:function(t,n){h=e.Replace;let a=f(x.location,t,n);r&&r(a,t),g=v();let i=d(a,g),s=x.createHref(a);c.replaceState(i,"",s),o&&m&&m({action:h,location:x.location,delta:0})},go:e=>c.go(e)};return x}var g;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,n){void 0===n&&(n="/");let r=L(("string"===typeof t?h(t):t).pathname||"/",n);if(null==r)return null;let a=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let o=0;null==i&&o<a.length;++o)i=T(a[o],N(r));return i}function y(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,i)=>{let o={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};o.relativePath.startsWith("/")&&(u(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let s=A([r,o.relativePath]),l=n.concat(o);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),y(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:P(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of b(e.path))a(e,t,r);else a(e,t)})),t}function b(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return a?[i,""]:[i];let o=b(r.join("/")),s=[];return s.push(...o.map((e=>""===e?i:[i,e].join("/")))),a&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const x=/^:[\w-]+$/,C=3,w=2,S=1,k=10,_=-2,E=e=>"*"===e;function P(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=_),t&&(r+=w),n.filter((e=>!E(e))).reduce(((e,t)=>e+(x.test(t)?C:""===t?S:k)),r)}function T(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let o=0;o<n.length;++o){let e=n[o],s=o===n.length-1,l="/"===a?t:t.slice(a.length)||"/",u=j({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},l);if(!u)return null;Object.assign(r,u.params);let c=e.route;i.push({params:r,pathname:A([a,u.pathname]),pathnameBase:F(A([a,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(a=A([a,u.pathnameBase]))}return i}function j(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let i=new RegExp(a,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=s[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=a&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return c(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l||"",r),e}),{});return{params:l,pathname:i,pathnameBase:o,pattern:e}}function N(e){try{return decodeURI(e)}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function L(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function R(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function D(e,t){let n=R(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function V(e,t,n,r){let a;void 0===r&&(r=!1),"string"===typeof e?a=h(e):(a=s({},e),u(!a.pathname||!a.pathname.includes("?"),M("?","pathname","search",a)),u(!a.pathname||!a.pathname.includes("#"),M("#","pathname","hash",a)),u(!a.search||!a.search.includes("#"),M("#","search","hash",a)));let i,o=""===e||""===a.pathname,l=o?"/":a.pathname;if(null==l)i=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"===typeof e?h(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:O(r),hash:z(a)}}(a,i),d=l&&"/"!==l&&l.endsWith("/"),f=(o||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!f||(c.pathname+="/"),c}const A=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),O=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function B(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const I=["post","put","patch","delete"],U=(new Set(I),["get",...I]);new Set(U),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function H(){return H=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},H.apply(this,arguments)}const W=t.createContext(null);const $=t.createContext(null);const Q=t.createContext(null);const Y=t.createContext(null);const Z=t.createContext({outlet:null,matches:[],isDataRoute:!1});const q=t.createContext(null);function G(){return null!=t.useContext(Y)}function K(){return G()||u(!1),t.useContext(Y).location}function X(e){t.useContext(Q).static||t.useLayoutEffect(e)}function J(){let{isDataRoute:e}=t.useContext(Z);return e?function(){let{router:e}=ue(se.UseNavigateStable),n=de(le.UseNavigateStable),r=t.useRef(!1);X((()=>{r.current=!0}));let a=t.useCallback((function(t,a){void 0===a&&(a={}),r.current&&("number"===typeof t?e.navigate(t):e.navigate(t,H({fromRouteId:n},a)))}),[e,n]);return a}():function(){G()||u(!1);let e=t.useContext(W),{basename:n,future:r,navigator:a}=t.useContext(Q),{matches:i}=t.useContext(Z),{pathname:o}=K(),s=JSON.stringify(D(i,r.v7_relativeSplatPath)),l=t.useRef(!1);return X((()=>{l.current=!0})),t.useCallback((function(t,r){if(void 0===r&&(r={}),!l.current)return;if("number"===typeof t)return void a.go(t);let i=V(t,JSON.parse(s),o,"path"===r.relative);null==e&&"/"!==n&&(i.pathname="/"===i.pathname?n:A([n,i.pathname])),(r.replace?a.replace:a.push)(i,r.state,r)}),[n,a,s,o,e])}()}function ee(e,n){let{relative:r}=void 0===n?{}:n,{future:a}=t.useContext(Q),{matches:i}=t.useContext(Z),{pathname:o}=K(),s=JSON.stringify(D(i,a.v7_relativeSplatPath));return t.useMemo((()=>V(e,JSON.parse(s),o,"path"===r)),[e,s,o,r])}function te(n,r,a,i){G()||u(!1);let{navigator:o}=t.useContext(Q),{matches:s}=t.useContext(Z),l=s[s.length-1],c=l?l.params:{},d=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let f,p=K();if(r){var m;let e="string"===typeof r?h(r):r;"/"===d||(null==(m=e.pathname)?void 0:m.startsWith(d))||u(!1),f=e}else f=p;let g=f.pathname||"/",y=v(n,{pathname:"/"===d?g:g.slice(d.length)||"/"});let b=oe(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:A([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:A([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,a,i);return r&&b?t.createElement(Y.Provider,{value:{location:H({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:e.Pop}},b):b}function ne(){let e=function(){var e;let n=t.useContext(q),r=ce(le.UseRouteError),a=de(le.UseRouteError);if(void 0!==n)return n;return null==(e=r.errors)?void 0:e[a]}(),n=B(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:a};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:i},r):null,null)}const re=t.createElement(ne,null);class ae extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(Z.Provider,{value:this.props.routeContext},t.createElement(q.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ie(e){let{routeContext:n,match:r,children:a}=e,i=t.useContext(W);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(Z.Provider,{value:n},a)}function oe(e,n,r,a){var i;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===a&&(a=null),null==e){var o;if(null==(o=r)||!o.errors)return null;e=r.matches}let s=e,l=null==(i=r)?void 0:i.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||u(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&a&&a.v7_partialHydration)for(let t=0;t<s.length;t++){let e=s[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=t),e.route.id){let{loaderData:t,errors:n}=r,a=e.route.loader&&void 0===t[e.route.id]&&(!n||void 0===n[e.route.id]);if(e.route.lazy||a){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,a,i)=>{let o,u=!1,f=null,p=null;var h;r&&(o=l&&a.route.id?l[a.route.id]:void 0,f=a.route.errorElement||re,c&&(d<0&&0===i?(h="route-fallback",!1||fe[h]||(fe[h]=!0),u=!0,p=null):d===i&&(u=!0,p=a.route.hydrateFallbackElement||null)));let m=n.concat(s.slice(0,i+1)),g=()=>{let n;return n=o?f:u?p:a.route.Component?t.createElement(a.route.Component,null):a.route.element?a.route.element:e,t.createElement(ie,{match:a,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:n})};return r&&(a.route.ErrorBoundary||a.route.errorElement||0===i)?t.createElement(ae,{location:r.location,revalidation:r.revalidation,component:f,error:o,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var se=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(se||{}),le=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(le||{});function ue(e){let n=t.useContext(W);return n||u(!1),n}function ce(e){let n=t.useContext($);return n||u(!1),n}function de(e){let n=function(e){let n=t.useContext(Z);return n||u(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||u(!1),r.route.id}const fe={};r.startTransition;function pe(e){u(!1)}function he(n){let{basename:r="/",children:a=null,location:i,navigationType:o=e.Pop,navigator:s,static:l=!1,future:c}=n;G()&&u(!1);let d=r.replace(/^\/*/,"/"),f=t.useMemo((()=>({basename:d,navigator:s,static:l,future:H({v7_relativeSplatPath:!1},c)})),[d,c,s,l]);"string"===typeof i&&(i=h(i));let{pathname:p="/",search:m="",hash:g="",state:v=null,key:y="default"}=i,b=t.useMemo((()=>{let e=L(p,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:v,key:y},navigationType:o}}),[d,p,m,g,v,y,o]);return null==b?null:t.createElement(Q.Provider,{value:f},t.createElement(Y.Provider,{children:a,value:b}))}function me(e){let{children:t,location:n}=e;return te(ge(t),n)}new Promise((()=>{}));t.Component;function ge(e,n){void 0===n&&(n=[]);let r=[];return t.Children.forEach(e,((e,a)=>{if(!t.isValidElement(e))return;let i=[...n,a];if(e.type===t.Fragment)return void r.push.apply(r,ge(e.props.children,i));e.type!==pe&&u(!1),e.props.index&&e.props.children&&u(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ge(e.props.children,i)),r.push(o)})),r}function ve(){return ve=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},ve.apply(this,arguments)}function ye(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const be=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(gl){}new Map;const xe=r.startTransition;o.flushSync,r.useId;function Ce(e){let{basename:n,children:r,future:a,window:i}=e,o=t.useRef();var s;null==o.current&&(o.current=(void 0===(s={window:i,v5Compat:!0})&&(s={}),m((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return f("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:p(t)}),null,s)));let l=o.current,[u,c]=t.useState({action:l.action,location:l.location}),{v7_startTransition:d}=a||{},h=t.useCallback((e=>{d&&xe?xe((()=>c(e))):c(e)}),[c,d]);return t.useLayoutEffect((()=>l.listen(h)),[l,h]),t.createElement(he,{basename:n,children:r,location:u.location,navigationType:u.action,navigator:l,future:a})}const we="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Se=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ke=t.forwardRef((function(e,n){let r,{onClick:a,relative:i,reloadDocument:o,replace:s,state:l,target:c,to:d,preventScrollReset:f,unstable_viewTransition:h}=e,m=ye(e,be),{basename:g}=t.useContext(Q),v=!1;if("string"===typeof d&&Se.test(d)&&(r=d,we))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=L(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:v=!0}catch(gl){}let y=function(e,n){let{relative:r}=void 0===n?{}:n;G()||u(!1);let{basename:a,navigator:i}=t.useContext(Q),{hash:o,pathname:s,search:l}=ee(e,{relative:r}),c=s;return"/"!==a&&(c="/"===s?a:A([a,s])),i.createHref({pathname:c,search:l,hash:o})}(d,{relative:i}),b=function(e,n){let{target:r,replace:a,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l}=void 0===n?{}:n,u=J(),c=K(),d=ee(e,{relative:s});return t.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let n=void 0!==a?a:p(c)===p(d);u(e,{replace:n,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l})}}),[c,u,d,a,i,r,e,o,s,l])}(d,{replace:s,state:l,target:c,preventScrollReset:f,relative:i,unstable_viewTransition:h});return t.createElement("a",ve({},m,{href:r||y,onClick:v||o?a:function(e){a&&a(e),e.defaultPrevented||b(e)},ref:n,target:c}))}));var _e,Ee;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_e||(_e={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ee||(Ee={}));var Pe=n(184);function Te(e){let{product:t}=e;const n=t.price.toString();return(0,Pe.jsxs)("article",{className:"product-article",children:[(0,Pe.jsx)("img",{src:t.image,alt:"",className:"product-article__img"}),(0,Pe.jsxs)("h5",{className:"product-article__price-h5",children:[(0,Pe.jsx)("span",{children:n}),(0,Pe.jsx)("span",{children:"\u20bd"})]}),(0,Pe.jsx)("h6",{className:"product-article__name-h6",children:t.name})]})}function je(){return(0,Pe.jsx)("div",{className:"banner-div"})}function Ne(e){let{products:t,selectedCategory:n}=e;return(0,Pe.jsxs)("section",{className:"home-page",children:[(0,Pe.jsx)(je,{}),(0,Pe.jsx)("div",{className:"products-div",children:t.map((e=>(0,Pe.jsx)(Te,{product:e},e.id)))})]})}function Le(){const[e,n]=(0,t.useState)(""),[r,a]=(0,t.useState)(""),[i,o]=(0,t.useState)("");return(0,Pe.jsxs)("section",{className:"payment-page",children:[(0,Pe.jsxs)("h2",{className:"payment-page__price",children:[150," \u20bd"]}),(0,Pe.jsxs)("div",{className:"payment-page__payment-card",children:[(0,Pe.jsx)("h3",{className:"payment-card__heading",children:"\u041e\u043f\u043b\u0430\u0442\u0430 \u043a\u0430\u0440\u0442\u043e\u0439"}),(0,Pe.jsx)("input",{className:"payment-card__input",type:"text",name:"",id:"",placeholder:"\u041d\u043e\u043c\u0435\u0440",value:e,onChange:e=>{let t=e.target.value.replace(/ /g,"").replace(/\D/g,"");t.length>16&&(t=t.substr(0,16));const r=t.match(/.{1,4}/g);let a="";r&&(a=r.join(" ")),n(a)}}),(0,Pe.jsxs)("div",{className:"payment-card__inputs-group",children:[(0,Pe.jsx)("input",{className:"payment-card__input",type:"number",name:"",id:"",placeholder:"\u041c\u041c/\u0413\u0413",value:r,onChange:e=>{const t=e.target.value;t.length<=4&&a(""===t?"":Number(t))}}),(0,Pe.jsx)("input",{className:"payment-card__input",type:"number",name:"",id:"",placeholder:"CVC/CVV",value:i,onChange:e=>{const t=e.target.value;t.length<=3&&o(""===t?"":Number(t))}})]})]}),(0,Pe.jsx)("a",{href:"scam",className:"payment-page__pay-link",children:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c"})]})}const Me=n.p+"static/media/review__user-avatar-test.d6da0e9b7f307182b6f5.png",Re=n.p+"static/media/review__product-image.1228f982dc61729a63d0.webp";function De(){return(0,Pe.jsxs)("article",{className:"review-article",children:[(0,Pe.jsxs)("div",{className:"review-article__review-container",children:[(0,Pe.jsxs)("div",{className:"review-container__user-info",children:[(0,Pe.jsx)("img",{className:"user-info__user-avatar",src:Me,alt:"Review user avatar"}),(0,Pe.jsx)("h4",{className:"user-info__user-name",children:"\u0421\u0432\u044f\u0442\u043e\u0441\u043b\u0430\u0432 \u0412\u0430\u0441\u0438\u043b\u044c\u0435\u0432"})]}),(0,Pe.jsxs)("div",{className:"review-container__review-info",children:[(0,Pe.jsxs)("div",{className:"review-info__star-rate",children:[(0,Pe.jsx)("input",{type:"radio",className:"star-rate__star-radio",name:"review-rating",value:1,"aria-label":"\u041f\u043b\u043e\u0445\u043e"}),(0,Pe.jsx)("input",{type:"radio",className:"star-rate__star-radio",name:"review-rating",value:2,"aria-label":"\u0423\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e"}),(0,Pe.jsx)("input",{type:"radio",className:"star-rate__star-radio",name:"review-rating",value:3,"aria-label":"\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e"}),(0,Pe.jsx)("input",{type:"radio",className:"star-rate__star-radio",name:"review-rating",value:4,"aria-label":"\u0425\u043e\u0440\u043e\u0448\u043e"}),(0,Pe.jsx)("input",{type:"radio",className:"star-rate__star-radio",name:"review-rating",value:5,"aria-label":"\u041e\u0442\u043b\u0438\u0447\u043d\u043e",checked:!0})]}),(0,Pe.jsx)("time",{className:"review-info__review-date",dateTime:"2019-09-09",children:"09.09.2019"})]})]}),(0,Pe.jsx)("p",{className:"review-article__text-p",children:"dui faucibus in ornare quam viverra orci sagittis eu volutpat odio facilisis mauris sit amet massa vitae tortor condimentum lacinia"}),(0,Pe.jsx)("img",{className:"review-article__product-image",src:Re,alt:"Review product"})]})}const Ve=n.p+"static/media/product-image-1.32f43bafaff978a8db25.webp";const Ae=n.p+"static/media/share-icon.078e541564f15a9740537cec6baba9ab.svg";const Fe=n.p+"static/media/review-form__add-image-icon.16aa2699eed6b58147903dc5b785d709.svg",Oe=(0,t.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ze=(0,t.createContext)({}),Be=(0,t.createContext)(null),Ie="undefined"!==typeof document,Ue=Ie?t.useLayoutEffect:t.useEffect,He=(0,t.createContext)({strict:!1}),We=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),$e="data-"+We("framerAppearId"),Qe=!1,Ye=!1;class Ze{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const qe=["prepare","read","update","preRender","render","postRender"];function Ge(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=qe.reduce(((e,t)=>(e[t]=function(e){let t=new Ze,n=new Ze,r=0,a=!1,i=!1;const o=new WeakSet,s={schedule:function(e){const i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&a,s=i?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),s.add(e)&&i&&a&&(r=t.order.length),e},cancel:e=>{n.remove(e),o.delete(e)},process:l=>{if(a)i=!0;else{if(a=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];o.has(r)&&(s.schedule(r),e()),r(l)}a=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),e)),{}),o=e=>{i[e].process(a)},s=()=>{const i=Ye?a.timestamp:performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(i-a.timestamp,40),1),a.timestamp=i,a.isProcessing=!0,qe.forEach(o),a.isProcessing=!1,n&&t&&(r=!1,e(s))},l=qe.reduce(((t,o)=>{const l=i[o];return t[o]=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,a.isProcessing||e(s)),l.schedule(t,i,o)},t}),{});return{schedule:l,cancel:e=>qe.forEach((t=>i[t].cancel(e))),state:a,steps:i}}const{schedule:Ke,cancel:Xe}=Ge(queueMicrotask,!1);function Je(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function et(e){return"string"===typeof e||Array.isArray(e)}function tt(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const nt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rt=["initial",...nt];function at(e){return tt(e.animate)||rt.some((t=>et(e[t])))}function it(e){return Boolean(at(e)||e.variants)}function ot(e){const{initial:n,animate:r}=function(e,t){if(at(e)){const{initial:t,animate:n}=e;return{initial:!1===t||et(t)?t:void 0,animate:et(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(ze));return(0,t.useMemo)((()=>({initial:n,animate:r})),[st(n),st(r)])}function st(e){return Array.isArray(e)?e.join(" "):e}const lt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ut={};for(const n in lt)ut[n]={isEnabled:e=>lt[n].some((t=>!!e[t]))};const ct=(0,t.createContext)({}),dt=(0,t.createContext)({}),ft=Symbol.for("motionComponentSymbol");function pt(e){let{preloadedFeatures:n,createVisualElement:r,useRender:a,useVisualState:i,Component:o}=e;n&&function(e){for(const t in e)ut[t]={...ut[t],...e[t]}}(n);const s=(0,t.forwardRef)((function(e,s){let l;const u={...(0,t.useContext)(Oe),...e,layoutId:ht(e)},{isStatic:c}=u,d=ot(e),f=i(e,c);if(!c&&Ie){d.visualElement=function(e,n,r,a){const{visualElement:i}=(0,t.useContext)(ze),o=(0,t.useContext)(He),s=(0,t.useContext)(Be),l=(0,t.useContext)(Oe).reducedMotion,u=(0,t.useRef)();a=a||o.renderer,!u.current&&a&&(u.current=a(e,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;(0,t.useInsertionEffect)((()=>{c&&c.update(r,s)}));const d=(0,t.useRef)(Boolean(r[$e]&&!window.HandoffComplete));return Ue((()=>{c&&(Ke.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),(0,t.useEffect)((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(o,f,u,r);const e=(0,t.useContext)(dt),a=(0,t.useContext)(He).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,a,n,e))}return t.createElement(ze.Provider,{value:d},l&&d.visualElement?t.createElement(l,{visualElement:d.visualElement,...u}):null,a(o,e,function(e,n,r){return(0,t.useCallback)((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"===typeof r?r(t):Je(r)&&(r.current=t))}),[n])}(f,d.visualElement,s),f,c,d.visualElement))}));return s[ft]=o,s}function ht(e){let{layoutId:n}=e;const r=(0,t.useContext)(ct).id;return r&&void 0!==n?r+"-"+n:n}function mt(e){function t(t){return pt(e(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vt(e){return"string"===typeof e&&!e.includes("-")&&!!(gt.indexOf(e)>-1||/[A-Z]/.test(e))}const yt={};const bt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xt=new Set(bt);function Ct(e,t){let{layout:n,layoutId:r}=t;return xt.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!yt[e]||"opacity"===e)}const wt=e=>Boolean(e&&e.getVelocity),St={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kt=bt.length;const _t=e=>t=>"string"===typeof t&&t.startsWith(e),Et=_t("--"),Pt=_t("var(--"),Tt=(e,t)=>t&&"number"===typeof e?t.transform(e):e,jt=(e,t,n)=>Math.min(Math.max(n,e),t),Nt={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},Lt={...Nt,transform:e=>jt(0,1,e)},Mt={...Nt,default:1},Rt=e=>Math.round(1e5*e)/1e5,Dt=/(-)?([\d]*\.?[\d])+/g,Vt=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,At=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ft(e){return"string"===typeof e}const Ot=e=>({test:t=>Ft(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),zt=Ot("deg"),Bt=Ot("%"),It=Ot("px"),Ut=Ot("vh"),Ht=Ot("vw"),Wt={...Bt,parse:e=>Bt.parse(e)/100,transform:e=>Bt.transform(100*e)},$t={...Nt,transform:Math.round},Qt={borderWidth:It,borderTopWidth:It,borderRightWidth:It,borderBottomWidth:It,borderLeftWidth:It,borderRadius:It,radius:It,borderTopLeftRadius:It,borderTopRightRadius:It,borderBottomRightRadius:It,borderBottomLeftRadius:It,width:It,maxWidth:It,height:It,maxHeight:It,size:It,top:It,right:It,bottom:It,left:It,padding:It,paddingTop:It,paddingRight:It,paddingBottom:It,paddingLeft:It,margin:It,marginTop:It,marginRight:It,marginBottom:It,marginLeft:It,rotate:zt,rotateX:zt,rotateY:zt,rotateZ:zt,scale:Mt,scaleX:Mt,scaleY:Mt,scaleZ:Mt,skew:zt,skewX:zt,skewY:zt,distance:It,translateX:It,translateY:It,translateZ:It,x:It,y:It,z:It,perspective:It,transformPerspective:It,opacity:Lt,originX:Wt,originY:Wt,originZ:It,zIndex:$t,fillOpacity:Lt,strokeOpacity:Lt,numOctaves:$t};function Yt(e,t,n,r){const{style:a,vars:i,transform:o,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const e=t[d];if(Et(d)){i[d]=e;continue}const n=Qt[d],r=Tt(e,n);if(xt.has(d)){if(l=!0,o[d]=r,!c)continue;e!==(n.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=r):a[d]=r}if(t.transform||(l||r?a.transform=function(e,t,n,r){let{enableHardwareAcceleration:a=!0,allowTransformNone:i=!0}=t,o="";for(let s=0;s<kt;s++){const t=bt[s];if(void 0!==e[t]){const n=St[t]||t;o+="".concat(n,"(").concat(e[t],") ")}}return a&&!e.z&&(o+="translateZ(0)"),o=o.trim(),r?o=r(e,n?"":o):i&&n&&(o="none"),o}(e.transform,n,c,r):a.transform&&(a.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;a.transformOrigin="".concat(e," ").concat(t," ").concat(n)}}const Zt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qt(e,t,n){for(const r in t)wt(t[r])||Ct(r,n)||(e[r]=t[r])}function Gt(e,n,r){const a={};return qt(a,e.style||{},e),Object.assign(a,function(e,n,r){let{transformTemplate:a}=e;return(0,t.useMemo)((()=>{const e=Zt();return Yt(e,n,{enableHardwareAcceleration:!r},a),Object.assign({},e.vars,e.style)}),[n])}(e,n,r)),a}function Kt(e,t,n){const r={},a=Gt(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}const Xt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Jt(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Xt.has(e)}let en=e=>!Jt(e);try{(tn=require("@emotion/is-prop-valid").default)&&(en=e=>e.startsWith("on")?!Jt(e):tn(e))}catch(vl){}var tn;function nn(e,t,n){return"string"===typeof e?e:It.transform(t+n*e)}const rn={offset:"stroke-dashoffset",array:"stroke-dasharray"},an={offset:"strokeDashoffset",array:"strokeDasharray"};function on(e,t,n,r,a){let{attrX:i,attrY:o,attrScale:s,originX:l,originY:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...p}=t;if(Yt(e,p,n,a),r)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:g}=e;h.transform&&(g&&(m.transform=h.transform),delete h.transform),g&&(void 0!==l||void 0!==u||m.transform)&&(m.transformOrigin=function(e,t,n){const r=nn(t,e.x,e.width),a=nn(n,e.y,e.height);return"".concat(r," ").concat(a)}(g,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==i&&(h.x=i),void 0!==o&&(h.y=o),void 0!==s&&(h.scale=s),void 0!==c&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const i=a?rn:an;e[i.offset]=It.transform(-r);const o=It.transform(t),s=It.transform(n);e[i.array]="".concat(o," ").concat(s)}(h,c,d,f,!1)}const sn=()=>({...Zt(),attrs:{}}),ln=e=>"string"===typeof e&&"svg"===e.toLowerCase();function un(e,n,r,a){const i=(0,t.useMemo)((()=>{const t=sn();return on(t,n,{enableHardwareAcceleration:!1},ln(a),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};qt(t,e.style,e),i.style={...t,...i.style}}return i}function cn(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(n,r,a,i,o)=>{let{latestValues:s}=i;const l=(vt(n)?un:Kt)(r,s,o,n),u=function(e,t,n){const r={};for(const a in e)"values"===a&&"object"===typeof e.values||(en(a)||!0===n&&Jt(a)||!t&&!Jt(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}(r,"string"===typeof n,e),c={...u,...l,ref:a},{children:d}=r,f=(0,t.useMemo)((()=>wt(d)?d.get():d),[d]);return(0,t.createElement)(n,{...c,children:f})}}function dn(e,t,n,r){let{style:a,vars:i}=t;Object.assign(e.style,a,r&&r.getProjectionStyles(n));for(const o in i)e.style.setProperty(o,i[o])}const fn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function pn(e,t,n,r){dn(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(fn.has(a)?a:We(a),t.attrs[a])}function hn(e,t){const{style:n}=e,r={};for(const a in n)(wt(n[a])||t.style&&wt(t.style[a])||Ct(a,e))&&(r[a]=n[a]);return r}function mn(e,t){const n=hn(e,t);for(const r in e)if(wt(e[r])||wt(t[r])){n[-1!==bt.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function gn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"===typeof t&&(t=t(void 0!==n?n:e.custom,r,a)),"string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t&&(t=t(void 0!==n?n:e.custom,r,a)),t}const vn=e=>Array.isArray(e),yn=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),bn=e=>vn(e)?e[e.length-1]||0:e;function xn(e){const t=wt(e)?e.get():e;return yn(t)?t.toValue():t}const Cn=e=>(n,r)=>{const a=(0,t.useContext)(ze),i=(0,t.useContext)(Be),o=()=>function(e,t,n,r){let{scrapeMotionValuesFromProps:a,createRenderState:i,onMount:o}=e;const s={latestValues:wn(t,n,r,a),renderState:i()};return o&&(s.mount=e=>o(t,e,s)),s}(e,n,a,i);return r?o():function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}(o)};function wn(e,t,n,r){const a={},i=r(e,{});for(const f in i)a[f]=xn(i[f]);let{initial:o,animate:s}=e;const l=at(e),u=it(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===o;const d=c?s:o;if(d&&"boolean"!==typeof d&&!tt(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=gn(e,t);if(!n)return;const{transitionEnd:r,transition:i,...o}=n;for(const e in o){let t=o[e];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(a[e]=t)}for(const e in r)a[e]=r[e]}))}return a}const Sn=e=>e,{schedule:kn,cancel:_n,state:En,steps:Pn}=Ge("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:Sn,!0),Tn={useVisualState:Cn({scrapeMotionValuesFromProps:mn,createRenderState:sn,onMount:(e,t,n)=>{let{renderState:r,latestValues:a}=n;kn.read((()=>{try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(gl){r.dimensions={x:0,y:0,width:0,height:0}}})),kn.render((()=>{on(r,a,{enableHardwareAcceleration:!1},ln(t.tagName),e.transformTemplate),pn(t,r)}))}})},jn={useVisualState:Cn({scrapeMotionValuesFromProps:hn,createRenderState:Zt})};function Nn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ln=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function Mn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Rn=e=>t=>Ln(t)&&e(t,Mn(t));function Dn(e,t,n,r){return Nn(e,t,Rn(n),r)}const Vn=(e,t)=>n=>t(e(n)),An=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Vn)};function Fn(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const On=Fn("dragHorizontal"),zn=Fn("dragVertical");function Bn(e){let t=!1;if("y"===e)t=zn();else if("x"===e)t=On();else{const e=On(),n=zn();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function In(){const e=Bn(!0);return!e||(e(),!1)}class Un{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Hn(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Dn(e.current,n,((n,a)=>{if("touch"===n.pointerType||In())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&kn.update((()=>i[r](n,a)))}),{passive:!e.getProps()[r]})}const Wn=(e,t)=>!!t&&(e===t||Wn(e,t.parentElement));function $n(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Mn(n))}const Qn=new WeakMap,Yn=new WeakMap,Zn=e=>{const t=Qn.get(e.target);t&&t(e)},qn=e=>{e.forEach(Zn)};function Gn(e,t,n){const r=function(e){let{root:t,...n}=e;const r=t||document;Yn.has(r)||Yn.set(r,{});const a=Yn.get(r),i=JSON.stringify(n);return a[i]||(a[i]=new IntersectionObserver(qn,{root:t,...n})),a[i]}(t);return Qn.set(e,n),r.observe(e),()=>{Qn.delete(e),r.unobserve(e)}}const Kn={some:0,all:1};const Xn={inView:{Feature:class extends Un{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:a}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"===typeof r?r:Kn[r]};return Gn(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,a&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Un{constructor(){super(...arguments),this.removeStartListeners=Sn,this.removeEndListeners=Sn,this.removeAccessibleListeners=Sn,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Dn(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:a}=this.node.getProps();kn.update((()=>{a||Wn(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),a=Dn(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=An(r,a),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Nn(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Nn(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&$n("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&kn.update((()=>n(e,t)))}))})),$n("down",((e,t)=>{this.startPress(e,t)}))})),t=Nn(this.node.current,"blur",(()=>{this.isPressing&&$n("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=An(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&kn.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!In()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&kn.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Dn(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Nn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=An(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Un{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(gl){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=An(Nn(this.node.current,"focus",(()=>this.onFocus())),Nn(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Un{mount(){this.unmount=An(Hn(this.node,!0),Hn(this.node,!1))}unmount(){}}}};function Jn(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function er(e,t,n){const r=e.getProps();return gn(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}let tr=Sn,nr=Sn;const rr=e=>1e3*e,ar=e=>e/1e3,ir=!1,or=e=>Array.isArray(e)&&"number"===typeof e[0];function sr(e){return Boolean(!e||"string"===typeof e&&ur[e]||or(e)||Array.isArray(e)&&e.every(sr))}const lr=e=>{let[t,n,r,a]=e;return"cubic-bezier(".concat(t,", ").concat(n,", ").concat(r,", ").concat(a,")")},ur={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lr([0,.65,.55,1]),circOut:lr([.55,0,1,.45]),backIn:lr([.31,.01,.66,-.59]),backOut:lr([.33,1.53,.69,.99])};function cr(e){if(e)return or(e)?lr(e):Array.isArray(e)?e.map(cr):ur[e]}const dr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fr=1e-7,pr=12;function hr(e,t,n,r){if(e===t&&n===r)return Sn;const a=t=>function(e,t,n,r,a){let i,o,s=0;do{o=t+(n-t)/2,i=dr(o,r,a)-e,i>0?n=o:t=o}while(Math.abs(i)>fr&&++s<pr);return o}(t,0,1,e,n);return e=>0===e||1===e?e:dr(a(e),t,r)}const mr=hr(.42,0,1,1),gr=hr(0,0,.58,1),vr=hr(.42,0,.58,1),yr=e=>Array.isArray(e)&&"number"!==typeof e[0],br=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xr=e=>t=>1-e(1-t),Cr=e=>1-Math.sin(Math.acos(e)),wr=xr(Cr),Sr=br(Cr),kr=hr(.33,1.53,.69,.99),_r=xr(kr),Er=br(_r),Pr={linear:Sn,easeIn:mr,easeInOut:vr,easeOut:gr,circIn:Cr,circInOut:Sr,circOut:wr,backIn:_r,backInOut:Er,backOut:kr,anticipate:e=>(e*=2)<1?.5*_r(e):.5*(2-Math.pow(2,-10*(e-1)))},Tr=e=>{if(Array.isArray(e)){nr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,a]=e;return hr(t,n,r,a)}return"string"===typeof e?(nr(void 0!==Pr[e],"Invalid easing type '".concat(e,"'")),Pr[e]):e},jr=(e,t)=>n=>Boolean(Ft(n)&&At.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Nr=(e,t,n)=>r=>{if(!Ft(r))return r;const[a,i,o,s]=r.match(Dt);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},Lr={...Nt,transform:e=>Math.round((e=>jt(0,255,e))(e))},Mr={test:jr("rgb","red"),parse:Nr("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:a=1}=e;return"rgba("+Lr.transform(t)+", "+Lr.transform(n)+", "+Lr.transform(r)+", "+Rt(Lt.transform(a))+")"}};const Rr={test:jr("#"),parse:function(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}},transform:Mr.transform},Dr={test:jr("hsl","hue"),parse:Nr("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:a=1}=e;return"hsla("+Math.round(t)+", "+Bt.transform(Rt(n))+", "+Bt.transform(Rt(r))+", "+Rt(Lt.transform(a))+")"}},Vr={test:e=>Mr.test(e)||Rr.test(e)||Dr.test(e),parse:e=>Mr.test(e)?Mr.parse(e):Dr.test(e)?Dr.parse(e):Rr.parse(e),transform:e=>Ft(e)?e:e.hasOwnProperty("red")?Mr.transform(e):Dr.transform(e)},Ar=(e,t,n)=>-n*e+n*t+e;function Fr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Or=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},zr=[Rr,Mr,Dr];function Br(e){const t=(n=e,zr.find((e=>e.test(n))));var n;nr(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."));let r=t.parse(e);return t===Dr&&(r=function(e){let{hue:t,saturation:n,lightness:r,alpha:a}=e;t/=360,n/=100,r/=100;let i=0,o=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,a=2*r-e;i=Fr(a,e,t+1/3),o=Fr(a,e,t),s=Fr(a,e,t-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:a}}(r)),r}const Ir=(e,t)=>{const n=Br(e),r=Br(t),a={...n};return e=>(a.red=Or(n.red,r.red,e),a.green=Or(n.green,r.green,e),a.blue=Or(n.blue,r.blue,e),a.alpha=Ar(n.alpha,r.alpha,e),Mr.transform(a))};const Ur={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Sn},Hr={regex:Vt,countKey:"Colors",token:"${c}",parse:Vr.parse},Wr={regex:Dt,countKey:"Numbers",token:"${n}",parse:Nt.parse};function $r(e,t){let{regex:n,countKey:r,token:a,parse:i}=t;const o=e.tokenised.match(n);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(n,a),e.values.push(...o.map(i)))}function Qr(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&$r(n,Ur),$r(n,Hr),$r(n,Wr),n}function Yr(e){return Qr(e).values}function Zr(e){const{values:t,numColors:n,numVars:r,tokenised:a}=Qr(e),i=t.length;return e=>{let t=a;for(let a=0;a<i;a++)t=a<r?t.replace(Ur.token,e[a]):a<r+n?t.replace(Hr.token,Vr.transform(e[a])):t.replace(Wr.token,Rt(e[a]));return t}}const qr=e=>"number"===typeof e?0:e;const Gr={test:function(e){var t,n;return isNaN(e)&&Ft(e)&&((null===(t=e.match(Dt))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Vt))||void 0===n?void 0:n.length)||0)>0},parse:Yr,createTransformer:Zr,getAnimatableNone:function(e){const t=Yr(e);return Zr(e)(t.map(qr))}},Kr=(e,t)=>n=>"".concat(n>0?t:e);function Xr(e,t){return"number"===typeof e?n=>Ar(e,t,n):Vr.test(e)?Ir(e,t):e.startsWith("var(")?Kr(e,t):ta(e,t)}const Jr=(e,t)=>{const n=[...e],r=n.length,a=e.map(((e,n)=>Xr(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=a[t](e);return n}},ea=(e,t)=>{const n={...e,...t},r={};for(const a in n)void 0!==e[a]&&void 0!==t[a]&&(r[a]=Xr(e[a],t[a]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ta=(e,t)=>{const n=Gr.createTransformer(t),r=Qr(e),a=Qr(t);return r.numVars===a.numVars&&r.numColors===a.numColors&&r.numNumbers>=a.numNumbers?An(Jr(r.values,a.values),n):(tr(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),Kr(e,t))},na=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ra=(e,t)=>n=>Ar(e,t,n);function aa(e,t,n){const r=[],a=n||("number"===typeof(i=e[0])?ra:"string"===typeof i?Vr.test(i)?Ir:ta:Array.isArray(i)?Jr:"object"===typeof i?ea:ra);var i;const o=e.length-1;for(let s=0;s<o;s++){let n=a(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]||Sn:t;n=An(e,n)}r.push(n)}return r}function ia(e,t){let{clamp:n=!0,ease:r,mixer:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=e.length;if(nr(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=aa(t,r,a),s=o.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=na(e[n],e[n+1],t);return o[n](r)};return n?t=>l(jt(e[0],e[i-1],t)):l}function oa(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=na(0,t,r);e.push(Ar(n,1,a))}}(t,e.length-1),t}function sa(e){let{duration:t=300,keyframes:n,times:r,ease:a="easeInOut"}=e;const i=yr(a)?a.map(Tr):Tr(a),o={done:!1,value:n[0]},s=function(e,t){return e.map((e=>e*t))}(r&&r.length===n.length?r:oa(n),t),l=ia(s,n,{ease:Array.isArray(i)?i:(u=n,c=i,u.map((()=>c||vr)).splice(0,u.length-1))});var u,c;return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}function la(e,t){return t?e*(1e3/t):0}const ua=5;function ca(e,t,n){const r=Math.max(t-ua,0);return la(n-e(r),t-r)}const da=.001,fa=.01,pa=10,ha=.05,ma=1;function ga(e){let t,n,{duration:r=800,bounce:a=.25,velocity:i=0,mass:o=1}=e;tr(r<=rr(pa),"Spring duration must be 10 seconds or less");let s=1-a;s=jt(ha,ma,s),r=jt(fa,pa,ar(r)),s<1?(t=e=>{const t=e*s,n=t*r,a=t-i,o=ya(e,s),l=Math.exp(-n);return da-a/o*l},n=e=>{const n=e*s*r,a=n*i+i,o=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),u=ya(Math.pow(e,2),s);return(-t(e)+da>0?-1:1)*((a-o)*l)/u}):(t=e=>Math.exp(-e*r)*((e-i)*r+1)-da,n=e=>Math.exp(-e*r)*(r*r*(i-e)));const l=function(e,t,n){let r=n;for(let a=1;a<va;a++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=rr(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*s*Math.sqrt(o*e),duration:r}}}const va=12;function ya(e,t){return e*Math.sqrt(1-t*t)}const ba=["duration","bounce"],xa=["stiffness","damping","mass"];function Ca(e,t){return t.some((t=>void 0!==e[t]))}function wa(e){let{keyframes:t,restDelta:n,restSpeed:r,...a}=e;const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ca(e,xa)&&Ca(e,ba)){const n=ga(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...a,velocity:-ar(a.velocity||0)}),h=f||0,m=u/(2*Math.sqrt(l*c)),g=o-i,v=ar(Math.sqrt(l/c)),y=Math.abs(g)<5;let b;if(r||(r=y?.01:2),n||(n=y?.005:.5),m<1){const e=ya(v,m);b=t=>{const n=Math.exp(-m*v*t);return o-n*((h+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>o-Math.exp(-v*e)*(g+(h+v*g)*e);else{const e=v*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*v*t),r=Math.min(e*t,300);return o-n*((h+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const t=b(e);if(p)s.done=e>=d;else{let a=h;0!==e&&(a=m<1?ca(b,e,t):0);const i=Math.abs(a)<=r,l=Math.abs(o-t)<=n;s.done=i&&l}return s.value=s.done?o:t,s}}}function Sa(e){let{keyframes:t,velocity:n=0,power:r=.8,timeConstant:a=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}=e;const f=t[0],p={done:!1,value:f},h=e=>void 0===l?u:void 0===u||Math.abs(l-e)<Math.abs(u-e)?l:u;let m=r*n;const g=f+m,v=void 0===s?g:s(g);v!==g&&(m=v-f);const y=e=>-m*Math.exp(-e/a),b=e=>v+y(e),x=e=>{const t=y(e),n=b(e);p.done=Math.abs(t)<=c,p.value=p.done?v:n};let C,w;const S=e=>{var t;(t=p.value,void 0!==l&&t<l||void 0!==u&&t>u)&&(C=e,w=wa({keyframes:[p.value,h(p.value)],velocity:ca(b,e,p.value),damping:i,stiffness:o,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==C||(t=!0,x(e),S(e)),void 0!==C&&e>C?w.next(e-C):(!t&&x(e),p)}}}let ka;function _a(){ka=void 0}const Ea={now:()=>(void 0===ka&&Ea.set(En.isProcessing||Ye?En.timestamp:performance.now()),ka),set:e=>{ka=e,queueMicrotask(_a)}},Pa=e=>{const t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>kn.update(t,!0),stop:()=>_n(t),now:()=>En.isProcessing?En.timestamp:Ea.now()}},Ta=2e4;function ja(e){let t=0;let n=e.next(t);for(;!n.done&&t<Ta;)t+=50,n=e.next(t);return t>=Ta?1/0:t}const Na={decay:Sa,inertia:Sa,tween:sa,keyframes:sa,spring:wa};function La(e){let t,n,{autoplay:r=!0,delay:a=0,driver:i=Pa,keyframes:o,type:s="keyframes",repeat:l=0,repeatDelay:u=0,repeatType:c="loop",onPlay:d,onStop:f,onComplete:p,onUpdate:h,...m}=e,g=1,v=!1;const y=()=>{n=new Promise((e=>{t=e}))};let b;y();const x=Na[s]||sa;let C;x!==sa&&"number"!==typeof o[0]&&(C=ia([0,100],o,{clamp:!1}),o=[0,100]);const w=x({...m,keyframes:o});let S;"mirror"===c&&(S=x({...m,keyframes:[...o].reverse(),velocity:-(m.velocity||0)}));let k="idle",_=null,E=null,P=null;null===w.calculatedDuration&&l&&(w.calculatedDuration=ja(w));const{calculatedDuration:T}=w;let j=1/0,N=1/0;null!==T&&(j=T+u,N=j*(l+1)-u);let L=0;const M=e=>{if(null===E)return;g>0&&(E=Math.min(E,e)),g<0&&(E=Math.min(e-N/g,E)),L=null!==_?_:Math.round(e-E)*g;const t=L-a*(g>=0?1:-1),n=g>=0?t<0:t>N;L=Math.max(t,0),"finished"===k&&null===_&&(L=N);let r=L,i=w;if(l){const e=Math.min(L,N)/j;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,l+1);Boolean(t%2)&&("reverse"===c?(n=1-n,u&&(n-=u/j)):"mirror"===c&&(i=S)),r=jt(0,1,n)*j}const s=n?{done:!1,value:o[0]}:i.next(r);C&&(s.value=C(s.value));let{done:d}=s;n||null===T||(d=g>=0?L>=N:L<=0);const f=null===_&&("finished"===k||"running"===k&&d);return h&&h(s.value),f&&V(),s},R=()=>{b&&b.stop(),b=void 0},D=()=>{k="idle",R(),t(),y(),E=P=null},V=()=>{k="finished",p&&p(),R(),t()},A=()=>{if(v)return;b||(b=i(M));const e=b.now();d&&d(),null!==_?E=e-_:E&&"finished"!==k||(E=e),"finished"===k&&y(),P=E,_=null,k="running",b.start()};r&&A();const F={then:(e,t)=>n.then(e,t),get time(){return ar(L)},set time(e){e=rr(e),L=e,null===_&&b&&0!==g?E=b.now()-e/g:_=e},get duration(){const e=null===w.calculatedDuration?ja(w):w.calculatedDuration;return ar(e)},get speed(){return g},set speed(e){e!==g&&b&&(g=e,F.time=ar(L))},get state(){return k},play:A,pause:()=>{k="paused",_=L},stop:()=>{v=!0,"idle"!==k&&(k="idle",f&&f(),D())},cancel:()=>{null!==P&&M(P),D()},complete:()=>{k="finished"},sample:e=>(E=0,M(e))};return F}const Ma=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Ra=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Da(e,t,n){let{onUpdate:r,onComplete:a,...i}=n;if(!(Ma()&&Ra.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,s,l=!1,u=!1;const c=()=>{s=new Promise((e=>{o=e}))};c();let{keyframes:d,duration:f=300,ease:p,times:h}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!sr(t.ease))(t,i)){const e=La({...i,repeat:0,delay:0});let t={done:!1,value:d[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;h=void 0,d=n,f=r-10,p="linear"}const m=function(e,t,n){let{delay:r=0,duration:a,repeat:i=0,repeatType:o="loop",ease:s,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const u={[t]:n};l&&(u.offset=l);const c=cr(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:a,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"})}(e.owner.current,t,d,{...i,duration:f,ease:p,times:h}),g=()=>{u=!1,m.cancel()},v=()=>{u=!0,kn.update(g),o(),c()};m.onfinish=()=>{u||(e.set(function(e,t){let{repeat:n,repeatType:r="loop"}=t;return e[n&&"loop"!==r&&n%2===1?0:e.length-1]}(d,i)),a&&a(),v())};return{then:(e,t)=>s.then(e,t),attachTimeline:e=>(m.timeline=e,m.onfinish=null,Sn),get time(){return ar(m.currentTime||0)},set time(e){m.currentTime=rr(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return ar(f)},play:()=>{l||(m.play(),_n(g))},pause:()=>m.pause(),stop:()=>{if(l=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=La({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}v()},complete:()=>{u||m.finish()},cancel:v}}const Va={type:"spring",stiffness:500,damping:25,restSpeed:10},Aa={type:"keyframes",duration:.8},Fa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Oa=(e,t)=>{let{keyframes:n}=t;return n.length>2?Aa:xt.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:Va:Fa},za=(e,t)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Gr.test(t)&&"0"!==t||t.startsWith("url("))),Ba=new Set(["brightness","contrast","saturate","opacity"]);function Ia(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Dt)||[];if(!r)return e;const a=n.replace(r,"");let i=Ba.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const Ua=/([a-z-]*)\(.*?\)/g,Ha={...Gr,getAnimatableNone:e=>{const t=e.match(Ua);return t?t.map(Ia).join(" "):e}},Wa={...Qt,color:Vr,backgroundColor:Vr,outlineColor:Vr,fill:Vr,stroke:Vr,borderColor:Vr,borderTopColor:Vr,borderRightColor:Vr,borderBottomColor:Vr,borderLeftColor:Vr,filter:Ha,WebkitFilter:Ha},$a=e=>Wa[e];function Qa(e,t){let n=$a(e);return n!==Ha&&(n=Gr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ya=e=>/^0[^.\s]+$/.test(e);function Za(e){return"number"===typeof e?0===e:null!==e?"none"===e||"0"===e||Ya(e):void 0}function qa(e,t){return e[t]||e.default||e}const Ga=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a=>{const i=qa(r,e)||{},o=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=rr(o);const l=function(e,t,n,r){const a=za(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const o=void 0!==r.from?r.from:e.get();let s;const l=[];for(let u=0;u<i.length;u++)null===i[u]&&(i[u]=0===u?o:i[u-1]),Za(i[u])&&l.push(u),"string"===typeof i[u]&&"none"!==i[u]&&"0"!==i[u]&&(s=i[u]);if(a&&l.length&&s)for(let u=0;u<l.length;u++)i[l[u]]=Qa(t,s);return i}(t,e,n,i),u=l[0],c=l[l.length-1],d=za(e,u),f=za(e,c);tr(d===f,"You are trying to animate ".concat(e,' from "').concat(u,'" to "').concat(c,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(c," via the `style` property."));let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{a(),i.onComplete&&i.onComplete()}};if(function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:a,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}=e;return!!Object.keys(d).length}(i)||(p={...p,...Oa(e,p)}),p.duration&&(p.duration=rr(p.duration)),p.repeatDelay&&(p.repeatDelay=rr(p.repeatDelay)),!d||!f||ir||!1===i.type||Qe)return function(e){let{keyframes:t,delay:n,onUpdate:r,onComplete:a}=e;const i=()=>(r&&r(t[t.length-1]),a&&a(),{time:0,speed:1,duration:0,play:Sn,pause:Sn,stop:Sn,then:e=>(e(),Promise.resolve()),cancel:Sn,complete:Sn});return n?La({keyframes:[0,1],duration:0,delay:n,onComplete:i}):i()}(ir?{...p,delay:0}:p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Da(t,e,p);if(n)return n}return La(p)}};function Ka(e){return Boolean(wt(e)&&e.add)}const Xa=e=>/^\-?\d*\.?\d+$/.test(e);function Ja(e,t){-1===e.indexOf(t)&&e.push(t)}function ei(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ti{constructor(){this.subscriptions=[]}add(e){return Ja(this.subscriptions,e),()=>ei(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let a=0;a<r;a++){const r=this.subscriptions[a];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ni={current:void 0};class ri{constructor(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;this.version="11.0.3",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=Ea.now();t.updatedAt!==r&&t.setPrevFrameValue(),t.prev=t.current,t.setCurrent(e),t.current!==t.prev&&t.events.change&&t.events.change.notify(t.current),n&&t.events.renderRequest&&t.events.renderRequest.notify(t.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(r=this.current,!isNaN(parseFloat(r))),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ea.now()}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ti);const n=this.events[e].add(t);return"change"===e?()=>{n(),kn.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ni.current&&ni.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Ea.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return la(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new ri(e,t)}const ii=e=>t=>t.test(e),oi=[Nt,It,Bt,zt,Ht,Ut,{test:e=>"auto"===e,parse:e=>e}],si=e=>oi.find(ii(e)),li=[...oi,Vr,Gr];function ui(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function ci(e,t){const n=er(e,t);let{transitionEnd:r={},transition:a={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const o in i){ui(e,o,bn(i[o]))}}function di(e,t){if(!t)return;return(t[e]||t.default||t).from}function fi(e,t){let{protectedKeys:n,needsAnimating:r}=e;const a=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,a}function pi(e,t){const n=e.get();if(!Array.isArray(t))return n!==t;for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}function hi(e,t){let{delay:n=0,transitionOverride:r,type:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:i=e.getDefaultTransition(),transitionEnd:o,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const u=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const d in s){const t=e.getValue(d),r=s[d];if(!t||void 0===r||c&&fi(c,d))continue;const a={delay:n,elapsed:0,...qa(i||{},d)};if(window.HandoffAppearAnimations){const n=e.getProps()[$e];if(n){const e=window.HandoffAppearAnimations(n,d,t,kn);null!==e&&(a.elapsed=e,a.isHandoff=!0)}}let o=!a.isHandoff&&!pi(t,r);if("spring"===a.type&&(t.getVelocity()||a.velocity)&&(o=!1),t.animation&&(o=!1),o)continue;t.start(Ga(d,t,r,e.shouldReduceMotion&&xt.has(d)?{type:!1}:a));const f=t.animation;Ka(l)&&(l.add(d),f.then((()=>l.remove(d)))),u.push(f)}return o&&Promise.all(u).then((()=>{o&&ci(e,o)})),u}function mi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=er(e,t,n.custom);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const i=r?()=>Promise.all(hi(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=arguments.length>5?arguments[5]:void 0;const o=[],s=(e.variantChildren.size-1)*r,l=1===a?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return s-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(e.variantChildren).sort(gi).forEach(((e,r)=>{e.notify("AnimationStart",t),o.push(mi(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(o)}(e,t,i+r,o,s,n)}:()=>Promise.resolve(),{when:s}=a;if(s){const[e,t]="beforeChildren"===s?[i,o]:[o,i];return e().then((()=>t()))}return Promise.all([i(),o(n.delay)])}function gi(e,t){return e.sortNodePosition(t)}const vi=[...nt].reverse(),yi=nt.length;function bi(e){return t=>Promise.all(t.map((t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const a=t.map((t=>mi(e,t,r)));n=Promise.all(a)}else if("string"===typeof t)n=mi(e,t,r);else{const a="function"===typeof t?er(e,t,r.custom):t;n=Promise.all(hi(e,a,r))}return n.then((()=>e.notify("AnimationComplete",t)))}(e,n,r)})))}function xi(e){let t=bi(e);const n={animate:wi(!0),whileInView:wi(),whileHover:wi(),whileTap:wi(),whileDrag:wi(),whileFocus:wi(),exit:wi()};let r=!0;const a=(t,n)=>{const r=er(e,n);if(r){const{transition:e,transitionEnd:n,...a}=r;t={...t,...a,...n}}return t};function i(i,o){const s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set;let d={},f=1/0;for(let t=0;t<yi;t++){const p=vi[t],h=n[p],m=void 0!==s[p]?s[p]:l[p],g=et(m),v=p===o?h.isActive:null;!1===v&&(f=t);let y=m===l[p]&&m!==s[p]&&g;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===v||!m&&!h.prevProp||tt(m)||"boolean"===typeof m)continue;let b=Ci(h.prevProp,m)||p===o&&h.isActive&&!y&&g||t>f&&g,x=!1;const C=Array.isArray(m)?m:[m];let w=C.reduce(a,{});!1===v&&(w={});const{prevResolvedValues:S={}}=h,k={...S,...w},_=e=>{b=!0,c.has(e)&&(x=!0,c.delete(e)),h.needsAnimating[e]=!0};for(const e in k){const t=w[e],n=S[e];if(d.hasOwnProperty(e))continue;let r=!1;r=vn(t)&&vn(n)?!Jn(t,n):t!==n,r?void 0!==t?_(e):c.add(e):void 0!==t&&c.has(e)?_(e):h.protectedKeys[e]=!0}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),r&&e.blockInitialAnimation&&(b=!1),!b||y&&!x||u.push(...C.map((e=>({animation:e,options:{type:p,...i}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),u.push({animation:t})}let p=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(u):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,a){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(a,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Ci(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Jn(t,e)}function wi(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Si=0;const ki={animation:{Feature:class extends Un{constructor(e){super(e),e.animationState||(e.animationState=xi(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),tt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Un{constructor(){super(...arguments),this.id=Si++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const a=this.node.animationState.setActive("exit",!e,{custom:null!==n&&void 0!==n?n:this.node.getProps().custom});t&&!e&&a.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},_i=(e,t)=>Math.abs(e-t);class Ei{constructor(e,t){let{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ji(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=_i(e.x,t.x),r=_i(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:a}=En;this.history.push({...r,timestamp:a});const{onStart:i,onMove:o}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Pi(t,this.transformPagePoint),kn.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:a}=this.handlers;if(this.dragSnapToOrigin&&a&&a(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=ji("pointercancel"===e.type?this.lastMoveEventInfo:Pi(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Ln(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Pi(Mn(e),this.transformPagePoint),{point:o}=i,{timestamp:s}=En;this.history=[{...o,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,ji(i,this.history)),this.removeListeners=An(Dn(this.contextWindow,"pointermove",this.handlePointerMove),Dn(this.contextWindow,"pointerup",this.handlePointerUp),Dn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),_n(this.updatePoint)}}function Pi(e,t){return t?{point:t(e.point)}:e}function Ti(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e,t){let{point:n}=e;return{point:n,delta:Ti(n,Li(t)),offset:Ti(n,Ni(t)),velocity:Mi(t,.1)}}function Ni(e){return e[0]}function Li(e){return e[e.length-1]}function Mi(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=Li(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>rr(t)));)n--;if(!r)return{x:0,y:0};const i=ar(a.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const o={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ri(e){return e.max-e.min}function Di(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(e-t)<=n}function Vi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=Ar(t.min,t.max,e.origin),e.scale=Ri(n)/Ri(t),(Di(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ar(n.min,n.max,e.origin)-e.originPoint,(Di(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ai(e,t,n,r){Vi(e.x,t.x,n.x,r?r.originX:void 0),Vi(e.y,t.y,n.y,r?r.originY:void 0)}function Fi(e,t,n){e.min=n.min+t.min,e.max=e.min+Ri(t)}function Oi(e,t,n){e.min=t.min-n.min,e.max=e.min+Ri(t)}function zi(e,t,n){Oi(e.x,t.x,n.x),Oi(e.y,t.y,n.y)}function Bi(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Ii(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Ui=.35;function Hi(e,t,n){return{min:Wi(e,t),max:Wi(e,n)}}function Wi(e,t){return"number"===typeof e?e:e[t]||0}const $i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Qi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Yi(e){return[e("x"),e("y")]}function Zi(e){let{top:t,left:n,right:r,bottom:a}=e;return{x:{min:n,max:r},y:{min:t,max:a}}}function qi(e){return void 0===e||1===e}function Gi(e){let{scale:t,scaleX:n,scaleY:r}=e;return!qi(t)||!qi(n)||!qi(r)}function Ki(e){return Gi(e)||Xi(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Xi(e){return Ji(e.x)||Ji(e.y)}function Ji(e){return e&&"0%"!==e}function eo(e,t,n){return n+t*(e-n)}function to(e,t,n,r,a){return void 0!==a&&(e=eo(e,a,r)),eo(e,n,r)+t}function no(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;e.min=to(e.min,t,n,r,a),e.max=to(e.max,t,n,r,a)}function ro(e,t){let{x:n,y:r}=t;no(e.x,n.translate,n.scale,n.originPoint),no(e.y,r.translate,r.scale,r.originPoint)}function ao(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function io(e,t){e.min=e.min+t,e.max=e.max+t}function oo(e,t,n){let[r,a,i]=n;const o=void 0!==t[i]?t[i]:.5,s=Ar(e.min,e.max,o);no(e,t[r],t[a],s,t.scale)}const so=["x","scaleX","originX"],lo=["y","scaleY","originY"];function uo(e,t){oo(e.x,t,so),oo(e.y,t,lo)}function co(e,t){return Zi(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const fo=e=>{let{current:t}=e;return t?t.ownerDocument.defaultView:null},po=new WeakMap;class ho{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qi(),this.visualElement=e}start(e){let{snapToCursor:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Ei(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Mn(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:a}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Bn(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yi((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Bt.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Ri(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),a&&kn.update((()=>a(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:a,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:o}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(o),void(null!==this.currentDirection&&a&&a(this.currentDirection));this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Yi((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:fo(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&kn.update((()=>a(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!mo(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){let{min:r,max:a}=t;return void 0!==r&&e<r?e=n?Ar(r,e,n.min):Math.max(e,r):void 0!==a&&e>a&&(e=n?Ar(a,e,n.max):Math.min(e,a)),e}(i,this.constraints[e],this.elastic[e])),a.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,a=this.constraints;t&&Je(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,t){let{top:n,left:r,bottom:a,right:i}=t;return{x:Bi(e.x,r,i),y:Bi(e.y,n,a)}}(r.layoutBox,t),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ui;return!1===e?e=0:!0===e&&(e=Ui),{x:Hi(e,"left","right"),y:Hi(e,"top","bottom")}}(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Yi((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Je(e))return!1;const n=e.current;nr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=function(e,t,n){const r=co(e,n),{scroll:a}=t;return a&&(io(r.x,a.offset.x),io(r.y,a.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Ii(e.x,t.x),y:Ii(e.y,t.y)}}(r.layout.layoutBox,a);if(t){const e=t(function(e){let{x:t,y:n}=e;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Zi(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},l=Yi((o=>{if(!mo(o,t,this.currentDirection))return;let l=s&&s[o]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[o]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(o,d)}));return Promise.all(l).then(o)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Ga(e,n,0,t))}stopAnimation(){Yi((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Yi((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Yi((t=>{const{drag:n}=this.getProps();if(!mo(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];a.set(e[t]-Ar(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Je(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Yi((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ri(e),a=Ri(t);return a>r?n=na(t.min,t.max-r,e.min):r>a&&(n=na(e.min,e.max-a,t.min)),jt(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Yi((t=>{if(!mo(t,e,null))return;const n=this.getAxisMotionValue(t),{min:a,max:i}=this.constraints[t];n.set(Ar(a,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;po.set(this.visualElement,this);const e=Dn(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Je(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const a=Nn(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n}=e;this.isDragging&&n&&(Yi((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{a(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:i=Ui,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:a,dragElastic:i,dragMomentum:o}}}function mo(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const go=e=>(t,n)=>{e&&kn.update((()=>e(t,n)))};const vo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function yo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bo={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!It.test(e))return e;e=parseFloat(e)}const n=yo(e,t.target.x),r=yo(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},xo={correct:(e,t)=>{let{treeScale:n,projectionDelta:r}=t;const a=e,i=Gr.parse(e);if(i.length>5)return a;const o=Gr.createTransformer(e),s="number"!==typeof i[0]?1:0,l=r.x.scale*n.x,u=r.y.scale*n.y;i[0+s]/=l,i[1+s]/=u;const c=Ar(l,u,.5);return"number"===typeof i[2+s]&&(i[2+s]/=c),"number"===typeof i[3+s]&&(i[3+s]/=c),o(i)}};class Co extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:a}=e;var i;i=So,Object.assign(yt,i),a&&(t.group&&t.group.add(a),n&&n.register&&r&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",(()=>{this.safeToRemove()})),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),vo.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:a}=this.props,i=n.projection;return i?(i.isPresent=a,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||kn.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ke.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function wo(e){const[n,r]=function(){const e=(0,t.useContext)(Be);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=e,i=(0,t.useId)();return(0,t.useEffect)((()=>a(i)),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),a=(0,t.useContext)(ct);return t.createElement(Co,{...e,layoutGroup:a,switchLayoutGroup:(0,t.useContext)(dt),isPresent:n,safeToRemove:r})}const So={borderRadius:{...bo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bo,borderTopRightRadius:bo,borderBottomLeftRadius:bo,borderBottomRightRadius:bo,boxShadow:xo},ko=["TopLeft","TopRight","BottomLeft","BottomRight"],_o=ko.length,Eo=e=>"string"===typeof e?parseFloat(e):e,Po=e=>"number"===typeof e||It.test(e);function To(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const jo=Lo(0,.5,wr),No=Lo(.5,.95,Sn);function Lo(e,t,n){return r=>r<e?0:r>t?1:n(na(e,t,r))}function Mo(e,t){e.min=t.min,e.max=t.max}function Ro(e,t){Mo(e.x,t.x),Mo(e.y,t.y)}function Do(e,t,n,r,a){return e=eo(e-=t,1/n,r),void 0!==a&&(e=eo(e,1/a,r)),e}function Vo(e,t,n,r,a){let[i,o,s]=n;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;Bt.test(t)&&(t=parseFloat(t),t=Ar(o.min,o.max,t/100)-o.min);if("number"!==typeof t)return;let s=Ar(i.min,i.max,r);e===i&&(s-=t),e.min=Do(e.min,t,n,s,a),e.max=Do(e.max,t,n,s,a)}(e,t[i],t[o],t[s],t.scale,r,a)}const Ao=["x","scaleX","originX"],Fo=["y","scaleY","originY"];function Oo(e,t,n,r){Vo(e.x,t,Ao,n?n.x:void 0,r?r.x:void 0),Vo(e.y,t,Fo,n?n.y:void 0,r?r.y:void 0)}function zo(e){return 0===e.translate&&1===e.scale}function Bo(e){return zo(e.x)&&zo(e.y)}function Io(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Uo(e){return Ri(e.x)/Ri(e.y)}class Ho{constructor(){this.members=[]}add(e){Ja(this.members,e),e.scheduleRender()}remove(e){if(ei(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wo(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y;if((a||i)&&(r="translate3d(".concat(a,"px, ").concat(i,"px, 0) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){const{rotate:e,rotateX:t,rotateY:a}=n;e&&(r+="rotate(".concat(e,"deg) ")),t&&(r+="rotateX(".concat(t,"deg) ")),a&&(r+="rotateY(".concat(a,"deg) "))}const o=e.x.scale*t.x,s=e.y.scale*t.y;return 1===o&&1===s||(r+="scale(".concat(o,", ").concat(s,")")),r||"none"}const $o=(e,t)=>e.depth-t.depth;class Qo{constructor(){this.children=[],this.isDirty=!1}add(e){Ja(this.children,e),this.isDirty=!0}remove(e){ei(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($o),this.isDirty=!1,this.children.forEach(e)}}const Yo=["","X","Y","Z"],Zo={visibility:"hidden"};let qo=0;const Go={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ko(e){let{attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:a,resetTransform:i}=e;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=qo++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,Go.totalNodes=Go.resolvedTargetDeltas=Go.recalculatedProjection=0,this.nodes.forEach(es),this.nodes.forEach(ss),this.nodes.forEach(ls),this.nodes.forEach(ts),e=Go,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qo)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ti),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t&&t.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:a,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||a)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Ea.now(),r=a=>{let{timestamp:i}=a;const o=i-n;o>=t&&(_n(r),e(o-t))};return kn.read(r,!0),()=>_n(r)}(r,250),vo.hasAnimatedSinceResize&&(vo.hasAnimatedSinceResize=!1,this.nodes.forEach(os))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&o&&(a||i)&&this.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n,hasRelativeTargetChanged:r,layout:a}=e;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||o.getDefaultTransition()||hs,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!Io(this.targetLayout,a)||r,c=!n&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,c);const e={...qa(i,"layout"),onPlay:s,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else n||os(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=a}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_n(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(us),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const e=this.path[a];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(rs);this.isUpdating||this.nodes.forEach(as),this.isUpdating=!1,this.nodes.forEach(is),this.nodes.forEach(Xo),this.nodes.forEach(Jo),this.clearAllSnapshots();const e=Ea.now();En.delta=jt(0,1e3/60,e-En.timestamp),En.timestamp=e,En.isProcessing=!0,Pn.update.process(En),Pn.preRender.process(En),Pn.render.process(En),En.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ke.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(ns),this.sharedNodes.forEach(cs)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,kn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){kn.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Qi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:a(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Bo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||Ki(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),vs((r=n).x),vs(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Qi();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(io(t.x,n.offset.x),io(t.y,n.offset.y)),t}removeElementScroll(e){const t=Qi();Ro(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:a,options:i}=r;if(r!==this.root&&a&&i.layoutScroll){if(a.isRoot){Ro(t,e);const{scroll:n}=this.root;n&&(io(t.x,-n.offset.x),io(t.y,-n.offset.y))}io(t.x,a.offset.x),io(t.y,a.offset.y)}}return t}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Qi();Ro(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&uo(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),Ki(e.latestValues)&&uo(n,e.latestValues)}return Ki(this.latestValues)&&uo(n,this.latestValues),n}removeTransform(e){const t=Qi();Ro(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!Ki(e.latestValues))continue;Gi(e.latestValues)&&e.updateSnapshot();const r=Qi();Ro(r,e.measurePageBox()),Oo(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return Ki(this.latestValues)&&Oo(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==En.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:a,layoutId:i}=this.options;if(this.layout&&(a||i)){if(this.resolvedRelativeTargetAt=En.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qi(),this.relativeTargetOrigin=Qi(),zi(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Ro(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var o,s,l;if(this.target||(this.target=Qi(),this.targetWithTransforms=Qi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,Fi(o.x,s.x,l.x),Fi(o.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ro(this.target,this.layout.layoutBox),ro(this.target,this.targetDelta)):Ro(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qi(),this.relativeTargetOrigin=Qi(),zi(this.relativeTargetOrigin,this.target,e.target),Ro(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Go.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Gi(this.parent.latestValues)&&!Xi(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===En.timestamp&&(r=!1),r)return;const{layout:a,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!a&&!i)return;Ro(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const a=n.length;if(!a)return;let i,o;t.x=t.y=1;for(let s=0;s<a;s++){i=n[s],o=i.projectionDelta;const a=i.instance;a&&a.style&&"contents"===a.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&uo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ro(e,o)),r&&Ki(i.latestValues)&&uo(e,i.latestValues))}t.x=ao(t.x),t.y=ao(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Qi());const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=$i(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=$i(),this.projectionDeltaWithTransform=$i());const u=this.projectionTransform;Ai(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Wo(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Go.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.latestValues:{},a={...this.latestValues},i=$i();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const o=Qi(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(ps));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,p,h,m,g;ds(i.x,e.x,n),ds(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zi(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,m=o,g=n,fs(p.x,h.x,m.x,g),fs(p.y,h.y,m.y,g),d&&(l=this.relativeTarget,f=d,l.x.min===f.x.min&&l.x.max===f.x.max&&l.y.min===f.y.min&&l.y.max===f.y.max)&&(this.isProjectionDirty=!1),d||(d=Qi()),Ro(d,this.relativeTarget)),s&&(this.animationValues=a,function(e,t,n,r,a,i){a?(e.opacity=Ar(0,void 0!==n.opacity?n.opacity:1,jo(r)),e.opacityExit=Ar(void 0!==t.opacity?t.opacity:1,0,No(r))):i&&(e.opacity=Ar(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<_o;o++){const a="border".concat(ko[o],"Radius");let i=To(t,a),s=To(n,a);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||Po(i)===Po(s)?(e[a]=Math.max(Ar(Eo(i),Eo(s),r),0),(Bt.test(s)||Bt.test(i))&&(e[a]+="%")):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Ar(t.rotate||0,n.rotate||0,r))}(a,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kn.update((()=>{vo.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=wt(e)?e:ai(e);return r.start(Ga("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:a}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&ys(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Qi();const t=Ri(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ri(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ro(t,n),uo(t,a),Ai(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ho);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote(){let{needsReset:e,transition:t,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let a=0;a<Yo.length;a++){const t="rotate"+Yo[a];n[t]&&(r[t]=n[t],e.setStaticValue(t,0))}e.render();for(const a in r)e.setStaticValue(a,r[a]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Zo;const r={visibility:""},a=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=xn(null===e||void 0===e?void 0:e.pointerEvents)||"",r.transform=a?a(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=xn(null===e||void 0===e?void 0:e.pointerEvents)||""),this.hasProjected&&!Ki(this.latestValues)&&(t.transform=a?a({},""):"none",this.hasProjected=!1),t}const o=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Wo(this.projectionDeltaWithTransform,this.treeScale,o),a&&(r.transform=a(o,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin="".concat(100*s.origin,"% ").concat(100*l.origin,"% 0"),i.animationValues?r.opacity=i===this?null!==(n=null!==(t=o.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=i===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const u in yt){if(void 0===o[u])continue;const{correct:e,applyTo:t}=yt[u],n="none"===r.transform?o[u]:e(o[u],i);if(t){const e=t.length;for(let a=0;a<e;a++)r[t[a]]=n}else r[u]=n}return this.options.layoutId&&(r.pointerEvents=i===this?xn(null===e||void 0===e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(rs),this.root.sharedNodes.clear()}}}function Xo(e){e.updateLayout()}function Jo(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:a}=e.options,i=n.source!==e.layout.source;"size"===a?Yi((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],a=Ri(r);r.min=t[e].min,r.max=r.min+a})):ys(a,n.layoutBox,t)&&Yi((r=>{const a=i?n.measuredBox[r]:n.layoutBox[r],o=Ri(t[r]);a.max=a.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)}));const o=$i();Ai(o,t,n.layoutBox);const s=$i();i?Ai(s,e.applyTransform(r,!0),n.measuredBox):Ai(s,t,n.layoutBox);const l=!Bo(o);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:a,layout:i}=r;if(a&&i){const o=Qi();zi(o,n.layoutBox,a.layoutBox);const s=Qi();zi(s,t,i.layoutBox),Io(o,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function es(e){Go.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ts(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ns(e){e.clearSnapshot()}function rs(e){e.clearMeasurements()}function as(e){e.isLayoutDirty=!1}function is(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function os(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ss(e){e.resolveTargetDelta()}function ls(e){e.calcProjection()}function us(e){e.resetRotation()}function cs(e){e.removeLeadSnapshot()}function ds(e,t,n){e.translate=Ar(t.translate,0,n),e.scale=Ar(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fs(e,t,n,r){e.min=Ar(t.min,n.min,r),e.max=Ar(t.max,n.max,r)}function ps(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const hs={duration:.45,ease:[.4,0,.1,1]},ms=e=>"undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().includes(e),gs=ms("applewebkit/")&&!ms("chrome/")?Math.round:Sn;function vs(e){e.min=gs(e.min),e.max=gs(e.max)}function ys(e,t,n){return"position"===e||"preserve-aspect"===e&&!Di(Uo(t),Uo(n),.2)}const bs=Ko({attachResizeListener:(e,t)=>Nn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xs={current:void 0},Cs=Ko({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xs.current){const e=new bs({});e.mount(window),e.setOptions({layoutScroll:!0}),xs.current=e}return xs.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ws={pan:{Feature:class extends Un{constructor(){super(...arguments),this.removePointerDownListener=Sn}onPointerDown(e){this.session=new Ei(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:go(e),onStart:go(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&kn.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Dn(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Un{constructor(e){super(e),this.removeGroupControls=Sn,this.removeListeners=Sn,this.controls=new ho(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Sn}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Cs,MeasureLayout:wo}},Ss=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const ks=4;function _s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;nr(n<=ks,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));const[r,a]=function(e){const t=Ss.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Xa(e)?parseFloat(e):e}return Pt(a)?_s(a,t,n+1):a}const Es=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ps=e=>Es.has(e),Ts=e=>e===Nt||e===It,js=(e,t)=>parseFloat(e.split(", ")[t]),Ns=(e,t)=>(n,r)=>{let{transform:a}=r;if("none"===a||!a)return 0;const i=a.match(/^matrix3d\((.+)\)$/);if(i)return js(i[1],t);{const t=a.match(/^matrix\((.+)\)$/);return t?js(t[1],e):0}},Ls=new Set(["x","y","z"]),Ms=bt.filter((e=>!Ls.has(e)));const Rs={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:a="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(a)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:a="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(a)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:Ns(4,13),y:Ns(5,14)};Rs.translateX=Rs.x,Rs.translateY=Rs.y;const Ds=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t={...t},r={...r};const a=Object.keys(t).filter(Ps);let i=[],o=!1;const s=[];if(a.forEach((a=>{const l=e.getValue(a);if(!e.hasValue(a))return;let u=n[a],c=si(u);const d=t[a];let f;if(vn(d)){const e=d.length,t=null===d[0]?1:0;u=d[t],c=si(u);for(let n=t;n<e&&null!==d[n];n++)f?nr(si(d[n])===f,"All keyframes must be of the same type"):(f=si(d[n]),nr(f===c||Ts(c)&&Ts(f),"Keyframes must be of the same dimension as the current value"))}else f=si(d);if(c!==f)if(Ts(c)&&Ts(f)){const e=l.get();"string"===typeof e&&l.set(parseFloat(e)),"string"===typeof d?t[a]=parseFloat(d):Array.isArray(d)&&f===It&&(t[a]=d.map(parseFloat))}else(null===c||void 0===c?void 0:c.transform)&&(null===f||void 0===f?void 0:f.transform)&&(0===u||0===d)?0===u?l.set(f.transform(u)):t[a]=c.transform(d):(o||(i=function(e){const t=[];return Ms.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),o=!0),s.push(a),r[a]=void 0!==r[a]?r[a]:t[a],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,a=((e,t,n)=>{const r=t.measureViewportBox(),a=t.current,i=getComputedStyle(a),{display:o}=i,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Rs[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Rs[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((t=>{let[n,r]=t;e.getValue(n).set(r)})),e.render(),Ie&&null!==n&&window.scrollTo({top:n}),{target:a,transitionEnd:r}}return{target:t,transitionEnd:r}};function Vs(e,t,n,r){return(e=>Object.keys(e).some(Ps))(t)?Ds(e,t,n,r):{target:t,transitionEnd:r}}const As=(e,t,n,r)=>{const a=function(e,t,n){let{...r}=t;const a=e.current;if(!(a instanceof Element))return{target:r,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!Pt(t))return;const n=_s(t,a);n&&e.set(n)}));for(const i in r){const e=r[i];if(!Pt(e))continue;const t=_s(e,a);t&&(r[i]=t,n||(n={}),void 0===n[i]&&(n[i]=e))}return{target:r,transitionEnd:n}}(e,t,r);return Vs(e,t=a.target,n,r=a.transitionEnd)},Fs={current:null},Os={current:!1};const zs=new WeakMap,Bs=Object.keys(ut),Is=Bs.length,Us=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Hs=rt.length;class Ws{constructor(e){let{parent:t,props:n,presenceContext:r,reducedMotionConfig:a,visualState:i}=e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>kn.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.isControllingVariants=at(n),this.isVariantNode=it(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const e=c[d];void 0!==s[d]&&wt(e)&&(e.set(s[d],!1),Ka(u)&&u.add(d))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,zs.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Os.current||function(){if(Os.current=!0,Ie)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fs.current=e.matches;e.addListener(t),t()}else Fs.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Fs.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zs.delete(this.current),this.projection&&this.projection.unmount(),_n(this.notifyUpdate),_n(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=xt.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&kn.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),a=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),a()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r){let a,i,{children:o,...s}=e;for(let l=0;l<Is;l++){const e=Bs[l],{isEnabled:t,Feature:n,ProjectionNode:r,MeasureLayout:o}=ut[e];r&&(a=r),t(s)&&(!this.features[e]&&n&&(this.features[e]=new n(this)),o&&(i=o))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:t,drag:n,dragConstraints:i,layoutScroll:o,layoutRoot:l}=s;this.projection.setOptions({layoutId:e,layout:t,alwaysMeasureLayout:Boolean(n)||i&&Je(i),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof t?t:"both",initialPromotionConfig:r,layoutScroll:o,layoutRoot:l})}return i}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qi()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(e,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Us.length;n++){const t=Us[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const a in t){const i=t[a],o=n[a];if(wt(i))e.addValue(a,i),Ka(r)&&r.add(a);else if(wt(o))e.addValue(a,ai(i,{owner:e})),Ka(r)&&r.remove(a);else if(o!==i)if(e.hasValue(a)){const t=e.getValue(a);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(a);e.addValue(a,ai(void 0!==t?t:i,{owner:e}))}}for(const a in n)void 0===t[a]&&e.removeValue(a);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const e={};for(let t=0;t<Hs;t++){const n=rt[t],r=this.props[n];(et(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ai(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"===typeof n||"object"===typeof n?null===(t=gn(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const a=this.getBaseTargetFromProps(this.props,e);return void 0===a||wt(a)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:a}on(e,t){return this.events[e]||(this.events[e]=new ti),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e].notify(...n)}}}class $s extends Ws{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}makeTargetAnimatableFromInstance(e,t){let{transition:n,transitionEnd:r,...a}=e;const i=function(e,t,n){const r={};for(const a in e){const e=di(a,t);if(void 0!==e)r[a]=e;else{const e=n.getValue(a);e&&(r[a]=e.get())}}return r}(a,n||{},this);if(t){!function(e,t,n){var r,a;const i=Object.keys(t).filter((t=>!e.hasValue(t))),o=i.length;var s;if(o)for(let l=0;l<o;l++){const o=i[l],u=t[o];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(a=null!==(r=n[o])&&void 0!==r?r:e.readValue(o))&&void 0!==a?a:t[o]),void 0!==c&&null!==c&&("string"===typeof c&&(Xa(c)||Ya(c))?c=parseFloat(c):(s=c,!li.find(ii(s))&&Gr.test(u)&&(c=Qa(o,u))),e.addValue(o,ai(c,{owner:e})),void 0===n[o]&&(n[o]=c),null!==c&&e.setBaseTarget(o,c))}}(this,a,i);const e=As(this,a,i,r);r=e.transitionEnd,a=e.target}return{transition:n,transitionEnd:r,...a}}}class Qs extends $s{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(xt.has(t)){const e=$a(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),a=(Et(t)?r.getPropertyValue(t):r[t])||0;return"string"===typeof a?a.trim():a}var n}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return co(e,n)}build(e,t,n,r){Yt(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return hn(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;wt(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent="".concat(e))})))}renderInstance(e,t,n,r){dn(e,t,n,r)}}class Ys extends $s{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(xt.has(t)){const e=$a(t);return e&&e.default||0}return t=fn.has(t)?t:We(t),e.getAttribute(t)}measureInstanceViewportBox(){return Qi()}scrapeMotionValuesFromProps(e,t){return mn(e,t)}build(e,t,n,r){on(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){pn(e,t,0,r)}mount(e){this.isSVGTag=ln(e.tagName),super.mount(e)}}const Zs=(e,t)=>vt(e)?new Ys(t,{enableHardwareAcceleration:!1}):new Qs(t,{enableHardwareAcceleration:!0}),qs={...ki,...Xn,...ws,...{layout:{ProjectionNode:Cs,MeasureLayout:wo}}},Gs=mt(((e,t)=>function(e,t,n,r){let{forwardMotionProps:a=!1}=t;return{...vt(e)?Tn:jn,preloadedFeatures:n,useRender:cn(a),createVisualElement:r,Component:e}}(e,t,qs,Zs)));function Ks(){const[e,n]=(0,t.useState)({text:"",rating:1,image:null});function r(t){n({...e,rating:Number(t.target.value)})}return(0,Pe.jsxs)("form",{className:"product-page__review-form",onSubmit:function(t){t.preventDefault(),console.log(e)},children:[(0,Pe.jsx)("h5",{className:"review-form__heading",children:"\u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0437\u044b\u0432"}),(0,Pe.jsx)("div",{className:"review-form__stars-container",children:[...Array(5)].map(((t,n)=>(0,Pe.jsx)("input",{type:"radio",className:"review-form__star-radio",name:"rating",value:n+1,"aria-label":"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 ".concat(n+1),checked:e.rating===n+1,onChange:r},n)))}),(0,Pe.jsx)("textarea",{className:"review-form__textarea",cols:30,rows:5,placeholder:"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439",value:e.text,onChange:function(t){n({...e,text:t.target.value})}}),(0,Pe.jsx)("label",{htmlFor:"review-image",className:"review-form__image-attach",children:(0,Pe.jsx)("img",{src:Fe,alt:"\u041f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435"})}),(0,Pe.jsx)("input",{className:"review-form__image-input",type:"file",name:"review image",id:"review-image",accept:".png, .jpg, .jpeg",onChange:function(t){t.target.files&&n({...e,image:t.target.files[0]})}}),(0,Pe.jsx)(Gs.button,{className:"review-form__send-button",type:"submit",whileTap:{scale:.98},transition:{duration:.2,type:"spring"},children:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0437\u044b\u0432"})]})}function Xs(e){let{value:t}=e;return(0,Pe.jsxs)("section",{className:"product-page",children:[(0,Pe.jsxs)("section",{className:"product-page__main-section",children:[(0,Pe.jsx)("img",{src:Ve,className:"product-page__img",alt:"\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430"}),(0,Pe.jsxs)("div",{className:"product-page__info-div",children:[(0,Pe.jsxs)("span",{className:"product-page__text-span",children:[(0,Pe.jsx)("h2",{className:"product-page__heading-h2",children:"\u0428\u043e\u043a\u043e\u043b\u0430\u0434\u043a\u0430 Mr. Beast"}),(0,Pe.jsxs)("p",{className:"product-page__short-desc-div",children:["\u0422\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043b\u0435\u0433\u0435\u043d\u0434\u0430\u0440\u043d\u044b\u0439 \u0448\u043e\u043a\u043e\u043b\u0430\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0431\u043b\u043e\u0433\u0435\u0440\u043e\u0432 -",(0,Pe.jsx)("tr",{}),'MrBeast!\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u0430\u043c \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u043d\u0443\u044e \u043f\u043b\u0438\u0442\u043a\u0443, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u0431\u043b\u043e\u0433\u0435\u0440\u043e\u043c \u0432 \u043c\u0438\u0440\u0435 - Mr.Beast feastables! \u041e\u0442\u043d\u044b\u043d\u0435, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u043e\u0439 \u0432\u043a\u0443\u0441\u043d\u043e\u0439 \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u043d\u043e\u0439 \u043f\u043b\u0438\u0442\u043a\u043e\u0439 \u043d\u0430 \u043f\u043b\u0430\u043d\u0435\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0434\u0438\u0432\u0438\u0442 \u0432\u0430\u0441 \u0441\u0432\u043e\u0438\u043c \u043d\u0435\u043f\u0440\u0435\u0432\u0437\u043e\u0439\u0434\u0435\u043d\u043d\u044b\u043c \u0432\u043a\u0443\u0441\u043e\u043c \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c.\u0428\u043e\u043a\u043e\u043b\u0430\u0434 "Mr. Beast Feastables" - \u044d\u0442\u043e \u0432\u043a\u0443\u0441\u043d\u044b\u0439 \u0441\u043b\u0430\u0434\u043a\u0438\u0439 \u0434\u0435\u0441\u0435\u0440\u0442, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043f\u043e\u043a\u043b\u043e\u043d\u043d\u0438\u043a\u043e\u0432 \u0431\u043b\u043e\u0433\u0435\u0440\u0430 \u041c\u0438\u0441\u0442\u0435\u0440\u0430 \u0411\u0438\u0441\u0442\u0430. \u041e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e \u0438\u0437\u044b\u0441\u043a\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u043b\u043e\u0447\u043d\u043e\u0433\u043e \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u0430 \u0441 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043d\u0430\u0447\u0438\u043d\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u044e\u0442 \u0435\u0433\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u043d\u0435\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c\u044b\u0439 \u0432\u043a\u0443\u0441.\u041a\u0430\u0436\u0434\u044b\u0439 \u043a\u0443\u0441\u043e\u0447\u0435\u043a "Mr. Beast Feastables" - \u044d\u0442\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0430\u0439 \u0434\u043b\u044f \u0441\u043b\u0430\u0434\u043a\u043e\u0435\u0436\u0435\u043a, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u043d\u044b\u0435 \u043d\u043e\u0442\u044b, \u043d\u0435\u0436\u043d\u0443\u044e \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443 \u0438 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u043e\u0432. \u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043d\u0430\u0447\u0438\u043d\u043e\u043a, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u043a\u0430\u0440\u0430\u043c\u0435\u043b\u044c, \u043e\u0440\u0435\u0445\u0438, \u043c\u0430\u0440\u0448\u043c\u0435\u043b\u043b\u043e\u0443, \u043a\u0443\u043a\u0443\u0440\u0443\u0437\u043d\u044b\u0435 \u0445\u043b\u043e\u043f\u044c\u044f \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u043a\u0443\u0441\u043d\u044b\u0435 \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u044b. \u042d\u0442\u043e\u0442 \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u043d\u044b\u0439 "feast" \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0432\u0441\u044e \u044d\u043d\u0435\u0440\u0433\u0438\u044e \u0438 \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0431\u043b\u043e\u0433\u0435\u0440\u0430 \u041c\u0438\u0441\u0442\u0435\u0440\u0430 \u0411\u0438\u0441\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u0438 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0447\u0435\u043b\u043b\u0435\u043d\u0434\u0436\u0430\u043c\u0438.\u041d\u0435 \u0443\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0448\u0435\u0434\u0435\u0432\u0440 \u0432 \u043c\u0438\u0440\u0435 \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u0430!']})]}),(0,Pe.jsxs)("div",{className:"product-page__container-div",children:[(0,Pe.jsx)("div",{className:"product-page__rating-share-div",children:(0,Pe.jsx)("button",{className:"product-page__share-button",children:(0,Pe.jsx)("img",{src:Ae,alt:""})})}),(0,Pe.jsxs)("div",{className:"product-page__price-buy-div",children:[(0,Pe.jsx)("span",{className:"product-page__price-span",children:"150 \u20bd"}),(0,Pe.jsx)("a",{href:"/payment",className:"product-page__buy-link",children:"\u041a\u0443\u043f\u0438\u0442\u044c"})]})]})]})]}),(0,Pe.jsxs)("section",{className:"product-page__info-section",children:[(0,Pe.jsx)("h3",{className:"product-page__block-heading",children:"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435"}),(0,Pe.jsx)("p",{className:"product-page__desc",children:'\u0422\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043b\u0435\u0433\u0435\u043d\u0434\u0430\u0440\u043d\u044b\u0439 \u0448\u043e\u043a\u043e\u043b\u0430\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0431\u043b\u043e\u0433\u0435\u0440\u043e\u0432 - MrBeast!\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u0430\u043c \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u043d\u0443\u044e \u043f\u043b\u0438\u0442\u043a\u0443, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u0431\u043b\u043e\u0433\u0435\u0440\u043e\u043c \u0432 \u043c\u0438\u0440\u0435 - Mr.Beast feastables! \u041e\u0442\u043d\u044b\u043d\u0435, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u043e\u0439 \u0432\u043a\u0443\u0441\u043d\u043e\u0439 \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u043d\u043e\u0439 \u043f\u043b\u0438\u0442\u043a\u043e\u0439 \u043d\u0430 \u043f\u043b\u0430\u043d\u0435\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0434\u0438\u0432\u0438\u0442 \u0432\u0430\u0441 \u0441\u0432\u043e\u0438\u043c \u043d\u0435\u043f\u0440\u0435\u0432\u0437\u043e\u0439\u0434\u0435\u043d\u043d\u044b\u043c \u0432\u043a\u0443\u0441\u043e\u043c \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c.\u0428\u043e\u043a\u043e\u043b\u0430\u0434 "Mr. Beast Feastables" - \u044d\u0442\u043e \u0432\u043a\u0443\u0441\u043d\u044b\u0439 \u0441\u043b\u0430\u0434\u043a\u0438\u0439 \u0434\u0435\u0441\u0435\u0440\u0442, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043f\u043e\u043a\u043b\u043e\u043d\u043d\u0438\u043a\u043e\u0432 \u0431\u043b\u043e\u0433\u0435\u0440\u0430 \u041c\u0438\u0441\u0442\u0435\u0440\u0430 \u0411\u0438\u0441\u0442\u0430. \u041e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e \u0438\u0437\u044b\u0441\u043a\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u043b\u043e\u0447\u043d\u043e\u0433\u043e \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u0430 \u0441 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043d\u0430\u0447\u0438\u043d\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u044e\u0442 \u0435\u0433\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u043d\u0435\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c\u044b\u0439 \u0432\u043a\u0443\u0441.\u041a\u0430\u0436\u0434\u044b\u0439 \u043a\u0443\u0441\u043e\u0447\u0435\u043a "Mr. Beast Feastables" - \u044d\u0442\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0430\u0439 \u0434\u043b\u044f \u0441\u043b\u0430\u0434\u043a\u043e\u0435\u0436\u0435\u043a, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u043d\u044b\u0435 \u043d\u043e\u0442\u044b, \u043d\u0435\u0436\u043d\u0443\u044e \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0443 \u0438 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u043e\u0432. \u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043d\u0430\u0447\u0438\u043d\u043e\u043a, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u043a\u0430\u0440\u0430\u043c\u0435\u043b\u044c, \u043e\u0440\u0435\u0445\u0438, \u043c\u0430\u0440\u0448\u043c\u0435\u043b\u043b\u043e\u0443, \u043a\u0443\u043a\u0443\u0440\u0443\u0437\u043d\u044b\u0435 \u0445\u043b\u043e\u043f\u044c\u044f \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u043a\u0443\u0441\u043d\u044b\u0435 \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u044b. \u042d\u0442\u043e\u0442 \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u043d\u044b\u0439 "feast" \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0432\u0441\u044e \u044d\u043d\u0435\u0440\u0433\u0438\u044e \u0438 \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0431\u043b\u043e\u0433\u0435\u0440\u0430 \u041c\u0438\u0441\u0442\u0435\u0440\u0430 \u0411\u0438\u0441\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u0438 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0447\u0435\u043b\u043b\u0435\u043d\u0434\u0436\u0430\u043c\u0438.\u041d\u0435 \u0443\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0448\u0435\u0434\u0435\u0432\u0440 \u0432 \u043c\u0438\u0440\u0435 \u0448\u043e\u043a\u043e\u043b\u0430\u0434\u0430!'}),(0,Pe.jsxs)("ul",{className:"product-page__tags-ul",children:[(0,Pe.jsx)("li",{className:"product-page__tag-li",children:"\u041a\u043e\u043d\u0434\u0438\u0442\u0435\u0440\u0441\u043a\u0438\u0439"}),(0,Pe.jsx)("li",{className:"product-page__tag-li",children:"\u0428\u043e\u043a\u043e\u043b\u0430\u0434"}),(0,Pe.jsx)("li",{className:"product-page__tag-li",children:"Mr. Beast"}),(0,Pe.jsx)("li",{className:"product-page__tag-li",children:"\u041c\u043e\u043b\u043e\u0447\u043d\u044b\u0439 \u0448\u043e\u043a\u043e\u043b\u0430\u0434"})]})]}),(0,Pe.jsxs)("section",{className:"product-page__reviews-section",children:[(0,Pe.jsx)("h3",{className:"product-page__block-heading",children:"\u041e\u0442\u0437\u044b\u0432\u044b"}),(0,Pe.jsxs)("div",{className:"reviews-section__rate-block",children:[(0,Pe.jsxs)("div",{className:"rate-block__rating",children:[(0,Pe.jsx)("span",{className:"rate-block__rate-number",children:t}),(0,Pe.jsx)("div",{className:"rate-block__star-rating",children:(0,Pe.jsxs)("div",{className:"star-rating__back-stars",children:["\u2605\u2605\u2605\u2605\u2605".split("").map(((e,t)=>(0,Pe.jsx)("span",{children:e},"back-star-".concat(t)))),(0,Pe.jsx)("div",{className:"star-rating__front-stars",style:{width:"".concat(t/5*100,"%")},children:"\u2605\u2605\u2605\u2605\u2605".split("").map(((e,t)=>(0,Pe.jsx)("span",{children:e},"front-star-".concat(t))))})]})})]}),(0,Pe.jsxs)("div",{className:"rate-block__progressbars-group",children:[(0,Pe.jsxs)("div",{className:"progressbars-group__progressbar-container",children:[(0,Pe.jsx)("span",{className:"rate-progressbar__rate-number",children:"5"}),(0,Pe.jsx)("div",{className:"progressbar-container__progressbar",children:(0,Pe.jsx)("div",{className:"progressbar__active-line"})})]}),(0,Pe.jsxs)("div",{className:"progressbars-group__progressbar-container",children:[(0,Pe.jsx)("span",{className:"rate-progressbar__rate-number",children:"4"}),(0,Pe.jsx)("div",{className:"progressbar-container__progressbar",children:(0,Pe.jsx)("div",{className:"progressbar__active-line"})})]}),(0,Pe.jsxs)("div",{className:"progressbars-group__progressbar-container",children:[(0,Pe.jsx)("span",{className:"rate-progressbar__rate-number",children:"3"}),(0,Pe.jsx)("div",{className:"progressbar-container__progressbar",children:(0,Pe.jsx)("div",{className:"progressbar__active-line"})})]}),(0,Pe.jsxs)("div",{className:"progressbars-group__progressbar-container",children:[(0,Pe.jsx)("span",{className:"rate-progressbar__rate-number",children:"2"}),(0,Pe.jsx)("div",{className:"progressbar-container__progressbar",children:(0,Pe.jsx)("div",{className:"progressbar__active-line"})})]}),(0,Pe.jsxs)("div",{className:"progressbars-group__progressbar-container",children:[(0,Pe.jsx)("span",{className:"rate-progressbar__rate-number",children:"1"}),(0,Pe.jsx)("div",{className:"progressbar-container__progressbar",children:(0,Pe.jsx)("div",{className:"progressbar__active-line"})})]})]})]}),(0,Pe.jsx)(Ks,{}),(0,Pe.jsx)("div",{className:"product-page__reviews-container",children:(0,Pe.jsx)(De,{})})]})]})}const Js=n.p+"static/media/profile-avatar.2d72410c1ed8f95ce0c2.png";function el(){return(0,Pe.jsxs)("div",{className:"profile-section__info-div",children:[(0,Pe.jsx)("img",{src:Js,alt:"",className:"info-div__img"}),(0,Pe.jsx)("span",{children:"\u0420\u043e\u043c\u0430\u043d \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d\u043e\u0432"})]})}function tl(){return(0,Pe.jsxs)("section",{className:"orders-section",children:[(0,Pe.jsxs)("nav",{className:"profile-page__nav",children:[(0,Pe.jsx)(ke,{to:"/",className:"profile-link active",children:"\u041c\u043e\u0438 \u0437\u0430\u043a\u0430\u0437\u044b"}),(0,Pe.jsx)(ke,{to:"purchases",className:"profile-link",children:"\u041c\u043e\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0438"})]}),(0,Pe.jsxs)("div",{className:"orders-container",children:[(0,Pe.jsx)(el,{}),(0,Pe.jsxs)("div",{className:"orders-div",children:[(0,Pe.jsxs)("article",{className:"order-article",children:[(0,Pe.jsx)("div",{className:"order-article__img"}),(0,Pe.jsxs)("div",{className:"order-article__info-div",children:[(0,Pe.jsx)("span",{className:"order-article__status-span",children:"\u0412 \u043f\u0443\u0442\u0438"}),(0,Pe.jsx)("span",{className:"order-article__info-span",children:"\u0414\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0432 \u043f\u0443\u043d\u043a\u0442 \u0432\u044b\u0434\u0430\u0447\u0438"}),(0,Pe.jsx)("span",{className:"order-article__date-span",children:"\u041e\u0436\u0438\u0434\u0430\u0435\u043c 9 \u0434\u0435\u043a\u0430\u0431\u0440\u044f"})]})]}),(0,Pe.jsxs)("article",{className:"order-article",children:[(0,Pe.jsx)("div",{className:"order-article__img"}),(0,Pe.jsxs)("div",{className:"order-article__info-div",children:[(0,Pe.jsx)("span",{className:"order-article__status-span",children:"\u0412 \u043f\u0443\u0442\u0438"}),(0,Pe.jsx)("span",{className:"order-article__info-span",children:"\u0414\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0432 \u043f\u0443\u043d\u043a\u0442 \u0432\u044b\u0434\u0430\u0447\u0438"}),(0,Pe.jsx)("span",{className:"order-article__date-span",children:"\u041e\u0436\u0438\u0434\u0430\u0435\u043c 9 \u0434\u0435\u043a\u0430\u0431\u0440\u044f"})]})]})]})]})]})}function nl(){return(0,Pe.jsxs)("section",{className:"purchases-section",children:[(0,Pe.jsxs)("nav",{className:"profile-page__nav",children:[(0,Pe.jsx)(ke,{to:"/profile",className:"profile-link",children:"\u041c\u043e\u0438 \u0437\u0430\u043a\u0430\u0437\u044b"}),(0,Pe.jsx)(ke,{to:"purchases",className:"profile-link active",children:"\u041c\u043e\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0438"})]}),(0,Pe.jsxs)("div",{className:"purchases-container",children:[(0,Pe.jsx)(el,{}),(0,Pe.jsx)("div",{className:"purchases-div"})]})]})}function rl(){return(0,Pe.jsxs)("section",{className:"profile-page",children:[(0,Pe.jsx)(je,{}),(0,Pe.jsxs)(me,{children:[(0,Pe.jsx)(pe,{path:"/",element:(0,Pe.jsx)(tl,{})}),(0,Pe.jsx)(pe,{path:"purchases",element:(0,Pe.jsx)(nl,{})})]})]})}const al=n.p+"static/media/scam-image.c6c14289dc251ba2d2b1.png";function il(){return(0,Pe.jsx)("section",{className:"scam-page",children:(0,Pe.jsx)("img",{src:al,alt:"scam mammoth",className:"scam-page__image"})})}function ol(e){let{avatar:t,name:n,info:r,url:a}=e;return(0,Pe.jsx)("div",{className:"info-page__dev-card",children:(0,Pe.jsxs)("div",{className:"dev-card__inner",children:[(0,Pe.jsx)("div",{className:"dev-card__front",children:(0,Pe.jsx)("img",{src:t,alt:n,className:"dev-card__avatar"})}),(0,Pe.jsxs)("div",{className:"dev-card__back",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h3",{className:"dev-card__name",children:n}),(0,Pe.jsx)("p",{className:"dev-card__info",children:r})]}),(0,Pe.jsx)("a",{className:"dev-card__url",href:a,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})})}const sl=n.p+"static/media/info-page__railth-avatar.cbf11c43b5ef243b38c0.png",ll=n.p+"static/media/info-page__no-kesspen-avatar.baa74b50e31a8363436b.png";function ul(){return(0,Pe.jsxs)("section",{className:"info-page",children:[(0,Pe.jsx)(ol,{avatar:ll,name:"No_Kesspen",info:"Backend \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a",url:"https://github.com/KessPenGames"}),(0,Pe.jsx)(ol,{avatar:sl,name:"Rail_TH",info:"Frontend \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a",url:"https://github.com/Rail-TH"})]})}const cl=n.p+"static/media/amongasik.15fd088e6bacdf0b4667.png";function dl(e){let{toggleCatalogMenu:t,onSelectCategory:n}=e;return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"background-blackout",onClick:t}),(0,Pe.jsxs)("ul",{className:"catalog-menu",children:[(0,Pe.jsxs)("li",{className:"catalog-menu__point-li",onClick:()=>n("toys"),children:[(0,Pe.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)("path",{d:"M13.8 40C12.3 40 10.975 39.4417 9.825 38.325C8.675 37.2083 8.05 35.85 7.95 34.25C6.71667 33.4833 5.75833 32.5095 5.075 31.3284C4.39167 30.1473 4.05 28.8545 4.05 27.45C4.05 25.7167 4.55833 24.1583 5.575 22.775C6.59167 21.3917 7.93333 20.5167 9.6 20.15L5.55 15.9L4.6 16.9C4.3 17.2333 3.94167 17.4 3.525 17.4C3.10833 17.4 2.75 17.2417 2.45 16.925C2.15 16.6083 2 16.25 2 15.85C2 15.45 2.15 15.0833 2.45 14.75L6.5 10.55C6.8 10.25 7.15833 10.1 7.575 10.1C7.99167 10.1 8.35 10.2583 8.65 10.575C8.95 10.8917 9.1 11.25 9.1 11.65C9.1 12.05 8.95 12.4 8.65 12.7L7.7 13.75L11.3 17.6L13.25 11.75C13.6167 10.65 14.2581 9.75 15.1742 9.05C16.0904 8.35 17.1157 8 18.25 8H29.85C30.9971 8 32.0338 8.35 32.9603 9.05C33.8868 9.75 34.5167 10.65 34.85 11.75L37.35 20.05C39.25 20.2167 40.8333 20.9917 42.1 22.375C43.3667 23.7583 44 25.45 44 27.45C44 28.8545 43.6583 30.1473 42.975 31.3284C42.2917 32.5095 41.3333 33.4833 40.1 34.25C40 35.85 39.375 37.2083 38.225 38.325C37.075 39.4417 35.75 40 34.25 40C32.85 40 31.625 39.5167 30.575 38.55C29.525 37.5833 28.8667 36.4 28.6 35H19.45C19.1833 36.4 18.525 37.5833 17.475 38.55C16.425 39.5167 15.2 40 13.8 40ZM13.7 19.95H22.45V11H18.25C17.7641 11 17.3343 11.1583 16.9606 11.475C16.5869 11.7917 16.3167 12.1833 16.15 12.65L13.7 19.95ZM25.45 19.95H34.2L31.9551 12.6672C31.785 12.1891 31.5131 11.7917 31.1394 11.475C30.7657 11.1583 30.3359 11 29.85 11H25.45V19.95ZM19.45 32H28.6C28.9667 30.8 29.6833 29.8333 30.75 29.1C31.8167 28.3667 32.9833 28 34.25 28C35.3167 28 36.3 28.2833 37.2 28.85C38.1 29.4167 38.8333 30.15 39.4 31.05C39.9667 30.6167 40.375 30.0762 40.625 29.4286C40.875 28.7811 41 28.1215 41 27.45C41 26.1833 40.5667 25.1167 39.7 24.25C38.8333 23.3833 37.7667 22.95 36.5 22.95H11.55C10.2833 22.95 9.21667 23.3833 8.35 24.25C7.48333 25.1167 7.05 26.1833 7.05 27.45C7.05 28.1215 7.18333 28.7811 7.45 29.4286C7.71667 30.0762 8.11667 30.6167 8.65 31.05C9.18333 30.0833 9.90975 29.3333 10.8293 28.8C11.7488 28.2667 12.739 28 13.8 28C15.0667 28 16.2333 28.3667 17.3 29.1C18.3667 29.8333 19.0833 30.8 19.45 32ZM13.8 37C14.65 37 15.3625 36.7125 15.9375 36.1375C16.5125 35.5625 16.8 34.85 16.8 34C16.8 33.15 16.5125 32.4375 15.9375 31.8625C15.3625 31.2875 14.65 31 13.8 31C12.95 31 12.2375 31.2875 11.6625 31.8625C11.0875 32.4375 10.8 33.15 10.8 34C10.8 34.85 11.0875 35.5625 11.6625 36.1375C12.2375 36.7125 12.95 37 13.8 37ZM34.25 37C35.1 37 35.8125 36.7125 36.3875 36.1375C36.9625 35.5625 37.25 34.85 37.25 34C37.25 33.15 36.9625 32.4375 36.3875 31.8625C35.8125 31.2875 35.1 31 34.25 31C33.4 31 32.6875 31.2875 32.1125 31.8625C31.5375 32.4375 31.25 33.15 31.25 34C31.25 34.85 31.5375 35.5625 32.1125 36.1375C32.6875 36.7125 33.4 37 34.25 37Z",fill:"#EB5E28"})}),"\u0418\u0433\u0440\u0443\u0448\u043a\u0438"]}),(0,Pe.jsxs)("li",{className:"catalog-menu__point-li",onClick:()=>n("clothes"),children:[(0,Pe.jsx)("svg",{width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)("path",{d:"M12.5 19.8L9.35004 21.55C8.88337 21.8167 8.39171 21.8917 7.87504 21.775C7.35837 21.6583 7.00004 21.3833 6.80004 20.95L3.35004 15C3.08337 14.5333 3.00837 14.1333 3.12504 13.8C3.2417 13.4667 3.5167 13.1667 3.95004 12.9L15.35 6.25H18.55C18.9167 6.25 19.2084 6.35833 19.425 6.575C19.6417 6.79167 19.75 7.08333 19.75 7.45V8.2C19.75 9.46667 20.15 10.5 20.95 11.3C21.75 12.1 22.7834 12.5 24.05 12.5C25.3167 12.5 26.3417 12.1 27.125 11.3C27.9084 10.5 28.3 9.46667 28.3 8.2V7.45C28.3 7.08333 28.4084 6.79167 28.625 6.575C28.8417 6.35833 29.1334 6.25 29.5 6.25H32.7L44.1 12.9C44.5334 13.1667 44.8 13.4667 44.9 13.8C45 14.1333 44.9334 14.5333 44.7 15L41.2 20.95C41 21.3833 40.5834 21.6667 39.95 21.8C39.3167 21.9333 38.8167 21.8833 38.45 21.65L35.35 19.7V40.3C35.35 40.8333 35.15 41.2917 34.75 41.675C34.35 42.0583 33.8834 42.25 33.35 42.25H14.45C13.9167 42.25 13.4584 42.0583 13.075 41.675C12.6917 41.2917 12.5 40.8333 12.5 40.3V19.8ZM15.5 14.7V39.25H32.35V14.7L39.25 18.55L41.5 14.65L32.15 9.3H31.25C30.9834 11.1 30.1917 12.5833 28.875 13.75C27.5584 14.9167 25.95 15.5 24.05 15.5C22.15 15.5 20.5334 14.9167 19.2 13.75C17.8667 12.5833 17.0667 11.1 16.8 9.3H15.9L6.55004 14.65L8.80004 18.55L15.5 14.7Z",fill:"#EB5E28"})}),"\u041c\u0435\u0440\u0447"]}),(0,Pe.jsxs)("li",{className:"catalog-menu__point-li",onClick:()=>n("figures"),children:[(0,Pe.jsx)("svg",{width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)("path",{d:"M7.35 29.7C5.85 29.7 4.58333 29.1799 3.55 28.1396C2.51667 27.0993 2 25.8361 2 24.35C2 22.8639 2.52013 21.6007 3.5604 20.5604C4.6007 19.5201 5.8639 19 7.35 19V12.85C7.35 12.05 7.65 11.35 8.25 10.75C8.85 10.15 9.55 9.85 10.35 9.85H18.65C18.65 8.35 19.1701 7.08333 20.2104 6.05C21.2507 5.01667 22.5139 4.5 24 4.5C25.4861 4.5 26.7493 5.02013 27.7896 6.0604C28.8299 7.1007 29.35 8.3639 29.35 9.85H37.65C38.45 9.85 39.15 10.15 39.75 10.75C40.35 11.35 40.65 12.05 40.65 12.85V19C42.15 19 43.4167 19.5201 44.45 20.5604C45.4833 21.6007 46 22.8639 46 24.35C46 25.8361 45.4799 27.0993 44.4396 28.1396C43.3993 29.1799 42.1361 29.7 40.65 29.7V39.5C40.65 40.3 40.35 41 39.75 41.6C39.15 42.2 38.45 42.5 37.65 42.5H10.35C9.55 42.5 8.85 42.2 8.25 41.6C7.65 41 7.35 40.3 7.35 39.5V29.7ZM17.1617 24.7C17.7206 24.7 18.1917 24.5044 18.575 24.1133C18.9583 23.7221 19.15 23.2471 19.15 22.6883C19.15 22.1294 18.9544 21.6583 18.5633 21.275C18.1721 20.8917 17.6971 20.7 17.1383 20.7C16.5794 20.7 16.1083 20.8956 15.725 21.2867C15.3417 21.6779 15.15 22.153 15.15 22.7118C15.15 23.2706 15.3456 23.7417 15.7367 24.125C16.1279 24.5083 16.6029 24.7 17.1617 24.7ZM30.8617 24.7C31.4206 24.7 31.8917 24.5044 32.275 24.1133C32.6583 23.7221 32.85 23.2471 32.85 22.6883C32.85 22.1294 32.6544 21.6583 32.2633 21.275C31.8721 20.8917 31.3971 20.7 30.8383 20.7C30.2794 20.7 29.8083 20.8956 29.425 21.2867C29.0417 21.6779 28.85 22.153 28.85 22.7118C28.85 23.2706 29.0456 23.7417 29.4368 24.125C29.8279 24.5083 30.3029 24.7 30.8617 24.7ZM17.1 34.25H30.9C31.325 34.25 31.6812 34.1054 31.9688 33.8163C32.2563 33.5271 32.4 33.1687 32.4 32.7413C32.4 32.3138 32.2563 31.9583 31.9688 31.675C31.6812 31.3917 31.325 31.25 30.9 31.25H17.1C16.675 31.25 16.3188 31.3946 16.0312 31.6838C15.7438 31.9729 15.6 32.3313 15.6 32.7587C15.6 33.1863 15.7438 33.5417 16.0312 33.825C16.3188 34.1083 16.675 34.25 17.1 34.25ZM10.35 39.5H37.65V12.85H10.35V39.5Z",fill:"#EB5E28"})}),"\u0424\u0438\u0433\u0443\u0440\u043a\u0438"]}),(0,Pe.jsxs)("li",{className:"catalog-menu__point-li",onClick:()=>n("foods"),children:[(0,Pe.jsx)("svg",{width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)("path",{d:"M24 6.75C27.2334 6.75 30.35 7.28333 33.35 8.35C36.35 9.41667 39.1334 10.9 41.7001 12.8C42.1 13.1 42.4084 13.4659 42.625 13.8976C42.8417 14.3294 42.9501 14.7738 42.9501 15.231C42.9501 15.5103 42.9084 15.7909 42.8251 16.0728C42.7417 16.3547 42.6167 16.6304 42.4501 16.9L26.5 40.95C26.2 41.4 25.825 41.7375 25.375 41.9625C24.925 42.1875 24.4647 42.3 23.9939 42.3C23.5232 42.3 23.0649 42.1917 22.6189 41.975C22.173 41.7583 21.8 41.4167 21.5 40.95L5.55005 16.9C5.37055 16.625 5.24235 16.35 5.16545 16.075C5.08852 15.8 5.05005 15.525 5.05005 15.25C5.05005 14.7885 5.15838 14.3398 5.37505 13.9039C5.59172 13.468 5.90005 13.1 6.30005 12.8C8.86672 10.9 11.65 9.41667 14.65 8.35C17.65 7.28333 20.7667 6.75 24 6.75ZM24 9.75C20.9334 9.75 18.1334 10.275 15.6 11.325C13.0667 12.375 10.5167 13.6667 7.95005 15.2L24 39.4L40.05 15.2C37.4834 13.6667 34.9326 12.375 32.3978 11.325C29.863 10.275 27.0637 9.75 24 9.75ZM18.503 20.5C19.2677 20.5 19.9167 20.2323 20.45 19.697C20.9834 19.1617 21.25 18.5117 21.25 17.747C21.25 16.9823 20.9824 16.3333 20.4471 15.8C19.9118 15.2667 19.2618 15 18.4971 15C17.7324 15 17.0834 15.2677 16.55 15.803C16.0167 16.3383 15.75 16.9883 15.75 17.753C15.75 18.5177 16.0177 19.1667 16.553 19.7C17.0883 20.2333 17.7383 20.5 18.503 20.5ZM24.003 31.25C24.7677 31.25 25.4167 30.9824 25.95 30.4471C26.4834 29.9118 26.75 29.2618 26.75 28.4971C26.75 27.7324 26.4824 27.0833 25.9471 26.55C25.4118 26.0167 24.7618 25.75 23.9971 25.75C23.2324 25.75 22.5834 26.0177 22.05 26.5529C21.5167 27.0882 21.25 27.7383 21.25 28.503C21.25 29.2677 21.5177 29.9167 22.053 30.45C22.5883 30.9833 23.2383 31.25 24.003 31.25Z",fill:"#EB5E28"})}),"\u0412\u043a\u0443\u0441\u043d\u044f\u0448\u043a\u0438"]}),(0,Pe.jsxs)("li",{className:"catalog-menu__point-li",onClick:()=>n("books"),children:[(0,Pe.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.jsx)("path",{d:"M12.4 33C14.1855 33 15.9236 33.2083 17.6142 33.625C19.3047 34.0417 20.9667 34.6667 22.6 35.5V14.15C21.1 13.15 19.473 12.375 17.7191 11.825C15.9651 11.275 14.1921 11 12.4 11C11.1333 11 9.89167 11.1583 8.675 11.475C7.45833 11.7917 6.23333 12.1833 5 12.65V34.35C6.03333 33.8833 7.20833 33.5417 8.525 33.325C9.84167 33.1083 11.1333 33 12.4 33ZM25.6 35.5C27.2667 34.6667 28.9 34.0417 30.5 33.625C32.1 33.2083 33.8 33 35.6 33C36.8667 33 38.175 33.1 39.525 33.3C40.875 33.5 42.0333 33.7667 43 34.1V12.65C41.8667 12.0833 40.6696 11.6667 39.4089 11.4C38.1481 11.1333 36.8785 11 35.6 11C33.8 11 32.0583 11.275 30.375 11.825C28.6917 12.375 27.1 13.15 25.6 14.15V35.5ZM24.1 39.45C23.8487 39.45 23.6109 39.425 23.3865 39.375C23.1622 39.325 22.9667 39.2333 22.8 39.1C21.2333 38.1333 19.5692 37.3833 17.8077 36.85C16.0461 36.3167 14.2435 36.05 12.4 36.05C11.1821 36.05 9.98597 36.2 8.8116 36.5C7.6372 36.8 6.46667 37.1667 5.3 37.6C4.53 37.9667 3.7875 37.9167 3.0725 37.45C2.3575 36.9833 2 36.3167 2 35.45V12.3C2 11.8 2.11667 11.3417 2.35 10.925C2.58333 10.5083 2.93333 10.1833 3.4 9.95C4.8 9.28333 6.25658 8.79167 7.76975 8.475C9.28288 8.15833 10.8263 8 12.4 8C14.5 8 16.5417 8.28333 18.525 8.85C20.5083 9.41667 22.3667 10.2833 24.1 11.45C25.8 10.2833 27.625 9.41667 29.575 8.85C31.525 8.28333 33.5333 8 35.6 8C37.1623 8 38.6945 8.15833 40.1967 8.475C41.6989 8.79167 43.15 9.28333 44.55 9.95C45.0167 10.1833 45.375 10.5083 45.625 10.925C45.875 11.3417 46 11.8 46 12.3V35.45C46 36.3798 45.625 37.0873 44.875 37.5724C44.125 38.0575 43.3833 38.0667 42.65 37.6C41.5167 37.1333 40.3628 36.7583 39.1884 36.475C38.014 36.1917 36.8179 36.05 35.6 36.05C33.7908 36.05 32.0219 36.3167 30.2931 36.85C28.5644 37.3833 26.9333 38.1333 25.4 39.1C25.2333 39.2333 25.0378 39.325 24.8135 39.375C24.5891 39.425 24.3513 39.45 24.1 39.45ZM28 17.6C28 17.4161 28.0671 17.2272 28.2012 17.0331C28.3353 16.839 28.4849 16.7113 28.65 16.65C29.65 16.2833 30.6723 16 31.7168 15.8C32.7613 15.6 33.8598 15.5 35.0124 15.5C35.7328 15.5 36.4441 15.5417 37.1465 15.625C37.8488 15.7083 38.5333 15.8333 39.2 16C39.4 16.0667 39.5833 16.1899 39.75 16.3698C39.9167 16.5496 40 16.7519 40 16.9767C40 17.3589 39.875 17.65 39.625 17.85C39.375 18.05 39.0667 18.1 38.7 18C38.14 17.8333 37.55 17.7083 36.93 17.625C36.31 17.5417 35.6667 17.5 35 17.5C34.0333 17.5 33.1 17.5917 32.2 17.775C31.3 17.9583 30.4167 18.2333 29.55 18.6C29.0833 18.7667 28.7083 18.7583 28.425 18.575C28.1417 18.3917 28 18.0667 28 17.6ZM28 28.6C28 28.4065 28.0671 28.2076 28.2012 28.0033C28.3353 27.7989 28.4849 27.6645 28.65 27.6C29.65 27.2333 30.6723 26.9583 31.7168 26.775C32.7613 26.5917 33.8598 26.5 35.0124 26.5C35.7328 26.5 36.4441 26.5417 37.1465 26.625C37.8488 26.7083 38.5333 26.8333 39.2 27C39.4 27.0667 39.5833 27.1899 39.75 27.3697C39.9167 27.5496 40 27.752 40 27.9768C40 28.3589 39.875 28.65 39.625 28.85C39.375 29.05 39.0667 29.1 38.7 29C38.14 28.8333 37.55 28.7083 36.93 28.625C36.31 28.5417 35.6667 28.5 35 28.5C34.0333 28.5 33.1 28.5833 32.2 28.75C31.3 28.9167 30.4167 29.1833 29.55 29.55C29.0833 29.7167 28.7083 29.7167 28.425 29.55C28.1417 29.3833 28 29.0667 28 28.6ZM28 23.1C28 22.9161 28.0671 22.7272 28.2012 22.5331C28.3353 22.339 28.4849 22.2113 28.65 22.15C29.65 21.7833 30.6723 21.5 31.7168 21.3C32.7613 21.1 33.8598 21 35.0124 21C35.7328 21 36.4441 21.0417 37.1465 21.125C37.8488 21.2083 38.5333 21.3333 39.2 21.5C39.4 21.5667 39.5833 21.6899 39.75 21.8698C39.9167 22.0496 40 22.252 40 22.4768C40 22.8589 39.875 23.15 39.625 23.35C39.375 23.55 39.0667 23.6 38.7 23.5C38.14 23.3333 37.55 23.2083 36.93 23.125C36.31 23.0417 35.6667 23 35 23C34.0333 23 33.1 23.0917 32.2 23.275C31.3 23.4583 30.4167 23.7333 29.55 24.1C29.0833 24.2667 28.7083 24.2583 28.425 24.075C28.1417 23.8917 28 23.5667 28 23.1Z",fill:"#EB5E28"})}),"\u041a\u043d\u0438\u0433\u0438"]})]})]})}function fl(e){let{toggleLoginMenu:n}=e;const[r,a]=(0,t.useState)(!0);return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"background-blackout",onClick:n}),(0,Pe.jsxs)("form",{className:"popup-login",children:[(0,Pe.jsx)("div",{className:"popup-login__top-container",children:(0,Pe.jsxs)("div",{className:"top-container__headings-text",children:[(0,Pe.jsxs)("h5",{className:"popup-menu__heading",children:["SusMarket ",(0,Pe.jsx)("span",{children:"ID"})]}),(0,Pe.jsx)("p",{className:"top-container__text",children:r?"\u0412\u043e\u0439\u0434\u0438\u0442\u0435 \u0441 SusMarket ID":"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c \u0441 SusMarket ID"})]})}),(0,Pe.jsxs)("div",{className:"popup-login__inputs-container",children:[(0,Pe.jsx)("input",{type:"text",name:"userName",id:"userName",className:"popup-login__name-input",placeholder:"\u041b\u043e\u0433\u0438\u043d"}),(0,Pe.jsx)("input",{type:"password",name:"userPassword",id:"userPassword",className:"popup-login__password-input",placeholder:"\u041f\u0430\u0440\u043e\u043b\u044c"})]}),(0,Pe.jsxs)("div",{className:"popup-login__bottom-container",children:[(0,Pe.jsxs)("p",{className:"popup-login__prompt-url",onClick:()=>{a(!r)},children:[r?"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430? ":"\u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442? ",(0,Pe.jsx)("u",{children:r?"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f":"\u0412\u043e\u0439\u0442\u0438"})]}),(0,Pe.jsx)(Gs.button,{className:"popup-login__login-button",whileTap:{scale:.98},transition:{duration:.2,type:"spring"},children:r?"\u0412\u043e\u0439\u0442\u0438":"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f"})]})]})]})}function pl(e){let{togglePopupMap:n,onSelectCategory:r,onSearchChange:a}=e;const[i,o]=(0,t.useState)({isCatalogMenuVisible:!1}),[s,l]=(0,t.useState)({isLoginMenuVisible:!1}),u=()=>{o((e=>({...e,isCatalogMenuVisible:!e.isCatalogMenuVisible})))},c=()=>{l((e=>({...e,isLoginMenuVisible:!e.isLoginMenuVisible})))};return(0,Pe.jsxs)("header",{className:"header",children:[(0,Pe.jsxs)("nav",{className:"header__main-nav",children:[(0,Pe.jsx)("h1",{className:"header__title-h1",children:(0,Pe.jsxs)(ke,{to:"/",className:"title-h1__a",children:[(0,Pe.jsx)("img",{className:"header__logo-img",src:cl,alt:"Dead amongus"}),(0,Pe.jsx)("span",{children:"SuSMarket"})]})}),(0,Pe.jsx)(Gs.button,{className:"catalog-button",whileTap:{scale:.95},transition:{duration:.2,type:"spring"},whileHover:{backgroundColor:"#EB5E28",color:"white"},onClick:u,children:"\u041a\u0430\u0442\u0430\u043b\u043e\u0433"}),(0,Pe.jsx)("form",{action:"search",className:"search-form",children:(0,Pe.jsxs)("div",{className:"search-form__field",children:[(0,Pe.jsx)("input",{type:"text",onChange:e=>a(e.target.value),name:"search",id:"",className:"search-form__input",placeholder:"\u042f \u0438\u0449\u0443...",onKeyDown:function(e){"Enter"===e.key&&e.preventDefault()}}),(0,Pe.jsxs)("svg",{width:"33.000000",height:"33.000000",viewBox:"0 0 33 33",fill:"none",children:[(0,Pe.jsx)("defs",{children:(0,Pe.jsx)("clipPath",{id:"clip3_8",children:(0,Pe.jsx)("rect",{id:"search_FILL0_wght400_GRAD0_opsz24 1",width:"33.000000",height:"33.000000",fill:"white",fillOpacity:"0"})})}),(0,Pe.jsx)("rect",{id:"search_FILL0_wght400_GRAD0_opsz24 1",width:"33.000000",height:"33.000000",fill:"#FFFFFF",fillOpacity:"0"}),(0,Pe.jsx)("g",{clipPath:"url(#clip3_8)",children:(0,Pe.jsx)("path",{id:"Vector",d:"M13.0625 22C10.5646 22 8.45056 21.1349 6.72034 19.4047C4.99011 17.6744 4.125 15.5604 4.125 13.0625C4.125 10.5646 4.99011 8.45056 6.72034 6.72034C8.45056 4.99011 10.5646 4.125 13.0625 4.125C15.5604 4.125 17.6744 4.99011 19.4047 6.72034C21.1349 8.45056 22 10.5646 22 13.0625C22 14.0708 21.8396 15.0219 21.5188 15.9156C21.1979 16.8093 20.7625 17.6 20.2125 18.2875L27.9125 25.9875C28.1646 26.2396 28.2906 26.5604 28.2906 26.95C28.2906 27.3396 28.1646 27.6604 27.9125 27.9125C27.6604 28.1646 27.3396 28.2906 26.95 28.2906C26.5604 28.2906 26.2396 28.1646 25.9875 27.9125L18.2875 20.2125C17.6 20.7625 16.8093 21.1979 15.9156 21.5188C15.0219 21.8396 14.0708 22 13.0625 22ZM13.0625 19.25C14.7812 19.25 16.2422 18.6484 17.4453 17.4453C18.6484 16.2422 19.25 14.7812 19.25 13.0625C19.25 11.3438 18.6484 9.88281 17.4453 8.67969C16.2422 7.47656 14.7812 6.875 13.0625 6.875C11.3438 6.875 9.88281 7.47656 8.67969 8.67969C7.47656 9.88281 6.875 11.3438 6.875 13.0625C6.875 14.7812 7.47656 16.2422 8.67969 17.4453C9.88281 18.6484 11.3438 19.25 13.0625 19.25Z",fill:"#CCC5B9",fillOpacity:"1.000000",fillRule:"nonzero"})})]})]})}),(0,Pe.jsx)(Gs.button,{className:"header__profile-a",whileTap:{scale:.9},transition:{duration:.2,type:"spring"},onClick:c,children:(0,Pe.jsxs)(Gs.svg,{width:"48.000000",height:"48.000000",viewBox:"0 0 48 48",fill:"none",whileTap:{scale:.9},transition:{duration:.2,type:"spring"},children:[(0,Pe.jsx)("defs",{children:(0,Pe.jsx)("clipPath",{id:"clip3_40",children:(0,Pe.jsx)("rect",{id:"person_FILL0_wght400_GRAD0_opsz48 1",width:"48.000000",height:"48.000000",fill:"white",fillOpacity:"0"})})}),(0,Pe.jsx)("rect",{id:"person_FILL0_wght400_GRAD0_opsz48 1",width:"48.000000",height:"48.000000",fill:"#FFFFFF",fillOpacity:"0"}),(0,Pe.jsx)("g",{clipPath:"url(#clip3_40)",children:(0,Pe.jsx)("path",{id:"Vector",d:"M24 23.95C21.8 23.95 20 23.25 18.6 21.85C17.2 20.45 16.5 18.6499 16.5 16.45C16.5 14.25 17.2 12.45 18.6 11.0499C20 9.6499 21.8 8.94995 24 8.94995C26.2 8.94995 28 9.6499 29.4 11.0499C30.8 12.45 31.5 14.25 31.5 16.45C31.5 18.6499 30.8 20.45 29.4 21.85C28 23.25 26.2 23.95 24 23.95ZM8 37L8 35.2999C8 34.0333 8.31665 32.95 8.94995 32.0499C9.58337 31.1499 10.4 30.4667 11.4 30C13.6333 29 15.775 28.25 17.825 27.75C19.875 27.25 21.9333 27 24 27C26.0667 27 28.1167 27.2583 30.15 27.7749C32.1833 28.2916 34.3153 29.0365 36.546 30.0096C37.5894 30.4805 38.4259 31.1633 39.0555 32.058C39.6852 32.9526 40 34.0333 40 35.2999L40 37C40 37.825 39.7063 38.5312 39.1188 39.1187C38.5312 39.7062 37.825 40 37 40L11 40C10.175 40 9.46875 39.7062 8.88123 39.1187C8.2937 38.5312 8 37.825 8 37ZM11 37L37 37L37 35.2999C37 34.7666 36.8417 34.2583 36.525 33.7749C36.2084 33.2916 35.8167 32.9332 35.35 32.7C33.2167 31.6666 31.2667 30.9583 29.5 30.575C27.7333 30.1917 25.9 30 24 30C22.1 30 20.25 30.1917 18.45 30.575C16.65 30.9583 14.7 31.6666 12.6 32.7C12.1333 32.9332 11.75 33.2916 11.45 33.7749C11.15 34.2583 11 34.7666 11 35.2999L11 37ZM24 20.95C25.3 20.95 26.375 20.5249 27.225 19.6749C28.075 18.825 28.5 17.75 28.5 16.45C28.5 15.1499 28.075 14.075 27.225 13.225C26.375 12.375 25.3 11.95 24 11.95C22.7 11.95 21.625 12.375 20.775 13.225C19.925 14.075 19.5 15.1499 19.5 16.45C19.5 17.75 19.925 18.825 20.775 19.6749C21.625 20.5249 22.7 20.95 24 20.95Z",fill:"#CCC5B9",fillOpacity:"1.000000",fillRule:"nonzero"})})]})}),(0,Pe.jsx)(Gs.button,{className:"header__popupmap-button",whileTap:{scale:.9},transition:{duration:.2,type:"spring"},onClick:n,children:(0,Pe.jsxs)("svg",{width:"48.000000",height:"48.000000",viewBox:"0 0 48 48",fill:"none",children:[(0,Pe.jsx)("defs",{children:(0,Pe.jsx)("clipPath",{id:"clip3_51",children:(0,Pe.jsx)("rect",{id:"location_on_FILL0_wght400_GRAD0_opsz48 1",width:"48.000000",height:"48.000000",fill:"white",fillOpacity:"0"})})}),(0,Pe.jsx)("rect",{id:"location_on_FILL0_wght400_GRAD0_opsz48 1",width:"48.000000",height:"48.000000",fill:"#FFFFFF",fillOpacity:"0"}),(0,Pe.jsx)("g",{clipPath:"url(#clip3_51)",children:(0,Pe.jsx)("path",{id:"Vector",d:"M24 40.05C28.4333 36.0167 31.7084 32.3583 33.825 29.075C35.9417 25.7916 37 22.9 37 20.4C37 16.4736 35.7451 13.2588 33.2354 10.7552C30.7257 8.25171 27.6472 7 24 7C20.3528 7 17.2743 8.25171 14.7646 10.7552C12.2549 13.2588 11 16.4736 11 20.4C11 22.9 12.0834 25.7916 14.25 29.075C16.4166 32.3583 19.6666 36.0167 24 40.05ZM23.9875 43C23.6292 43 23.275 42.9417 22.925 42.825C22.575 42.7084 22.2667 42.5167 22 42.25C20.6 40.9833 19.0834 39.525 17.45 37.875C15.8167 36.225 14.3 34.45 12.9 32.55C11.5 30.65 10.3334 28.6666 9.40002 26.6C8.46667 24.5333 8 22.4667 8 20.4C8 15.4 9.60828 11.4166 12.825 8.44995C16.0416 5.48328 19.7667 4 24 4C28.2333 4 31.9584 5.48328 35.175 8.44995C38.3917 11.4166 40 15.4 40 20.4C40 22.4667 39.5333 24.5333 38.6 26.6C37.6666 28.6666 36.5 30.65 35.1 32.55C33.7 34.45 32.1833 36.225 30.55 37.875C28.9166 39.525 27.4 40.9833 26 42.25C25.7333 42.5167 25.4208 42.7084 25.0625 42.825C24.7042 42.9417 24.3458 43 23.9875 43ZM24.0044 23.5C24.9681 23.5 25.7916 23.1569 26.475 22.4706C27.1583 21.7843 27.5 20.9592 27.5 19.9956C27.5 19.0319 27.1569 18.2084 26.4706 17.525C25.7843 16.8417 24.9592 16.5 23.9956 16.5C23.0319 16.5 22.2084 16.8431 21.525 17.5294C20.8417 18.2157 20.5 19.0408 20.5 20.0044C20.5 20.9681 20.8431 21.7916 21.5294 22.475C22.2157 23.1583 23.0408 23.5 24.0044 23.5Z",fill:"#CCC5B9",fillOpacity:"1.000000",fillRule:"nonzero"})})]})}),(0,Pe.jsx)(Gs.a,{href:"info",className:"header__info-a",whileTap:{scale:.9},transition:{duration:.2,type:"spring"},children:(0,Pe.jsxs)("svg",{width:"48.000000",height:"48.000000",viewBox:"0 0 48 48",fill:"none",children:[(0,Pe.jsx)("defs",{children:(0,Pe.jsx)("clipPath",{id:"clip6_70",children:(0,Pe.jsx)("rect",{id:"info_FILL0_wght400_GRAD0_opsz48 1",width:"48.000000",height:"48.000000",fill:"white",fillOpacity:"0"})})}),(0,Pe.jsx)("rect",{id:"info_FILL0_wght400_GRAD0_opsz48 1",width:"48.000000",height:"48.000000",fill:"#FFFFFF",fillOpacity:"0"}),(0,Pe.jsx)("g",{clipPath:"url(#clip6_70)",children:(0,Pe.jsx)("path",{id:"Vector",d:"M24.1587 34C24.5863 34 24.9417 33.8562 25.225 33.5687C25.5083 33.2812 25.65 32.925 25.65 32.5L25.65 23.5C25.65 23.075 25.5054 22.7188 25.2163 22.4313C24.927 22.1438 24.5687 22 24.1412 22C23.7137 22 23.3583 22.1438 23.075 22.4313C22.7916 22.7188 22.65 23.075 22.65 23.5L22.65 32.5C22.65 32.925 22.7946 33.2812 23.0837 33.5687C23.3729 33.8562 23.7313 34 24.1587 34ZM23.9991 18.3C24.4663 18.3 24.8583 18.1466 25.175 17.84C25.4917 17.5333 25.65 17.1533 25.65 16.7C25.65 16.2184 25.4919 15.8146 25.1759 15.4888C24.8599 15.163 24.4681 15 24.0009 15C23.5337 15 23.1417 15.163 22.825 15.4888C22.5083 15.8146 22.35 16.2184 22.35 16.7C22.35 17.1533 22.5081 17.5333 22.8241 17.84C23.1403 18.1466 23.5319 18.3 23.9991 18.3ZM24.0133 44C21.2555 44 18.6638 43.475 16.2383 42.425C13.8127 41.375 11.6917 39.9417 9.875 38.125C8.05835 36.3083 6.625 34.186 5.57495 31.7579C4.52502 29.33 4 26.7356 4 23.975C4 21.2144 4.52502 18.62 5.57495 16.192C6.625 13.764 8.05835 11.65 9.875 9.84998C11.6917 8.05005 13.814 6.625 16.2421 5.57495C18.67 4.52502 21.2644 4 24.025 4C26.7856 4 29.38 4.52502 31.808 5.57495C34.236 6.625 36.35 8.05005 38.15 9.84998C39.95 11.65 41.375 13.7667 42.425 16.2C43.475 18.6333 44 21.2289 44 23.9867C44 26.7445 43.475 29.3362 42.425 31.7617C41.375 34.1873 39.95 36.3053 38.15 38.1158C36.35 39.9263 34.2333 41.3596 31.8 42.4158C29.3667 43.4719 26.7711 44 24.0133 44ZM24.025 41C28.7417 41 32.75 39.3417 36.05 36.025C39.35 32.7084 41 28.6917 41 23.975C41 19.2583 39.3531 15.25 36.0594 11.95C32.7656 8.65002 28.7458 7 24 7C19.3 7 15.2916 8.64685 11.975 11.9406C8.65833 15.2344 7 19.2542 7 24C7 28.7 8.65833 32.7084 11.975 36.025C15.2916 39.3417 19.3083 41 24.025 41Z",fill:"#CCC5B9",fillOpacity:"1.000000",fillRule:"nonzero"})})]})})]}),i.isCatalogMenuVisible&&(0,Pe.jsx)(dl,{toggleCatalogMenu:u,onSelectCategory:r}),s.isLoginMenuVisible&&(0,Pe.jsx)(fl,{toggleLoginMenu:c})]})}function hl(e){let{togglePopupMap:n}=e;const[r,a]=(0,t.useState)(null),i=e=>{a(e)};return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"background-blackout",onClick:n}),(0,Pe.jsxs)("div",{className:"popup-map",children:[(0,Pe.jsxs)("div",{className:"popup-map__menu-div",children:[(0,Pe.jsxs)("div",{className:"menu-div__container-div",children:[(0,Pe.jsxs)("div",{className:"menu-div__delivery-div",children:[(0,Pe.jsx)("button",{className:1===r?"delivery-div__delivery-button delivery-div__delivery-button_selected":"delivery-div__delivery-button",onClick:()=>i(1),children:"\u0421\u0430\u043c\u043e\u0432\u044b\u0432\u043e\u0437"}),(0,Pe.jsx)("button",{className:2===r?"delivery-div__delivery-button delivery-div__delivery-button_selected":"delivery-div__delivery-button",onClick:()=>i(2),children:"\u041a\u0443\u0440\u044c\u0435\u0440\u043e\u043c"})]}),(0,Pe.jsx)("input",{type:"search",name:"address-search",id:"address-search",placeholder:"\u0418\u0441\u043a\u0430\u0442\u044c \u043d\u0430 \u043a\u0430\u0440\u0442\u0435",className:"menu-div__search-input"})]}),(0,Pe.jsx)("button",{className:"menu-div__select-button",children:"\u0417\u0430\u0431\u0435\u0440\u0443 \u0437\u0434\u0435\u0441\u044c"})]}),(0,Pe.jsxs)("div",{className:"popup-map__map-div",children:[(0,Pe.jsx)("a",{href:"https://yandex.ru/maps/65/novosibirsk/?utm_medium=mapframe&utm_source=maps",style:{color:"#eee",fontSize:"12px",position:"absolute",top:"0px"},children:"\u041d\u043e\u0432\u043e\u0441\u0438\u0431\u0438\u0440\u0441\u043a"}),(0,Pe.jsx)("a",{href:"https://yandex.ru/maps/65/novosibirsk/house/ulitsa_titova_14/bEsYfg9iSkEGQFtufXV5cn9lYQ==/?ll=82.882443%2C54.983268&utm_medium=mapframe&utm_source=maps&z=18.59",style:{color:"#eee",fontSize:"12px",position:"absolute",top:"14px"},children:"\u0423\u043b\u0438\u0446\u0430 \u0422\u0438\u0442\u043e\u0432\u0430, 14 \u2014 \u042f\u043d\u0434\u0435\u043a\u0441 \u041a\u0430\u0440\u0442\u044b"}),(0,Pe.jsx)("iframe",{title:"map",src:"https://yandex.ru/map-widget/v1/?ll=82.882443%2C54.983268&mode=search&ol=geo&ouri=ymapsbm1%3A%2F%2Fgeo%3Fdata%3DCgg1NzA5NDgyMhJB0KDQvtGB0YHQuNGPLCDQndC-0LLQvtGB0LjQsdC40YDRgdC6LCDRg9C70LjRhtCwINCi0LjRgtC-0LLQsCwgMTQiCg3Dw6VCFffuW0I%2C&z=18.59",width:"100%",height:"100%",style:{position:"relative"},className:"popup-map__map-iframe"})]})]})]})}function ml(){const[e,n]=(0,t.useState)({isPopupMapVisible:!1}),r=()=>{n((e=>({...e,isPopupMapVisible:!e.isPopupMapVisible})))},[a,i]=(0,t.useState)([{id:1,name:"\u0428\u043e\u043a\u043e\u043b\u0430\u0434\u043a\u0430 Mr. Beast",category:"foods",price:2e3,image:{productImage:Ve}},{id:2,name:"\u0421\u0430\u043b\u0430\u0442",category:"foods",price:200,image:{productImage:Ve}},{id:3,name:"\u0424\u0443\u0442\u0431\u043e\u043b\u043a\u0430",category:"clothes",price:1500,image:{productImage:Ve}},{id:4,name:"\u041c\u043e\u0440\u043e\u0436\u0435\u043d\u043e\u0435",category:"foods",price:150,image:{productImage:Ve}},{id:5,name:"\u0424\u0438\u0433\u0443\u0440\u043a\u0430",category:"figures",price:1799,image:{productImage:Ve}},{id:6,name:"\u0422\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0435\u0440",category:"toys",price:19999,image:{productImage:Ve}},{id:7,name:"\u0421\u0442\u0430\u0440\u0430\u044f \u0438\u0433\u0440\u0443\u0448\u043a\u0430 \u0411\u0430\u0437-\u041b\u0430\u0439\u0442\u0435\u0440",category:"toys",price:0x91c28a21e5980,image:{productImage:Ve}},{id:8,name:"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0442 \u043e\u0434\u0435\u0436\u0434\u044b",category:"clothes",price:756,image:{productImage:Ve}},{id:9,name:"\u041a\u043d\u0438\u0433\u0430 \u043f\u0440\u043e \u0431\u043e\u0442\u0430\u043d\u0438\u043a\u0443",category:"books",price:2345,image:{productImage:Ve}},{id:10,name:"\u041a\u043d\u0438\u0433\u0430 \u0431\u0435\u043b\u0430\u044f",category:"books",price:150,image:{productImage:Ve}}]),[o,s]=(0,t.useState)("all"),[l,u]=(0,t.useState)(""),c=a.filter((e=>("all"===o||e.category===o)&&e.name.toLowerCase().includes(l.toLowerCase())));return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(pl,{togglePopupMap:r,onSelectCategory:e=>{s(e)},onSearchChange:e=>{u(e)}}),e.isPopupMapVisible&&(0,Pe.jsx)(hl,{togglePopupMap:r}),(0,Pe.jsx)("main",{className:"main",children:(0,Pe.jsxs)(me,{children:[(0,Pe.jsx)(pe,{path:"/",element:(0,Pe.jsx)(Ne,{products:c,selectedCategory:o})}),(0,Pe.jsx)(pe,{path:"profile/*",element:(0,Pe.jsx)(rl,{})}),(0,Pe.jsx)(pe,{path:"product",element:(0,Pe.jsx)(Xs,{value:4.4})}),(0,Pe.jsx)(pe,{path:"payment",element:(0,Pe.jsx)(Le,{})}),(0,Pe.jsx)(pe,{path:"scam",element:(0,Pe.jsx)(il,{})}),(0,Pe.jsx)(pe,{path:"info",element:(0,Pe.jsx)(ul,{})})]})})]})}a.createRoot(document.getElementById("root")).render((0,Pe.jsx)(t.StrictMode,{children:(0,Pe.jsx)(Ce,{children:(0,Pe.jsx)(ml,{})})}))})()})();
|
|
//# sourceMappingURL=main.ff00eb34.js.map
|