!function(){"use strict";function e(e){var t={exports:{}};return e(t,t.exports),t.exports}var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var a=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var l,i,u=o(e),s=1;s<arguments.length;s++){for(var c in l=Object(arguments[s]))n.call(l,c)&&(u[c]=l[c]);if(t){i=t(l);for(var f=0;f<i.length;f++)r.call(l,i[f])&&(u[i[f]]=l[i[f]])}}return u},l=e((function(e,t){var n=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,l=60110,i=60112;t.Suspense=60113;var u=60115,s=60116;if("function"==typeof Symbol&&Symbol.for){var c=Symbol.for;n=c("react.element"),r=c("react.portal"),t.Fragment=c("react.fragment"),t.StrictMode=c("react.strict_mode"),t.Profiler=c("react.profiler"),o=c("react.provider"),l=c("react.context"),i=c("react.forward_ref"),t.Suspense=c("react.suspense"),u=c("react.memo"),s=c("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function d(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 p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var g=y.prototype=new v;g.constructor=y,a(g,m.prototype),g.isPureReactComponent=!0;var b={current:null},w=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,a={},l=null,i=null;if(null!=t)for(o in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(l=""+t.key),t)w.call(t,o)&&!S.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===a[o]&&(a[o]=u[o]);return{$$typeof:n,type:e,key:l,ref:i,props:a,_owner:b.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/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 C(e,t,o,a,l){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return l=l(u=e),e=""===a?"."+T(u,0):a,Array.isArray(l)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),C(l,t,o,"",(function(e){return e}))):null!=l&&(_(l)&&(l=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(l,o+(!l.key||u&&u.key===l.key?"":(""+l.key).replace(E,"$&/")+"/")+e)),t.push(l)),1;if(u=0,a=""===a?".":a+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=a+T(i=e[s],s);u+=C(i,t,o,c,l)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(i=e.next()).done;)u+=C(i=i.value,t,o,c=a+T(i,s++),l);else if("object"===i)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function N(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var x={current:null};function A(){var e=x.current;if(null===e)throw Error(d(321));return e}var L={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:a};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))throw Error(d(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,r){if(null==e)throw Error(d(267,e));var o=a({},e.props),l=e.key,i=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,u=b.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];o.children=s}return{$$typeof:n,type:e.type,key:l,ref:i,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:s,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"})),i=e((function(e){e.exports=l})),u=e((function(e,t){var n,r,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();t.unstable_now=function(){return i.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,y=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},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"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,S=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+g;try{v(!0,e)?S.postMessage(null):(m=!1,v=null)}catch(e){throw S.postMessage(null),e}}else m=!1},n=function(e){v=e,m||(m=!0,S.postMessage(null))},r=function(e,n){y=d((function(){e(t.unstable_now())}),n)},o=function(){p(y),y=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<T(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,l=e[a],i=a+1,u=e[i];if(void 0!==l&&0>T(l,n))void 0!==u&&0>T(u,l)?(e[r]=u,e[i]=n,r=i):(e[r]=l,e[a]=n,r=a);else{if(!(void 0!==u&&0>T(u,n)))break e;e[r]=u,e[i]=n,r=i}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],N=[],R=1,x=null,A=3,L=!1,M=!1,P=!1;function V(e){for(var t=_(N);null!==t;){if(null===t.callback)E(N);else{if(!(t.startTime<=e))break;E(N),t.sortIndex=t.expirationTime,k(C,t)}t=_(N)}}function z(e){if(P=!1,V(e),!M)if(null!==_(C))M=!0,n(D);else{var t=_(N);null!==t&&r(z,t.startTime-e)}}function D(e,n){M=!1,P&&(P=!1,o()),L=!0;var a=A;try{for(V(n),x=_(C);null!==x&&(!(x.expirationTime>n)||e&&!t.unstable_shouldYield());){var l=x.callback;if("function"==typeof l){x.callback=null,A=x.priorityLevel;var i=l(x.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?x.callback=i:x===_(C)&&E(C),V(n)}else E(C);x=_(C)}if(null!==x)var u=!0;else{var s=_(N);null!==s&&r(z,s.startTime-n),u=!1}return u}finally{x=null,A=a,L=!1}}var O=a;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||L||(M=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return _(C)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=O,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,a,l){var i=t.unstable_now();switch("object"==typeof l&&null!==l?l="number"==typeof(l=l.delay)&&0<l?i+l:i:l=i,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:R++,callback:a,priorityLevel:e,startTime:l,expirationTime:u=l+u,sortIndex:-1},l>i?(e.sortIndex=l,k(N,e),null===_(C)&&e===_(N)&&(P?o():P=!0,r(z,l-i))):(e.sortIndex=u,k(C,e),M||L||(M=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}})),s=e((function(e){e.exports=u}));function c(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."}if(!i)throw Error(c(227));var f=new Set,d={};function p(e,t){h(e,t),h(e+"Capture",t)}function h(e,t){for(d[e]=t,e=0;e<t.length;e++)f.add(t[e])}var m=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),v=/^[: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]*$/,y=Object.prototype.hasOwnProperty,g={},b={};function w(e,t,n,r,o,a,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=l}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){S[e]=new w(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];S[t]=new w(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){S[e]=new w(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){S[e]=new w(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){S[e]=new w(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){S[e]=new w(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){S[e]=new w(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){S[e]=new w(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){S[e]=new w(e,5,!1,e.toLowerCase(),null,!1,!1)}));var k=/[\-:]([a-z])/g;function _(e){return e[1].toUpperCase()}function E(e,t,n,r){var o=S.hasOwnProperty(t)?S[t]:null;(null!==o?0===o.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||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,o,r)&&(n=null),r||null===o?function(e){return!!y.call(b,e)||!y.call(g,e)&&(v.test(e)?b[e]=!0:(g[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!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(k,_);S[t]=new w(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(k,_);S[t]=new w(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(k,_);S[t]=new w(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){S[e]=new w(e,1,!1,e.toLowerCase(),null,!1,!1)})),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){S[e]=new w(e,1,!1,e.toLowerCase(),null,!0,!0)}));var T=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=60103,N=60106,R=60107,x=60108,A=60114,L=60109,M=60110,P=60112,V=60113,z=60120,D=60115,O=60116,U=60121,I=60128,F=60129,B=60130,j=60131;if("function"==typeof Symbol&&Symbol.for){var W=Symbol.for;C=W("react.element"),N=W("react.portal"),R=W("react.fragment"),x=W("react.strict_mode"),A=W("react.profiler"),L=W("react.provider"),M=W("react.context"),P=W("react.forward_ref"),V=W("react.suspense"),z=W("react.suspense_list"),D=W("react.memo"),O=W("react.lazy"),U=W("react.block"),W("react.scope"),I=W("react.opaque.id"),F=W("react.debug_trace_mode"),B=W("react.offscreen"),j=W("react.legacy_hidden")}var $,H="function"==typeof Symbol&&Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}function Q(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var K=!1;function G(e,t){if(!e||K)return"";K=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=r.stack.split("\n"),l=o.length-1,i=a.length-1;1<=l&&0<=i&&o[l]!==a[i];)i--;for(;1<=l&&0<=i;l--,i--)if(o[l]!==a[i]){if(1!==l||1!==i)do{if(l--,0>--i||o[l]!==a[i])return"\n"+o[l].replace(" at new "," at ")}while(1<=l&&0<=i);break}}}finally{K=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Q(e):""}function Y(e){switch(e.tag){case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function X(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 R:return"Fragment";case N:return"Portal";case A:return"Profiler";case x:return"StrictMode";case V:return"Suspense";case z:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case M:return(e.displayName||"Context")+".Consumer";case L:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case D:return X(e.type);case U:return X(e._render);case O:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}function Z(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function J(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ee(e){e._valueTracker||(e._valueTracker=function(e){var t=J(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.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 te(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=J(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ne(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function re(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function oe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Z(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 ae(e,t){null!=(t=t.checked)&&E(e,"checked",t,!1)}function le(e,t){ae(e,t);var n=Z(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")?ue(e,t.type,n):t.hasOwnProperty("defaultValue")&&ue(e,t.type,Z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(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 ue(e,t,n){"number"===t&&ne(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function se(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ce(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Z(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function fe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(c(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function de(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(c(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(c(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Z(n)}}function pe(e,t){var n=Z(t.value),r=Z(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 he(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var me="http://www.w3.org/1999/xhtml",ve="http://www.w3.org/2000/svg";function ye(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 ge(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ye(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var be,we,Se=(we=function(e,t){if(e.namespaceURI!==ve||"innerHTML"in e)e.innerHTML=t;else{for((be=be||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=be.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 we(e,t)}))}:we);function ke(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 _e={animationIterationCount:!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},Ee=["Webkit","ms","Moz","O"];function Te(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||_e.hasOwnProperty(e)&&_e[e]?(""+t).trim():t+"px"}function Ce(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Te(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(_e).forEach((function(e){Ee.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_e[t]=_e[e]}))}));var Ne=a({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 Re(e,t){if(t){if(Ne[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(c(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(c(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(c(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(c(62))}}function xe(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}}function Ae(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Le=null,Me=null,Pe=null;function Ve(e){if(e=oo(e)){if("function"!=typeof Le)throw Error(c(280));var t=e.stateNode;t&&(t=lo(t),Le(e.stateNode,e.type,t))}}function ze(e){Me?Pe?Pe.push(e):Pe=[e]:Me=e}function De(){if(Me){var e=Me,t=Pe;if(Pe=Me=null,Ve(e),t)for(e=0;e<t.length;e++)Ve(t[e])}}function Oe(e,t){return e(t)}function Ue(e,t,n,r,o){return e(t,n,r,o)}function Ie(){}var Fe=Oe,Be=!1,je=!1;function We(){null===Me&&null===Pe||(Ie(),De())}function $e(e,t){var n=e.stateNode;if(null===n)return null;var r=lo(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(c(231,t,typeof n));return n}var He=!1;if(m)try{var qe={};Object.defineProperty(qe,"passive",{get:function(){He=!0}}),window.addEventListener("test",qe,qe),window.removeEventListener("test",qe,qe)}catch(we){He=!1}function Qe(e,t,n,r,o,a,l,i,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Ke=!1,Ge=null,Ye=!1,Xe=null,Ze={onError:function(e){Ke=!0,Ge=e}};function Je(e,t,n,r,o,a,l,i,u){Ke=!1,Ge=null,Qe.apply(Ze,arguments)}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(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 nt(e){if(et(e)!==e)throw Error(c(188))}function rt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(c(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return nt(o),e;if(a===r)return nt(o),t;a=a.sibling}throw Error(c(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,i=o.child;i;){if(i===n){l=!0,n=o,r=a;break}if(i===r){l=!0,r=o,n=a;break}i=i.sibling}if(!l){for(i=a.child;i;){if(i===n){l=!0,n=a,r=o;break}if(i===r){l=!0,r=a,n=o;break}i=i.sibling}if(!l)throw Error(c(189))}}if(n.alternate!==r)throw Error(c(190))}if(3!==n.tag)throw Error(c(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var at,lt,it,ut,st=!1,ct=[],ft=null,dt=null,pt=null,ht=new Map,mt=new Map,vt=[],yt="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 gt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function bt(e,t){switch(e){case"focusin":case"focusout":ft=null;break;case"dragenter":case"dragleave":dt=null;break;case"mouseover":case"mouseout":pt=null;break;case"pointerover":case"pointerout":ht.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mt.delete(t.pointerId)}}function wt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=gt(t,n,r,o,a),null!==t&&(null!==(t=oo(t))&&lt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function St(e){var t=ro(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void ut(e.lanePriority,(function(){s.unstable_runWithPriority(e.priority,(function(){it(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function kt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=rn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=oo(n))&&lt(t),e.blockedOn=n,!1;t.shift()}return!0}function _t(e,t,n){kt(e)&&n.delete(t)}function Et(){for(st=!1;0<ct.length;){var e=ct[0];if(null!==e.blockedOn){null!==(e=oo(e.blockedOn))&&at(e);break}for(var t=e.targetContainers;0<t.length;){var n=rn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ct.shift()}null!==ft&&kt(ft)&&(ft=null),null!==dt&&kt(dt)&&(dt=null),null!==pt&&kt(pt)&&(pt=null),ht.forEach(_t),mt.forEach(_t)}function Tt(e,t){e.blockedOn===t&&(e.blockedOn=null,st||(st=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Et)))}function Ct(e){function t(t){return Tt(t,e)}if(0<ct.length){Tt(ct[0],e);for(var n=1;n<ct.length;n++){var r=ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ft&&Tt(ft,e),null!==dt&&Tt(dt,e),null!==pt&&Tt(pt,e),ht.forEach(t),mt.forEach(t),n=0;n<vt.length;n++)(r=vt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<vt.length&&null===(n=vt[0]).blockedOn;)St(n),null===n.blockedOn&&vt.shift()}function Nt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rt={animationend:Nt("Animation","AnimationEnd"),animationiteration:Nt("Animation","AnimationIteration"),animationstart:Nt("Animation","AnimationStart"),transitionend:Nt("Transition","TransitionEnd")},xt={},At={};function Lt(e){if(xt[e])return xt[e];if(!Rt[e])return e;var t,n=Rt[e];for(t in n)if(n.hasOwnProperty(t)&&t in At)return xt[e]=n[t];return e}m&&(At=document.createElement("div").style,"AnimationEvent"in window||(delete Rt.animationend.animation,delete Rt.animationiteration.animation,delete Rt.animationstart.animation),"TransitionEvent"in window||delete Rt.transitionend.transition);var Mt=Lt("animationend"),Pt=Lt("animationiteration"),Vt=Lt("animationstart"),zt=Lt("transitionend"),Dt=new Map,Ot=new Map,Ut=["abort","abort",Mt,"animationEnd",Pt,"animationIteration",Vt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",zt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Ot.set(r,t),Dt.set(r,o),p(o,[r])}}(0,s.unstable_now)();var Ft=8;function Bt(e){if(0!=(1&e))return Ft=15,1;if(0!=(2&e))return Ft=14,2;if(0!=(4&e))return Ft=13,4;var t=24&e;return 0!==t?(Ft=12,t):0!=(32&e)?(Ft=11,32):0!==(t=192&e)?(Ft=10,t):0!=(256&e)?(Ft=9,256):0!==(t=3584&e)?(Ft=8,t):0!=(4096&e)?(Ft=7,4096):0!==(t=4186112&e)?(Ft=6,t):0!==(t=62914560&e)?(Ft=5,t):67108864&e?(Ft=4,67108864):0!=(134217728&e)?(Ft=3,134217728):0!==(t=805306368&e)?(Ft=2,t):0!=(1073741824&e)?(Ft=1,1073741824):(Ft=8,e)}function jt(e,t){var n=e.pendingLanes;if(0===n)return Ft=0;var r=0,o=0,a=e.expiredLanes,l=e.suspendedLanes,i=e.pingedLanes;if(0!==a)r=a,o=Ft=15;else if(0!==(a=134217727&n)){var u=a&~l;0!==u?(r=Bt(u),o=Ft):0!==(i&=a)&&(r=Bt(i),o=Ft)}else 0!==(a=n&~l)?(r=Bt(a),o=Ft):0!==i&&(r=Bt(i),o=Ft);if(0===r)return 0;if(r=n&((0>(r=31-Kt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&l)){if(Bt(t),o<=Ft)return t;Ft=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Kt(t)),r|=e[n],t&=~o;return r}function Wt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function $t(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ht(24&~t))?$t(10,t):e;case 10:return 0===(e=Ht(192&~t))?$t(8,t):e;case 8:return 0===(e=Ht(3584&~t))&&(0===(e=Ht(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ht(805306368&~t))&&(t=268435456),t}throw Error(c(358,e))}function Ht(e){return e&-e}function qt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Kt(t)]=n}var Kt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/Yt|0)|0},Gt=Math.log,Yt=Math.LN2;var Xt=s.unstable_UserBlockingPriority,Zt=s.unstable_runWithPriority,Jt=!0;function en(e,t,n,r){Be||Ie();var o=nn,a=Be;Be=!0;try{Ue(o,e,t,n,r)}finally{(Be=a)||We()}}function tn(e,t,n,r){Zt(Xt,nn.bind(null,e,t,n,r))}function nn(e,t,n,r){var o;if(Jt)if((o=0==(4&t))&&0<ct.length&&-1<yt.indexOf(e))e=gt(null,e,t,n,r),ct.push(e);else{var a=rn(e,t,n,r);if(null===a)o&&bt(e,r);else{if(o){if(-1<yt.indexOf(e))return e=gt(a,e,t,n,r),void ct.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return ft=wt(ft,e,t,n,r,o),!0;case"dragenter":return dt=wt(dt,e,t,n,r,o),!0;case"mouseover":return pt=wt(pt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return ht.set(a,wt(ht.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,mt.set(a,wt(mt.get(a)||null,e,t,n,r,o)),!0}return!1}(a,e,t,n,r))return;bt(e,r)}Dr(e,t,r,null,n)}}}function rn(e,t,n,r){var o=Ae(r);if(null!==(o=ro(o))){var a=et(o);if(null===a)o=null;else{var l=a.tag;if(13===l){if(null!==(o=tt(a)))return o;o=null}else if(3===l){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Dr(e,t,r,o,n),null}var on=null,an=null,ln=null;function un(){if(ln)return ln;var e,t,n=an,r=n.length,o="value"in on?on.value:on.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===o[a-t];t++);return ln=o.slice(e,1<t?1-t:void 0)}function sn(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 cn(){return!0}function fn(){return!1}function dn(e){function t(t,n,r,o,a){for(var l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(o):o[l]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?cn:fn,this.isPropagationStopped=fn,this}return a(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=cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=cn)},persist:function(){},isPersistent:cn}),t}var pn,hn,mn,vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yn=dn(vn),gn=a({},vn,{view:0,detail:0}),bn=dn(gn),wn=a({},gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ln,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!==mn&&(mn&&"mousemove"===e.type?(pn=e.screenX-mn.screenX,hn=e.screenY-mn.screenY):hn=pn=0,mn=e),pn)},movementY:function(e){return"movementY"in e?e.movementY:hn}}),Sn=dn(wn),kn=dn(a({},wn,{dataTransfer:0})),_n=dn(a({},gn,{relatedTarget:0})),En=dn(a({},vn,{animationName:0,elapsedTime:0,pseudoElement:0})),Tn=dn(a({},vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Cn=dn(a({},vn,{data:0})),Nn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rn={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Ln(){return An}var Mn=dn(a({},gn,{key:function(e){if(e.key){var t=Nn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=sn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Rn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ln,charCode:function(e){return"keypress"===e.type?sn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?sn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Pn=dn(a({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=dn(a({},gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ln})),zn=dn(a({},vn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=dn(a({},wn,{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})),On=[9,13,27,32],Un=m&&"CompositionEvent"in window,In=null;m&&"documentMode"in document&&(In=document.documentMode);var Fn=m&&"TextEvent"in window&&!In,Bn=m&&(!Un||In&&8<In&&11>=In),jn=String.fromCharCode(32),Wn=!1;function $n(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Qn={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 Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Qn[e.type]:"textarea"===t}function Gn(e,t,n,r){ze(r),0<(t=Ur(t,"onChange")).length&&(n=new yn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Xn=null;function Zn(e){Ar(e,0)}function Jn(e){if(te(ao(e)))return e}function er(e,t){if("change"===e)return t}var tr=!1;if(m){var nr;if(m){var rr="oninput"in document;if(!rr){var or=document.createElement("div");or.setAttribute("oninput","return;"),rr="function"==typeof or.oninput}nr=rr}else nr=!1;tr=nr&&(!document.documentMode||9<document.documentMode)}function ar(){Yn&&(Yn.detachEvent("onpropertychange",lr),Xn=Yn=null)}function lr(e){if("value"===e.propertyName&&Jn(Xn)){var t=[];if(Gn(t,Xn,e,Ae(e)),e=Zn,Be)e(t);else{Be=!0;try{Oe(e,t)}finally{Be=!1,We()}}}}function ir(e,t,n){"focusin"===e?(ar(),Xn=n,(Yn=t).attachEvent("onpropertychange",lr)):"focusout"===e&&ar()}function ur(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Xn)}function sr(e,t){if("click"===e)return Jn(t)}function cr(e,t){if("input"===e||"change"===e)return Jn(t)}var fr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},dr=Object.prototype.hasOwnProperty;function pr(e,t){if(fr(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++)if(!dr.call(t,n[r])||!fr(e[n[r]],t[n[r]]))return!1;return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mr(e,t){var n,r=hr(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=hr(r)}}function vr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function yr(){for(var e=window,t=ne();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ne((e=t.contentWindow).document)}return t}function gr(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)}var br=m&&"documentMode"in document&&11>=document.documentMode,wr=null,Sr=null,kr=null,_r=!1;function Er(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==wr||wr!==ne(r)||("selectionStart"in(r=wr)&&gr(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},kr&&pr(kr,r)||(kr=r,0<(r=Ur(Sr,"onSelect")).length&&(t=new yn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Ut,2);for(var Tr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cr=0;Cr<Tr.length;Cr++)Ot.set(Tr[Cr],0);h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,i,u){if(Je.apply(this,arguments),Ke){if(!Ke)throw Error(c(198));var s=Ge;Ke=!1,Ge=null,Ye||(Ye=!0,Xe=s)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==a&&o.isPropagationStopped())break e;xr(o,i,s),a=u}else for(l=0;l<r.length;l++){if(u=(i=r[l]).instance,s=i.currentTarget,i=i.listener,u!==a&&o.isPropagationStopped())break e;xr(o,i,s),a=u}}}if(Ye)throw e=Xe,Ye=!1,Xe=null,e}function Lr(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Mr]||(e[Mr]=!0,f.forEach((function(t){Rr.has(t)||Vr(t,!1,e,null),Vr(t,!0,e,null)})))}function Vr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Rr.has(e)){if("scroll"!==e)return;o|=2,a=r}var l=io(a),i=e+"__"+(t?"capture":"bubble");l.has(i)||(t&&(o|=4),zr(a,e,o,t),l.add(i))}function zr(e,t,n,r){var o=Ot.get(t);switch(void 0===o?2:o){case 0:o=en;break;case 1:o=tn;break;default:o=nn}n=o.bind(null,t,n,e),o=void 0,!He||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var i=r.stateNode.containerInfo;if(i===o||8===i.nodeType&&i.parentNode===o)break;if(4===l)for(l=r.return;null!==l;){var u=l.tag;if((3===u||4===u)&&((u=l.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;l=l.return}for(;null!==i;){if(null===(l=ro(i)))return;if(5===(u=l.tag)||6===u){r=a=l;continue e}i=i.parentNode}}r=r.return}!function(e,t,n){if(je)return e(t,n);je=!0;try{Fe(e,t,n)}finally{je=!1,We()}}((function(){var r=a,o=Ae(n),l=[];e:{var i=Dt.get(e);if(void 0!==i){var u=yn,s=e;switch(e){case"keypress":if(0===sn(n))break e;case"keydown":case"keyup":u=Mn;break;case"focusin":s="focus",u=_n;break;case"focusout":s="blur",u=_n;break;case"beforeblur":case"afterblur":u=_n;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":u=Sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=kn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Vn;break;case Mt:case Pt:case Vt:u=En;break;case zt:u=zn;break;case"scroll":u=bn;break;case"wheel":u=Dn;break;case"copy":case"cut":case"paste":u=Tn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Pn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==i?i+"Capture":null:i;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=$e(h,d))&&c.push(Or(h,m,p)))),f)break;h=h.return}0<c.length&&(i=new u(i,s,null,n,o),l.push({event:i,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!ro(s)&&!s[to])&&(u||i)&&(i=o.window===o?o:(i=o.ownerDocument)?i.defaultView||i.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?ro(s):null)&&(s!==(f=et(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=Sn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?i:ao(u),p=null==s?i:ao(s),(i=new c(m,h+"leave",u,n,o)).target=f,i.relatedTarget=p,m=null,ro(o)===r&&((c=new c(d,h+"enter",s,n,o)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)e:{for(d=s,h=0,p=c=u;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==u&&Fr(l,i,u,c,!1),null!==s&&null!==f&&Fr(l,f,s,c,!0)}if("select"===(u=(i=r?ao(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var v=er;else if(Kn(i))if(tr)v=cr;else{v=ur;var y=ir}else(u=i.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(v=sr);switch(v&&(v=v(e,r))?Gn(l,v,n,o):(y&&y(e,i,r),"focusout"===e&&(y=i._wrapperState)&&y.controlled&&"number"===i.type&&ue(i,"number",i.value)),y=r?ao(r):window,e){case"focusin":(Kn(y)||"true"===y.contentEditable)&&(wr=y,Sr=r,kr=null);break;case"focusout":kr=Sr=wr=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,Er(l,n,o);break;case"selectionchange":if(br)break;case"keydown":case"keyup":Er(l,n,o)}var g;if(Un)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 qn?$n(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=un()):(an="value"in(on=o)?on.value:on.textContent,qn=!0)),0<(y=Ur(r,b)).length&&(b=new Cn(b,e,null,n,o),l.push({event:b,listeners:y}),g?b.data=g:null!==(g=Hn(n))&&(b.data=g))),(g=Fn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Wn=!0,jn);case"textInput":return(e=t.data)===jn&&Wn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Un&&$n(e,t)?(e=un(),ln=an=on=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new Cn("onBeforeInput","beforeinput",null,n,o),l.push({event:o,listeners:r}),o.data=g))}Ar(l,t)}))}function Or(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=$e(e,n))&&r.unshift(Or(e,a,o)),null!=(a=$e(e,t))&&r.push(Or(e,a,o))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,t,n,r,o){for(var a=t._reactName,l=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(null!==u&&u===r)break;5===i.tag&&null!==s&&(i=s,o?null!=(u=$e(n,a))&&l.unshift(Or(n,u,i)):o||null!=(u=$e(n,a))&&l.push(Or(n,u,i))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}function Br(){}var jr=null,Wr=null;function $r(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qr="function"==typeof setTimeout?setTimeout:void 0,Qr="function"==typeof clearTimeout?clearTimeout:void 0;function Kr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Yr(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 Xr=0;var Zr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Zr,eo="__reactProps$"+Zr,to="__reactContainer$"+Zr,no="__reactEvents$"+Zr;function ro(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[to]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Jr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function oo(e){return!(e=e[Jr]||e[to])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ao(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(c(33))}function lo(e){return e[eo]||null}function io(e){var t=e[no];return void 0===t&&(t=e[no]=new Set),t}var uo=[],so=-1;function co(e){return{current:e}}function fo(e){0>so||(e.current=uo[so],uo[so]=null,so--)}function po(e,t){so++,uo[so]=e.current,e.current=t}var ho={},mo=co(ho),vo=co(!1),yo=ho;function go(e,t){var n=e.type.contextTypes;if(!n)return ho;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function bo(e){return null!=(e=e.childContextTypes)}function wo(){fo(vo),fo(mo)}function So(e,t,n){if(mo.current!==ho)throw Error(c(168));po(mo,t),po(vo,n)}function ko(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(c(108,X(t)||"Unknown",o));return a({},n,r)}function _o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,yo=mo.current,po(mo,e),po(vo,vo.current),!0}function Eo(e,t,n){var r=e.stateNode;if(!r)throw Error(c(169));n?(e=ko(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,fo(vo),fo(mo),po(mo,e)):fo(vo),po(vo,n)}var To=null,Co=null,No=s.unstable_runWithPriority,Ro=s.unstable_scheduleCallback,xo=s.unstable_cancelCallback,Ao=s.unstable_shouldYield,Lo=s.unstable_requestPaint,Mo=s.unstable_now,Po=s.unstable_getCurrentPriorityLevel,Vo=s.unstable_ImmediatePriority,zo=s.unstable_UserBlockingPriority,Do=s.unstable_NormalPriority,Oo=s.unstable_LowPriority,Uo=s.unstable_IdlePriority,Io={},Fo=void 0!==Lo?Lo:function(){},Bo=null,jo=null,Wo=!1,$o=Mo(),Ho=1e4>$o?Mo:function(){return Mo()-$o};function qo(){switch(Po()){case Vo:return 99;case zo:return 98;case Do:return 97;case Oo:return 96;case Uo:return 95;default:throw Error(c(332))}}function Qo(e){switch(e){case 99:return Vo;case 98:return zo;case 97:return Do;case 96:return Oo;case 95:return Uo;default:throw Error(c(332))}}function Ko(e,t){return e=Qo(e),No(e,t)}function Go(e,t,n){return e=Qo(e),Ro(e,t,n)}function Yo(){if(null!==jo){var e=jo;jo=null,xo(e)}Xo()}function Xo(){if(!Wo&&null!==Bo){Wo=!0;var e=0;try{var t=Bo;Ko(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ro(Vo,Yo),t}finally{Wo=!1}}}var Zo=T.ReactCurrentBatchConfig;function Jo(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ea=co(null),ta=null,na=null,ra=null;function oa(){ra=na=ta=null}function aa(e){var t=ea.current;fo(ea),e.type._context._currentValue=t}function la(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ia(e,t){ta=e,ra=na=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ul=!0),e.firstContext=null)}function ua(e,t){if(ra!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ra=e,t=1073741823),t={context:e,observedBits:t,next:null},null===na){if(null===ta)throw Error(c(308));na=t,ta.dependencies={lanes:0,firstContext:t,responders:null}}else na=na.next=t;return e._currentValue}var sa=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function fa(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 da(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=l:a=a.next=l,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ma(e,t,n,r){var o=e.updateQueue;sa=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,c=s.next;s.next=null,null===i?l=c:i.next=c,i=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==i&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==l){for(d=o.baseState,i=0,f=c=s=null;;){u=l.lane;var p=l.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=m.payload)?h.call(p,d,u):h))break e;d=a({},d,u);break e;case 2:sa=!0}}null!==l.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[l]:u.push(l))}else p={eventTime:p,lane:u,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,i|=u;if(null===(l=l.next)){if(null===(u=o.shared.pending))break;l=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===f&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=f,ji|=i,e.lanes=i,e.memoizedState=d}}function va(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(c(191,o));o.call(r)}}}var ya=(new i.Component).refs;function ga(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ba={isMounted:function(e){return!!(e=e._reactInternals)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),o=hu(e),a=da(r,o);a.payload=t,null!=n&&(a.callback=n),pa(e,a),mu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),o=hu(e),a=da(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),pa(e,a),mu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=hu(e),o=da(n,r);o.tag=2,null!=t&&(o.callback=t),pa(e,o),mu(e,r,n)}};function wa(e,t,n,r,o,a,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,l):!t.prototype||!t.prototype.isPureReactComponent||(!pr(n,r)||!pr(o,a))}function Sa(e,t,n){var r=!1,o=ho,a=t.contextType;return"object"==typeof a&&null!==a?a=ua(a):(o=bo(t)?yo:mo.current,a=(r=null!=(r=t.contextTypes))?go(e,o):ho),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ba,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ka(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&&ba.enqueueReplaceState(t,t.state,null)}function _a(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ya,ca(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=ua(a):(a=bo(t)?yo:mo.current,o.context=go(e,a)),ma(e,n,o,r),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ga(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ba.enqueueReplaceState(o,o.state,null),ma(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Ea=Array.isArray;function Ta(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(c(309));var r=n.stateNode}if(!r)throw Error(c(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===ya&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(c(284));if(!n._owner)throw Error(c(290,e))}return e}function Ca(e,t){if("textarea"!==e.type)throw Error(c(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Na(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}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 o(e,t){return(e=Qu(e,t)).index=0,e.sibling=null,e}function a(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):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function i(e,t,n,r){return null===t||6!==t.tag?((t=Xu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ta(e,t,n),r.return=e,r):((r=Ku(n.type,n.key,n.props,null,e.mode,r)).ref=Ta(e,t,n),r.return=e,r)}function s(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=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Gu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Xu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case C:return(n=Ku(t.type,t.key,t.props,null,e.mode,n)).ref=Ta(e,null,t),n.return=e,n;case N:return(t=Zu(t,e.mode,n)).return=e,t}if(Ea(t)||q(t))return(t=Gu(t,e.mode,n,null)).return=e,t;Ca(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:i(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===o?n.type===R?f(e,t,n.props.children,r,o):u(e,t,n,r):null;case N:return n.key===o?s(e,t,n,r):null}if(Ea(n)||q(n))return null!==o?null:f(e,t,n,r,null);Ca(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return i(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case C:return e=e.get(null===r.key?n:r.key)||null,r.type===R?f(t,e,r.props.children,o,r.key):u(t,e,r,o);case N:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ea(r)||q(r))return f(t,e=e.get(n)||null,r,o,null);Ca(t,r)}return null}function m(o,l,i,u){for(var s=null,c=null,f=l,m=l=0,v=null;null!==f&&m<i.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(o,f,i[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(o,f),l=a(y,l,m),null===c?s=y:c.sibling=y,c=y,f=v}if(m===i.length)return n(o,f),s;if(null===f){for(;m<i.length;m++)null!==(f=d(o,i[m],u))&&(l=a(f,l,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);m<i.length;m++)null!==(v=h(f,o,m,i[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),l=a(v,l,m),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),s}function v(o,l,i,u){var s=q(i);if("function"!=typeof s)throw Error(c(150));if(null==(i=s.call(i)))throw Error(c(151));for(var f=s=null,m=l,v=l=0,y=null,g=i.next();null!==m&&!g.done;v++,g=i.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(o,m,g.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),l=a(b,l,v),null===f?s=b:f.sibling=b,f=b,m=y}if(g.done)return n(o,m),s;if(null===m){for(;!g.done;v++,g=i.next())null!==(g=d(o,g.value,u))&&(l=a(g,l,v),null===f?s=g:f.sibling=g,f=g);return s}for(m=r(o,m);!g.done;v++,g=i.next())null!==(g=h(m,o,v,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),l=a(g,l,v),null===f?s=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),s}return function(e,r,a,i){var u="object"==typeof a&&null!==a&&a.type===R&&null===a.key;u&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case C:e:{for(s=a.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(a.type===R){n(e,u.sibling),(r=o(u,a.props.children)).return=e,e=r;break e}break;default:if(u.elementType===a.type){n(e,u.sibling),(r=o(u,a.props)).ref=Ta(e,u,a),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}a.type===R?((r=Gu(a.props.children,e.mode,i,a.key)).return=e,e=r):((i=Ku(a.type,a.key,a.props,null,e.mode,i)).ref=Ta(e,r,a),i.return=e,e=i)}return l(e);case N:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Zu(a,e.mode,i)).return=e,e=r}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=Xu(a,e.mode,i)).return=e,e=r),l(e);if(Ea(a))return m(e,r,a,i);if(q(a))return v(e,r,a,i);if(s&&Ca(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(c(152,X(e.type)||"Component"))}return n(e,r)}}var Ra=Na(!0),xa=Na(!1),Aa={},La=co(Aa),Ma=co(Aa),Pa=co(Aa);function Va(e){if(e===Aa)throw Error(c(174));return e}function za(e,t){switch(po(Pa,t),po(Ma,e),po(La,Aa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ge(null,"");break;default:t=ge(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}fo(La),po(La,t)}function Da(){fo(La),fo(Ma),fo(Pa)}function Oa(e){Va(Pa.current);var t=Va(La.current),n=ge(t,e.type);t!==n&&(po(Ma,e),po(La,n))}function Ua(e){Ma.current===e&&(fo(La),fo(Ma))}var Ia=co(0);function Fa(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!=(64&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 Ba=null,ja=null,Wa=!1;function $a(e,t){var n=Hu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ha(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function qa(e){if(Wa){var t=ja;if(t){var n=t;if(!Ha(e,t)){if(!(t=Gr(n.nextSibling))||!Ha(e,t))return e.flags=-1025&e.flags|2,Wa=!1,void(Ba=e);$a(Ba,n)}Ba=e,ja=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Wa=!1,Ba=e}}function Qa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ba=e}function Ka(e){if(e!==Ba)return!1;if(!Wa)return Qa(e),Wa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=ja;t;)$a(e,t),t=Gr(t.nextSibling);if(Qa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ja=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ja=null}}else ja=Ba?Gr(e.stateNode.nextSibling):null;return!0}function Ga(){ja=Ba=null,Wa=!1}var Ya=[];function Xa(){for(var e=0;e<Ya.length;e++)Ya[e]._workInProgressVersionPrimary=null;Ya.length=0}var Za=T.ReactCurrentDispatcher,Ja=T.ReactCurrentBatchConfig,el=0,tl=null,nl=null,rl=null,ol=!1,al=!1;function ll(){throw Error(c(321))}function il(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!fr(e[n],t[n]))return!1;return!0}function ul(e,t,n,r,o,a){if(el=a,tl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Za.current=null===e||null===e.memoizedState?Vl:zl,e=n(r,o),al){a=0;do{if(al=!1,!(25>a))throw Error(c(301));a+=1,rl=nl=null,t.updateQueue=null,Za.current=Dl,e=n(r,o)}while(al)}if(Za.current=Pl,t=null!==nl&&null!==nl.next,el=0,rl=nl=tl=null,ol=!1,t)throw Error(c(300));return e}function sl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===rl?tl.memoizedState=rl=e:rl=rl.next=e,rl}function cl(){if(null===nl){var e=tl.alternate;e=null!==e?e.memoizedState:null}else e=nl.next;var t=null===rl?tl.memoizedState:rl.next;if(null!==t)rl=t,nl=e;else{if(null===e)throw Error(c(310));e={memoizedState:(nl=e).memoizedState,baseState:nl.baseState,baseQueue:nl.baseQueue,queue:nl.queue,next:null},null===rl?tl.memoizedState=rl=e:rl=rl.next=e}return rl}function fl(e,t){return"function"==typeof t?t(e):t}function dl(e){var t=cl(),n=t.queue;if(null===n)throw Error(c(311));n.lastRenderedReducer=e;var r=nl,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var i=l=a=null,u=o;do{var s=u.lane;if((el&s)===s)null!==i&&(i=i.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:s,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===i?(l=i=f,a=r):i=i.next=f,tl.lanes|=s,ji|=s}u=u.next}while(null!==u&&u!==o);null===i?a=r:i.next=l,fr(r,t.memoizedState)||(Ul=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=i,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function pl(e){var t=cl(),n=t.queue;if(null===n)throw Error(c(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);fr(a,t.memoizedState)||(Ul=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function hl(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(el&e)===e)&&(t._workInProgressVersionPrimary=r,Ya.push(t))),e)return n(t._source);throw Ya.push(t),Error(c(350))}function ml(e,t,n,r){var o=Vi;if(null===o)throw Error(c(349));var a=t._getVersion,l=a(t._source),i=Za.current,u=i.useState((function(){return hl(o,t,n)})),s=u[1],f=u[0];u=rl;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=tl;return e.memoizedState={refs:p,source:t,subscribe:r},i.useEffect((function(){p.getSnapshot=n,p.setSnapshot=s;var e=a(t._source);if(!fr(l,e)){e=n(t._source),fr(f,e)||(s(e),e=hu(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,i=e;0<i;){var u=31-Kt(i),c=1<<u;r[u]|=e,i&=~c}}}),[n,t,r]),i.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=hu(v);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),fr(h,n)&&fr(m,t)&&fr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:fl,lastRenderedState:f}).dispatch=s=Ml.bind(null,tl,e),u.queue=e,u.baseQueue=null,f=hl(o,t,n),u.memoizedState=u.baseState=f),f}function vl(e,t,n){return ml(cl(),e,t,n)}function yl(e){var t=sl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:fl,lastRenderedState:e}).dispatch=Ml.bind(null,tl,e),[t.memoizedState,e]}function gl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=tl.updateQueue)?(t={lastEffect:null},tl.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 bl(e){return e={current:e},sl().memoizedState=e}function wl(){return cl().memoizedState}function Sl(e,t,n,r){var o=sl();tl.flags|=e,o.memoizedState=gl(1|t,n,void 0,void 0===r?null:r)}function kl(e,t,n,r){var o=cl();r=void 0===r?null:r;var a=void 0;if(null!==nl){var l=nl.memoizedState;if(a=l.destroy,null!==r&&il(r,l.deps))return void gl(t,n,a,r)}tl.flags|=e,o.memoizedState=gl(1|t,n,a,r)}function _l(e,t){return Sl(516,4,e,t)}function El(e,t){return kl(516,4,e,t)}function Tl(e,t){return kl(4,2,e,t)}function Cl(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Nl(e,t,n){return n=null!=n?n.concat([e]):null,kl(4,2,Cl.bind(null,t,e),n)}function Rl(){}function xl(e,t){var n=cl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&il(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Al(e,t){var n=cl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&il(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ll(e,t){var n=qo();Ko(98>n?98:n,(function(){e(!0)})),Ko(97<n?97:n,(function(){var n=Ja.transition;Ja.transition=1;try{e(!1),t()}finally{Ja.transition=n}}))}function Ml(e,t,n){var r=pu(),o=hu(e),a={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},l=t.pending;if(null===l?a.next=a:(a.next=l.next,l.next=a),t.pending=a,l=e.alternate,e===tl||null!==l&&l===tl)al=ol=!0;else{if(0===e.lanes&&(null===l||0===l.lanes)&&null!==(l=t.lastRenderedReducer))try{var i=t.lastRenderedState,u=l(i,n);if(a.eagerReducer=l,a.eagerState=u,fr(u,i))return}catch(e){}mu(e,o,r)}}var Pl={readContext:ua,useCallback:ll,useContext:ll,useEffect:ll,useImperativeHandle:ll,useLayoutEffect:ll,useMemo:ll,useReducer:ll,useRef:ll,useState:ll,useDebugValue:ll,useDeferredValue:ll,useTransition:ll,useMutableSource:ll,useOpaqueIdentifier:ll,unstable_isNewReconciler:!1},Vl={readContext:ua,useCallback:function(e,t){return sl().memoizedState=[e,void 0===t?null:t],e},useContext:ua,useEffect:_l,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Sl(4,2,Cl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sl(4,2,e,t)},useMemo:function(e,t){var n=sl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sl();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ml.bind(null,tl,e),[r.memoizedState,e]},useRef:bl,useState:yl,useDebugValue:Rl,useDeferredValue:function(e){var t=yl(e),n=t[0],r=t[1];return _l((function(){var t=Ja.transition;Ja.transition=1;try{r(e)}finally{Ja.transition=t}}),[e]),n},useTransition:function(){var e=yl(!1),t=e[0];return bl(e=Ll.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sl();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ml(r,e,t,n)},useOpaqueIdentifier:function(){if(Wa){var e=!1,t=function(e){return{$$typeof:I,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Xr++).toString(36))),Error(c(355))})),n=yl(t)[1];return 0==(2&tl.mode)&&(tl.flags|=516,gl(5,(function(){n("r:"+(Xr++).toString(36))}),void 0,null)),t}return yl(t="r:"+(Xr++).toString(36)),t},unstable_isNewReconciler:!1},zl={readContext:ua,useCallback:xl,useContext:ua,useEffect:El,useImperativeHandle:Nl,useLayoutEffect:Tl,useMemo:Al,useReducer:dl,useRef:wl,useState:function(){return dl(fl)},useDebugValue:Rl,useDeferredValue:function(e){var t=dl(fl),n=t[0],r=t[1];return El((function(){var t=Ja.transition;Ja.transition=1;try{r(e)}finally{Ja.transition=t}}),[e]),n},useTransition:function(){var e=dl(fl)[0];return[wl().current,e]},useMutableSource:vl,useOpaqueIdentifier:function(){return dl(fl)[0]},unstable_isNewReconciler:!1},Dl={readContext:ua,useCallback:xl,useContext:ua,useEffect:El,useImperativeHandle:Nl,useLayoutEffect:Tl,useMemo:Al,useReducer:pl,useRef:wl,useState:function(){return pl(fl)},useDebugValue:Rl,useDeferredValue:function(e){var t=pl(fl),n=t[0],r=t[1];return El((function(){var t=Ja.transition;Ja.transition=1;try{r(e)}finally{Ja.transition=t}}),[e]),n},useTransition:function(){var e=pl(fl)[0];return[wl().current,e]},useMutableSource:vl,useOpaqueIdentifier:function(){return pl(fl)[0]},unstable_isNewReconciler:!1},Ol=T.ReactCurrentOwner,Ul=!1;function Il(e,t,n,r){t.child=null===e?xa(t,null,n,r):Ra(t,e.child,n,r)}function Fl(e,t,n,r,o){n=n.render;var a=t.ref;return ia(t,o),r=ul(e,t,n,r,a,o),null===e||Ul?(t.flags|=1,Il(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,li(e,t,o))}function Bl(e,t,n,r,o,a){if(null===e){var l=n.type;return"function"!=typeof l||qu(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ku(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,jl(e,t,l,r,o,a))}return l=e.child,0==(o&a)&&(o=l.memoizedProps,(n=null!==(n=n.compare)?n:pr)(o,r)&&e.ref===t.ref)?li(e,t,a):(t.flags|=1,(e=Qu(l,r)).ref=t.ref,e.return=t,t.child=e)}function jl(e,t,n,r,o,a){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Ul=!1,0==(a&o))return t.lanes=e.lanes,li(e,t,a);0!=(16384&e.flags)&&(Ul=!0)}return Hl(e,t,n,r,a)}function Wl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},_u(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_u(t,e),null;t.memoizedState={baseLanes:0},_u(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,_u(t,r);return Il(e,t,o,n),t.child}function $l(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Hl(e,t,n,r,o){var a=bo(n)?yo:mo.current;return a=go(t,a),ia(t,o),n=ul(e,t,n,r,a,o),null===e||Ul?(t.flags|=1,Il(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,li(e,t,o))}function ql(e,t,n,r,o){if(bo(n)){var a=!0;_o(t)}else a=!1;if(ia(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Sa(t,n,r),_a(t,n,r,o),r=!0;else if(null===e){var l=t.stateNode,i=t.memoizedProps;l.props=i;var u=l.context,s=n.contextType;"object"==typeof s&&null!==s?s=ua(s):s=go(t,s=bo(n)?yo:mo.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof l.getSnapshotBeforeUpdate;f||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(i!==r||u!==s)&&ka(t,l,r,s),sa=!1;var d=t.memoizedState;l.state=d,ma(t,r,l,o),u=t.memoizedState,i!==r||d!==u||vo.current||sa?("function"==typeof c&&(ga(t,n,c,r),u=t.memoizedState),(i=sa||wa(t,n,i,r,d,u,s))?(f||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.flags|=4)):("function"==typeof l.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=i):("function"==typeof l.componentDidMount&&(t.flags|=4),r=!1)}else{l=t.stateNode,fa(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:Jo(t.type,i),l.props=s,f=t.pendingProps,d=l.context,"object"==typeof(u=n.contextType)&&null!==u?u=ua(u):u=go(t,u=bo(n)?yo:mo.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(i!==f||d!==u)&&ka(t,l,r,u),sa=!1,d=t.memoizedState,l.state=d,ma(t,r,l,o);var h=t.memoizedState;i!==f||d!==h||vo.current||sa?("function"==typeof p&&(ga(t,n,p,r),h=t.memoizedState),(s=sa||wa(t,n,s,r,d,h,u))?(c||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(r,h,u),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof l.componentDidUpdate&&(t.flags|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof l.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=u,r=s):("function"!=typeof l.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ql(e,t,n,r,a,o)}function Ql(e,t,n,r,o,a){$l(e,t);var l=0!=(64&t.flags);if(!r&&!l)return o&&Eo(t,n,!1),li(e,t,a);r=t.stateNode,Ol.current=t;var i=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&l?(t.child=Ra(t,e.child,null,a),t.child=Ra(t,null,i,a)):Il(e,t,i,a),t.memoizedState=r.state,o&&Eo(t,n,!0),t.child}function Kl(e){var t=e.stateNode;t.pendingContext?So(0,t.pendingContext,t.pendingContext!==t.context):t.context&&So(0,t.context,!1),za(e,t.containerInfo)}var Gl,Yl,Xl,Zl={dehydrated:null,retryLane:0};function Jl(e,t,n){var r,o=t.pendingProps,a=Ia.current,l=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),po(Ia,1&a),null===e?(void 0!==o.fallback&&qa(t),e=o.children,a=o.fallback,l?(e=ei(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Zl,e):"number"==typeof o.unstable_expectedLoadTime?(e=ei(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Zl,t.lanes=33554432,e):((n=Yu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,l?(o=ni(e,t,o.children,o.fallback,n),l=t.child,a=e.child.memoizedState,l.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},l.childLanes=e.childLanes&~n,t.memoizedState=Zl,o):(n=ti(e,t,o.children,n),t.memoizedState=null,n))}function ei(e,t,n,r){var o=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Yu(t,o,0,null),n=Gu(n,o,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function ti(e,t,n,r){var o=e.child;return e=o.sibling,n=Qu(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ni(e,t,n,r,o){var a=t.mode,l=e.child;e=l.sibling;var i={mode:"hidden",children:n};return 0==(2&a)&&t.child!==l?((n=t.child).childLanes=0,n.pendingProps=i,null!==(l=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=l,l.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Qu(l,i),null!==e?r=Qu(e,r):(r=Gu(r,a,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ri(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),la(e.return,t)}function oi(e,t,n,r,o,a){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:a}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o,l.lastEffect=a)}function ai(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Il(e,t,r.children,n),0!=(2&(r=Ia.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ri(e,n);else if(19===e.tag)ri(e,n);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(po(Ia,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Fa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),oi(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Fa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}oi(t,!0,n,null,a,t.lastEffect);break;case"together":oi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function li(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ji|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(c(153));if(null!==t.child){for(n=Qu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Qu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ii(e,t){if(!Wa)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 ui(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return bo(t.type)&&wo(),null;case 3:return Da(),fo(vo),fo(mo),Xa(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ka(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ua(t);var o=Va(Pa.current);if(n=t.type,null!==e&&null!=t.stateNode)Yl(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(c(166));return null}if(e=Va(La.current),Ka(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Jr]=t,r[eo]=l,n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(e=0;e<Nr.length;e++)Lr(Nr[e],r);break;case"source":Lr("error",r);break;case"img":case"image":case"link":Lr("error",r),Lr("load",r);break;case"details":Lr("toggle",r);break;case"input":oe(r,l),Lr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Lr("invalid",r);break;case"textarea":de(r,l),Lr("invalid",r)}for(var i in Re(n,l),e=null,l)l.hasOwnProperty(i)&&(o=l[i],"children"===i?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):d.hasOwnProperty(i)&&null!=o&&"onScroll"===i&&Lr("scroll",r));switch(n){case"input":ee(r),ie(r,l,!0);break;case"textarea":ee(r),he(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(i=9===o.nodeType?o:o.ownerDocument,e===me&&(e=ye(n)),e===me?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Jr]=t,e[eo]=r,Gl(e,t),t.stateNode=e,i=xe(n,r),n){case"dialog":Lr("cancel",e),Lr("close",e),o=r;break;case"iframe":case"object":case"embed":Lr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Nr.length;o++)Lr(Nr[o],e);o=r;break;case"source":Lr("error",e),o=r;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),o=r;break;case"details":Lr("toggle",e),o=r;break;case"input":oe(e,r),o=re(e,r),Lr("invalid",e);break;case"option":o=se(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=a({},r,{value:void 0}),Lr("invalid",e);break;case"textarea":de(e,r),o=fe(e,r),Lr("invalid",e);break;default:o=r}Re(n,o);var u=o;for(l in u)if(u.hasOwnProperty(l)){var s=u[l];"style"===l?Ce(e,s):"dangerouslySetInnerHTML"===l?null!=(s=s?s.__html:void 0)&&Se(e,s):"children"===l?"string"==typeof s?("textarea"!==n||""!==s)&&ke(e,s):"number"==typeof s&&ke(e,""+s):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(d.hasOwnProperty(l)?null!=s&&"onScroll"===l&&Lr("scroll",e):null!=s&&E(e,l,s,i))}switch(n){case"input":ee(e),ie(e,r,!1);break;case"textarea":ee(e),he(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ce(e,!!r.multiple,l,!1):null!=r.defaultValue&&ce(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Br)}$r(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xl(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(c(166));n=Va(Pa.current),Va(La.current),Ka(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return fo(Ia),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ka(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ia.current)?0===Ii&&(Ii=3):(0!==Ii&&3!==Ii||(Ii=4),null===Vi||0==(134217727&ji)&&0==(134217727&Wi)||bu(Vi,Di))),(r||n)&&(t.flags|=4),null);case 4:return Da(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return aa(t),null;case 17:return bo(t.type)&&wo(),null;case 19:if(fo(Ia),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(i=r.rendering))if(l)ii(r,!1);else{if(0!==Ii||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(i=Fa(e))){for(t.flags|=64,ii(r,!1),null!==(l=i.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(i=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return po(Ia,1&Ia.current|2),t.child}e=e.sibling}null!==r.tail&&Ho()>Qi&&(t.flags|=64,l=!0,ii(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Fa(i))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ii(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!Wa)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>Qi&&1073741824!==n&&(t.flags|=64,l=!0,ii(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=r.last)?n.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ho(),n.sibling=null,t=Ia.current,po(Ia,l?1&t|2:1&t),n):null;case 23:case 24:return Eu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(c(156,t.tag))}function si(e){switch(e.tag){case 1:bo(e.type)&&wo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Da(),fo(vo),fo(mo),Xa(),0!=(64&(t=e.flags)))throw Error(c(285));return e.flags=-4097&t|64,e;case 5:return Ua(e),null;case 13:return fo(Ia),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return fo(Ia),null;case 4:return Da(),null;case 10:return aa(e),null;case 23:case 24:return Eu(),null;default:return null}}function ci(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function fi(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Gl=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}},Yl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Va(La.current);var l,i=null;switch(n){case"input":o=re(e,o),r=re(e,r),i=[];break;case"option":o=se(e,o),r=se(e,r),i=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),i=[];break;case"textarea":o=fe(e,o),r=fe(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(c in Re(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(l in u)u.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(d.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(l in u)!u.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&u[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(d.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Lr("scroll",e),i||u===s||(i=[])):"object"==typeof s&&null!==s&&s.$$typeof===I?s.toString():(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Xl=function(e,t,n,r){n!==r&&(t.flags|=4)};var di="function"==typeof WeakMap?WeakMap:Map;function pi(e,t,n){(n=da(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xi||(Xi=!0,Zi=r),fi(0,t)},n}function hi(e,t,n){(n=da(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return fi(0,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ji?Ji=new Set([this]):Ji.add(this),fi(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var mi="function"==typeof WeakSet?WeakSet:Set;function vi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Bu(e,t)}else t.current=null}function yi(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Kr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(c(163))}function gi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Uu(n,e),Ou(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Jo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&va(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}va(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&$r(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ct(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(c(163))}function bi(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=Te("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function wi(e,t){if(Co&&"function"==typeof Co.onCommitFiberUnmount)try{Co.onCommitFiberUnmount(To,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Uu(t,n);else{r=t;try{o()}catch(e){Bu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(vi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Bu(t,e)}break;case 5:vi(t);break;case 4:Ci(e,t)}}function Si(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ki(e){return 5===e.tag||3===e.tag||4===e.tag}function _i(e){e:{for(var t=e.return;null!==t;){if(ki(t))break e;t=t.return}throw Error(c(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(c(161))}16&n.flags&&(ke(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ki(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ei(e,n,t):Ti(e,n,t)}function Ei(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,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)||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(Ei(e,t,n),e=e.sibling;null!==e;)Ei(e,t,n),e=e.sibling}function Ti(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ti(e,t,n),e=e.sibling;null!==e;)Ti(e,t,n),e=e.sibling}function Ci(e,t){for(var n,r,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(c(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var l=e,i=o,u=i;;)if(wi(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===i)break e;for(;null===u.sibling;){if(null===u.return||u.return===i)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,i=o.stateNode,8===l.nodeType?l.parentNode.removeChild(i):l.removeChild(i)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(wi(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function Ni(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[eo]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ae(n,r),xe(e,o),t=xe(e,r),o=0;o<a.length;o+=2){var l=a[o],i=a[o+1];"style"===l?Ce(n,i):"dangerouslySetInnerHTML"===l?Se(n,i):"children"===l?ke(n,i):E(n,l,i,t)}switch(e){case"input":le(n,r);break;case"textarea":pe(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?ce(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?ce(n,!!r.multiple,r.defaultValue,!0):ce(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(c(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Ct(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(qi=Ho(),bi(t.child,!0)),void Ri(t);case 19:return void Ri(t);case 17:return;case 23:case 24:return void bi(t,null!==t.memoizedState)}throw Error(c(163))}function Ri(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new mi),t.forEach((function(t){var r=Wu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function xi(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ai=Math.ceil,Li=T.ReactCurrentDispatcher,Mi=T.ReactCurrentOwner,Pi=0,Vi=null,zi=null,Di=0,Oi=0,Ui=co(0),Ii=0,Fi=null,Bi=0,ji=0,Wi=0,$i=0,Hi=null,qi=0,Qi=1/0;function Ki(){Qi=Ho()+500}var Gi,Yi=null,Xi=!1,Zi=null,Ji=null,eu=!1,tu=null,nu=90,ru=[],ou=[],au=null,lu=0,iu=null,uu=-1,su=0,cu=0,fu=null,du=!1;function pu(){return 0!=(48&Pi)?Ho():-1!==uu?uu:uu=Ho()}function hu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===qo()?1:2;if(0===su&&(su=Bi),0!==Zo.transition){0!==cu&&(cu=null!==Hi?Hi.pendingLanes:0),e=su;var t=4186112&~cu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=qo(),0!=(4&Pi)&&98===e?e=$t(12,su):e=$t(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),su),e}function mu(e,t,n){if(50<lu)throw lu=0,iu=null,Error(c(185));if(null===(e=vu(e,t)))return null;Qt(e,t,n),e===Vi&&(Wi|=t,4===Ii&&bu(e,Di));var r=qo();1===t?0!=(8&Pi)&&0==(48&Pi)?wu(e):(yu(e,n),0===Pi&&(Ki(),Yo())):(0==(4&Pi)||98!==r&&99!==r||(null===au?au=new Set([e]):au.add(e)),yu(e,n)),Hi=e}function vu(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}function yu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-Kt(l),u=1<<i,s=a[i];if(-1===s){if(0==(u&r)||0!=(u&o)){s=t,Bt(u);var f=Ft;a[i]=10<=f?s+250:6<=f?s+5e3:-1}}else s<=t&&(e.expiredLanes|=u);l&=~u}if(r=jt(e,e===Vi?Di:0),t=Ft,0===r)null!==n&&(n!==Io&&xo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Io&&xo(n)}15===t?(n=wu.bind(null,e),null===Bo?(Bo=[n],jo=Ro(Vo,Xo)):Bo.push(n),n=Io):14===t?n=Go(99,wu.bind(null,e)):n=Go(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(c(358,e))}}(t),gu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function gu(e){if(uu=-1,cu=su=0,0!=(48&Pi))throw Error(c(327));var t=e.callbackNode;if(Du()&&e.callbackNode!==t)return null;var n=jt(e,e===Vi?Di:0);if(0===n)return null;var r=n,o=Pi;Pi|=16;var a=Nu();for(Vi===e&&Di===r||(Ki(),Tu(e,r));;)try{Au();break}catch(t){Cu(e,t)}if(oa(),Li.current=a,Pi=o,null!==zi?r=0:(Vi=null,Di=0,r=Ii),0!=(Bi&Wi))Tu(e,0);else if(0!==r){if(2===r&&(Pi|=64,e.hydrate&&(e.hydrate=!1,Kr(e.containerInfo)),0!==(n=Wt(e))&&(r=Ru(e,n))),1===r)throw t=Fi,Tu(e,0),bu(e,n),yu(e,Ho()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(c(345));case 2:Pu(e);break;case 3:if(bu(e,n),(62914560&n)===n&&10<(r=qi+500-Ho())){if(0!==jt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){pu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=qr(Pu.bind(null,e),r);break}Pu(e);break;case 4:if(bu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Kt(n);a=1<<l,(l=r[l])>o&&(o=l),n&=~a}if(n=o,10<(n=(120>(n=Ho()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ai(n/1960))-n)){e.timeoutHandle=qr(Pu.bind(null,e),n);break}Pu(e);break;case 5:Pu(e);break;default:throw Error(c(329))}}return yu(e,Ho()),e.callbackNode===t?gu.bind(null,e):null}function bu(e,t){for(t&=~$i,t&=~Wi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),r=1<<n;e[n]=-1,t&=~r}}function wu(e){if(0!=(48&Pi))throw Error(c(327));if(Du(),e===Vi&&0!=(e.expiredLanes&Di)){var t=Di,n=Ru(e,t);0!=(Bi&Wi)&&(n=Ru(e,t=jt(e,t)))}else n=Ru(e,t=jt(e,0));if(0!==e.tag&&2===n&&(Pi|=64,e.hydrate&&(e.hydrate=!1,Kr(e.containerInfo)),0!==(t=Wt(e))&&(n=Ru(e,t))),1===n)throw n=Fi,Tu(e,0),bu(e,t),yu(e,Ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pu(e),yu(e,Ho()),null}function Su(e,t){var n=Pi;Pi|=1;try{return e(t)}finally{0===(Pi=n)&&(Ki(),Yo())}}function ku(e,t){var n=Pi;Pi&=-2,Pi|=8;try{return e(t)}finally{0===(Pi=n)&&(Ki(),Yo())}}function _u(e,t){po(Ui,Oi),Oi|=t,Bi|=t}function Eu(){Oi=Ui.current,fo(Ui)}function Tu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Qr(n)),null!==zi)for(n=zi.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&wo();break;case 3:Da(),fo(vo),fo(mo),Xa();break;case 5:Ua(r);break;case 4:Da();break;case 13:case 19:fo(Ia);break;case 10:aa(r);break;case 23:case 24:Eu()}n=n.return}Vi=e,zi=Qu(e.current,null),Di=Oi=Bi=t,Ii=0,Fi=null,$i=Wi=ji=0}function Cu(e,t){for(;;){var n=zi;try{if(oa(),Za.current=Pl,ol){for(var r=tl.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ol=!1}if(el=0,rl=nl=tl=null,al=!1,Mi.current=null,null===n||null===n.return){Ii=1,Fi=t,zi=null;break}e:{var a=e,l=n.return,i=n,u=t;if(t=Di,i.flags|=2048,i.firstEffect=i.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&i.mode)){var c=i.alternate;c?(i.updateQueue=c.updateQueue,i.memoizedState=c.memoizedState,i.lanes=c.lanes):(i.updateQueue=null,i.memoizedState=null)}var f=0!=(1&Ia.current),d=l;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(s),d.updateQueue=y}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,i.flags|=16384,i.flags&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var g=da(-1,1);g.tag=2,pa(i,g)}i.lanes|=1;break e}u=void 0,i=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new di,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(i)){u.add(i);var w=ju.bind(null,a,s,i);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((X(i.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ii&&(Ii=2),u=ci(u,i),d=l;do{switch(d.tag){case 3:a=u,d.flags|=4096,t&=-t,d.lanes|=t,ha(d,pi(0,a,t));break e;case 1:a=u;var S=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof S.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Ji||!Ji.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,ha(d,hi(d,a,t));break e}}d=d.return}while(null!==d)}Mu(n)}catch(e){t=e,zi===n&&null!==n&&(zi=n=n.return);continue}break}}function Nu(){var e=Li.current;return Li.current=Pl,null===e?Pl:e}function Ru(e,t){var n=Pi;Pi|=16;var r=Nu();for(Vi===e&&Di===t||Tu(e,t);;)try{xu();break}catch(t){Cu(e,t)}if(oa(),Pi=n,Li.current=r,null!==zi)throw Error(c(261));return Vi=null,Di=0,Ii}function xu(){for(;null!==zi;)Lu(zi)}function Au(){for(;null!==zi&&!Ao();)Lu(zi)}function Lu(e){var t=Gi(e.alternate,e,Oi);e.memoizedProps=e.pendingProps,null===t?Mu(e):zi=t,Mi.current=null}function Mu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ui(n,t,Oi)))return void(zi=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Oi)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=si(t)))return n.flags&=2047,void(zi=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(zi=t);zi=t=e}while(null!==t);0===Ii&&(Ii=5)}function Pu(e){var t=qo();return Ko(99,Vu.bind(null,e,t)),null}function Vu(e,t){do{Du()}while(null!==tu);if(0!=(48&Pi))throw Error(c(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(c(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,a=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,i=e.expirationTimes;0<a;){var u=31-Kt(a),s=1<<u;o[u]=0,l[u]=-1,i[u]=-1,a&=~s}if(null!==au&&0==(24&r)&&au.has(e)&&au.delete(e),e===Vi&&(zi=Vi=null,Di=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Pi,Pi|=32,Mi.current=null,jr=Jt,gr(l=yr())){if("selectionStart"in l)i={start:l.selectionStart,end:l.selectionEnd};else e:if(i=(i=l.ownerDocument)&&i.defaultView||window,(s=i.getSelection&&i.getSelection())&&0!==s.rangeCount){i=s.anchorNode,a=s.anchorOffset,u=s.focusNode,s=s.focusOffset;try{i.nodeType,u.nodeType}catch(e){i=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,y=null;t:for(;;){for(var g;v!==i||0!==a&&3!==v.nodeType||(d=f+a),v!==u||0!==s&&3!==v.nodeType||(p=f+s),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===l)break t;if(y===i&&++h===a&&(d=f),y===u&&++m===s&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}i=-1===d||-1===p?null:{start:d,end:p}}else i=null;i=i||{start:0,end:0}}else i=null;Wr={focusedElem:l,selectionRange:i},Jt=!1,fu=null,du=!1,Yi=r;do{try{zu()}catch(e){if(null===Yi)throw Error(c(330));Bu(Yi,e),Yi=Yi.nextEffect}}while(null!==Yi);fu=null,Yi=r;do{try{for(l=e;null!==Yi;){var b=Yi.flags;if(16&b&&ke(Yi.stateNode,""),128&b){var w=Yi.alternate;if(null!==w){var S=w.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&b){case 2:_i(Yi),Yi.flags&=-3;break;case 6:_i(Yi),Yi.flags&=-3,Ni(Yi.alternate,Yi);break;case 1024:Yi.flags&=-1025;break;case 1028:Yi.flags&=-1025,Ni(Yi.alternate,Yi);break;case 4:Ni(Yi.alternate,Yi);break;case 8:Ci(l,i=Yi);var k=i.alternate;Si(i),null!==k&&Si(k)}Yi=Yi.nextEffect}}catch(e){if(null===Yi)throw Error(c(330));Bu(Yi,e),Yi=Yi.nextEffect}}while(null!==Yi);if(S=Wr,w=yr(),b=S.focusedElem,l=S.selectionRange,w!==b&&b&&b.ownerDocument&&vr(b.ownerDocument.documentElement,b)){null!==l&&gr(b)&&(w=l.start,void 0===(S=l.end)&&(S=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(S,b.value.length)):(S=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(S=S.getSelection(),i=b.textContent.length,k=Math.min(l.start,i),l=void 0===l.end?k:Math.min(l.end,i),!S.extend&&k>l&&(i=l,l=k,k=i),i=mr(b,k),a=mr(b,l),i&&a&&(1!==S.rangeCount||S.anchorNode!==i.node||S.anchorOffset!==i.offset||S.focusNode!==a.node||S.focusOffset!==a.offset)&&((w=w.createRange()).setStart(i.node,i.offset),S.removeAllRanges(),k>l?(S.addRange(w),S.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),S.addRange(w))))),w=[];for(S=b;S=S.parentNode;)1===S.nodeType&&w.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(S=w[b]).element.scrollLeft=S.left,S.element.scrollTop=S.top}Jt=!!jr,Wr=jr=null,e.current=n,Yi=r;do{try{for(b=e;null!==Yi;){var _=Yi.flags;if(36&_&&gi(b,Yi.alternate,Yi),128&_){w=void 0;var E=Yi.ref;if(null!==E){var T=Yi.stateNode;switch(Yi.tag){case 5:w=T;break;default:w=T}"function"==typeof E?E(w):E.current=w}}Yi=Yi.nextEffect}}catch(e){if(null===Yi)throw Error(c(330));Bu(Yi,e),Yi=Yi.nextEffect}}while(null!==Yi);Yi=null,Fo(),Pi=o}else e.current=n;if(eu)eu=!1,tu=e,nu=t;else for(Yi=r;null!==Yi;)t=Yi.nextEffect,Yi.nextEffect=null,8&Yi.flags&&((_=Yi).sibling=null,_.stateNode=null),Yi=t;if(0===(r=e.pendingLanes)&&(Ji=null),1===r?e===iu?lu++:(lu=0,iu=e):lu=0,n=n.stateNode,Co&&"function"==typeof Co.onCommitFiberRoot)try{Co.onCommitFiberRoot(To,n,void 0,64==(64&n.current.flags))}catch(e){}if(yu(e,Ho()),Xi)throw Xi=!1,e=Zi,Zi=null,e;return 0!=(8&Pi)||Yo(),null}function zu(){for(;null!==Yi;){var e=Yi.alternate;du||null===fu||(0!=(8&Yi.flags)?ot(Yi,fu)&&(du=!0):13===Yi.tag&&xi(e,Yi)&&ot(Yi,fu)&&(du=!0));var t=Yi.flags;0!=(256&t)&&yi(e,Yi),0==(512&t)||eu||(eu=!0,Go(97,(function(){return Du(),null}))),Yi=Yi.nextEffect}}function Du(){if(90!==nu){var e=97<nu?97:nu;return nu=90,Ko(e,Iu)}return!1}function Ou(e,t){ru.push(t,e),eu||(eu=!0,Go(97,(function(){return Du(),null})))}function Uu(e,t){ou.push(t,e),eu||(eu=!0,Go(97,(function(){return Du(),null})))}function Iu(){if(null===tu)return!1;var e=tu;if(tu=null,0!=(48&Pi))throw Error(c(331));var t=Pi;Pi|=32;var n=ou;ou=[];for(var r=0;r<n.length;r+=2){var o=n[r],a=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===a)throw Error(c(330));Bu(a,e)}}for(n=ru,ru=[],r=0;r<n.length;r+=2){o=n[r],a=n[r+1];try{var i=o.create;o.destroy=i()}catch(e){if(null===a)throw Error(c(330));Bu(a,e)}}for(i=e.current.firstEffect;null!==i;)e=i.nextEffect,i.nextEffect=null,8&i.flags&&(i.sibling=null,i.stateNode=null),i=e;return Pi=t,Yo(),!0}function Fu(e,t,n){pa(e,t=pi(0,t=ci(n,t),1)),t=pu(),null!==(e=vu(e,1))&&(Qt(e,1,t),yu(e,t))}function Bu(e,t){if(3===e.tag)Fu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ji||!Ji.has(r))){var o=hi(n,e=ci(t,e),1);if(pa(n,o),o=pu(),null!==(n=vu(n,1)))Qt(n,1,o),yu(n,o);else if("function"==typeof r.componentDidCatch&&(null===Ji||!Ji.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function ju(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=pu(),e.pingedLanes|=e.suspendedLanes&n,Vi===e&&(Di&n)===n&&(4===Ii||3===Ii&&(62914560&Di)===Di&&500>Ho()-qi?Tu(e,0):$i|=n),yu(e,t)}function Wu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===qo()?1:2:(0===su&&(su=Bi),0===(t=Ht(62914560&~su))&&(t=4194304))),n=pu(),null!==(e=vu(e,t))&&(Qt(e,t,n),yu(e,n))}function $u(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hu(e,t,n,r){return new $u(e,t,n,r)}function qu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Qu(e,t){var n=e.alternate;return null===n?((n=Hu(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 Ku(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)qu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case R:return Gu(n.children,o,a,t);case F:l=8,o|=16;break;case x:l=8,o|=1;break;case A:return(e=Hu(12,n,t,8|o)).elementType=A,e.type=A,e.lanes=a,e;case V:return(e=Hu(13,n,t,o)).type=V,e.elementType=V,e.lanes=a,e;case z:return(e=Hu(19,n,t,o)).elementType=z,e.lanes=a,e;case B:return Yu(n,o,a,t);case j:return(e=Hu(24,n,t,o)).elementType=j,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case L:l=10;break e;case M:l=9;break e;case P:l=11;break e;case D:l=14;break e;case O:l=16,r=null;break e;case U:l=22;break e}throw Error(c(130,null==e?e:typeof e,""))}return(t=Hu(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Gu(e,t,n,r){return(e=Hu(7,e,r,t)).lanes=n,e}function Yu(e,t,n,r){return(e=Hu(23,e,r,t)).elementType=B,e.lanes=n,e}function Xu(e,t,n){return(e=Hu(6,e,null,t)).lanes=n,e}function Zu(e,t,n){return(t=Hu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ju(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=qt(0),this.expirationTimes=qt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qt(0),this.mutableSourceEagerHydrationData=null}function es(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:N,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ts(e,t,n,r){var o=t.current,a=pu(),l=hu(o);e:if(n){t:{if(et(n=n._reactInternals)!==n||1!==n.tag)throw Error(c(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break t;case 1:if(bo(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break t}}i=i.return}while(null!==i);throw Error(c(171))}if(1===n.tag){var u=n.type;if(bo(u)){n=ko(n,u,i);break e}}n=i}else n=ho;return null===t.context?t.context=n:t.pendingContext=n,(t=da(a,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pa(o,t),mu(o,l,a),l}function ns(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function rs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function os(e,t){rs(e,t),(e=e.alternate)&&rs(e,t)}function as(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ju(e,t,null!=n&&!0===n.hydrate),t=Hu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ca(t),e[to]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ls(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function is(e,t,n,r,o){var a=n._reactRootContainer;if(a){var l=a._internalRoot;if("function"==typeof o){var i=o;o=function(){var e=ns(l);i.call(e)}}ts(t,l,e,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new as(e,0,t?{hydrate:!0}:void 0)}(n,r),l=a._internalRoot,"function"==typeof o){var u=o;o=function(){var e=ns(l);u.call(e)}}ku((function(){ts(t,l,e,o)}))}return ns(l)}function us(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ls(t))throw Error(c(200));return es(e,t,null,n)}Gi=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||vo.current)Ul=!0;else{if(0==(n&r)){switch(Ul=!1,t.tag){case 3:Kl(t),Ga();break;case 5:Oa(t);break;case 1:bo(t.type)&&_o(t);break;case 4:za(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;po(ea,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Jl(e,t,n):(po(Ia,1&Ia.current),null!==(t=li(e,t,n))?t.sibling:null);po(Ia,1&Ia.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ai(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),po(Ia,Ia.current),r)break;return null;case 23:case 24:return t.lanes=0,Wl(e,t,n)}return li(e,t,n)}Ul=0!=(16384&e.flags)}else Ul=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=go(t,mo.current),ia(t,n),o=ul(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,bo(r)){var a=!0;_o(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ca(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&ga(t,r,l,e),o.updater=ba,t.stateNode=o,o._reactInternals=t,_a(t,r,e,n),t=Ql(null,t,r,!0,a,n)}else t.tag=0,Il(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return qu(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===D)return 14}return 2}(o),e=Jo(o,e),a){case 0:t=Hl(null,t,o,e,n);break e;case 1:t=ql(null,t,o,e,n);break e;case 11:t=Fl(null,t,o,e,n);break e;case 14:t=Bl(null,t,o,Jo(o.type,e),r,n);break e}throw Error(c(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Hl(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 1:return r=t.type,o=t.pendingProps,ql(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 3:if(Kl(t),r=t.updateQueue,null===e||null===r)throw Error(c(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,fa(e,t),ma(t,r,null,n),(r=t.memoizedState.element)===o)Ga(),t=li(e,t,n);else{if((a=(o=t.stateNode).hydrate)&&(ja=Gr(t.stateNode.containerInfo.firstChild),Ba=t,a=Wa=!0),a){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(a=e[o])._workInProgressVersionPrimary=e[o+1],Ya.push(a);for(n=xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Il(e,t,r,n),Ga();t=t.child}return t;case 5:return Oa(t),null===e&&qa(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,Hr(r,o)?l=null:null!==a&&Hr(r,a)&&(t.flags|=16),$l(e,t),Il(e,t,l,n),t.child;case 6:return null===e&&qa(t),null;case 13:return Jl(e,t,n);case 4:return za(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ra(t,null,r,n):Il(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Fl(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 7:return Il(e,t,t.pendingProps,n),t.child;case 8:case 12:return Il(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,a=o.value;var i=t.type._context;if(po(ea,i._currentValue),i._currentValue=a,null!==l)if(i=l.value,0===(a=fr(i,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(i,a):1073741823))){if(l.children===o.children&&!vo.current){t=li(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var u=i.dependencies;if(null!==u){l=i.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&a)){1===i.tag&&((s=da(-1,n&-n)).tag=2,pa(i,s)),i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),la(i.return,n),u.lanes|=n;break}s=s.next}}else l=10===i.tag&&i.type===t.type?null:i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}Il(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,ia(t,n),r=r(o=ua(o,a.unstable_observedBits)),t.flags|=1,Il(e,t,r,n),t.child;case 14:return a=Jo(o=t.type,t.pendingProps),Bl(e,t,o,a=Jo(o.type,a),r,n);case 15:return jl(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,bo(r)?(e=!0,_o(t)):e=!1,ia(t,n),Sa(t,r,o),_a(t,r,o,n),Ql(null,t,r,!0,e,n);case 19:return ai(e,t,n);case 23:case 24:return Wl(e,t,n)}throw Error(c(156,t.tag))},as.prototype.render=function(e){ts(e,this._internalRoot,null,null)},as.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ts(null,e,null,(function(){t[to]=null}))},at=function(e){13===e.tag&&(mu(e,4,pu()),os(e,4))},lt=function(e){13===e.tag&&(mu(e,67108864,pu()),os(e,67108864))},it=function(e){if(13===e.tag){var t=pu(),n=hu(e);mu(e,n,t),os(e,n)}},ut=function(e,t){return t()},Le=function(e,t,n){switch(t){case"input":if(le(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 o=lo(r);if(!o)throw Error(c(90));te(r),le(r,o)}}}break;case"textarea":pe(e,n);break;case"select":null!=(t=n.value)&&ce(e,!!n.multiple,t,!1)}},Oe=Su,Ue=function(e,t,n,r,o){var a=Pi;Pi|=4;try{return Ko(98,e.bind(null,t,n,r,o))}finally{0===(Pi=a)&&(Ki(),Yo())}},Ie=function(){0==(49&Pi)&&(function(){if(null!==au){var e=au;au=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,yu(e,Ho())}))}Yo()}(),Du())},Fe=function(e,t){var n=Pi;Pi|=2;try{return e(t)}finally{0===(Pi=n)&&(Ki(),Yo())}};var ss={Events:[oo,ao,lo,ze,De,Du,{current:!1}]},cs={findFiberByHostInstance:ro,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},fs={bundleType:cs.bundleType,version:cs.version,rendererPackageName:cs.rendererPackageName,rendererConfig:cs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:cs.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ds.isDisabled&&ds.supportsFiber)try{To=ds.inject(fs),Co=ds}catch(we){}}var ps={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ss,createPortal:us,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(c(188));throw Error(c(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},flushSync:function(e,t){var n=Pi;if(0!=(48&n))return e(t);Pi|=1;try{if(e)return Ko(99,e.bind(null,t))}finally{Pi=n,Yo()}},hydrate:function(e,t,n){if(!ls(t))throw Error(c(200));return is(null,e,t,!0,n)},render:function(e,t,n){if(!ls(t))throw Error(c(200));return is(null,e,t,!1,n)},unmountComponentAtNode:function(e){if(!ls(e))throw Error(c(40));return!!e._reactRootContainer&&(ku((function(){is(null,null,e,!1,(function(){e._reactRootContainer=null,e[to]=null}))})),!0)},unstable_batchedUpdates:Su,unstable_createPortal:function(e,t){return us(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!ls(n))throw Error(c(200));if(null==e||void 0===e._reactInternals)throw Error(c(38));return is(e,t,n,!1,r)},version:"17.0.2"},hs=e((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=ps}));var ms=function(e,t){if(null!=e)return e;throw new Error(null!=t?t:"Got unexpected null or undefined")};var vs=function(e,t,{error:n}={}){return null};var ys={setByAddingToSet:function(e,t){const n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){const n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n),r},mapByUpdatingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r},mapByDeletingFromMap:function(e,t){const n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){const n=new Map(e);return t.forEach((e=>n.delete(e))),n}};var gs=function*(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)};const bs=(new Map).set("recoil_hamt_2020",!0);function ws(e){var t;return null!==(t=bs.get(e))&&void 0!==t&&t}ws.setPass=e=>{bs.set(e,!0)},ws.setFail=e=>{bs.set(e,!1)};var Ss=ws;var ks=function(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()};function _s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Es{constructor(e){_s(this,"key",void 0),this.key=e}}class Ts extends Es{}class Cs extends Es{}var Ns={AbstractRecoilValue:Es,RecoilState:Ts,RecoilValueReadOnly:Cs,isRecoilValue:function(e){return e instanceof Ts||e instanceof Cs}},Rs=Ns.AbstractRecoilValue,xs=Ns.RecoilState,As=Ns.RecoilValueReadOnly,Ls=Ns.isRecoilValue,Ms=Object.freeze({__proto__:null,AbstractRecoilValue:Rs,RecoilState:xs,RecoilValueReadOnly:As,isRecoilValue:Ls});class Ps{}const Vs=new Ps;class zs extends Error{constructor(e){super(`Tried to set the value of Recoil selector ${e} using an updater function, but it is an async selector in a pending or error state; this is not supported.`)}}const Ds=new Map,Os=new Map;class Us extends Error{}const Is=new Map;function Fs(e){return Is.get(e)}var Bs={nodes:Ds,recoilValues:Os,registerNode:function(e){if(Ds.has(e.key)){const t=`Duplicate atom key "${e.key}". This is a FATAL ERROR in\n      production. But it is safe to ignore this warning if it occurred because of\n      hot module replacement.`;console.warn(t)}Ds.set(e.key,e);const t=null==e.set?new Ms.RecoilValueReadOnly(e.key):new Ms.RecoilState(e.key);return Os.set(e.key,t),t},getNode:function(e){const t=Ds.get(e);if(null==t)throw new Us(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return Ds.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!Ss("recoil_memory_managament_2020"))return;const n=Ds.get(e);var r;(null==n||null===(t=n.shouldDeleteConfigOnRelease)||void 0===t?void 0:t.call(n))&&(Ds.delete(e),null===(r=Fs(e))||void 0===r||r(),Is.delete(e))},setConfigDeletionHandler:function(e,t){Ss("recoil_memory_managament_2020")&&(void 0===t?Is.delete(e):Is.set(e,t))},getConfigDeletionHandler:Fs,recoilValuesForKeys:function(e){return ks(e,(e=>ms(Os.get(e))))},NodeMissingError:Us,DefaultValue:Ps,DEFAULT_VALUE:Vs,RecoilValueNotReady:zs};class js{}var Ws={RetentionZone:js,retentionZone:function(){return new js}};const{setByAddingToSet:$s}=ys,{getNode:Hs,getNodeMaybe:qs,recoilValuesForKeys:Qs}=Bs,{RetentionZone:Ks}=Ws,Gs=Object.freeze(new Set);class Ys extends Error{}function Xs(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const a=Hs(n),l=function(e,t,n){if(!Ss("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(e){let n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof Ks)o(n);else if(Array.isArray(n))for(const e of n)o(e);return()=>{if(!Ss("recoil_memory_managament_2020"))return;const r=e.getState().retention.nodesRetainedByZone;function o(e){const n=r.get(e);n&&n.delete(t),n&&0===n.size&&r.delete(e)}if(n instanceof Ks)o(n);else if(Array.isArray(n))for(const e of n)o(e)}}(e,n,a.retainedBy),i=a.init(e,t,r);o.nodeCleanupFunctions.set(n,(()=>{i(),l()}))}function Zs(e,t,n){return Hs(n).peek(e,t)}function Js(e,t,n){const r=new Set,o=Array.from(n),a=e.getGraph(t.version);for(let e=o.pop();e;e=o.pop()){var l;r.add(e);const t=null!==(l=a.nodeToNodeSubscriptions.get(e))&&void 0!==l?l:Gs;for(const e of t)r.has(e)||o.push(e)}return r}var ec={getNodeLoadable:function(e,t,n){return Xs(e,t,n,"get"),Hs(n).get(e,t)},peekNodeLoadable:Zs,setNodeValue:function(e,t,n,r){const o=Hs(n);if(null==o.set)throw new Ys(`Attempt to set read-only RecoilValue: ${n}`);const a=o.set;return Xs(e,t,n,"set"),a(e,t,r)},cleanUpNode:function(e,t){var n;const r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var r;const o=qs(t);return null==o||null===(r=o.invalidate)||void 0===r||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:$s(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){var r,o,a;const l=e.getState(),i=e.getGraph(t.version),u=l.knownAtoms.has(n)?"atom":l.knownSelectors.has(n)?"selector":void 0,s=gs(Js(e,t,new Set([n])),(e=>e!==n));return{loadable:Zs(e,t,n),isActive:l.knownAtoms.has(n)||l.knownSelectors.has(n),isSet:"selector"!==u&&t.atomValues.has(n),isModified:t.dirtyAtoms.has(n),type:u,deps:Qs(null!==(r=i.nodeDeps.get(n))&&void 0!==r?r:[]),subscribers:{nodes:Qs(s),components:ks(null!==(o=null===(a=l.nodeToComponentSubscriptions.get(n))||void 0===a?void 0:a.values())&&void 0!==o?o:[],(([e])=>({name:e})))}}},getDownstreamNodes:Js,initializeNodeIfNewToStore:Xs};const{getDownstreamNodes:tc,getNodeLoadable:nc,setNodeValue:rc}=ec,{getNodeMaybe:oc}=Bs,{DefaultValue:ac,RecoilValueNotReady:lc}=Bs,{AbstractRecoilValue:ic,RecoilState:uc,RecoilValueReadOnly:sc,isRecoilValue:cc}=Ms;function fc(e,t,n){if("set"===n.type){const{recoilValue:r,valueOrUpdater:o}=n,a=function(e,t,{key:n},r){if("function"==typeof r){const o=nc(e,t,n);if("loading"===o.state)throw new lc(n);if("hasError"===o.state)throw o.contents;return r(o.contents)}return r}(e,t,r,o),l=rc(e,t,r.key,a);for(const[e,n]of l.entries())dc(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:r}=n;dc(t,e,r)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var r;const{recoilValue:{key:e},unvalidatedValue:o}=n,a=oc(e);null==a||null===(r=a.invalidate)||void 0===r||r.call(a,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,o),t.dirtyAtoms.add(e)}else vs(`Unknown action ${n.type}`)}function dc(e,t,n){"hasValue"===n.state&&n.contents instanceof ac?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function pc(e,t){e.replaceState((n=>{const r=function(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}(n);for(const n of t)fc(e,r,n);return vc(e,r),r}))}function hc(e,t){if(mc.length){const n=mc[mc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else pc(e,[t])}const mc=[];function vc(e,t){const n=tc(e,t,t.dirtyAtoms);for(const e of n){var r,o;null===(r=oc(e))||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,t)}}function yc(e,t,n){hc(e,{type:"set",recoilValue:t,valueOrUpdater:n})}let gc=0;var bc={RecoilValueReadOnly:sc,AbstractRecoilValue:ic,RecoilState:uc,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var r,o;const a=e.getState();return n.version!==a.currentTree.version&&n.version!==(null===(r=a.nextTree)||void 0===r?void 0:r.version)&&(n.version,null===(o=a.previousTree)||void 0===o||o.version),nc(e,n,t)},setRecoilValue:yc,setRecoilValueLoadable:function(e,t,n){if(n instanceof ac)return yc(e,t,n);hc(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){hc(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){hc(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,r=null){const o=gc++,a=e.getState();return a.nodeToComponentSubscriptions.has(t)||a.nodeToComponentSubscriptions.set(t,new Map),ms(a.nodeToComponentSubscriptions.get(t)).set(o,[null!=r?r:"<not captured>",n]),{release:()=>{const n=e.getState(),r=n.nodeToComponentSubscriptions.get(t);void 0!==r&&r.has(o)&&(r.delete(o),0===r.size&&n.nodeToComponentSubscriptions.delete(t))}}},isRecoilValue:cc,applyAtomValueWrites:function(e,t){const n=e.clone();return t.forEach(((e,t)=>{"hasValue"===e.state&&e.contents instanceof ac?n.delete(t):n.set(t,e)})),n},batchStart:function(){const e=new Map;return mc.push(e),()=>{for(const[t,n]of e)pc(t,n);mc.pop()}},invalidateDownstreams_FOR_TESTING:vc};const{unstable_batchedUpdates:wc}=hs;var Sc={unstable_batchedUpdates:wc};const{unstable_batchedUpdates:kc}=Sc;var _c={unstable_batchedUpdates:kc};const{batchStart:Ec}=bc,{unstable_batchedUpdates:Tc}=_c;let Cc=Tc;var Nc={getBatcher:()=>Cc,setBatcher:e=>{Cc=e},batchUpdates:e=>{Cc((()=>{let t=()=>{};try{t=Ec(),e()}finally{t()}}))}};var Rc={enqueueExecution:function(e,t){t()}};var xc=function(e,...t){const n=new Set;e:for(const r of e){for(const e of t)if(e.has(r))continue e;n.add(r)}return n};var Ac=function(e,t){const n=new Map;return e.forEach(((e,r)=>{n.set(r,t(e,r))})),n};function Lc(e,t,n){const{nodeDeps:r,nodeToNodeSubscriptions:o}=t;e.forEach(((e,t)=>{const a=r.get(t);if(a&&n&&a!==n.nodeDeps.get(t))return;r.set(t,new Set(e));if((null==a?e:xc(e,a)).forEach((e=>{o.has(e)||o.set(e,new Set);ms(o.get(e)).add(t)})),a){xc(a,e).forEach((e=>{if(!o.has(e))return;const n=ms(o.get(e));n.delete(t),0===n.size&&o.delete(e)}))}}))}var Mc={addToDependencyMap:function(e,t,n){n.has(e)||n.set(e,new Set),ms(n.get(e)).add(t)},cloneGraph:function(e){return{nodeDeps:Ac(e.nodeDeps,(e=>new Set(e))),nodeToNodeSubscriptions:Ac(e.nodeToNodeSubscriptions,(e=>new Set(e)))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},mergeDepsIntoDependencyMap:function(e,t){e.forEach(((e,n)=>{t.has(n)||t.set(n,new Set);const r=ms(t.get(n));e.forEach((e=>r.add(e)))}))},saveDependencyMapToStore:function(e,t,n){var r,o,a,l;const i=t.getState();n!==i.currentTree.version&&n!==(null===(r=i.nextTree)||void 0===r?void 0:r.version)&&(null===(o=i.previousTree)||void 0===o||o.version);const u=t.getGraph(n);if(Lc(e,u),n===(null===(a=i.previousTree)||void 0===a?void 0:a.version)){Lc(e,t.getGraph(i.currentTree.version),u)}if(n===(null===(l=i.previousTree)||void 0===l?void 0:l.version)||n===i.currentTree.version){var s;const n=null===(s=i.nextTree)||void 0===s?void 0:s.version;if(void 0!==n){Lc(e,t.getGraph(n),u)}}}};var Pc,Vc=(function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n={},r=Math.pow(2,5),o=r-1,a=r/2,l=r/4,i={},u=function(e){return function(){return e}},s=n.hash=function(e){var n=void 0===e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,a=e.length;o<a;++o)r=(r<<5)-r+e.charCodeAt(o)|0;return r},c=function(e,t){return t>>>e&o},f=function(e){return 1<<e},d=function(e,t){return n=e&t-1,n=(n=(858993459&(n-=n>>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,127&(n+=n>>8)+(n>>16);var n},p=function(e,t,n,r){var o=r;if(!e){var a=r.length;o=new Array(a);for(var l=0;l<a;++l)o[l]=r[l]}return o[t]=n,o},h=function(e,t,n){var r=n.length-1,o=0,a=0,l=n;if(e)o=a=t;else for(l=new Array(r);o<t;)l[a++]=n[o++];for(++o;o<=r;)l[a++]=n[o++];return e&&(l.length=r),l},m={__hamt_isEmpty:!0},v=function(e){return e===m||e&&e.__hamt_isEmpty},y=function(e,t,n,r){return{type:1,edit:e,hash:t,key:n,value:r,_modify:_}},g=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:E}},b=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:T}},w=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:C}},S=function e(t,n,r,o,a,l){if(r===a)return g(t,r,[l,o]);var i=c(n,r),u=c(n,a);return b(t,f(i)|f(u),i===u?[e(t,n+5,r,o,a,l)]:i<u?[o,l]:[l,o])},k=function(e,t){return e===t.edit},_=function(e,t,n,r,o,a,l){if(t(a,this.key)){var u=r(this.value);return u===this.value?this:u===i?(--l.value,m):k(e,this)?(this.value=u,this):y(e,o,a,u)}var s=r();return s===i?this:(++l.value,S(e,n,this.hash,this,o,y(e,o,a,s)))},E=function(e,t,n,r,o,a,l){if(o===this.hash){var u=function(e,t,n,r,o,a,l,u){for(var s=o.length,c=0;c<s;++c){var f=o[c];if(n(l,f.key)){var d=f.value,m=a(d);return m===d?o:m===i?(--u.value,h(e,c,o)):p(e,c,y(t,r,l,m),o)}}var v=a();return v===i?o:(++u.value,p(e,s,y(t,r,l,v),o))}(k(e,this),e,t,this.hash,this.children,r,a,l);return u===this.children?this:u.length>1?g(e,this.hash,u):u[0]}var s=r();return s===i?this:(++l.value,S(e,n,this.hash,this,o,y(e,o,a,s)))},T=function(e,t,n,r,o,l,i){var u=this.mask,s=this.children,y=c(n,o),g=f(y),S=d(u,g),_=u&g,E=_?s[S]:m,T=E._modify(e,t,n+5,r,o,l,i);if(E===T)return this;var C,N=k(e,this),R=u,x=void 0;if(_&&v(T)){if(!(R&=~g))return m;if(s.length<=2&&((C=s[1^S])===m||1===C.type||2===C.type))return s[1^S];x=h(N,S,s)}else if(_||v(T))x=p(N,S,T,s);else{if(s.length>=a)return function(e,t,n,r,o){for(var a=[],l=r,i=0,u=0;l;++u)1&l&&(a[u]=o[i++]),l>>>=1;return a[t]=n,w(e,i+1,a)}(e,y,T,u,s);R|=g,x=function(e,t,n,r){var o=r.length;if(e){for(var a=o;a>=t;)r[a--]=r[a];return r[t]=n,r}for(var l=0,i=0,u=new Array(o+1);l<t;)u[i++]=r[l++];for(u[t]=n;l<o;)u[++i]=r[l++];return u}(N,S,T,s)}return N?(this.mask=R,this.children=x,this):b(e,R,x)},C=function(e,t,n,r,o,a,i){var u=this.size,s=this.children,f=c(n,o),d=s[f],h=(d||m)._modify(e,t,n+5,r,o,a,i);if(d===h)return this;var y=k(e,this),g=void 0;if(v(d)&&!v(h))++u,g=p(y,f,h,s);else if(!v(d)&&v(h)){if(--u<=l)return function(e,t,n,r){for(var o=new Array(t-1),a=0,l=0,i=0,u=r.length;i<u;++i)if(i!==n){var s=r[i];s&&!v(s)&&(o[a++]=s,l|=1<<i)}return b(e,l,o)}(e,u,f,s);g=p(y,f,m,s)}else g=p(y,f,h,s);return y?(this.size=u,this.children=g,this):w(e,u,g)};function N(e,t,n,r,o){this._editable=e,this._edit=t,this._config=n,this._root=r,this._size=o}m._modify=function(e,t,n,r,o,a,l){var u=r();return u===i?m:(++l.value,y(e,o,a,u))},N.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new N(this._editable,this._edit,this._config,e,t)};var R=n.tryGetHash=function(e,t,n,r){for(var o=r._root,a=0,l=r._config.keyEq;;)switch(o.type){case 1:return l(n,o.key)?o.value:e;case 2:if(t===o.hash)for(var i=o.children,u=0,s=i.length;u<s;++u){var p=i[u];if(l(n,p.key))return p.value}return e;case 3:var h=c(a,t),m=f(h);if(o.mask&m){o=o.children[d(o.mask,m)],a+=5;break}return e;case 4:if(o=o.children[c(a,t)]){a+=5;break}return e;default:return e}};N.prototype.tryGetHash=function(e,t,n){return R(e,t,n,this)};var x=n.tryGet=function(e,t,n){return R(e,n._config.hash(t),t,n)};N.prototype.tryGet=function(e,t){return x(e,t,this)};var A=n.getHash=function(e,t,n){return R(void 0,e,t,n)};N.prototype.getHash=function(e,t){return A(e,t,this)},n.get=function(e,t){return R(void 0,t._config.hash(e),e,t)},N.prototype.get=function(e,t){return x(t,e,this)};var L=n.has=function(e,t,n){return R(i,e,t,n)!==i};N.prototype.hasHash=function(e,t){return L(e,t,this)};var M=n.has=function(e,t){return L(t._config.hash(e),e,t)};N.prototype.has=function(e){return M(e,this)};var P=function(e,t){return e===t};n.make=function(e){return new N(0,0,{keyEq:e&&e.keyEq||P,hash:e&&e.hash||s},m,0)},n.empty=n.make();var V=n.isEmpty=function(e){return e&&!!v(e._root)};N.prototype.isEmpty=function(){return V(this)};var z=n.modifyHash=function(e,t,n,r){var o={value:r._size},a=r._root._modify(r._editable?r._edit:NaN,r._config.keyEq,0,e,t,n,o);return r.setTree(a,o.value)};N.prototype.modifyHash=function(e,t,n){return z(n,e,t,this)};var D=n.modify=function(e,t,n){return z(e,n._config.hash(t),t,n)};N.prototype.modify=function(e,t){return D(t,e,this)};var O=n.setHash=function(e,t,n,r){return z(u(n),e,t,r)};N.prototype.setHash=function(e,t,n){return O(e,t,n,this)};var U=n.set=function(e,t,n){return O(n._config.hash(e),e,t,n)};N.prototype.set=function(e,t){return U(e,t,this)};var I=u(i),F=n.removeHash=function(e,t,n){return z(I,e,t,n)};N.prototype.removeHash=N.prototype.deleteHash=function(e,t){return F(e,t,this)};var B=n.remove=function(e,t){return F(t._config.hash(e),e,t)};N.prototype.remove=N.prototype.delete=function(e){return B(e,this)};var j=n.beginMutation=function(e){return new N(e._editable+1,e._edit+1,e._config,e._root,e._size)};N.prototype.beginMutation=function(){return j(this)};var W=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};N.prototype.endMutation=function(){return W(this)};var $=n.mutate=function(e,t){var n=j(t);return e(n),W(n)};N.prototype.mutate=function(e){return $(e,this)};var H=function(e){return e&&q(e[0],e[1],e[2],e[3],e[4])},q=function(e,t,n,r,o){for(;n<e;){var a=t[n++];if(a&&!v(a))return Q(a,r,[e,t,n,r,o])}return H(o)},Q=function(e,t,n){switch(e.type){case 1:return{value:t(e),rest:n};case 2:case 4:case 3:var r=e.children;return q(r.length,r,0,t,n);default:return H(n)}},K={done:!0};function G(e){this.v=e}G.prototype.next=function(){if(!this.v)return K;var e=this.v;return this.v=H(e.rest),e},G.prototype[Symbol.iterator]=function(){return this};var Y=function(e,t){return new G(Q(e._root,t))},X=function(e){return[e.key,e.value]},Z=n.entries=function(e){return Y(e,X)};N.prototype.entries=N.prototype[Symbol.iterator]=function(){return Z(this)};var J=function(e){return e.key},ee=n.keys=function(e){return Y(e,J)};N.prototype.keys=function(){return ee(this)};var te=function(e){return e.value},ne=n.values=N.prototype.values=function(e){return Y(e,te)};N.prototype.values=function(){return ne(this)};var re=n.fold=function(e,t,n){var r=n._root;if(1===r.type)return e(t,r.value,r.key);for(var o=[r.children],a=void 0;a=o.pop();)for(var l=0,i=a.length;l<i;){var u=a[l++];u&&u.type&&(1===u.type?t=e(t,u.value,u.key):o.push(u.children))}return t};N.prototype.fold=function(e,t){return re(e,t,this)};var oe=n.forEach=function(e,t){return re((function(n,r,o){return e(r,o,t)}),null,t)};N.prototype.forEach=function(e){return oe(e,this)};var ae=n.count=function(e){return e._size};N.prototype.count=function(){return ae(this)},Object.defineProperty(N.prototype,"size",{get:N.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n}(Pc={exports:{}},Pc.exports),Pc.exports);class zc{constructor(e){_s(this,"_map",void 0),this._map=new Map(null==e?void 0:e.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(e){return this._map.get(e)}has(e){return this._map.has(e)}set(e,t){return this._map.set(e,t),this}delete(e){return this._map.delete(e),this}clone(){return Oc(this)}toMap(){return new Map(this._map)}}class Dc{constructor(e){if(_s(this,"_hamt",Vc.empty.beginMutation()),e instanceof Dc){const t=e._hamt.endMutation();e._hamt=t.beginMutation(),this._hamt=t.beginMutation()}else if(e)for(const[t,n]of e.entries())this._hamt.set(t,n)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(e){return this._hamt.get(e)}has(e){return this._hamt.has(e)}set(e,t){return this._hamt.set(e,t),this}delete(e){return this._hamt.delete(e),this}clone(){return Oc(this)}toMap(){return new Map(this._hamt)}}function Oc(e){return Ss("recoil_hamt_2020")?new Dc(e):new zc(e)}var Uc=Oc,Ic=Object.freeze({__proto__:null,persistentMap:Uc});const{graph:Fc}=Mc,{persistentMap:Bc}=Ic;let jc=0;const Wc=()=>jc++;function $c(){const e=Wc();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Bc(),nonvalidatedAtoms:Bc()}}var Hc={makeEmptyTreeState:$c,makeEmptyStoreState:function(){const e=$c();return{currentTree:e,nextTree:null,previousTree:null,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(e.version,Fc()),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:Wc};var qc=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};var Qc=function(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const a=o.value;if(t.call(n,a[1],a[0],e))return!0;o=r.next()}return!1};const{cleanUpNode:Kc}=ec,{deleteNodeConfigIfPossible:Gc,getNode:Yc}=Bs,{RetentionZone:Xc}=Ws,Zc=new Set;function Jc(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const e of t)if(e instanceof Xc)for(const t of tf(n,e))o.add(t);else o.add(e);const a=function(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),a=new Set,l=new Set;return i(t),a;function i(t){const u=new Set,s=function(e,t,n,r,o){const a=e.getGraph(t.version),l=[],i=new Set;for(;n.size>0;)u(ms(n.values().next().value));return l;function u(e){if(r.has(e)||o.has(e))return void n.delete(e);if(i.has(e))return;const t=a.nodeToNodeSubscriptions.get(e);if(t)for(const e of t)u(e);i.add(e),n.delete(e),l.push(e)}}(e,r,t,a,l);for(const e of s){var c;if("recoilRoot"===Yc(e).retainedBy){l.add(e);continue}if((null!==(c=n.retention.referenceCounts.get(e))&&void 0!==c?c:0)>0){l.add(e);continue}if(nf(e).some((e=>n.retention.referenceCounts.get(e)))){l.add(e);continue}const t=o.nodeToNodeSubscriptions.get(e);t&&Qc(t,(e=>l.has(e)))?l.add(e):(a.add(e),u.add(e))}const f=new Set;for(const e of u)for(const t of null!==(d=o.nodeDeps.get(e))&&void 0!==d?d:Zc){var d;a.has(t)||f.add(t)}f.size&&i(f)}}(e,o);for(const t of a)ef(e,r,t)}function ef(e,t,n){if(!Ss("recoil_memory_managament_2020"))return;Kc(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=nf(n);for(const e of o){var a;null===(a=r.retention.nodesRetainedByZone.get(e))||void 0===a||a.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const l=r.graphsByVersion.get(t.version);if(l){const e=l.nodeDeps.get(n);if(void 0!==e){l.nodeDeps.delete(n);for(const t of e){var i;null===(i=l.nodeToNodeSubscriptions.get(t))||void 0===i||i.delete(n)}}l.nodeToNodeSubscriptions.delete(n)}Gc(n)}function tf(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:Zc}function nf(e){const t=Yc(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof Xc?[t]:t}var rf={updateRetainCount:function(e,t,n){var r;if(!Ss("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,a=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===a?(o.delete(t),function(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Jc(e,new Set([t]))}(e,t)):o.set(t,a)},releaseScheduledRetainablesNow:function(e){if(!Ss("recoil_memory_managament_2020"))return;const t=e.getState();Jc(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};var of=function*(e){for(const t of e)for(const e of t)yield e};var af={isSSR:"undefined"==typeof window,isReactNative:"undefined"!=typeof navigator&&"ReactNative"===navigator.product};const{isSSR:lf}=af,{batchUpdates:uf}=Nc,{initializeNodeIfNewToStore:sf,peekNodeInfo:cf}=ec,{graph:ff}=Mc,{DEFAULT_VALUE:df,recoilValues:pf,recoilValuesForKeys:hf}=Bs,{AbstractRecoilValue:mf,getRecoilValueAsLoadable:vf,setRecoilValue:yf,setUnvalidatedRecoilValue:gf}=bc,{getNextTreeStateVersion:bf,makeEmptyStoreState:wf}=Hc;class Sf{constructor(e){_s(this,"_store",void 0),_s(this,"_refCount",0),_s(this,"getLoadable",(e=>(this.checkRefCount_INTERNAL(),vf(this._store,e)))),_s(this,"getPromise",(e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise()))),_s(this,"getNodes_UNSTABLE",(e=>{if(this.checkRefCount_INTERNAL(),!0===(null==e?void 0:e.isModified)){if(!1===(null==e?void 0:e.isInitialized))return[];const t=this._store.getState().currentTree;return hf(t.dirtyAtoms)}const t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null==e?void 0:e.isInitialized)?pf.values():!0===e.isInitialized?hf(of([this._store.getState().knownAtoms,this._store.getState().knownSelectors])):gs(pf.values(),(({key:e})=>!t.has(e)&&!n.has(e)))})),_s(this,"getInfo_UNSTABLE",(({key:e})=>(this.checkRefCount_INTERNAL(),cf(this._store,this._store.getState().currentTree,e)))),_s(this,"map",(e=>{this.checkRefCount_INTERNAL();const t=new Ef(this);return e(t),_f(t.getStore_INTERNAL())})),_s(this,"asyncMap",(async e=>{this.checkRefCount_INTERNAL();const t=new Ef(this);return await e(t),_f(t.getStore_INTERNAL())})),this._store={getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{const n=e.graphsByVersion;if(n.has(t))return ms(n.get(t));const r=ff();return n.set(t,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw new Error("Cannot subscribe to Snapshots")}};for(const t of this._store.getState().nodeCleanupFunctions.keys())sf(this._store,e.currentTree,t,"get");this.retain(),this.autorelease()}retain(){if(!Ss("recoil_memory_managament_2020"))return()=>{};this._refCount++;let e=!1;return()=>{e||(e=!0,this.release())}}autorelease(){Ss("recoil_memory_managament_2020")&&(lf||window.setTimeout((()=>this.release()),0))}release(){Ss("recoil_memory_managament_2020")&&(this._refCount--,this._refCount)}checkRefCount_INTERNAL(){Ss("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this.getID_INTERNAL()}getID_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}}function kf(e,t,n=!1){const r=e.getState(),o=n?bf():t.version;return{currentTree:n?{version:o,stateID:o,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()}:t,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(o,e.getGraph(t.version)),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}function _f(e,t="current"){const n=e.getState(),r="current"===t?n.currentTree:ms(n.previousTree);return new Sf(kf(e,r))}class Ef extends Sf{constructor(e){super(kf(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0)),_s(this,"set",((e,t)=>{this.checkRefCount_INTERNAL(),uf((()=>{yf(this.getStore_INTERNAL(),e,t)}))})),_s(this,"reset",(e=>{this.checkRefCount_INTERNAL(),uf((()=>yf(this.getStore_INTERNAL(),e,df)))})),_s(this,"setUnvalidatedAtomValues_DEPRECATED",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();uf((()=>{for(const[n,r]of e.entries())gf(t,new mf(n),r)}))}))}}var Tf={Snapshot:Sf,MutableSnapshot:Ef,freshSnapshot:function(e){const t=new Sf(wf());return null!=e?t.map(e):t},cloneSnapshot:_f},Cf=Tf.Snapshot,Nf=Tf.MutableSnapshot,Rf=Tf.freshSnapshot,xf=Tf.cloneSnapshot,Af=Object.freeze({__proto__:null,Snapshot:Cf,MutableSnapshot:Nf,freshSnapshot:Rf,cloneSnapshot:xf});const{getNextTreeStateVersion:Lf,makeEmptyStoreState:Mf}=Hc,{cleanUpNode:Pf,getDownstreamNodes:Vf,setNodeValue:zf,setUnvalidatedAtomValue_DEPRECATED:Df}=ec,{graph:Of}=Mc,{cloneGraph:Uf}=Mc,{applyAtomValueWrites:If}=bc,{releaseScheduledRetainablesNow:Ff}=rf,{freshSnapshot:Bf}=Af,{useCallback:jf,useContext:Wf,useEffect:$f,useMemo:Hf,useRef:qf,useState:Qf}=i;function Kf(){throw new Error("This component must be used inside a <RecoilRoot> component.")}const Gf=Object.freeze({getState:Kf,replaceState:Kf,getGraph:Kf,subscribeToTransactions:Kf,addTransactionMetadata:Kf});let Yf=!1;function Xf(e){if(Yf)throw new Error("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");if(null===e.nextTree){const t=e.currentTree.version,n=Lf();e.nextTree={...e.currentTree,version:n,stateID:n,dirtyAtoms:new Set,transactionMetadata:{}},e.graphsByVersion.set(n,Uf(ms(e.graphsByVersion.get(t))))}}const Zf=i.createContext({current:Gf}),Jf=()=>Wf(Zf),ed=i.createContext(null);function td(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[n,o]of t.nodeTransactionSubscriptions)if(r.has(n))for(const[t,n]of o)n(e);for(const[n,r]of t.transactionSubscriptions)r(e);const o=Vf(e,n,r);for(const e of o){const r=t.nodeToComponentSubscriptions.get(e);if(r)for(const[e,[t,o]]of r)o(n)}t.suspendedComponentResolvers.forEach((e=>e()))}t.queuedComponentCallbacks_DEPRECATED.forEach((e=>e(n))),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function nd({setNotifyBatcherOfChange:e}){const t=Jf(),[n,r]=Qf([]);return e((()=>r({}))),$f((()=>{Rc.enqueueExecution("Batcher",(()=>{const e=t.current.getState(),{nextTree:n}=e;if(null===n)return;e.previousTree=e.currentTree,e.currentTree=n,e.nextTree=null,td(t.current);const r=ms(e.previousTree).version;e.graphsByVersion.delete(r),e.previousTree=null,Ss("recoil_memory_managament_2020")&&Ff(t.current)}))})),$f((()=>()=>{e((()=>{}))}),[e]),null}let rd=0;var od={useStoreRef:Jf,useRecoilMutableSource:function(){return Wf(ed)},RecoilRoot:function({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){var o;let a;const l=qf(null),u=jf((e=>{l.current=e}),[l]),s=null!==(o=i.createMutableSource)&&void 0!==o?o:i.unstable_createMutableSource,c=null!=n?n:{getState:()=>a.current,replaceState:e=>{const t=f.current.getState();Xf(t);const n=ms(t.nextTree);let r;try{Yf=!0,r=e(n)}finally{Yf=!1}r!==n&&(t.nextTree=r,ms(l.current)())},getGraph:e=>{const t=a.current.graphsByVersion;if(t.has(e))return ms(t.get(e));const n=Of();return t.set(e,n),n},subscribeToTransactions:(e,t)=>{if(null==t){const{transactionSubscriptions:t}=f.current.getState(),n=rd++;return t.set(n,e),{release:()=>{t.delete(n)}}}{const{nodeTransactionSubscriptions:n}=f.current.getState();n.has(t)||n.set(t,new Map);const r=rd++;return ms(n.get(t)).set(r,e),{release:()=>{const e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}}},addTransactionMetadata:e=>{Xf(f.current.getState());for(const t of Object.keys(e))ms(f.current.getState().nextTree).transactionMetadata[t]=e[t]}},f=qf(c);a=qf(null!=e?function(e,t){const n=Mf();return t({set:(t,r)=>{const o=n.currentTree,a=zf(e,o,t.key,r),l=new Set(a.keys()),i=o.nonvalidatedAtoms.clone();for(const e of l)i.delete(e);n.currentTree={...o,dirtyAtoms:qc(o.dirtyAtoms,l),atomValues:If(o.atomValues,a),nonvalidatedAtoms:i}},setUnvalidatedAtomValues:e=>{e.forEach(((e,t)=>{n.currentTree=Df(n.currentTree,t,e)}))}}),n}(c,e):null!=t?function(e){return Bf().map(e).getStore_INTERNAL().getState()}(t):Mf());const d=Hf((()=>s?s(a,(()=>a.current.currentTree.version)):null),[s,a]);return $f((()=>()=>{for(const e of f.current.getState().knownAtoms)Pf(f.current,e)}),[]),i.createElement(Zf.Provider,{value:f},i.createElement(ed.Provider,{value:d},i.createElement(nd,{setNotifyBatcherOfChange:u}),r))},sendEndOfBatchNotifications_FOR_TESTING:td};var ad=function(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n};var ld=function(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n};var id=function(e,t){if(!e)throw new Error(t)};var ud,sd=function(...e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].keys();let o;for(;!(o=r.next()).done;)t.set(o.value,e[n].get(o.value))}return t};const cd=null!==(ud=i.useMutableSource)&&void 0!==ud?ud:i.unstable_useMutableSource;var fd={mutableSourceExists:function(){return cd&&!("undefined"!=typeof window&&window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE)},useMutableSource:cd};var dd=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0};const{useRef:pd}=i;var hd=function(){return pd(),"<component name not available>"};const{batchUpdates:md}=Nc,{DEFAULT_VALUE:vd,getNode:yd,nodes:gd}=Bs,{useRecoilMutableSource:bd,useStoreRef:wd}=od,{AbstractRecoilValue:Sd,getRecoilValueAsLoadable:kd,setRecoilValue:_d,setRecoilValueLoadable:Ed,setUnvalidatedRecoilValue:Td,subscribeToRecoilValue:Cd}=bc,{updateRetainCount:Nd}=rf,{RetentionZone:Rd}=Ws,{Snapshot:xd,cloneSnapshot:Ad}=Af,{setByAddingToSet:Ld}=ys,{isSSR:Md}=af,{mutableSourceExists:Pd,useMutableSource:Vd}=fd,{useCallback:zd,useEffect:Dd,useMemo:Od,useRef:Ud,useState:Id}=i,Fd=12e4;function Bd(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state){throw new Promise((e=>{n.current.getState().suspendedComponentResolvers.add(e)}))}throw"hasError"===e.state?e.contents:new Error(`Invalid value of loadable atom "${t.key}"`)}function jd(e){return Ss("recoil_memory_managament_2020")&&Xd(e),Pd()?function(e){const t=wd(),n=zd((()=>{const n=t.current,r=n.getState().currentTree;return kd(n,e,r)}),[t,e]),r=zd((()=>n()),[n]),o=hd(),a=zd(((r,a)=>{const l=t.current;return Cd(l,e,(()=>{if(!Ss("recoil_suppress_rerender_in_callback"))return a();const e=n();u.current.is(e)||a()}),o).release}),[t,e,o,n]),l=bd(),i=Vd(l,r,a),u=Ud(i);return Dd((()=>{u.current=i})),i}(e):function(e){const t=wd(),[n,r]=Id([]),o=hd();Dd((()=>{const n=t.current,a=n.getState(),i=Cd(n,e,(t=>{var o;if(!Ss("recoil_suppress_rerender_in_callback"))return r([]);const a=kd(n,e,n.getState().currentTree);(null===(o=l.current)||void 0===o?void 0:o.is(a))||r(a)}),o);if(a.nextTree)n.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{l.current=null,r([])}));else{var u;if(!Ss("recoil_suppress_rerender_in_callback"))return r([]);const t=kd(n,e,n.getState().currentTree);(null===(u=l.current)||void 0===u?void 0:u.is(t))||r(t)}return i.release}),[o,e,t]);const a=kd(t.current,e),l=Ud(a);return Dd((()=>{l.current=a})),a}(e)}function Wd(e){const t=wd();return Bd(jd(e),e,t)}function $d(e){const t=wd();return zd((n=>{_d(t.current,e,n)}),[t,e])}function Hd(e){const t=wd();Dd((()=>t.current.subscribeToTransactions(e).release),[e,t])}function qd(e){const t=e.atomValues.toMap(),n=Ac(ad(t,((e,t)=>{const n=yd(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state})),(e=>e.contents));return sd(e.nonvalidatedAtoms.toMap(),n)}function Qd(e){const t=Ud();return Dd((()=>{t.current=e})),t.current}function Kd(){const e=wd();return zd((t=>{var n;const r=e.current.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,a=t.getStore_INTERNAL().getState().currentTree;md((()=>{const n=new Set;for(const e of[o.atomValues.keys(),a.atomValues.keys()])for(const t of e){var r,l;(null===(r=o.atomValues.get(t))||void 0===r?void 0:r.contents)!==(null===(l=a.atomValues.get(t))||void 0===l?void 0:l.contents)&&yd(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach((t=>{Ed(e.current,new Sd(t),a.atomValues.has(t)?ms(a.atomValues.get(t)):vd)})),e.current.replaceState((e=>({...e,stateID:t.getID_INTERNAL()})))}))}),[e])}class Gd{}const Yd=new Gd;function Xd(e){if(Ss("recoil_memory_managament_2020"))return function(e){const t=(Array.isArray(e)?e:[e]).map((e=>e instanceof Rd?e:e.key)),n=wd();Dd((()=>{if(!Ss("recoil_memory_managament_2020"))return;const e=n.current;if(r.current&&!Md)window.clearTimeout(r.current),r.current=null;else for(const n of t)Nd(e,n,1);return()=>{for(const n of t)Nd(e,n,-1)}}),[n,...t]);const r=Ud(),o=Qd(t);if(!(Md||void 0!==o&&dd(o,t))){const e=n.current;for(const n of t)Nd(e,n,1);if(o)for(const t of o)Nd(e,t,-1);r.current&&window.clearTimeout(r.current),r.current=window.setTimeout((()=>{r.current=null;for(const n of t)Nd(e,n,-1)}),Fd)}}(e)}var Zd={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useGotoRecoilSnapshot:Kd,useRecoilCallback:function(e,t){const n=wd(),r=Kd();return zd(((...t)=>{function o(e,t){_d(n.current,e,t)}function a(e){_d(n.current,e,vd)}const l=Ad(n.current);let i=Yd;return md((()=>{const n="useRecoilCallback expects a function that returns a function: it accepts a function of the type (RecoilInterface) => T = R and returns a callback function T => R, where RecoilInterface is an object {snapshot, set, ...} and T and R are the argument and return types of the callback you want to create.  Please see the docs at recoiljs.org for details.";if("function"!=typeof e)throw new Error(n);const u=e({set:o,reset:a,snapshot:l,gotoSnapshot:r});if("function"!=typeof u)throw new Error(n);i=u(...t)})),i instanceof Gd&&id(!1),i}),null!=t?[...t,n]:void 0)},useRecoilInterface:function(){const e=wd(),[t,n]=Id([]),r=Ud(new Set);r.current=new Set;const o=Ud(new Set),a=Ud(new Map),l=zd((e=>{const t=a.current.get(e);t&&(t.release(),a.current.delete(e))}),[a]),i=hd();return Dd((()=>{const t=e.current;function u(e,t){a.current.has(t)&&n([])}xc(r.current,o.current).forEach((e=>{if(a.current.has(e))return;const n=Cd(t,new Sd(e),(t=>{u(0,e)}),i);a.current.set(e,n);t.getState().nextTree?t.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{u(t.getState(),e)})):u(t.getState(),e)})),xc(o.current,r.current).forEach((e=>{l(e)})),o.current=r.current})),Dd((()=>{const e=a.current;return()=>e.forEach(((e,t)=>l(t)))}),[l]),Od((()=>{function t(t){return n=>{_d(e.current,t,n)}}function n(t){return r.current.has(t.key)||(r.current=Ld(r.current,t.key)),kd(e.current,t)}function o(t){return Bd(n(t),t,e)}return{getRecoilValue:o,getRecoilValueLoadable:n,getRecoilState:function(e){return[o(e),t(e)]},getRecoilStateLoadable:function(e){return[n(e),t(e)]},getSetRecoilState:t,getResetRecoilState:function(t){return()=>_d(e.current,t,vd)}}}),[r,e])},useRecoilSnapshot:function(){const e=wd(),[t,n]=Id((()=>Ad(e.current))),r=Qd(t),o=Ud();return Dd((()=>(o.current&&!Md&&window.clearTimeout(o.current),t.retain())),[t]),Hd(zd((e=>n(Ad(e))),[])),r===t||Md||(o.current&&(null==r||r.release(),window.clearTimeout(o.current)),t.retain(),o.current=window.setTimeout((()=>{t.release(),o.current=null}),Fd)),t},useRecoilState:function(e){return[Wd(e),$d(e)]},useRecoilStateLoadable:function(e){return[jd(e),$d(e)]},useRecoilTransactionObserver:function(e){Hd(zd((t=>{const n=Ad(t,"current"),r=Ad(t,"previous");e({snapshot:n,previousSnapshot:r})}),[e]))},useRecoilValue:Wd,useRecoilValueLoadable:jd,useRetain:Xd,useResetRecoilState:function(e){const t=wd();return zd((()=>{_d(t.current,e,vd)}),[t,e])},useSetRecoilState:$d,useSetUnvalidatedAtomValues:function(){const e=wd();return(t,n={})=>{md((()=>{e.current.addTransactionMetadata(n),t.forEach(((t,n)=>Td(e.current,new Sd(n),t)))}))}},useTransactionObservation_DEPRECATED:function(e){Hd(zd((t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=qd(r),a=qd(n),l=Ac(gd,(e=>{var t,n,r,o;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(o=e.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}})),i=ld(r.dirtyAtoms,(e=>o.has(e)||a.has(e)));e({atomValues:o,previousAtomValues:a,atomInfo:l,modifiedAtoms:i,transactionMetadata:{...r.transactionMetadata}})}),[e]))},useTransactionSubscription_DEPRECATED:Hd};const{peekNodeInfo:Jd}=ec,{useStoreRef:ep}=od;var tp=function(){const e=ep();return({key:t})=>Jd(e.current,e.current.getState().currentTree,t)};const{RecoilRoot:np,useStoreRef:rp}=od,{useMemo:op}=i;var ap=function(){const e=rp().current;return op((()=>function({children:t}){return i.createElement(np,{store_INTERNAL:e},t)}),[e])};var lp=function(e){return!!e&&"function"==typeof e.then};class ip{}const up=new ip,sp={getValue(){if("loading"===this.state)throw this.contents.then((({__value:e})=>e));if("hasValue"!==this.state)throw this.contents;return this.contents},toPromise(){return"hasValue"===this.state?Promise.resolve(this.contents):"hasError"===this.state?Promise.reject(this.contents):this.contents.then((({__value:e})=>e))},valueMaybe(){return"hasValue"===this.state?this.contents:void 0},valueOrThrow(){if("hasValue"!==this.state){throw new Error(`Loadable expected value, but in "${this.state}" state`)}return this.contents},errorMaybe(){return"hasError"===this.state?this.contents:void 0},errorOrThrow(){if("hasError"!==this.state){throw new Error(`Loadable expected error, but in "${this.state}" state`)}return this.contents},promiseMaybe(){return"loading"===this.state?this.contents.then((({__value:e})=>e)):void 0},promiseOrThrow(){if("loading"!==this.state){throw new Error(`Loadable expected promise, but in "${this.state}" state`)}return this.contents.then((({__value:e})=>e))},is(e){return e.state===this.state&&e.contents===this.contents},map(e){if("hasError"===this.state)return this;if("hasValue"===this.state)try{const t=e(this.contents);return lp(t)?dp(t):cp(t)}catch(t){return lp(t)?dp(t.next((()=>e(this.contents)))):fp(t)}if("loading"===this.state)return dp(this.contents.then(e).catch((t=>{if(lp(t))return t.then((()=>e(this.contents)));throw t})));throw new Error("Invalid Loadable state")}};function cp(e){return Object.freeze({state:"hasValue",contents:e,...sp})}function fp(e){return Object.freeze({state:"hasError",contents:e,...sp})}function dp(e){return Object.freeze({state:"loading",contents:e,...sp})}var pp={loadableWithValue:cp,loadableWithError:fp,loadableWithPromise:dp,loadableLoading:function(){return dp(new Promise((()=>{})))},loadableAll:function(e){return e.every((e=>"hasValue"===e.state))?cp(e.map((e=>e.contents))):e.some((e=>"hasError"===e.state))?fp(ms(e.find((e=>"hasError"===e.state)),"Invalid loadable passed to loadableAll").contents):dp(Promise.all(e.map((e=>e.contents))).then((e=>({__value:e}))))},Canceled:ip,CANCELED:up};function hp(e,t,n){if("string"==typeof e&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if(!0!==(null==t?void 0:t.allowFunctions))throw new Error("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(null===e)return"null";var r;if("object"!=typeof e)return null!==(r=JSON.stringify(e))&&void 0!==r?r:"";if(lp(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map(((e,n)=>hp(e,t,n.toString())))}]`;if("function"==typeof e.toJSON)return hp(e.toJSON(n),t,n);if(e instanceof Map){const r={};for(const[n,o]of e)r["string"==typeof n?n:hp(n,t)]=o;return hp(r,t,n)}return e instanceof Set?hp(Array.from(e).sort(((e,n)=>hp(e,t).localeCompare(hp(n,t)))),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"==typeof e[Symbol.iterator]?hp(Array.from(e),t,n):`{${Object.keys(e).filter((t=>void 0!==e[t])).sort().map((n=>`${hp(n,t)}:${hp(e[n],t,n)}`)).join(",")}}`}var mp=function(e,t={allowFunctions:!1}){return hp(e,t)};const vp=(e,t,n)=>{var r;if(null==e)return;if(null==n||null===(r=n.onNodeVisit)||void 0===r||r.call(n,e),"leaf"===e.type)return e;const o=t(e.nodeKey);return vp(e.branches.get(o),t,n)},yp=(e,t,n,r,o,a)=>{var l;let i;if(null==e)if(0===t.length)i={type:"leaf",value:r,parent:n,branchKey:o};else{const[e,...l]=t,[u,s]=e;i={type:"branch",nodeKey:u,parent:n,branches:new Map,branchKey:o},i.branches.set(s,yp(null,l,i,r,s,a))}else if(i=e,t.length){const[n,...o]=t,[l,i]=n;("branch"!==e.type||e.nodeKey!==l)&&id(!1),e.branches.set(i,yp(e.branches.get(i),o,e,r,i,a))}return null==a||null===(l=a.onNodeVisit)||void 0===l||l.call(a,i),i},gp=(e,t,n)=>n?(n.branches.delete(t.branchKey),bp(e,n,n.parent)):e===t,bp=(e,t,n)=>n?(0===t.branches.size&&n.branches.delete(t.branchKey),bp(e,n,n.parent)):e===t,wp=e=>"leaf"===e.type?1:Array.from(e.branches.values()).reduce(((e,t)=>e+wp(t)),0);var Sp=class{constructor(e){var t,n,r;_s(this,"_numLeafs",void 0),_s(this,"_root",void 0),_s(this,"_onHit",void 0),_s(this,"_onSet",void 0),_s(this,"_mapNodeValue",void 0),this._numLeafs=0,this._root=null,this._onHit=null!==(t=null==e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null==e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null==e?void 0:e.mapNodeValue)&&void 0!==r?r:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){return vp(this.root(),(t=>this._mapNodeValue(e(t))),{onNodeVisit:e=>{null==t||t.onNodeVisit(e),"leaf"===e.type&&this._onHit(e)}})}set(e,t,n){let r;const o=yp(this.root(),e.map((([e,t])=>[e,this._mapNodeValue(t)])),null,t,null,{onNodeVisit:e=>{null==n||n.onNodeVisit(e),"leaf"===e.type&&(r=e)}});this.root()||(this._root=o),this._numLeafs++,this._onSet(ms(r))}delete(e){if(!this.root())return!1;const t=ms(this.root());return!!gp(t,e,e.parent)&&(e===t||"branch"===t.type&&!t.branches.size?(this._root=null,this._numLeafs=0,!0):(this._numLeafs-=wp(e),!0))}clear(){this._numLeafs=0,this._root=null}},kp=Object.freeze({__proto__:null,TreeCache:Sp});var _p=class{constructor(e){var t;_s(this,"_maxSize",void 0),_s(this,"_size",void 0),_s(this,"_head",void 0),_s(this,"_tail",void 0),_s(this,"_map",void 0),_s(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){const t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){const n=this._keyMapper(e);this._map.get(n)&&this.delete(e);const r=this.head(),o={key:e,right:r,left:null,value:t};r?r.left=o:this._tail=o,this._map.set(n,o),this._head=o,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const e=this.tail();e&&this.delete(e.key)}delete(e){const t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;const n=ms(this._map.get(t)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},Ep=Object.freeze({__proto__:null,LRUCache:_p});const{LRUCache:Tp}=Ep,{TreeCache:Cp}=kp;var Np=function(e,t=(e=>e)){const n=new Tp({maxSize:e}),r=new Cp({mapNodeValue:t,onHit:e=>{n.set(e,!0)},onSet:t=>{const o=n.tail();n.set(t,!0),o&&r.size()>e&&r.delete(o.key)}});return r};const{TreeCache:Rp}=kp,xp={equality:"reference",eviction:"none",maxSize:1/0};var Ap=function({equality:e=xp.equality,eviction:t=xp.eviction,maxSize:n=xp.maxSize}=xp){return function(e,t,n){switch(e){case"none":return new Rp({mapNodeValue:n});case"lru":return Np(ms(t),n)}throw new Error(`Unrecognized eviction policy ${e}`)}(t,n,function(e){switch(e){case"reference":return e=>e;case"value":return e=>mp(e)}throw new Error(`Unrecognized equality policy ${e}`)}(e))};var Lp={startPerfBlock:function(e){return()=>null}};const{CANCELED:Mp,Canceled:Pp,loadableWithError:Vp,loadableWithPromise:zp,loadableWithValue:Dp}=pp,{getNodeLoadable:Op,peekNodeLoadable:Up,setNodeValue:Ip}=ec,{saveDependencyMapToStore:Fp}=Mc,{DEFAULT_VALUE:Bp,RecoilValueNotReady:jp,getConfigDeletionHandler:Wp,registerNode:$p}=Bs,{isRecoilValue:Hp}=Ms,{AbstractRecoilValue:qp}=Ms,{setRecoilValueLoadable:Qp}=bc,{retainedByOptionWithDefault:Kp}=rf,{startPerfBlock:Gp}=Lp,Yp=[],Xp=new Map,Zp=(()=>{let e=0;return()=>e++})();var Jp=function(e){const{key:t,get:n,cachePolicy_UNSTABLE:r}=e,o=null!=e.set?e.set:void 0,a=Ap(null!=r?r:{equality:"reference",eviction:"none"}),l=Kp(e.retainedBy_UNSTABLE),i=new Map;let u=0;function s(){return!Ss("recoil_memory_managament_2020")||u>0}function c(e){return i.has(e)||i.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:null,latestLoadable:null,latestExecutionId:null,stateVersion:null}),ms(i.get(e))}function f(e){return u++,e.getState().knownSelectors.add(t),()=>{u--,e.getState().knownSelectors.delete(t),i.delete(e)}}function d(){return void 0!==Wp(t)&&!s()}function p(e,t,n){if("loading"===t.state){let t=Xp.get(n);null==t&&Xp.set(n,t=new Set),t.add(e)}}function h(e,t,n){if(t.atomValues.has(n))return ms(t.atomValues.get(n));const r=Op(e,t,n),o=e.getState().knownSelectors.has(n);return"loading"!==r.state&&o&&t.atomValues.set(n,r),r}function m(e,n,r,o,a){return n.then((n=>{if(!s())return T(e,a),Mp;if(n instanceof Pp)return Mp;const{__key:o,__value:l}=null!=n?n:{};let i=!0;null!=o&&(r.atomValues.set(o,Dp(l)),i=!1);const[u,c]=g(e,r,a,i);if(C(e,a)&&E(c,e,a),N(u),"loading"!==u.state&&(R(r,b(c),u),y(e,r,new Set(c.keys()),a),v(e,u,a)),"hasError"===u.state)throw u.contents;return"hasValue"===u.state?{__value:u.contents,__key:t}:u.contents})).catch((t=>{if(!s())return T(e,a),Mp;const n=Vp(t);throw R(r,b(o),Vp(t)),y(e,r,new Set(o.keys()),a),v(e,n,a),t}))}function v(e,n,r){C(e,r)&&(_(n,e),function(e,n){const r=Xp.get(n);if(void 0!==r){for(const n of r)Qp(n,new qp(t),e);Xp.delete(n)}}(n,r))}function y(e,n,r,o){var a,l,i,u,s,c,f;(C(e,o)||n.version===(null===(a=e.getState())||void 0===a||null===(l=a.currentTree)||void 0===l?void 0:l.version)||n.version===(null===(i=e.getState())||void 0===i||null===(u=i.nextTree)||void 0===u?void 0:u.version))&&Fp(new Map([[t,r]]),e,null!==(s=null===(c=e.getState())||void 0===c||null===(f=c.nextTree)||void 0===f?void 0:f.version)&&void 0!==s?s:e.getState().currentTree.version)}function g(e,r,o,a=!1){const l=Gp(t);let i,u,c=!1;const f=new Map,d=new Set;function p(t){const{key:n}=t;!function(e,t,n,r,o){n.add(r),y(e,t,n,o)}(e,r,d,n,o);const l=a?Op(e,r,n):h(e,r,n);if(f.set(n,l),"hasValue"===l.state)return l.contents;throw l.contents}y(e,r,d,o);try{i=n({get:p}),i=Hp(i)?p(i):i,lp(i)?i=function(e,n,r,o,a){return n.then((n=>{if(!s())return T(e,a),Mp;const l=Dp(n);return R(r,b(o),l),y(e,r,new Set(o.keys()),a),v(e,l,a),{__value:n,__key:t}})).catch((t=>{if(!s())return T(e,a),Mp;if(C(e,a)&&E(o,e,a),lp(t))return m(e,t,r,o,a);const n=Vp(t);throw R(r,b(o),n),y(e,r,new Set(o.keys()),a),v(e,n,a),t}))}(e,i,r,f,o).finally(l):l()}catch(t){i=t,lp(i)?i=m(e,i,r,f,o).finally(l):(c=!0,l())}return u=c?Vp(i):lp(i)?zp(i):Dp(i),N(u),[u,f]}function b(e){return Array.from(e.entries()).map((([e,t])=>[e,t.contents]))}function w(e,t){const n=Zp(),[r,o]=g(e,t,n);return _(r,e,o,n,t),function(e,t,n){"loading"!==n.state&&R(e,t,n)}(t,b(o),r),p(e,r,n),r}function S(e,n){const r=function(e,n){const r=new Set,o=c(e),l=a.get((t=>("string"!=typeof t&&id(!1),h(e,n,t).contents)),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==t&&"string"==typeof e.nodeKey&&r.add(e.nodeKey)}});return l&&y(e,n,r,o.latestExecutionId),l}(e,n);if(null!=r)return _(r,e),r;const o=function(e,t){var n;const[,r]=null!==(n=Array.from(i.entries()).find((([,n])=>null!=n.latestLoadable&&null!=n.latestExecutionId&&!function(e,t){var n,r;const o=c(e),a=null!==(n=o.depValuesDiscoveredSoFarDuringAsyncWork)&&void 0!==n?n:new Map,l=Array((null!==(r=k.get(t.version))&&void 0!==r?r:new Map).entries()),i=k.has(t.version)&&l.length===a.size&&l.every((([e,t])=>a.get(e)===t));if(null==a||t.version===o.stateVersion||i)return!1;return k.set(t.version,new Map(a)),Array.from(a).some((([n,r])=>{const o=h(e,t,n);return o.contents!==r.contents&&!("loading"===r.state&&"loading"!==o.state)}))}(e,t))))&&void 0!==n?n:[];return r}(e,n);if(o){const t=o;return p(e,ms(t.latestLoadable),ms(t.latestExecutionId)),ms(t.latestLoadable)}return w(e,n)}const k=new Map;function _(e,t,n,r,o){const a=c(t);"loading"===e.state?(a.depValuesDiscoveredSoFarDuringAsyncWork=n,a.latestExecutionId=r,a.latestLoadable=e,a.stateVersion=null==o?void 0:o.version):(a.depValuesDiscoveredSoFarDuringAsyncWork=null,a.latestExecutionId=null,a.latestLoadable=null,a.stateVersion=null)}function E(e,t,n){const r=c(t);C(t,n)&&(r.depValuesDiscoveredSoFarDuringAsyncWork=e)}function T(e,t){C(e,t)&&i.delete(e)}function C(e,t){return t===c(e).latestExecutionId}function N(e){"loading"!==e.state&&e.contents}function R(e,n,r){e.atomValues.set(t,r),a.set(n,r)}function x(e,t){return a.get((n=>{"string"!=typeof n&&id(!1);const r=Up(e,t,n);return null==r?void 0:r.contents}))}function A(e,n){return function(e){if(Yp.includes(t)){const e=`Recoil selector has circular dependencies: ${Yp.slice(Yp.indexOf(t)).join(" → ")}`;return Vp(new Error(e))}Yp.push(t);try{return e()}finally{Yp.pop()}}((()=>S(e,n)))}function L(e){e.atomValues.delete(t)}if(null!=o){return $p({key:t,peek:x,get:A,set:function(e,t,n){let r=!1;const a=new Map;function l({key:n}){if(r)throw new Error("Recoil: Async selector sets are not currently supported.");const o=h(e,t,n);if("hasValue"===o.state)return o.contents;throw"loading"===o.state?new jp(n):o.contents}function i(n,o){if(r)throw new Error("Recoil: Async selector sets are not currently supported.");const i="function"==typeof o?o(l(n)):o;Ip(e,t,n.key,i).forEach(((e,t)=>a.set(t,e)))}const u=o({set:i,get:l,reset:function(e){i(e,Bp)}},n);if(void 0!==u)throw lp(u)?new Error("Recoil: Async selector sets are not currently supported."):new Error("Recoil: selector set should be a void function.");return r=!0,a},init:f,invalidate:L,shouldDeleteConfigOnRelease:d,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}return $p({key:t,peek:x,get:A,init:f,invalidate:L,shouldDeleteConfigOnRelease:d,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})};const{loadableWithError:eh,loadableWithPromise:th,loadableWithValue:nh}=pp,{DEFAULT_VALUE:rh,DefaultValue:oh,getConfigDeletionHandler:ah,registerNode:lh,setConfigDeletionHandler:ih}=Bs,{isRecoilValue:uh}=Ms,{markRecoilValueModified:sh,setRecoilValue:ch,setRecoilValueLoadable:fh}=bc,{retainedByOptionWithDefault:dh}=rf;function ph(e){const{key:t,persistence_UNSTABLE:n}=e,r=dh(e.retainedBy_UNSTABLE);let o,a=0,l=lp(e.default)?th(e.default.then((e=>{l=nh(e);return{__key:t,__value:e}})).catch((e=>{throw l=eh(e),e}))):nh(e.default);const i=new Map;const u=lh({key:t,peek:function(e,n){var r,a,i;return null!==(r=null!==(a=n.atomValues.get(t))&&void 0!==a?a:null===(i=o)||void 0===i?void 0:i[1])&&void 0!==r?r:l},get:function(e,r){if(r.atomValues.has(t))return ms(r.atomValues.get(t));if(r.nonvalidatedAtoms.has(t)){if(null!=o)return o;if(null==n)return l;const e=r.nonvalidatedAtoms.get(t),a=n.validator(e,rh),i=a instanceof oh?l:nh(a);return o=i,o}return l},set:function(e,n,r){if(n.atomValues.has(t)){const e=ms(n.atomValues.get(t));if("hasValue"===e.state&&r===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&r instanceof oh)return new Map;return o=void 0,(new Map).set(t,nh(r))},init:function(n,r,o){a++;const s=n.getState().knownAtoms.has(t);if(n.getState().knownAtoms.add(t),"loading"===l.state){const e=()=>{var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||sh(n,u)};l.contents.then(e).catch(e)}let c=rh,f=null;if(null!=e.effects_UNSTABLE&&!s){let r=!0;const a=e=>t=>{if(r){const e=c instanceof oh||lp(c)?"hasValue"===l.state?l.contents:rh:c;c="function"==typeof t?t(e):t}else{if(lp(t))throw new Error("Setting atoms to async values is not implemented.");"function"!=typeof t&&(f={effect:e,value:t}),ch(n,u,"function"==typeof t?n=>{const r=t(n);return f={effect:e,value:r},r}:t)}},s=e=>()=>a(e)(rh),p=e=>r=>{n.subscribeToTransactions((n=>{var o;let{currentTree:a,previousTree:i}=n.getState();i||(i=a);const u=a.atomValues.get(t);if(null==u||"hasValue"===u.state){var s,c,d;const n=null!=u?u.contents:rh,o=null!==(s=i.atomValues.get(t))&&void 0!==s?s:l,a="hasValue"===o.state?o.contents:rh;(null===(c=f)||void 0===c?void 0:c.effect)===e&&(null===(d=f)||void 0===d?void 0:d.value)===n||r(n,a)}(null===(o=f)||void 0===o?void 0:o.effect)===e&&(f=null)}),t)};for(const t of null!==(d=e.effects_UNSTABLE)&&void 0!==d?d:[]){var d;const e=t({node:u,trigger:o,setSelf:a(t),resetSelf:s(t),onSet:p(t)});null!=e&&i.set(n,e)}r=!1}if(!(c instanceof oh)){var p;const e=lp(c)?th(function(e,n){const r=n.then((n=>{var o,a;return(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&ch(e,u,n),{__key:t,__value:n}})).catch((n=>{var o,a;throw(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&fh(e,u,eh(n)),n}));return r}(n,c)):nh(c);r.atomValues.set(t,e),null===(p=n.getState().nextTree)||void 0===p||p.atomValues.set(t,e)}return()=>{var e;a--,null===(e=i.get(n))||void 0===e||e(),i.delete(n),n.getState().knownAtoms.delete(t)}},invalidate:function(){o=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==ah(t)&&a<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return u}function hh(e){const{default:t,...n}=e;return uh(t)?function(e){const t=hh({...e,default:rh,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof oh?t:ms(e.persistence_UNSTABLE).validator(t,rh)},effects_UNSTABLE:e.effects_UNSTABLE}),n=Jp({key:`${e.key}__withFallback`,get:({get:n})=>{const r=n(t);return r instanceof oh?e.default:r},set:({set:e},n)=>e(t,n),dangerouslyAllowMutability:e.dangerouslyAllowMutability});return ih(n.key,ah(e.key)),n}({...n,default:t}):ph({...n,default:t})}var mh=hh;var vh=class{constructor(e){var t;_s(this,"_map",void 0),_s(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null==e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}},yh=Object.freeze({__proto__:null,MapCache:vh});const{LRUCache:gh}=Ep,{MapCache:bh}=yh,wh={equality:"reference",eviction:"none",maxSize:1/0};var Sh=function({equality:e=wh.equality,eviction:t=wh.eviction,maxSize:n=wh.maxSize}=wh){return function(e,t,n){switch(e){case"none":return new bh({mapKey:n});case"lru":return new gh({mapKey:n,maxSize:ms(t)})}throw new Error(`Unrecognized eviction policy ${e}`)}(t,n,function(e){switch(e){case"reference":return e=>e;case"value":return e=>mp(e)}throw new Error(`Unrecognized equality policy ${e}`)}(e))};const{setConfigDeletionHandler:kh}=Bs;let _h=0;var Eh=function(e){var t;const n=Sh(null!==(t=e.cachePolicyForParams_UNSTABLE)&&void 0!==t?t:{equality:"value",eviction:"none"});return t=>{var r;const o=n.get(t);if(null!=o)return o;const a=`${e.key}__selectorFamily/${null!==(r=mp(t,{allowFunctions:!0}))&&void 0!==r?r:"void"}/${_h++}`,l=n=>e.get(t)(n),i=e.cachePolicy_UNSTABLE,u="function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;let s;if(null!=e.set){const n=e.set;s=Jp({key:a,get:l,set:(e,r)=>n(t)(e,r),cachePolicy_UNSTABLE:i,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u})}else s=Jp({key:a,get:l,cachePolicy_UNSTABLE:i,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u});return n.set(t,s),kh(s.key,(()=>{n.delete(t)})),s}};const{DEFAULT_VALUE:Th,DefaultValue:Ch,setConfigDeletionHandler:Nh}=Bs;var Rh=function(e){var t;const n=Sh(null!==(t=e.cachePolicyForParams_UNSTABLE)&&void 0!==t?t:{equality:"value",eviction:"none"}),r={key:e.key,default:Th,persistence_UNSTABLE:e.persistence_UNSTABLE};let o;o=mh(r);const a=Eh({key:`${e.key}__atomFamily/Default`,get:t=>({get:n})=>{const r=n("function"==typeof o?o(t):o);return r instanceof Ch?"function"==typeof e.default?e.default(t):e.default:r},dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:e.retainedBy_UNSTABLE});return t=>{var r;const o=n.get(t);if(null!=o)return o;const{cachePolicyForParams_UNSTABLE:l,...i}=e,u=mh({...i,key:`${e.key}__${null!==(r=mp(t))&&void 0!==r?r:"void"}`,default:a(t),retainedBy_UNSTABLE:"function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects_UNSTABLE:"function"==typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):e.effects_UNSTABLE});return n.set(t,u),Nh(u.key,(()=>{n.delete(t)})),u}};const xh=Eh({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Ah=function(e){return xh(e)};const Lh=Eh({key:"__error",get:e=>()=>{throw new Error(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Mh=function(e){return Lh(e)};var Ph=function(e){return e};const{loadableWithError:Vh,loadableWithPromise:zh,loadableWithValue:Dh}=pp;function Oh(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,a]of t.entries())try{n[o]=e(a)}catch(e){r[o]=e}return[n,r]}function Uh(e){return null!=e&&!lp(e)}function Ih(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))}function Fh(e){return null!=e&&"object"==typeof e&&e.hasOwnProperty("__value")?e.__value:e}function Bh(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce(((e,n,r)=>({...e,[n]:t[r]})),{})}function jh(e,t,n){return Bh(e,n.map(((e,n)=>null==e?Dh(t[n]):lp(e)?zh(e):Vh(e))))}var Wh={waitForNone:Eh({key:"__waitForNone",get:e=>({get:t})=>{const n=Ih(e),[r,o]=Oh(t,n);return jh(e,r,o)}}),waitForAny:Eh({key:"__waitForAny",get:e=>({get:t})=>{const n=Ih(e),[r,o]=Oh(t,n);return o.some((e=>!lp(e)))?jh(e,r,o):new Promise((t=>{for(const[n,a]of o.entries())lp(a)&&a.then((a=>{r[n]=Fh(a),o[n]=void 0,t(jh(e,r,o))})).catch((a=>{o[n]=a,t(jh(e,r,o))}))}))}}),waitForAll:Eh({key:"__waitForAll",get:e=>({get:t})=>{const n=Ih(e),[r,o]=Oh(t,n);if(o.every((e=>null==e)))return Bh(e,r);const a=o.find(Uh);if(null!=a)throw a;return Promise.all(o).then((t=>{return Bh(e,(n=r,o=t,o.map(((e,t)=>void 0===e?n[t]:e))).map(Fh));var n,o}))}}),waitForAllSettled:Eh({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Ih(e),[r,o]=Oh(t,n);return o.every((e=>!lp(e)))?jh(e,r,o):Promise.all(o.map(((e,t)=>lp(e)?e.then((e=>{r[t]=Fh(e),o[t]=void 0})).catch((e=>{r[t]=void 0,o[t]=e})):null))).then((()=>jh(e,r,o)))}}),noWait:Eh({key:"__noWait",get:e=>({get:t})=>{try{return Dh(t(e))}catch(e){return lp(e)?zh(e):Vh(e)}}})};const{batchUpdates:$h,setBatcher:Hh}=Nc,{DefaultValue:qh}=Bs,{RecoilRoot:Qh}=od,{isRecoilValue:Kh}=Ms,{retentionZone:Gh}=Ws,{freshSnapshot:Yh}=Af,{useGotoRecoilSnapshot:Xh,useRecoilCallback:Zh,useRecoilSnapshot:Jh,useRecoilState:em,useRecoilStateLoadable:tm,useRecoilTransactionObserver:nm,useRecoilValue:rm,useRecoilValueLoadable:om,useResetRecoilState:am,useRetain:lm,useSetRecoilState:im,useSetUnvalidatedAtomValues:um,useTransactionObservation_DEPRECATED:sm}=Zd,{noWait:cm,waitForAll:fm,waitForAllSettled:dm,waitForAny:pm,waitForNone:hm}=Wh;var mm={DefaultValue:qh,RecoilRoot:Qh,useRecoilBridgeAcrossReactRoots_UNSTABLE:ap,atom:mh,selector:Jp,retentionZone:Gh,atomFamily:Rh,selectorFamily:Eh,constSelector:Ah,errorSelector:Mh,readOnlySelector:Ph,useRecoilValue:rm,useRecoilValueLoadable:om,useRecoilState:em,useRecoilStateLoadable:tm,useSetRecoilState:im,useResetRecoilState:am,useGetRecoilValueInfo_UNSTABLE:tp,useRetain:lm,useRecoilCallback:Zh,useGotoRecoilSnapshot:Xh,useRecoilSnapshot:Jh,useRecoilTransactionObserver_UNSTABLE:nm,useTransactionObservation_UNSTABLE:sm,useSetUnvalidatedAtomValues_UNSTABLE:um,noWait:cm,waitForNone:hm,waitForAny:pm,waitForAll:fm,waitForAllSettled:dm,isRecoilValue:Kh,batchUpdates:$h,setBatcher:Hh,snapshot_UNSTABLE:Yh},vm=mm.RecoilRoot,ym=mm.atom,gm=mm.useRecoilValue,bm=mm.useRecoilState,wm=mm.useSetRecoilState;class Sm{constructor(e,t){this.X=e,this.Y=t,this.buffer=new Uint32Array(Math.ceil(e*t/32))}get(e,t){const{X:n,Y:r,buffer:o}=this,a=(t<0?t%r+r:t%r)*n+(e<0?e%n+n:e%n);return o[a>>5]&1<<(31&a)?1:0}set(e,t,n){const r=t*this.X+e;n?this.buffer[r>>5]|=1<<(31&r):this.buffer[r>>5]&=~(1<<(31&r))}}const km=(e,t,n=.25)=>{const r=new Sm(e,t);for(let o=0;o<t;o++)for(let t=0;t<e;t++)Math.random()<n&&r.set(t,o,1);return r},_m=(Em=[2,3],Tm=[3],(e,t,n)=>{const r=e.get(t-1,n-1)+e.get(t,n-1)+e.get(t+1,n-1)+e.get(t-1,n)+e.get(t+1,n)+e.get(t-1,n+1)+e.get(t,n+1)+e.get(t+1,n+1);return e.get(t,n)?Em.includes(r):Tm.includes(r)});var Em,Tm;const Cm=(e,t=_m)=>{const{X:n,Y:r}=e,o=new Sm(n,r);for(let a=0;a<r;a++)for(let r=0;r<n;r++)t(e,r,a)&&o.set(r,a,1);return o},Nm=(e,t)=>{const n=Array(e);for(let r=0;r<e;r++)n[r]=t(r);return n},Rm=128,xm=128,Am=ym({key:"cellSize",default:3}),Lm=ym({key:"worldWidth",default:Rm}),Mm=ym({key:"worldHeight",default:xm}),Pm=ym({key:"cells",default:km(Rm,xm)}),Vm=ym({key:"running",default:!1}),zm=ym({key:"fps",default:0}),Dm=i.memo((({x:e,y:t})=>{const n=gm(Am),r=gm(Pm);return i.createElement("td",{className:r.get(e,t)?"cell cell-alive":"cell",style:{width:n,height:n}})})),Om=i.memo((({y:e})=>{const t=gm(Lm);return i.createElement("tr",null,Nm(t,(t=>i.createElement(Dm,{key:t,x:t,y:e}))))})),Um=i.memo((()=>{const e=gm(Mm);return i.createElement("table",{style:{tableLayout:"fixed"}},Nm(e,(e=>i.createElement(Om,{key:e,y:e}))))})),Im=i.memo((({onClick:e,children:t})=>i.createElement("button",{type:"button",onClick:e},t))),Fm=i.memo((()=>{const e=wm(Pm),[t,n]=bm(Am),[r,o]=bm(Lm),[a,l]=bm(Mm),[u,s]=bm(Vm),c=gm(zm);return i.createElement("aside",null,i.createElement("table",null,i.createElement("tbody",null,i.createElement("tr",null,i.createElement("td",null,"Cell Size:"),i.createElement("td",null,i.createElement("input",{type:"number",min:0,value:t,onChange:e=>n(e.target.valueAsNumber)}))),i.createElement("tr",null,i.createElement("td",null,"World Width:"),i.createElement("td",null,i.createElement("input",{type:"number",min:0,value:r,onChange:e=>o(e.target.valueAsNumber)}))),i.createElement("tr",null,i.createElement("td",null,"World Height:"),i.createElement("td",null,i.createElement("input",{type:"number",min:0,value:a,onChange:e=>l(e.target.valueAsNumber)}))))),u?i.createElement(Im,{onClick:()=>s(!1)},"Stop"):i.createElement(Im,{onClick:()=>s(!0)},"Start"),i.createElement(Im,{onClick:()=>e(km(r,a))},"Randomize"),i.createElement("div",null,c," fps"))})),Bm=i.memo((({href:e,children:t})=>i.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:e},t))),jm=i.memo((()=>{const e=wm(zm),t=wm(Pm),n=gm(Lm),r=gm(Mm),o=gm(Vm),[a,l]=i.useState(void 0),u=i.useRef(!0);return i.useEffect((()=>{o?l((()=>((e,t)=>{let n=0,r=Date.now(),o=0,a=requestAnimationFrame((function t(){o||(e(),n++,a=requestAnimationFrame(t))})),l=setInterval((()=>{let e=Date.now();t(1e3*n/(e-r)|0),n=0,r=e}),512);return()=>{o=1,cancelAnimationFrame(a),clearInterval(l)}})((()=>t(Cm)),e))):(a?.(),l(void 0))}),[o]),i.useEffect((()=>{u.current?u.current=!1:t(km(n,r))}),[n,r]),i.createElement(i.Fragment,null,i.createElement("h1",{style:{textAlign:"center"}},i.createElement(Bm,{href:"https://reactjs.org/"},"React")," + ",i.createElement(Bm,{href:"https://recoiljs.org/"},"Recoil")),i.createElement("main",null,i.createElement(Um,null),i.createElement(Fm,null)))}));hs.render(i.createElement(i.StrictMode,null,i.createElement(vm,null,i.createElement(jm,null))),document.body.appendChild(document.createElement("div")))}();
