mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-26 14:20:43 -05:00
Smig
50b50915de
* feat: navbar and main components added * feat: add shopping cart * added cart and store components * basic functionality complete * fix: effect * adding more logic and components * basic features * reorg tree and add summary * feat: new stuff * styling: more stuff * changes * as good as itll get * added public --------- Co-authored-by: mike <mike@windows>
82 lines
278 KiB
JavaScript
82 lines
278 KiB
JavaScript
function Md(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function lu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ad={exports:{}},Ul={},Id={exports:{}},Y={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var co=Symbol.for("react.element"),c0=Symbol.for("react.portal"),f0=Symbol.for("react.fragment"),d0=Symbol.for("react.strict_mode"),p0=Symbol.for("react.profiler"),h0=Symbol.for("react.provider"),m0=Symbol.for("react.context"),g0=Symbol.for("react.forward_ref"),y0=Symbol.for("react.suspense"),v0=Symbol.for("react.memo"),w0=Symbol.for("react.lazy"),Dc=Symbol.iterator;function S0(e){return e===null||typeof e!="object"?null:(e=Dc&&e[Dc]||e["@@iterator"],typeof e=="function"?e:null)}var $d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fd=Object.assign,bd={};function ti(e,t,n){this.props=e,this.context=t,this.refs=bd,this.updater=n||$d}ti.prototype.isReactComponent={};ti.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ti.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bd(){}Bd.prototype=ti.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=bd,this.updater=n||$d}var su=au.prototype=new Bd;su.constructor=au;Fd(su,ti.prototype);su.isPureReactComponent=!0;var zc=Array.isArray,Ud=Object.prototype.hasOwnProperty,uu={current:null},Vd={key:!0,ref:!0,__self:!0,__source:!0};function Wd(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Ud.call(t,r)&&!Vd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:co,type:e,key:o,ref:l,props:i,_owner:uu.current}}function x0(e,t){return{$$typeof:co,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function cu(e){return typeof e=="object"&&e!==null&&e.$$typeof===co}function k0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Mc=/\/+/g;function Ca(e,t){return typeof e=="object"&&e!==null&&e.key!=null?k0(""+e.key):t.toString(36)}function Go(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case co:case c0:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+Ca(l,0):r,zc(i)?(n="",e!=null&&(n=e.replace(Mc,"$&/")+"/"),Go(i,t,n,"",function(u){return u})):i!=null&&(cu(i)&&(i=x0(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Mc,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",zc(e))for(var a=0;a<e.length;a++){o=e[a];var s=r+Ca(o,a);l+=Go(o,t,n,s,i)}else if(s=S0(e),typeof s=="function")for(e=s.call(e),a=0;!(o=e.next()).done;)o=o.value,s=r+Ca(o,a++),l+=Go(o,t,n,s,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function To(e,t,n){if(e==null)return e;var r=[],i=0;return Go(e,r,"","",function(o){return t.call(n,o,i++)}),r}function C0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var et={current:null},Yo={transition:null},E0={ReactCurrentDispatcher:et,ReactCurrentBatchConfig:Yo,ReactCurrentOwner:uu};function Hd(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:To,forEach:function(e,t,n){To(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return To(e,function(){t++}),t},toArray:function(e){return To(e,function(t){return t})||[]},only:function(e){if(!cu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=ti;Y.Fragment=f0;Y.Profiler=p0;Y.PureComponent=au;Y.StrictMode=d0;Y.Suspense=y0;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E0;Y.act=Hd;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Fd({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=uu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Ud.call(t,s)&&!Vd.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:co,type:e.type,key:i,ref:o,props:r,_owner:l}};Y.createContext=function(e){return e={$$typeof:m0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:h0,_context:e},e.Consumer=e};Y.createElement=Wd;Y.createFactory=function(e){var t=Wd.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:g0,render:e}};Y.isValidElement=cu;Y.lazy=function(e){return{$$typeof:w0,_payload:{_status:-1,_result:e},_init:C0}};Y.memo=function(e,t){return{$$typeof:v0,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=Yo.transition;Yo.transition={};try{e()}finally{Yo.transition=t}};Y.unstable_act=Hd;Y.useCallback=function(e,t){return et.current.useCallback(e,t)};Y.useContext=function(e){return et.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return et.current.useDeferredValue(e)};Y.useEffect=function(e,t){return et.current.useEffect(e,t)};Y.useId=function(){return et.current.useId()};Y.useImperativeHandle=function(e,t,n){return et.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return et.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return et.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return et.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return et.current.useReducer(e,t,n)};Y.useRef=function(e){return et.current.useRef(e)};Y.useState=function(e){return et.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return et.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return et.current.useTransition()};Y.version="18.3.1";Id.exports=Y;var N=Id.exports;const _0=lu(N),rs=Md({__proto__:null,default:_0},[N]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var P0=N,T0=Symbol.for("react.element"),R0=Symbol.for("react.fragment"),N0=Object.prototype.hasOwnProperty,L0=P0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O0={key:!0,ref:!0,__self:!0,__source:!0};function Kd(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)N0.call(t,r)&&!O0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:T0,type:e,key:o,ref:l,props:i,_owner:L0.current}}Ul.Fragment=R0;Ul.jsx=Kd;Ul.jsxs=Kd;Ad.exports=Ul;var j=Ad.exports,Qd={exports:{}},vt={},Gd={exports:{}},Yd={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(A,K){var Q=A.length;A.push(K);e:for(;0<Q;){var ne=Q-1>>>1,de=A[ne];if(0<i(de,K))A[ne]=K,A[Q]=de,Q=ne;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var K=A[0],Q=A.pop();if(Q!==K){A[0]=Q;e:for(var ne=0,de=A.length,$t=de>>>1;ne<$t;){var Fe=2*(ne+1)-1,Rt=A[Fe],Xe=Fe+1,Yt=A[Xe];if(0>i(Rt,Q))Xe<de&&0>i(Yt,Rt)?(A[ne]=Yt,A[Xe]=Q,ne=Xe):(A[ne]=Rt,A[Fe]=Q,ne=Fe);else if(Xe<de&&0>i(Yt,Q))A[ne]=Yt,A[Xe]=Q,ne=Xe;else break e}}return K}function i(A,K){var Q=A.sortIndex-K.sortIndex;return Q!==0?Q:A.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],d=1,c=null,p=3,v=!1,x=!1,y=!1,T=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(A){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=A)r(u),K.sortIndex=K.expirationTime,t(s,K);else break;K=n(u)}}function C(A){if(y=!1,g(A),!x)if(n(s)!==null)x=!0,nt(P);else{var K=n(u);K!==null&&me(C,K.startTime-A)}}function P(A,K){x=!1,y&&(y=!1,m(L),L=-1),v=!0;var Q=p;try{for(g(K),c=n(s);c!==null&&(!(c.expirationTime>K)||A&&!z());){var ne=c.callback;if(typeof ne=="function"){c.callback=null,p=c.priorityLevel;var de=ne(c.expirationTime<=K);K=e.unstable_now(),typeof de=="function"?c.callback=de:c===n(s)&&r(s),g(K)}else r(s);c=n(s)}if(c!==null)var $t=!0;else{var Fe=n(u);Fe!==null&&me(C,Fe.startTime-K),$t=!1}return $t}finally{c=null,p=Q,v=!1}}var w=!1,R=null,L=-1,M=5,f=-1;function z(){return!(e.unstable_now()-f<M)}function U(){if(R!==null){var A=e.unstable_now();f=A;var K=!0;try{K=R(!0,A)}finally{K?H():(w=!1,R=null)}}else w=!1}var H;if(typeof h=="function")H=function(){h(U)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,ze=X.port2;X.port1.onmessage=U,H=function(){ze.postMessage(null)}}else H=function(){T(U,0)};function nt(A){R=A,w||(w=!0,H())}function me(A,K){L=T(function(){A(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){x||v||(x=!0,nt(P))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(A){switch(p){case 1:case 2:case 3:var K=3;break;default:K=p}var Q=p;p=K;try{return A()}finally{p=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,K){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var Q=p;p=A;try{return K()}finally{p=Q}},e.unstable_scheduleCallback=function(A,K,Q){var ne=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ne+Q:ne):Q=ne,A){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=Q+de,A={id:d++,callback:K,priorityLevel:A,startTime:Q,expirationTime:de,sortIndex:-1},Q>ne?(A.sortIndex=Q,t(u,A),n(s)===null&&A===n(u)&&(y?(m(L),L=-1):y=!0,me(C,Q-ne))):(A.sortIndex=de,t(s,A),x||v||(x=!0,nt(P))),A},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(A){var K=p;return function(){var Q=p;p=K;try{return A.apply(this,arguments)}finally{p=Q}}}})(Yd);Gd.exports=Yd;var j0=Gd.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var D0=N,yt=j0;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 Xd=new Set,Bi={};function sr(e,t){Wr(e,t),Wr(e+"Capture",t)}function Wr(e,t){for(Bi[e]=t,e=0;e<t.length;e++)Xd.add(t[e])}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),is=Object.prototype.hasOwnProperty,z0=/^[: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]*$/,Ac={},Ic={};function M0(e){return is.call(Ic,e)?!0:is.call(Ac,e)?!1:z0.test(e)?Ic[e]=!0:(Ac[e]=!0,!1)}function A0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I0(e,t,n,r){if(t===null||typeof t>"u"||A0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function tt(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new tt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new tt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new tt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new tt(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){We[e]=new tt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new tt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new tt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new tt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new tt(e,5,!1,e.toLowerCase(),null,!1,!1)});var fu=/[\-:]([a-z])/g;function du(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fu,du);We[t]=new tt(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(fu,du);We[t]=new tt(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(fu,du);We[t]=new tt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new tt(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new tt(e,1,!1,e.toLowerCase(),null,!0,!0)});function pu(e,t,n,r){var i=We.hasOwnProperty(t)?We[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(I0(t,n,i,r)&&(n=null),r||i===null?M0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var pn=D0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ro=Symbol.for("react.element"),kr=Symbol.for("react.portal"),Cr=Symbol.for("react.fragment"),hu=Symbol.for("react.strict_mode"),os=Symbol.for("react.profiler"),Jd=Symbol.for("react.provider"),Zd=Symbol.for("react.context"),mu=Symbol.for("react.forward_ref"),ls=Symbol.for("react.suspense"),as=Symbol.for("react.suspense_list"),gu=Symbol.for("react.memo"),wn=Symbol.for("react.lazy"),qd=Symbol.for("react.offscreen"),$c=Symbol.iterator;function ci(e){return e===null||typeof e!="object"?null:(e=$c&&e[$c]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,Ea;function Ei(e){if(Ea===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ea=t&&t[1]||""}return`
|
||
`+Ea+e}var _a=!1;function Pa(e,t){if(!e||_a)return"";_a=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),l=i.length-1,a=o.length-1;1<=l&&0<=a&&i[l]!==o[a];)a--;for(;1<=l&&0<=a;l--,a--)if(i[l]!==o[a]){if(l!==1||a!==1)do if(l--,a--,0>a||i[l]!==o[a]){var s=`
|
||
`+i[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{_a=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ei(e):""}function $0(e){switch(e.tag){case 5:return Ei(e.type);case 16:return Ei("Lazy");case 13:return Ei("Suspense");case 19:return Ei("SuspenseList");case 0:case 2:case 15:return e=Pa(e.type,!1),e;case 11:return e=Pa(e.type.render,!1),e;case 1:return e=Pa(e.type,!0),e;default:return""}}function ss(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cr:return"Fragment";case kr:return"Portal";case os:return"Profiler";case hu:return"StrictMode";case ls:return"Suspense";case as:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zd:return(e.displayName||"Context")+".Consumer";case Jd:return(e._context.displayName||"Context")+".Provider";case mu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gu:return t=e.displayName||null,t!==null?t:ss(e.type)||"Memo";case wn:t=e._payload,e=e._init;try{return ss(e(t))}catch{}}return null}function F0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ss(t);case 8:return t===hu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ep(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function b0(e){var t=ep(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function No(e){e._valueTracker||(e._valueTracker=b0(e))}function tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ep(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function us(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function np(e,t){t=t.checked,t!=null&&pu(e,"checked",t,!1)}function cs(e,t){np(e,t);var n=Mn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fs(e,t.type,n):t.hasOwnProperty("defaultValue")&&fs(e,t.type,Mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fs(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _i=Array.isArray;function Mr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Mn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ds(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(_i(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Mn(n)}}function rp(e,t){var n=Mn(t.value),r=Mn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Uc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ip(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 ps(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ip(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lo,op=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Lo=Lo||document.createElement("div"),Lo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ui(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},B0=["Webkit","ms","Moz","O"];Object.keys(Oi).forEach(function(e){B0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oi[t]=Oi[e]})});function lp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Oi.hasOwnProperty(e)&&Oi[e]?(""+t).trim():t+"px"}function ap(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=lp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var U0=xe({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 hs(e,t){if(t){if(U0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function ms(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gs=null;function yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ys=null,Ar=null,Ir=null;function Vc(e){if(e=ho(e)){if(typeof ys!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Ql(t),ys(e.stateNode,e.type,t))}}function sp(e){Ar?Ir?Ir.push(e):Ir=[e]:Ar=e}function up(){if(Ar){var e=Ar,t=Ir;if(Ir=Ar=null,Vc(e),t)for(e=0;e<t.length;e++)Vc(t[e])}}function cp(e,t){return e(t)}function fp(){}var Ta=!1;function dp(e,t,n){if(Ta)return e(t,n);Ta=!0;try{return cp(e,t,n)}finally{Ta=!1,(Ar!==null||Ir!==null)&&(fp(),up())}}function Vi(e,t){var n=e.stateNode;if(n===null)return null;var r=Ql(n);if(r===null)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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var vs=!1;if(sn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){vs=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{vs=!1}function V0(e,t,n,r,i,o,l,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var ji=!1,dl=null,pl=!1,ws=null,W0={onError:function(e){ji=!0,dl=e}};function H0(e,t,n,r,i,o,l,a,s){ji=!1,dl=null,V0.apply(W0,arguments)}function K0(e,t,n,r,i,o,l,a,s){if(H0.apply(this,arguments),ji){if(ji){var u=dl;ji=!1,dl=null}else throw Error(D(198));pl||(pl=!0,ws=u)}}function ur(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Wc(e){if(ur(e)!==e)throw Error(D(188))}function Q0(e){var t=e.alternate;if(!t){if(t=ur(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Wc(i),e;if(o===r)return Wc(i),t;o=o.sibling}throw Error(D(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,a=i.child;a;){if(a===n){l=!0,n=i,r=o;break}if(a===r){l=!0,r=i,n=o;break}a=a.sibling}if(!l){for(a=o.child;a;){if(a===n){l=!0,n=o,r=i;break}if(a===r){l=!0,r=o,n=i;break}a=a.sibling}if(!l)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function hp(e){return e=Q0(e),e!==null?mp(e):null}function mp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mp(e);if(t!==null)return t;e=e.sibling}return null}var gp=yt.unstable_scheduleCallback,Hc=yt.unstable_cancelCallback,G0=yt.unstable_shouldYield,Y0=yt.unstable_requestPaint,Te=yt.unstable_now,X0=yt.unstable_getCurrentPriorityLevel,vu=yt.unstable_ImmediatePriority,yp=yt.unstable_UserBlockingPriority,hl=yt.unstable_NormalPriority,J0=yt.unstable_LowPriority,vp=yt.unstable_IdlePriority,Vl=null,Kt=null;function Z0(e){if(Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(Vl,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:tg,q0=Math.log,eg=Math.LN2;function tg(e){return e>>>=0,e===0?32:31-(q0(e)/eg|0)|0}var Oo=64,jo=4194304;function Pi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Pi(a):(o&=l,o!==0&&(r=Pi(o)))}else l=n&~i,l!==0?r=Pi(l):o!==0&&(r=Pi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),i=1<<n,r|=e[n],t&=~i;return r}function ng(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Mt(o),a=1<<l,s=i[l];s===-1?(!(a&n)||a&r)&&(i[l]=ng(a,t)):s<=t&&(e.expiredLanes|=a),o&=~a}}function Ss(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wp(){var e=Oo;return Oo<<=1,!(Oo&4194240)&&(Oo=64),e}function Ra(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function ig(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Mt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function wu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var le=0;function Sp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xp,Su,kp,Cp,Ep,xs=!1,Do=[],Tn=null,Rn=null,Nn=null,Wi=new Map,Hi=new Map,kn=[],og="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 Kc(e,t){switch(e){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":Wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function di(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ho(t),t!==null&&Su(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lg(e,t,n,r,i){switch(t){case"focusin":return Tn=di(Tn,e,t,n,r,i),!0;case"dragenter":return Rn=di(Rn,e,t,n,r,i),!0;case"mouseover":return Nn=di(Nn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Wi.set(o,di(Wi.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Hi.set(o,di(Hi.get(o)||null,e,t,n,r,i)),!0}return!1}function _p(e){var t=Yn(e.target);if(t!==null){var n=ur(t);if(n!==null){if(t=n.tag,t===13){if(t=pp(n),t!==null){e.blockedOn=t,Ep(e.priority,function(){kp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ks(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);gs=r,n.target.dispatchEvent(r),gs=null}else return t=ho(n),t!==null&&Su(t),e.blockedOn=n,!1;t.shift()}return!0}function Qc(e,t,n){Xo(e)&&n.delete(t)}function ag(){xs=!1,Tn!==null&&Xo(Tn)&&(Tn=null),Rn!==null&&Xo(Rn)&&(Rn=null),Nn!==null&&Xo(Nn)&&(Nn=null),Wi.forEach(Qc),Hi.forEach(Qc)}function pi(e,t){e.blockedOn===t&&(e.blockedOn=null,xs||(xs=!0,yt.unstable_scheduleCallback(yt.unstable_NormalPriority,ag)))}function Ki(e){function t(i){return pi(i,e)}if(0<Do.length){pi(Do[0],e);for(var n=1;n<Do.length;n++){var r=Do[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Tn!==null&&pi(Tn,e),Rn!==null&&pi(Rn,e),Nn!==null&&pi(Nn,e),Wi.forEach(t),Hi.forEach(t),n=0;n<kn.length;n++)r=kn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<kn.length&&(n=kn[0],n.blockedOn===null);)_p(n),n.blockedOn===null&&kn.shift()}var $r=pn.ReactCurrentBatchConfig,gl=!0;function sg(e,t,n,r){var i=le,o=$r.transition;$r.transition=null;try{le=1,xu(e,t,n,r)}finally{le=i,$r.transition=o}}function ug(e,t,n,r){var i=le,o=$r.transition;$r.transition=null;try{le=4,xu(e,t,n,r)}finally{le=i,$r.transition=o}}function xu(e,t,n,r){if(gl){var i=ks(e,t,n,r);if(i===null)$a(e,t,r,yl,n),Kc(e,r);else if(lg(i,e,t,n,r))r.stopPropagation();else if(Kc(e,r),t&4&&-1<og.indexOf(e)){for(;i!==null;){var o=ho(i);if(o!==null&&xp(o),o=ks(e,t,n,r),o===null&&$a(e,t,r,yl,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else $a(e,t,r,null,n)}}var yl=null;function ks(e,t,n,r){if(yl=null,e=yu(r),e=Yn(e),e!==null)if(t=ur(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yl=e,null}function Pp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(X0()){case vu:return 1;case yp:return 4;case hl:case J0:return 16;case vp:return 536870912;default:return 16}default:return 16}}var En=null,ku=null,Jo=null;function Tp(){if(Jo)return Jo;var e,t=ku,n=t.length,r,i="value"in En?En.value:En.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return Jo=i.slice(e,1<r?1-r:void 0)}function Zo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zo(){return!0}function Gc(){return!1}function wt(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?zo:Gc,this.isPropagationStopped=Gc,this}return xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zo)},persist:function(){},isPersistent:zo}),t}var ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cu=wt(ni),po=xe({},ni,{view:0,detail:0}),cg=wt(po),Na,La,hi,Wl=xe({},po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hi&&(hi&&e.type==="mousemove"?(Na=e.screenX-hi.screenX,La=e.screenY-hi.screenY):La=Na=0,hi=e),Na)},movementY:function(e){return"movementY"in e?e.movementY:La}}),Yc=wt(Wl),fg=xe({},Wl,{dataTransfer:0}),dg=wt(fg),pg=xe({},po,{relatedTarget:0}),Oa=wt(pg),hg=xe({},ni,{animationName:0,elapsedTime:0,pseudoElement:0}),mg=wt(hg),gg=xe({},ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yg=wt(gg),vg=xe({},ni,{data:0}),Xc=wt(vg),wg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sg={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"},xg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xg[e])?!!t[e]:!1}function Eu(){return kg}var Cg=xe({},po,{key:function(e){if(e.key){var t=wg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eu,charCode:function(e){return e.type==="keypress"?Zo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Eg=wt(Cg),_g=xe({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jc=wt(_g),Pg=xe({},po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eu}),Tg=wt(Pg),Rg=xe({},ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ng=wt(Rg),Lg=xe({},Wl,{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}),Og=wt(Lg),jg=[9,13,27,32],_u=sn&&"CompositionEvent"in window,Di=null;sn&&"documentMode"in document&&(Di=document.documentMode);var Dg=sn&&"TextEvent"in window&&!Di,Rp=sn&&(!_u||Di&&8<Di&&11>=Di),Zc=" ",qc=!1;function Np(e,t){switch(e){case"keyup":return jg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function zg(e,t){switch(e){case"compositionend":return Lp(t);case"keypress":return t.which!==32?null:(qc=!0,Zc);case"textInput":return e=t.data,e===Zc&&qc?null:e;default:return null}}function Mg(e,t){if(Er)return e==="compositionend"||!_u&&Np(e,t)?(e=Tp(),Jo=ku=En=null,Er=!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 Rp&&t.locale!=="ko"?null:t.data;default:return null}}var Ag={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 ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ag[e.type]:t==="textarea"}function Op(e,t,n,r){sp(r),t=vl(t,"onChange"),0<t.length&&(n=new Cu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zi=null,Qi=null;function Ig(e){Up(e,0)}function Hl(e){var t=Tr(e);if(tp(t))return e}function $g(e,t){if(e==="change")return t}var jp=!1;if(sn){var ja;if(sn){var Da="oninput"in document;if(!Da){var tf=document.createElement("div");tf.setAttribute("oninput","return;"),Da=typeof tf.oninput=="function"}ja=Da}else ja=!1;jp=ja&&(!document.documentMode||9<document.documentMode)}function nf(){zi&&(zi.detachEvent("onpropertychange",Dp),Qi=zi=null)}function Dp(e){if(e.propertyName==="value"&&Hl(Qi)){var t=[];Op(t,Qi,e,yu(e)),dp(Ig,t)}}function Fg(e,t,n){e==="focusin"?(nf(),zi=t,Qi=n,zi.attachEvent("onpropertychange",Dp)):e==="focusout"&&nf()}function bg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(Qi)}function Bg(e,t){if(e==="click")return Hl(t)}function Ug(e,t){if(e==="input"||e==="change")return Hl(t)}function Vg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var It=typeof Object.is=="function"?Object.is:Vg;function Gi(e,t){if(It(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!is.call(t,i)||!It(e[i],t[i]))return!1}return!0}function rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function of(e,t){var n=rf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rf(n)}}function zp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mp(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function Pu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Wg(e){var t=Mp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zp(n.ownerDocument.documentElement,n)){if(r!==null&&Pu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=of(n,o);var l=of(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hg=sn&&"documentMode"in document&&11>=document.documentMode,_r=null,Cs=null,Mi=null,Es=!1;function lf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Es||_r==null||_r!==fl(r)||(r=_r,"selectionStart"in r&&Pu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mi&&Gi(Mi,r)||(Mi=r,r=vl(Cs,"onSelect"),0<r.length&&(t=new Cu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_r)))}function Mo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pr={animationend:Mo("Animation","AnimationEnd"),animationiteration:Mo("Animation","AnimationIteration"),animationstart:Mo("Animation","AnimationStart"),transitionend:Mo("Transition","TransitionEnd")},za={},Ap={};sn&&(Ap=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Kl(e){if(za[e])return za[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ap)return za[e]=t[n];return e}var Ip=Kl("animationend"),$p=Kl("animationiteration"),Fp=Kl("animationstart"),bp=Kl("transitionend"),Bp=new Map,af="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $n(e,t){Bp.set(e,t),sr(t,[e])}for(var Ma=0;Ma<af.length;Ma++){var Aa=af[Ma],Kg=Aa.toLowerCase(),Qg=Aa[0].toUpperCase()+Aa.slice(1);$n(Kg,"on"+Qg)}$n(Ip,"onAnimationEnd");$n($p,"onAnimationIteration");$n(Fp,"onAnimationStart");$n("dblclick","onDoubleClick");$n("focusin","onFocus");$n("focusout","onBlur");$n(bp,"onTransitionEnd");Wr("onMouseEnter",["mouseout","mouseover"]);Wr("onMouseLeave",["mouseout","mouseover"]);Wr("onPointerEnter",["pointerout","pointerover"]);Wr("onPointerLeave",["pointerout","pointerover"]);sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));sr("onBeforeInput",["compositionend","keypress","textInput","paste"]);sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ti="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Gg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ti));function sf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,K0(r,t,void 0,e),e.currentTarget=null}function Up(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==o&&i.isPropagationStopped())break e;sf(i,a,u),o=s}else for(l=0;l<r.length;l++){if(a=r[l],s=a.instance,u=a.currentTarget,a=a.listener,s!==o&&i.isPropagationStopped())break e;sf(i,a,u),o=s}}}if(pl)throw e=ws,pl=!1,ws=null,e}function pe(e,t){var n=t[Ns];n===void 0&&(n=t[Ns]=new Set);var r=e+"__bubble";n.has(r)||(Vp(t,e,2,!1),n.add(r))}function Ia(e,t,n){var r=0;t&&(r|=4),Vp(n,e,r,t)}var Ao="_reactListening"+Math.random().toString(36).slice(2);function Yi(e){if(!e[Ao]){e[Ao]=!0,Xd.forEach(function(n){n!=="selectionchange"&&(Gg.has(n)||Ia(n,!1,e),Ia(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ao]||(t[Ao]=!0,Ia("selectionchange",!1,t))}}function Vp(e,t,n,r){switch(Pp(t)){case 1:var i=sg;break;case 4:i=ug;break;default:i=xu}n=i.bind(null,t,n,e),i=void 0,!vs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function $a(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;l=l.return}for(;a!==null;){if(l=Yn(a),l===null)return;if(s=l.tag,s===5||s===6){r=o=l;continue e}a=a.parentNode}}r=r.return}dp(function(){var u=o,d=yu(n),c=[];e:{var p=Bp.get(e);if(p!==void 0){var v=Cu,x=e;switch(e){case"keypress":if(Zo(n)===0)break e;case"keydown":case"keyup":v=Eg;break;case"focusin":x="focus",v=Oa;break;case"focusout":x="blur",v=Oa;break;case"beforeblur":case"afterblur":v=Oa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Yc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=dg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Tg;break;case Ip:case $p:case Fp:v=mg;break;case bp:v=Ng;break;case"scroll":v=cg;break;case"wheel":v=Og;break;case"copy":case"cut":case"paste":v=yg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Jc}var y=(t&4)!==0,T=!y&&e==="scroll",m=y?p!==null?p+"Capture":null:p;y=[];for(var h=u,g;h!==null;){g=h;var C=g.stateNode;if(g.tag===5&&C!==null&&(g=C,m!==null&&(C=Vi(h,m),C!=null&&y.push(Xi(h,C,g)))),T)break;h=h.return}0<y.length&&(p=new v(p,x,null,n,d),c.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==gs&&(x=n.relatedTarget||n.fromElement)&&(Yn(x)||x[un]))break e;if((v||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=u,x=x?Yn(x):null,x!==null&&(T=ur(x),x!==T||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=u),v!==x)){if(y=Yc,C="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(y=Jc,C="onPointerLeave",m="onPointerEnter",h="pointer"),T=v==null?p:Tr(v),g=x==null?p:Tr(x),p=new y(C,h+"leave",v,n,d),p.target=T,p.relatedTarget=g,C=null,Yn(d)===u&&(y=new y(m,h+"enter",x,n,d),y.target=g,y.relatedTarget=T,C=y),T=C,v&&x)t:{for(y=v,m=x,h=0,g=y;g;g=mr(g))h++;for(g=0,C=m;C;C=mr(C))g++;for(;0<h-g;)y=mr(y),h--;for(;0<g-h;)m=mr(m),g--;for(;h--;){if(y===m||m!==null&&y===m.alternate)break t;y=mr(y),m=mr(m)}y=null}else y=null;v!==null&&uf(c,p,v,y,!1),x!==null&&T!==null&&uf(c,T,x,y,!0)}}e:{if(p=u?Tr(u):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var P=$g;else if(ef(p))if(jp)P=Ug;else{P=bg;var w=Fg}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=Bg);if(P&&(P=P(e,u))){Op(c,P,n,d);break e}w&&w(e,p,u),e==="focusout"&&(w=p._wrapperState)&&w.controlled&&p.type==="number"&&fs(p,"number",p.value)}switch(w=u?Tr(u):window,e){case"focusin":(ef(w)||w.contentEditable==="true")&&(_r=w,Cs=u,Mi=null);break;case"focusout":Mi=Cs=_r=null;break;case"mousedown":Es=!0;break;case"contextmenu":case"mouseup":case"dragend":Es=!1,lf(c,n,d);break;case"selectionchange":if(Hg)break;case"keydown":case"keyup":lf(c,n,d)}var R;if(_u)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Er?Np(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Rp&&n.locale!=="ko"&&(Er||L!=="onCompositionStart"?L==="onCompositionEnd"&&Er&&(R=Tp()):(En=d,ku="value"in En?En.value:En.textContent,Er=!0)),w=vl(u,L),0<w.length&&(L=new Xc(L,e,null,n,d),c.push({event:L,listeners:w}),R?L.data=R:(R=Lp(n),R!==null&&(L.data=R)))),(R=Dg?zg(e,n):Mg(e,n))&&(u=vl(u,"onBeforeInput"),0<u.length&&(d=new Xc("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=R))}Up(c,t)})}function Xi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Vi(e,n),o!=null&&r.unshift(Xi(e,o,i)),o=Vi(e,t),o!=null&&r.push(Xi(e,o,i))),e=e.return}return r}function mr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uf(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,i?(s=Vi(n,o),s!=null&&l.unshift(Xi(n,s,a))):i||(s=Vi(n,o),s!=null&&l.push(Xi(n,s,a)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Yg=/\r\n?/g,Xg=/\u0000|\uFFFD/g;function cf(e){return(typeof e=="string"?e:""+e).replace(Yg,`
|
||
`).replace(Xg,"")}function Io(e,t,n){if(t=cf(t),cf(e)!==t&&n)throw Error(D(425))}function wl(){}var _s=null,Ps=null;function Ts(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rs=typeof setTimeout=="function"?setTimeout:void 0,Jg=typeof clearTimeout=="function"?clearTimeout:void 0,ff=typeof Promise=="function"?Promise:void 0,Zg=typeof queueMicrotask=="function"?queueMicrotask:typeof ff<"u"?function(e){return ff.resolve(null).then(e).catch(qg)}:Rs;function qg(e){setTimeout(function(){throw e})}function Fa(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ki(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ki(t)}function Ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ri=Math.random().toString(36).slice(2),Ht="__reactFiber$"+ri,Ji="__reactProps$"+ri,un="__reactContainer$"+ri,Ns="__reactEvents$"+ri,ey="__reactListeners$"+ri,ty="__reactHandles$"+ri;function Yn(e){var t=e[Ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[un]||n[Ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[Ht])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function ho(e){return e=e[Ht]||e[un],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Ql(e){return e[Ji]||null}var Ls=[],Rr=-1;function Fn(e){return{current:e}}function he(e){0>Rr||(e.current=Ls[Rr],Ls[Rr]=null,Rr--)}function fe(e,t){Rr++,Ls[Rr]=e.current,e.current=t}var An={},Ye=Fn(An),lt=Fn(!1),tr=An;function Hr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function at(e){return e=e.childContextTypes,e!=null}function Sl(){he(lt),he(Ye)}function pf(e,t,n){if(Ye.current!==An)throw Error(D(168));fe(Ye,t),fe(lt,n)}function Wp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(D(108,F0(e)||"Unknown",i));return xe({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,tr=Ye.current,fe(Ye,e),fe(lt,lt.current),!0}function hf(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Wp(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,he(lt),he(Ye),fe(Ye,e)):he(lt),fe(lt,n)}var en=null,Gl=!1,ba=!1;function Hp(e){en===null?en=[e]:en.push(e)}function ny(e){Gl=!0,Hp(e)}function bn(){if(!ba&&en!==null){ba=!0;var e=0,t=le;try{var n=en;for(le=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}en=null,Gl=!1}catch(i){throw en!==null&&(en=en.slice(e+1)),gp(vu,bn),i}finally{le=t,ba=!1}}return null}var Nr=[],Lr=0,kl=null,Cl=0,St=[],xt=0,nr=null,nn=1,rn="";function Hn(e,t){Nr[Lr++]=Cl,Nr[Lr++]=kl,kl=e,Cl=t}function Kp(e,t,n){St[xt++]=nn,St[xt++]=rn,St[xt++]=nr,nr=e;var r=nn;e=rn;var i=32-Mt(r)-1;r&=~(1<<i),n+=1;var o=32-Mt(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,nn=1<<32-Mt(t)+i|n<<i|r,rn=o+e}else nn=1<<o|n<<i|r,rn=e}function Tu(e){e.return!==null&&(Hn(e,1),Kp(e,1,0))}function Ru(e){for(;e===kl;)kl=Nr[--Lr],Nr[Lr]=null,Cl=Nr[--Lr],Nr[Lr]=null;for(;e===nr;)nr=St[--xt],St[xt]=null,rn=St[--xt],St[xt]=null,nn=St[--xt],St[xt]=null}var ht=null,pt=null,ve=!1,Dt=null;function Qp(e,t){var n=Ct(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function mf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ht=e,pt=Ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ht=e,pt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=nr!==null?{id:nn,overflow:rn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ht=e,pt=null,!0):!1;default:return!1}}function Os(e){return(e.mode&1)!==0&&(e.flags&128)===0}function js(e){if(ve){var t=pt;if(t){var n=t;if(!mf(e,t)){if(Os(e))throw Error(D(418));t=Ln(n.nextSibling);var r=ht;t&&mf(e,t)?Qp(r,n):(e.flags=e.flags&-4097|2,ve=!1,ht=e)}}else{if(Os(e))throw Error(D(418));e.flags=e.flags&-4097|2,ve=!1,ht=e}}}function gf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ht=e}function $o(e){if(e!==ht)return!1;if(!ve)return gf(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ts(e.type,e.memoizedProps)),t&&(t=pt)){if(Os(e))throw Gp(),Error(D(418));for(;t;)Qp(e,t),t=Ln(t.nextSibling)}if(gf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){pt=Ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}pt=null}}else pt=ht?Ln(e.stateNode.nextSibling):null;return!0}function Gp(){for(var e=pt;e;)e=Ln(e.nextSibling)}function Kr(){pt=ht=null,ve=!1}function Nu(e){Dt===null?Dt=[e]:Dt.push(e)}var ry=pn.ReactCurrentBatchConfig;function mi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var a=i.refs;l===null?delete a[o]:a[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Fo(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yf(e){var t=e._init;return t(e._payload)}function Yp(e){function t(m,h){if(e){var g=m.deletions;g===null?(m.deletions=[h],m.flags|=16):g.push(h)}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function i(m,h){return m=zn(m,h),m.index=0,m.sibling=null,m}function o(m,h,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<h?(m.flags|=2,h):g):(m.flags|=2,h)):(m.flags|=1048576,h)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,h,g,C){return h===null||h.tag!==6?(h=Qa(g,m.mode,C),h.return=m,h):(h=i(h,g),h.return=m,h)}function s(m,h,g,C){var P=g.type;return P===Cr?d(m,h,g.props.children,C,g.key):h!==null&&(h.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===wn&&yf(P)===h.type)?(C=i(h,g.props),C.ref=mi(m,h,g),C.return=m,C):(C=ol(g.type,g.key,g.props,null,m.mode,C),C.ref=mi(m,h,g),C.return=m,C)}function u(m,h,g,C){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=Ga(g,m.mode,C),h.return=m,h):(h=i(h,g.children||[]),h.return=m,h)}function d(m,h,g,C,P){return h===null||h.tag!==7?(h=er(g,m.mode,C,P),h.return=m,h):(h=i(h,g),h.return=m,h)}function c(m,h,g){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Qa(""+h,m.mode,g),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ro:return g=ol(h.type,h.key,h.props,null,m.mode,g),g.ref=mi(m,null,h),g.return=m,g;case kr:return h=Ga(h,m.mode,g),h.return=m,h;case wn:var C=h._init;return c(m,C(h._payload),g)}if(_i(h)||ci(h))return h=er(h,m.mode,g,null),h.return=m,h;Fo(m,h)}return null}function p(m,h,g,C){var P=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return P!==null?null:a(m,h,""+g,C);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ro:return g.key===P?s(m,h,g,C):null;case kr:return g.key===P?u(m,h,g,C):null;case wn:return P=g._init,p(m,h,P(g._payload),C)}if(_i(g)||ci(g))return P!==null?null:d(m,h,g,C,null);Fo(m,g)}return null}function v(m,h,g,C,P){if(typeof C=="string"&&C!==""||typeof C=="number")return m=m.get(g)||null,a(h,m,""+C,P);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Ro:return m=m.get(C.key===null?g:C.key)||null,s(h,m,C,P);case kr:return m=m.get(C.key===null?g:C.key)||null,u(h,m,C,P);case wn:var w=C._init;return v(m,h,g,w(C._payload),P)}if(_i(C)||ci(C))return m=m.get(g)||null,d(h,m,C,P,null);Fo(h,C)}return null}function x(m,h,g,C){for(var P=null,w=null,R=h,L=h=0,M=null;R!==null&&L<g.length;L++){R.index>L?(M=R,R=null):M=R.sibling;var f=p(m,R,g[L],C);if(f===null){R===null&&(R=M);break}e&&R&&f.alternate===null&&t(m,R),h=o(f,h,L),w===null?P=f:w.sibling=f,w=f,R=M}if(L===g.length)return n(m,R),ve&&Hn(m,L),P;if(R===null){for(;L<g.length;L++)R=c(m,g[L],C),R!==null&&(h=o(R,h,L),w===null?P=R:w.sibling=R,w=R);return ve&&Hn(m,L),P}for(R=r(m,R);L<g.length;L++)M=v(R,m,L,g[L],C),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?L:M.key),h=o(M,h,L),w===null?P=M:w.sibling=M,w=M);return e&&R.forEach(function(z){return t(m,z)}),ve&&Hn(m,L),P}function y(m,h,g,C){var P=ci(g);if(typeof P!="function")throw Error(D(150));if(g=P.call(g),g==null)throw Error(D(151));for(var w=P=null,R=h,L=h=0,M=null,f=g.next();R!==null&&!f.done;L++,f=g.next()){R.index>L?(M=R,R=null):M=R.sibling;var z=p(m,R,f.value,C);if(z===null){R===null&&(R=M);break}e&&R&&z.alternate===null&&t(m,R),h=o(z,h,L),w===null?P=z:w.sibling=z,w=z,R=M}if(f.done)return n(m,R),ve&&Hn(m,L),P;if(R===null){for(;!f.done;L++,f=g.next())f=c(m,f.value,C),f!==null&&(h=o(f,h,L),w===null?P=f:w.sibling=f,w=f);return ve&&Hn(m,L),P}for(R=r(m,R);!f.done;L++,f=g.next())f=v(R,m,L,f.value,C),f!==null&&(e&&f.alternate!==null&&R.delete(f.key===null?L:f.key),h=o(f,h,L),w===null?P=f:w.sibling=f,w=f);return e&&R.forEach(function(U){return t(m,U)}),ve&&Hn(m,L),P}function T(m,h,g,C){if(typeof g=="object"&&g!==null&&g.type===Cr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ro:e:{for(var P=g.key,w=h;w!==null;){if(w.key===P){if(P=g.type,P===Cr){if(w.tag===7){n(m,w.sibling),h=i(w,g.props.children),h.return=m,m=h;break e}}else if(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===wn&&yf(P)===w.type){n(m,w.sibling),h=i(w,g.props),h.ref=mi(m,w,g),h.return=m,m=h;break e}n(m,w);break}else t(m,w);w=w.sibling}g.type===Cr?(h=er(g.props.children,m.mode,C,g.key),h.return=m,m=h):(C=ol(g.type,g.key,g.props,null,m.mode,C),C.ref=mi(m,h,g),C.return=m,m=C)}return l(m);case kr:e:{for(w=g.key;h!==null;){if(h.key===w)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Ga(g,m.mode,C),h.return=m,m=h}return l(m);case wn:return w=g._init,T(m,h,w(g._payload),C)}if(_i(g))return x(m,h,g,C);if(ci(g))return y(m,h,g,C);Fo(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=Qa(g,m.mode,C),h.return=m,m=h),l(m)):n(m,h)}return T}var Qr=Yp(!0),Xp=Yp(!1),El=Fn(null),_l=null,Or=null,Lu=null;function Ou(){Lu=Or=_l=null}function ju(e){var t=El.current;he(El),e._currentValue=t}function Ds(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fr(e,t){_l=e,Lu=Or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function _t(e){var t=e._currentValue;if(Lu!==e)if(e={context:e,memoizedValue:t,next:null},Or===null){if(_l===null)throw Error(D(308));Or=e,_l.dependencies={lanes:0,firstContext:e}}else Or=Or.next=e;return t}var Xn=null;function Du(e){Xn===null?Xn=[e]:Xn.push(e)}function Jp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Du(t)):(n.next=i.next,i.next=n),t.interleaved=n,cn(e,r)}function cn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sn=!1;function zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zp(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function On(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,cn(e,n)}return i=r.interleaved,i===null?(t.next=t,Du(r)):(t.next=i.next,i.next=t),r.interleaved=t,cn(e,n)}function qo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}function vf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Pl(e,t,n,r){var i=e.updateQueue;Sn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?o=u:l.next=u,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==l&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=s))}if(o!==null){var c=i.baseState;l=0,d=u=s=null,a=o;do{var p=a.lane,v=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(p=t,v=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){c=x.call(v,c,p);break e}c=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,p=typeof x=="function"?x.call(v,c,p):x,p==null)break e;c=xe({},c,p);break e;case 2:Sn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=v,s=c):d=d.next=v,l|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(s=c),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ir|=l,e.lanes=l,e.memoizedState=c}}function wf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(D(191,i));i.call(r)}}}var mo={},Qt=Fn(mo),Zi=Fn(mo),qi=Fn(mo);function Jn(e){if(e===mo)throw Error(D(174));return e}function Mu(e,t){switch(fe(qi,t),fe(Zi,e),fe(Qt,mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ps(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ps(t,e)}he(Qt),fe(Qt,t)}function Gr(){he(Qt),he(Zi),he(qi)}function qp(e){Jn(qi.current);var t=Jn(Qt.current),n=ps(t,e.type);t!==n&&(fe(Zi,e),fe(Qt,n))}function Au(e){Zi.current===e&&(he(Qt),he(Zi))}var we=Fn(0);function Tl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ba=[];function Iu(){for(var e=0;e<Ba.length;e++)Ba[e]._workInProgressVersionPrimary=null;Ba.length=0}var el=pn.ReactCurrentDispatcher,Ua=pn.ReactCurrentBatchConfig,rr=0,Se=null,Me=null,Ie=null,Rl=!1,Ai=!1,eo=0,iy=0;function He(){throw Error(D(321))}function $u(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!It(e[n],t[n]))return!1;return!0}function Fu(e,t,n,r,i,o){if(rr=o,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,el.current=e===null||e.memoizedState===null?sy:uy,e=n(r,i),Ai){o=0;do{if(Ai=!1,eo=0,25<=o)throw Error(D(301));o+=1,Ie=Me=null,t.updateQueue=null,el.current=cy,e=n(r,i)}while(Ai)}if(el.current=Nl,t=Me!==null&&Me.next!==null,rr=0,Ie=Me=Se=null,Rl=!1,t)throw Error(D(300));return e}function bu(){var e=eo!==0;return eo=0,e}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?Se.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Pt(){if(Me===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ie===null?Se.memoizedState:Ie.next;if(t!==null)Ie=t,Me=e;else{if(e===null)throw Error(D(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ie===null?Se.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function to(e,t){return typeof t=="function"?t(e):t}function Va(e){var t=Pt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Me,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=l=null,s=null,u=o;do{var d=u.lane;if((rr&d)===d)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=c,l=r):s=s.next=c,Se.lanes|=d,ir|=d}u=u.next}while(u!==null&&u!==o);s===null?l=r:s.next=a,It(r,t.memoizedState)||(ot=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Se.lanes|=o,ir|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wa(e){var t=Pt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);It(o,t.memoizedState)||(ot=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function eh(){}function th(e,t){var n=Se,r=Pt(),i=t(),o=!It(r.memoizedState,i);if(o&&(r.memoizedState=i,ot=!0),r=r.queue,Bu(ih.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,no(9,rh.bind(null,n,r,i,t),void 0,null),$e===null)throw Error(D(349));rr&30||nh(n,t,i)}return i}function nh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rh(e,t,n,r){t.value=n,t.getSnapshot=r,oh(t)&&lh(e)}function ih(e,t,n){return n(function(){oh(t)&&lh(e)})}function oh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!It(e,n)}catch{return!0}}function lh(e){var t=cn(e,1);t!==null&&At(t,e,1,-1)}function Sf(e){var t=Ut();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:e},t.queue=e,e=e.dispatch=ay.bind(null,Se,e),[t.memoizedState,e]}function no(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ah(){return Pt().memoizedState}function tl(e,t,n,r){var i=Ut();Se.flags|=e,i.memoizedState=no(1|t,n,void 0,r===void 0?null:r)}function Yl(e,t,n,r){var i=Pt();r=r===void 0?null:r;var o=void 0;if(Me!==null){var l=Me.memoizedState;if(o=l.destroy,r!==null&&$u(r,l.deps)){i.memoizedState=no(t,n,o,r);return}}Se.flags|=e,i.memoizedState=no(1|t,n,o,r)}function xf(e,t){return tl(8390656,8,e,t)}function Bu(e,t){return Yl(2048,8,e,t)}function sh(e,t){return Yl(4,2,e,t)}function uh(e,t){return Yl(4,4,e,t)}function ch(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fh(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4,4,ch.bind(null,t,e),n)}function Uu(){}function dh(e,t){var n=Pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$u(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ph(e,t){var n=Pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$u(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hh(e,t,n){return rr&21?(It(n,t)||(n=wp(),Se.lanes|=n,ir|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=n)}function oy(e,t){var n=le;le=n!==0&&4>n?n:4,e(!0);var r=Ua.transition;Ua.transition={};try{e(!1),t()}finally{le=n,Ua.transition=r}}function mh(){return Pt().memoizedState}function ly(e,t,n){var r=Dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gh(e))yh(t,n);else if(n=Jp(e,t,n,r),n!==null){var i=qe();At(n,e,r,i),vh(n,t,r)}}function ay(e,t,n){var r=Dn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gh(e))yh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,It(a,l)){var s=t.interleaved;s===null?(i.next=i,Du(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Jp(e,t,i,r),n!==null&&(i=qe(),At(n,e,r,i),vh(n,t,r))}}function gh(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function yh(e,t){Ai=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}var Nl={readContext:_t,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useInsertionEffect:He,useLayoutEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useMutableSource:He,useSyncExternalStore:He,useId:He,unstable_isNewReconciler:!1},sy={readContext:_t,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:xf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tl(4194308,4,ch.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tl(4194308,4,e,t)},useInsertionEffect:function(e,t){return tl(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ly.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:Sf,useDebugValue:Uu,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=Sf(!1),t=e[0];return e=oy.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=Ut();if(ve){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),$e===null)throw Error(D(349));rr&30||nh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,xf(ih.bind(null,r,o,e),[e]),r.flags|=2048,no(9,rh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ut(),t=$e.identifierPrefix;if(ve){var n=rn,r=nn;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=eo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=iy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},uy={readContext:_t,useCallback:dh,useContext:_t,useEffect:Bu,useImperativeHandle:fh,useInsertionEffect:sh,useLayoutEffect:uh,useMemo:ph,useReducer:Va,useRef:ah,useState:function(){return Va(to)},useDebugValue:Uu,useDeferredValue:function(e){var t=Pt();return hh(t,Me.memoizedState,e)},useTransition:function(){var e=Va(to)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:eh,useSyncExternalStore:th,useId:mh,unstable_isNewReconciler:!1},cy={readContext:_t,useCallback:dh,useContext:_t,useEffect:Bu,useImperativeHandle:fh,useInsertionEffect:sh,useLayoutEffect:uh,useMemo:ph,useReducer:Wa,useRef:ah,useState:function(){return Wa(to)},useDebugValue:Uu,useDeferredValue:function(e){var t=Pt();return Me===null?t.memoizedState=e:hh(t,Me.memoizedState,e)},useTransition:function(){var e=Wa(to)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:eh,useSyncExternalStore:th,useId:mh,unstable_isNewReconciler:!1};function Lt(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function zs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xl={isMounted:function(e){return(e=e._reactInternals)?ur(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qe(),i=Dn(e),o=on(r,i);o.payload=t,n!=null&&(o.callback=n),t=On(e,o,i),t!==null&&(At(t,e,i,r),qo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qe(),i=Dn(e),o=on(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=On(e,o,i),t!==null&&(At(t,e,i,r),qo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qe(),r=Dn(e),i=on(n,r);i.tag=2,t!=null&&(i.callback=t),t=On(e,i,r),t!==null&&(At(t,e,r,n),qo(t,e,r))}};function kf(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Gi(n,r)||!Gi(i,o):!0}function wh(e,t,n){var r=!1,i=An,o=t.contextType;return typeof o=="object"&&o!==null?o=_t(o):(i=at(t)?tr:Ye.current,r=t.contextTypes,o=(r=r!=null)?Hr(e,i):An),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Cf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xl.enqueueReplaceState(t,t.state,null)}function Ms(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},zu(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=_t(o):(o=at(t)?tr:Ye.current,i.context=Hr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(zs(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Xl.enqueueReplaceState(i,i.state,null),Pl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yr(e,t){try{var n="",r=t;do n+=$0(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ha(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function As(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fy=typeof WeakMap=="function"?WeakMap:Map;function Sh(e,t,n){n=on(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ol||(Ol=!0,Ks=r),As(e,t)},n}function xh(e,t,n){n=on(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){As(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){As(e,t),typeof r!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Ef(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fy;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_y.bind(null,e,t,n),t.then(e,e))}function _f(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=on(-1,1),t.tag=2,On(n,t,1))),n.lanes|=1),e)}var dy=pn.ReactCurrentOwner,ot=!1;function Ze(e,t,n,r){t.child=e===null?Xp(t,null,n,r):Qr(t,e.child,n,r)}function Tf(e,t,n,r,i){n=n.render;var o=t.ref;return Fr(t,i),r=Fu(e,t,n,r,o,i),n=bu(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fn(e,t,i)):(ve&&n&&Tu(t),t.flags|=1,Ze(e,t,r,i),t.child)}function Rf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Xu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,kh(e,t,o,r,i)):(e=ol(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(l,r)&&e.ref===t.ref)return fn(e,t,i)}return t.flags|=1,e=zn(o,r),e.ref=t.ref,e.return=t,t.child=e}function kh(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Gi(o,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ot=!0);else return t.lanes=e.lanes,fn(e,t,i)}return Is(e,t,n,r,i)}function Ch(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(Dr,ct),ct|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(Dr,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,fe(Dr,ct),ct|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,fe(Dr,ct),ct|=r;return Ze(e,t,i,n),t.child}function Eh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Is(e,t,n,r,i){var o=at(n)?tr:Ye.current;return o=Hr(t,o),Fr(t,i),n=Fu(e,t,n,r,o,i),r=bu(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fn(e,t,i)):(ve&&r&&Tu(t),t.flags|=1,Ze(e,t,n,i),t.child)}function Nf(e,t,n,r,i){if(at(n)){var o=!0;xl(t)}else o=!1;if(Fr(t,i),t.stateNode===null)nl(e,t),wh(t,n,r),Ms(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=_t(u):(u=at(n)?tr:Ye.current,u=Hr(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==u)&&Cf(t,l,r,u),Sn=!1;var p=t.memoizedState;l.state=p,Pl(t,r,l,i),s=t.memoizedState,a!==r||p!==s||lt.current||Sn?(typeof d=="function"&&(zs(t,n,d,r),s=t.memoizedState),(a=Sn||kf(t,n,a,r,p,s,u))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Zp(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Lt(t.type,a),l.props=u,c=t.pendingProps,p=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=_t(s):(s=at(n)?tr:Ye.current,s=Hr(t,s));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==c||p!==s)&&Cf(t,l,r,s),Sn=!1,p=t.memoizedState,l.state=p,Pl(t,r,l,i);var x=t.memoizedState;a!==c||p!==x||lt.current||Sn?(typeof v=="function"&&(zs(t,n,v,r),x=t.memoizedState),(u=Sn||kf(t,n,u,r,p,x,s)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=s,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return $s(e,t,n,r,o,i)}function $s(e,t,n,r,i,o){Eh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&hf(t,n,!1),fn(e,t,o);r=t.stateNode,dy.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Qr(t,e.child,null,o),t.child=Qr(t,null,a,o)):Ze(e,t,a,o),t.memoizedState=r.state,i&&hf(t,n,!0),t.child}function _h(e){var t=e.stateNode;t.pendingContext?pf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pf(e,t.context,!1),Mu(e,t.containerInfo)}function Lf(e,t,n,r,i){return Kr(),Nu(i),t.flags|=256,Ze(e,t,n,r),t.child}var Fs={dehydrated:null,treeContext:null,retryLane:0};function bs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ph(e,t,n){var r=t.pendingProps,i=we.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),fe(we,i&1),e===null)return js(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=ql(l,r,0,null),e=er(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=bs(n),t.memoizedState=Fs,e):Vu(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return py(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=zn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=zn(a,o):(o=er(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?bs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Fs,r}return o=e.child,e=o.sibling,r=zn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Vu(e,t){return t=ql({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bo(e,t,n,r){return r!==null&&Nu(r),Qr(t,e.child,null,n),e=Vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function py(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Ha(Error(D(422))),bo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ql({mode:"visible",children:r.children},i,0,null),o=er(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Qr(t,e.child,null,l),t.child.memoizedState=bs(l),t.memoizedState=Fs,o);if(!(t.mode&1))return bo(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(D(419)),r=Ha(o,r,void 0),bo(e,t,l,r)}if(a=(l&e.childLanes)!==0,ot||a){if(r=$e,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,cn(e,i),At(r,e,i,-1))}return Yu(),r=Ha(Error(D(421))),bo(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Py.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,pt=Ln(i.nextSibling),ht=t,ve=!0,Dt=null,e!==null&&(St[xt++]=nn,St[xt++]=rn,St[xt++]=nr,nn=e.id,rn=e.overflow,nr=t),t=Vu(t,r.children),t.flags|=4096,t)}function Of(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ds(e.return,t,n)}function Ka(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Th(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ze(e,t,r.children,n),r=we.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Of(e,n,t);else if(e.tag===19)Of(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fe(we,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Tl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ka(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Tl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ka(t,!0,n,null,o);break;case"together":Ka(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hy(e,t,n){switch(t.tag){case 3:_h(t),Kr();break;case 5:qp(t);break;case 1:at(t.type)&&xl(t);break;case 4:Mu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;fe(El,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fe(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?Ph(e,t,n):(fe(we,we.current&1),e=fn(e,t,n),e!==null?e.sibling:null);fe(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Th(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),fe(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,Ch(e,t,n)}return fn(e,t,n)}var Rh,Bs,Nh,Lh;Rh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Bs=function(){};Nh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Jn(Qt.current);var o=null;switch(n){case"input":i=us(e,i),r=us(e,r),o=[];break;case"select":i=xe({},i,{value:void 0}),r=xe({},r,{value:void 0}),o=[];break;case"textarea":i=ds(e,i),r=ds(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wl)}hs(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bi.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&pe("scroll",e),o||a===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Lh=function(e,t,n,r){n!==r&&(t.flags|=4)};function gi(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function my(e,t,n){var r=t.pendingProps;switch(Ru(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return at(t.type)&&Sl(),Ke(t),null;case 3:return r=t.stateNode,Gr(),he(lt),he(Ye),Iu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($o(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(Ys(Dt),Dt=null))),Bs(e,t),Ke(t),null;case 5:Au(t);var i=Jn(qi.current);if(n=t.type,e!==null&&t.stateNode!=null)Nh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ke(t),null}if(e=Jn(Qt.current),$o(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ht]=t,r[Ji]=o,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(i=0;i<Ti.length;i++)pe(Ti[i],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Fc(r,o),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},pe("invalid",r);break;case"textarea":Bc(r,o),pe("invalid",r)}hs(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var a=o[l];l==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Io(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Io(r.textContent,a,e),i=["children",""+a]):Bi.hasOwnProperty(l)&&a!=null&&l==="onScroll"&&pe("scroll",r)}switch(n){case"input":No(r),bc(r,o,!0);break;case"textarea":No(r),Uc(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=wl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ip(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ht]=t,e[Ji]=r,Rh(e,t,!1,!1),t.stateNode=e;e:{switch(l=ms(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ti.length;i++)pe(Ti[i],e);i=r;break;case"source":pe("error",e),i=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),i=r;break;case"details":pe("toggle",e),i=r;break;case"input":Fc(e,r),i=us(e,r),pe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=xe({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Bc(e,r),i=ds(e,r),pe("invalid",e);break;default:i=r}hs(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="style"?ap(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&op(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Ui(e,s):typeof s=="number"&&Ui(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Bi.hasOwnProperty(o)?s!=null&&o==="onScroll"&&pe("scroll",e):s!=null&&pu(e,o,s,l))}switch(n){case"input":No(e),bc(e,r,!1);break;case"textarea":No(e),Uc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Mn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Mr(e,!!r.multiple,o,!1):r.defaultValue!=null&&Mr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=wl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ke(t),null;case 6:if(e&&t.stateNode!=null)Lh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Jn(qi.current),Jn(Qt.current),$o(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ht]=t,(o=r.nodeValue!==n)&&(e=ht,e!==null))switch(e.tag){case 3:Io(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Io(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ht]=t,t.stateNode=r}return Ke(t),null;case 13:if(he(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&pt!==null&&t.mode&1&&!(t.flags&128))Gp(),Kr(),t.flags|=98560,o=!1;else if(o=$o(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(D(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(D(317));o[Ht]=t}else Kr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),o=!1}else Dt!==null&&(Ys(Dt),Dt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?Ae===0&&(Ae=3):Yu())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return Gr(),Bs(e,t),e===null&&Yi(t.stateNode.containerInfo),Ke(t),null;case 10:return ju(t.type._context),Ke(t),null;case 17:return at(t.type)&&Sl(),Ke(t),null;case 19:if(he(we),o=t.memoizedState,o===null)return Ke(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)gi(o,!1);else{if(Ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Tl(e),l!==null){for(t.flags|=128,gi(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fe(we,we.current&1|2),t.child}e=e.sibling}o.tail!==null&&Te()>Xr&&(t.flags|=128,r=!0,gi(o,!1),t.lanes=4194304)}else{if(!r)if(e=Tl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ve)return Ke(t),null}else 2*Te()-o.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,gi(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Te(),t.sibling=null,n=we.current,fe(we,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return Gu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function gy(e,t){switch(Ru(t),t.tag){case 1:return at(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),he(lt),he(Ye),Iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Au(t),null;case 13:if(he(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(we),null;case 4:return Gr(),null;case 10:return ju(t.type._context),null;case 22:case 23:return Gu(),null;case 24:return null;default:return null}}var Bo=!1,Ge=!1,yy=typeof WeakSet=="function"?WeakSet:Set,I=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Us(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var jf=!1;function vy(e,t){if(_s=gl,e=Mp(),Pu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,u=0,d=0,c=e,p=null;t:for(;;){for(var v;c!==n||i!==0&&c.nodeType!==3||(a=l+i),c!==o||r!==0&&c.nodeType!==3||(s=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(v=c.firstChild)!==null;)p=c,c=v;for(;;){if(c===e)break t;if(p===n&&++u===i&&(a=l),p===o&&++d===r&&(s=l),(v=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=v}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ps={focusedElem:e,selectionRange:n},gl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,T=x.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:Lt(t.type,y),T);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(C){Pe(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return x=jf,jf=!1,x}function Ii(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Us(t,n,o)}i=i.next}while(i!==r)}}function Jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Oh(e){var t=e.alternate;t!==null&&(e.alternate=null,Oh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[Ji],delete t[Ns],delete t[ey],delete t[ty])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jh(e){return e.tag===5||e.tag===3||e.tag===4}function Df(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ws(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(Ws(e,t,n),e=e.sibling;e!==null;)Ws(e,t,n),e=e.sibling}function Hs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Hs(e,t,n),e=e.sibling;e!==null;)Hs(e,t,n),e=e.sibling}var Be=null,Ot=!1;function yn(e,t,n){for(n=n.child;n!==null;)Dh(e,t,n),n=n.sibling}function Dh(e,t,n){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(Vl,n)}catch{}switch(n.tag){case 5:Ge||jr(n,t);case 6:var r=Be,i=Ot;Be=null,yn(e,t,n),Be=r,Ot=i,Be!==null&&(Ot?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(Ot?(e=Be,n=n.stateNode,e.nodeType===8?Fa(e.parentNode,n):e.nodeType===1&&Fa(e,n),Ki(e)):Fa(Be,n.stateNode));break;case 4:r=Be,i=Ot,Be=n.stateNode.containerInfo,Ot=!0,yn(e,t,n),Be=r,Ot=i;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Us(n,t,l),i=i.next}while(i!==r)}yn(e,t,n);break;case 1:if(!Ge&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pe(n,t,a)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,yn(e,t,n),Ge=r):yn(e,t,n);break;default:yn(e,t,n)}}function zf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yy),t.forEach(function(r){var i=Ty.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,a=l;e:for(;a!==null;){switch(a.tag){case 5:Be=a.stateNode,Ot=!1;break e;case 3:Be=a.stateNode.containerInfo,Ot=!0;break e;case 4:Be=a.stateNode.containerInfo,Ot=!0;break e}a=a.return}if(Be===null)throw Error(D(160));Dh(o,l,i),Be=null,Ot=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){Pe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zh(t,e),t=t.sibling}function zh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Nt(t,e),bt(e),r&4){try{Ii(3,e,e.return),Jl(3,e)}catch(y){Pe(e,e.return,y)}try{Ii(5,e,e.return)}catch(y){Pe(e,e.return,y)}}break;case 1:Nt(t,e),bt(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(Nt(t,e),bt(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var i=e.stateNode;try{Ui(i,"")}catch(y){Pe(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&np(i,o),ms(a,l);var u=ms(a,o);for(l=0;l<s.length;l+=2){var d=s[l],c=s[l+1];d==="style"?ap(i,c):d==="dangerouslySetInnerHTML"?op(i,c):d==="children"?Ui(i,c):pu(i,d,c,u)}switch(a){case"input":cs(i,o);break;case"textarea":rp(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Mr(i,!!o.multiple,v,!1):p!==!!o.multiple&&(o.defaultValue!=null?Mr(i,!!o.multiple,o.defaultValue,!0):Mr(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ji]=o}catch(y){Pe(e,e.return,y)}}break;case 6:if(Nt(t,e),bt(e),r&4){if(e.stateNode===null)throw Error(D(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Pe(e,e.return,y)}}break;case 3:if(Nt(t,e),bt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ki(t.containerInfo)}catch(y){Pe(e,e.return,y)}break;case 4:Nt(t,e),bt(e);break;case 13:Nt(t,e),bt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Ku=Te())),r&4&&zf(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ge=(u=Ge)||d,Nt(t,e),Ge=u):Nt(t,e),bt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(I=e,d=e.child;d!==null;){for(c=I=d;I!==null;){switch(p=I,v=p.child,p.tag){case 0:case 11:case 14:case 15:Ii(4,p,p.return);break;case 1:jr(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){Pe(r,n,y)}}break;case 5:jr(p,p.return);break;case 22:if(p.memoizedState!==null){Af(c);continue}}v!==null?(v.return=p,I=v):Af(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{i=c.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=c.stateNode,s=c.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=lp("display",l))}catch(y){Pe(e,e.return,y)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Pe(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Nt(t,e),bt(e),r&4&&zf(e);break;case 21:break;default:Nt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jh(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ui(i,""),r.flags&=-33);var o=Df(e);Hs(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,a=Df(e);Ws(e,a,l);break;default:throw Error(D(161))}}catch(s){Pe(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wy(e,t,n){I=e,Mh(e)}function Mh(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var i=I,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Bo;if(!l){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Ge;a=Bo;var u=Ge;if(Bo=l,(Ge=s)&&!u)for(I=i;I!==null;)l=I,s=l.child,l.tag===22&&l.memoizedState!==null?If(i):s!==null?(s.return=l,I=s):If(i);for(;o!==null;)I=o,Mh(o),o=o.sibling;I=i,Bo=a,Ge=u}Mf(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,I=o):Mf(e)}}function Mf(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ge||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ge)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Lt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&wf(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wf(t,l,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&Ki(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Ge||t.flags&512&&Vs(t)}catch(p){Pe(t,t.return,p)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Af(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function If(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(s){Pe(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){Pe(t,i,s)}}var o=t.return;try{Vs(t)}catch(s){Pe(t,o,s)}break;case 5:var l=t.return;try{Vs(t)}catch(s){Pe(t,l,s)}}}catch(s){Pe(t,t.return,s)}if(t===e){I=null;break}var a=t.sibling;if(a!==null){a.return=t.return,I=a;break}I=t.return}}var Sy=Math.ceil,Ll=pn.ReactCurrentDispatcher,Wu=pn.ReactCurrentOwner,Et=pn.ReactCurrentBatchConfig,ee=0,$e=null,je=null,Ve=0,ct=0,Dr=Fn(0),Ae=0,ro=null,ir=0,Zl=0,Hu=0,$i=null,it=null,Ku=0,Xr=1/0,qt=null,Ol=!1,Ks=null,jn=null,Uo=!1,_n=null,jl=0,Fi=0,Qs=null,rl=-1,il=0;function qe(){return ee&6?Te():rl!==-1?rl:rl=Te()}function Dn(e){return e.mode&1?ee&2&&Ve!==0?Ve&-Ve:ry.transition!==null?(il===0&&(il=wp()),il):(e=le,e!==0||(e=window.event,e=e===void 0?16:Pp(e.type)),e):1}function At(e,t,n,r){if(50<Fi)throw Fi=0,Qs=null,Error(D(185));fo(e,n,r),(!(ee&2)||e!==$e)&&(e===$e&&(!(ee&2)&&(Zl|=n),Ae===4&&Cn(e,Ve)),st(e,r),n===1&&ee===0&&!(t.mode&1)&&(Xr=Te()+500,Gl&&bn()))}function st(e,t){var n=e.callbackNode;rg(e,t);var r=ml(e,e===$e?Ve:0);if(r===0)n!==null&&Hc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Hc(n),t===1)e.tag===0?ny($f.bind(null,e)):Hp($f.bind(null,e)),Zg(function(){!(ee&6)&&bn()}),n=null;else{switch(Sp(r)){case 1:n=vu;break;case 4:n=yp;break;case 16:n=hl;break;case 536870912:n=vp;break;default:n=hl}n=Vh(n,Ah.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ah(e,t){if(rl=-1,il=0,ee&6)throw Error(D(327));var n=e.callbackNode;if(br()&&e.callbackNode!==n)return null;var r=ml(e,e===$e?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Dl(e,r);else{t=r;var i=ee;ee|=2;var o=$h();($e!==e||Ve!==t)&&(qt=null,Xr=Te()+500,qn(e,t));do try{Cy();break}catch(a){Ih(e,a)}while(!0);Ou(),Ll.current=o,ee=i,je!==null?t=0:($e=null,Ve=0,t=Ae)}if(t!==0){if(t===2&&(i=Ss(e),i!==0&&(r=i,t=Gs(e,i))),t===1)throw n=ro,qn(e,0),Cn(e,r),st(e,Te()),n;if(t===6)Cn(e,r);else{if(i=e.current.alternate,!(r&30)&&!xy(i)&&(t=Dl(e,r),t===2&&(o=Ss(e),o!==0&&(r=o,t=Gs(e,o))),t===1))throw n=ro,qn(e,0),Cn(e,r),st(e,Te()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Kn(e,it,qt);break;case 3:if(Cn(e,r),(r&130023424)===r&&(t=Ku+500-Te(),10<t)){if(ml(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){qe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Rs(Kn.bind(null,e,it,qt),t);break}Kn(e,it,qt);break;case 4:if(Cn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Mt(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sy(r/1960))-r,10<r){e.timeoutHandle=Rs(Kn.bind(null,e,it,qt),r);break}Kn(e,it,qt);break;case 5:Kn(e,it,qt);break;default:throw Error(D(329))}}}return st(e,Te()),e.callbackNode===n?Ah.bind(null,e):null}function Gs(e,t){var n=$i;return e.current.memoizedState.isDehydrated&&(qn(e,t).flags|=256),e=Dl(e,t),e!==2&&(t=it,it=n,t!==null&&Ys(t)),e}function Ys(e){it===null?it=e:it.push.apply(it,e)}function xy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!It(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cn(e,t){for(t&=~Hu,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function $f(e){if(ee&6)throw Error(D(327));br();var t=ml(e,0);if(!(t&1))return st(e,Te()),null;var n=Dl(e,t);if(e.tag!==0&&n===2){var r=Ss(e);r!==0&&(t=r,n=Gs(e,r))}if(n===1)throw n=ro,qn(e,0),Cn(e,t),st(e,Te()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kn(e,it,qt),st(e,Te()),null}function Qu(e,t){var n=ee;ee|=1;try{return e(t)}finally{ee=n,ee===0&&(Xr=Te()+500,Gl&&bn())}}function or(e){_n!==null&&_n.tag===0&&!(ee&6)&&br();var t=ee;ee|=1;var n=Et.transition,r=le;try{if(Et.transition=null,le=1,e)return e()}finally{le=r,Et.transition=n,ee=t,!(ee&6)&&bn()}}function Gu(){ct=Dr.current,he(Dr)}function qn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Jg(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(Ru(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sl();break;case 3:Gr(),he(lt),he(Ye),Iu();break;case 5:Au(r);break;case 4:Gr();break;case 13:he(we);break;case 19:he(we);break;case 10:ju(r.type._context);break;case 22:case 23:Gu()}n=n.return}if($e=e,je=e=zn(e.current,null),Ve=ct=t,Ae=0,ro=null,Hu=Zl=ir=0,it=$i=null,Xn!==null){for(t=0;t<Xn.length;t++)if(n=Xn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}Xn=null}return e}function Ih(e,t){do{var n=je;try{if(Ou(),el.current=Nl,Rl){for(var r=Se.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Rl=!1}if(rr=0,Ie=Me=Se=null,Ai=!1,eo=0,Wu.current=null,n===null||n.return===null){Ae=1,ro=t,je=null;break}e:{var o=e,l=n.return,a=n,s=t;if(t=Ve,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,d=a,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=_f(l);if(v!==null){v.flags&=-257,Pf(v,l,a,o,t),v.mode&1&&Ef(o,u,t),t=v,s=u;var x=t.updateQueue;if(x===null){var y=new Set;y.add(s),t.updateQueue=y}else x.add(s);break e}else{if(!(t&1)){Ef(o,u,t),Yu();break e}s=Error(D(426))}}else if(ve&&a.mode&1){var T=_f(l);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Pf(T,l,a,o,t),Nu(Yr(s,a));break e}}o=s=Yr(s,a),Ae!==4&&(Ae=2),$i===null?$i=[o]:$i.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=Sh(o,s,t);vf(o,m);break e;case 1:a=s;var h=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(jn===null||!jn.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var C=xh(o,a,t);vf(o,C);break e}}o=o.return}while(o!==null)}bh(n)}catch(P){t=P,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function $h(){var e=Ll.current;return Ll.current=Nl,e===null?Nl:e}function Yu(){(Ae===0||Ae===3||Ae===2)&&(Ae=4),$e===null||!(ir&268435455)&&!(Zl&268435455)||Cn($e,Ve)}function Dl(e,t){var n=ee;ee|=2;var r=$h();($e!==e||Ve!==t)&&(qt=null,qn(e,t));do try{ky();break}catch(i){Ih(e,i)}while(!0);if(Ou(),ee=n,Ll.current=r,je!==null)throw Error(D(261));return $e=null,Ve=0,Ae}function ky(){for(;je!==null;)Fh(je)}function Cy(){for(;je!==null&&!G0();)Fh(je)}function Fh(e){var t=Uh(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?bh(e):je=t,Wu.current=null}function bh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=gy(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ae=6,je=null;return}}else if(n=my(n,t,ct),n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Ae===0&&(Ae=5)}function Kn(e,t,n){var r=le,i=Et.transition;try{Et.transition=null,le=1,Ey(e,t,n,r)}finally{Et.transition=i,le=r}return null}function Ey(e,t,n,r){do br();while(_n!==null);if(ee&6)throw Error(D(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(ig(e,o),e===$e&&(je=$e=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Uo||(Uo=!0,Vh(hl,function(){return br(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Et.transition,Et.transition=null;var l=le;le=1;var a=ee;ee|=4,Wu.current=null,vy(e,n),zh(n,e),Wg(Ps),gl=!!_s,Ps=_s=null,e.current=n,wy(n),Y0(),ee=a,le=l,Et.transition=o}else e.current=n;if(Uo&&(Uo=!1,_n=e,jl=i),o=e.pendingLanes,o===0&&(jn=null),Z0(n.stateNode),st(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ol)throw Ol=!1,e=Ks,Ks=null,e;return jl&1&&e.tag!==0&&br(),o=e.pendingLanes,o&1?e===Qs?Fi++:(Fi=0,Qs=e):Fi=0,bn(),null}function br(){if(_n!==null){var e=Sp(jl),t=Et.transition,n=le;try{if(Et.transition=null,le=16>e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,jl=0,ee&6)throw Error(D(331));var i=ee;for(ee|=4,I=e.current;I!==null;){var o=I,l=o.child;if(I.flags&16){var a=o.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(I=u;I!==null;){var d=I;switch(d.tag){case 0:case 11:case 15:Ii(8,d,o)}var c=d.child;if(c!==null)c.return=d,I=c;else for(;I!==null;){d=I;var p=d.sibling,v=d.return;if(Oh(d),d===u){I=null;break}if(p!==null){p.return=v,I=p;break}I=v}}}var x=o.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var T=y.sibling;y.sibling=null,y=T}while(y!==null)}}I=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,I=l;else e:for(;I!==null;){if(o=I,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ii(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,I=m;break e}I=o.return}}var h=e.current;for(I=h;I!==null;){l=I;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,I=g;else e:for(l=h;I!==null;){if(a=I,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Jl(9,a)}}catch(P){Pe(a,a.return,P)}if(a===l){I=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,I=C;break e}I=a.return}}if(ee=i,bn(),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(Vl,e)}catch{}r=!0}return r}finally{le=n,Et.transition=t}}return!1}function Ff(e,t,n){t=Yr(n,t),t=Sh(e,t,1),e=On(e,t,1),t=qe(),e!==null&&(fo(e,1,t),st(e,t))}function Pe(e,t,n){if(e.tag===3)Ff(e,e,n);else for(;t!==null;){if(t.tag===3){Ff(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jn===null||!jn.has(r))){e=Yr(n,e),e=xh(t,e,1),t=On(t,e,1),e=qe(),t!==null&&(fo(t,1,e),st(t,e));break}}t=t.return}}function _y(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qe(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(Ve&n)===n&&(Ae===4||Ae===3&&(Ve&130023424)===Ve&&500>Te()-Ku?qn(e,0):Hu|=n),st(e,t)}function Bh(e,t){t===0&&(e.mode&1?(t=jo,jo<<=1,!(jo&130023424)&&(jo=4194304)):t=1);var n=qe();e=cn(e,t),e!==null&&(fo(e,t,n),st(e,n))}function Py(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bh(e,n)}function Ty(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),Bh(e,n)}var Uh;Uh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,hy(e,t,n);ot=!!(e.flags&131072)}else ot=!1,ve&&t.flags&1048576&&Kp(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nl(e,t),e=t.pendingProps;var i=Hr(t,Ye.current);Fr(t,n),i=Fu(null,t,r,e,i,n);var o=bu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(o=!0,xl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zu(t),i.updater=Xl,t.stateNode=i,i._reactInternals=t,Ms(t,r,e,n),t=$s(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&Tu(t),Ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ny(r),e=Lt(r,e),i){case 0:t=Is(null,t,r,e,n);break e;case 1:t=Nf(null,t,r,e,n);break e;case 11:t=Tf(null,t,r,e,n);break e;case 14:t=Rf(null,t,r,Lt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Is(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Nf(e,t,r,i,n);case 3:e:{if(_h(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Zp(e,t),Pl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Yr(Error(D(423)),t),t=Lf(e,t,r,n,i);break e}else if(r!==i){i=Yr(Error(D(424)),t),t=Lf(e,t,r,n,i);break e}else for(pt=Ln(t.stateNode.containerInfo.firstChild),ht=t,ve=!0,Dt=null,n=Xp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kr(),r===i){t=fn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return qp(t),e===null&&js(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Ts(r,i)?l=null:o!==null&&Ts(r,o)&&(t.flags|=32),Eh(e,t),Ze(e,t,l,n),t.child;case 6:return e===null&&js(t),null;case 13:return Ph(e,t,n);case 4:return Mu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qr(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Tf(e,t,r,i,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,fe(El,r._currentValue),r._currentValue=l,o!==null)if(It(o.value,l)){if(o.children===i.children&&!lt.current){t=fn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=on(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ds(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(D(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ds(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Fr(t,n),i=_t(i),r=r(i),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,i=Lt(r,t.pendingProps),i=Lt(r.type,i),Rf(e,t,r,i,n);case 15:return kh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),nl(e,t),t.tag=1,at(r)?(e=!0,xl(t)):e=!1,Fr(t,n),wh(t,r,i),Ms(t,r,i,n),$s(null,t,r,!0,e,n);case 19:return Th(e,t,n);case 22:return Ch(e,t,n)}throw Error(D(156,t.tag))};function Vh(e,t){return gp(e,t)}function Ry(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,r){return new Ry(e,t,n,r)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ny(e){if(typeof e=="function")return Xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mu)return 11;if(e===gu)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ol(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Xu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Cr:return er(n.children,i,o,t);case hu:l=8,i|=8;break;case os:return e=Ct(12,n,t,i|2),e.elementType=os,e.lanes=o,e;case ls:return e=Ct(13,n,t,i),e.elementType=ls,e.lanes=o,e;case as:return e=Ct(19,n,t,i),e.elementType=as,e.lanes=o,e;case qd:return ql(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jd:l=10;break e;case Zd:l=9;break e;case mu:l=11;break e;case gu:l=14;break e;case wn:l=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Ct(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function er(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function ql(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=qd,e.lanes=n,e.stateNode={isHidden:!1},e}function Qa(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Ga(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ly(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ra(0),this.expirationTimes=Ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ra(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ju(e,t,n,r,i,o,l,a,s){return e=new Ly(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ct(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zu(o),e}function Oy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Wh(e){if(!e)return An;e=e._reactInternals;e:{if(ur(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(at(n))return Wp(e,n,t)}return t}function Hh(e,t,n,r,i,o,l,a,s){return e=Ju(n,r,!0,e,i,o,l,a,s),e.context=Wh(null),n=e.current,r=qe(),i=Dn(n),o=on(r,i),o.callback=t??null,On(n,o,i),e.current.lanes=i,fo(e,i,r),st(e,r),e}function ea(e,t,n,r){var i=t.current,o=qe(),l=Dn(i);return n=Wh(n),t.context===null?t.context=n:t.pendingContext=n,t=on(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=On(i,t,l),e!==null&&(At(e,i,l,o),qo(e,i,l)),l}function zl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function bf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zu(e,t){bf(e,t),(e=e.alternate)&&bf(e,t)}function jy(){return null}var Kh=typeof reportError=="function"?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}ta.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));ea(e,t,null,null)};ta.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;or(function(){ea(null,e,null,null)}),t[un]=null}};function ta(e){this._internalRoot=e}ta.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kn.length&&t!==0&&t<kn[n].priority;n++);kn.splice(n,0,e),n===0&&_p(e)}};function ec(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function na(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bf(){}function Dy(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=zl(l);o.call(u)}}var l=Hh(t,r,e,0,null,!1,!1,"",Bf);return e._reactRootContainer=l,e[un]=l.current,Yi(e.nodeType===8?e.parentNode:e),or(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=zl(s);a.call(u)}}var s=Ju(e,0,!1,null,null,!1,!1,"",Bf);return e._reactRootContainer=s,e[un]=s.current,Yi(e.nodeType===8?e.parentNode:e),or(function(){ea(t,s,n,r)}),s}function ra(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var a=i;i=function(){var s=zl(l);a.call(s)}}ea(t,l,e,i)}else l=Dy(n,t,e,i,r);return zl(l)}xp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pi(t.pendingLanes);n!==0&&(wu(t,n|1),st(t,Te()),!(ee&6)&&(Xr=Te()+500,bn()))}break;case 13:or(function(){var r=cn(e,1);if(r!==null){var i=qe();At(r,e,1,i)}}),Zu(e,1)}};Su=function(e){if(e.tag===13){var t=cn(e,134217728);if(t!==null){var n=qe();At(t,e,134217728,n)}Zu(e,134217728)}};kp=function(e){if(e.tag===13){var t=Dn(e),n=cn(e,t);if(n!==null){var r=qe();At(n,e,t,r)}Zu(e,t)}};Cp=function(){return le};Ep=function(e,t){var n=le;try{return le=e,t()}finally{le=n}};ys=function(e,t,n){switch(t){case"input":if(cs(e,n),t=n.name,n.type==="radio"&&t!=null){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 i=Ql(r);if(!i)throw Error(D(90));tp(r),cs(r,i)}}}break;case"textarea":rp(e,n);break;case"select":t=n.value,t!=null&&Mr(e,!!n.multiple,t,!1)}};cp=Qu;fp=or;var zy={usingClientEntryPoint:!1,Events:[ho,Tr,Ql,sp,up,Qu]},yi={findFiberByHostInstance:Yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},My={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hp(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||jy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vo.isDisabled&&Vo.supportsFiber)try{Vl=Vo.inject(My),Kt=Vo}catch{}}vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zy;vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ec(t))throw Error(D(200));return Oy(e,t,null,n)};vt.createRoot=function(e,t){if(!ec(e))throw Error(D(299));var n=!1,r="",i=Kh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ju(e,1,!1,null,null,n,!1,r,i),e[un]=t.current,Yi(e.nodeType===8?e.parentNode:e),new qu(t)};vt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=hp(t),e=e===null?null:e.stateNode,e};vt.flushSync=function(e){return or(e)};vt.hydrate=function(e,t,n){if(!na(t))throw Error(D(200));return ra(null,e,t,!0,n)};vt.hydrateRoot=function(e,t,n){if(!ec(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=Kh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Hh(t,null,e,1,n??null,i,!1,o,l),e[un]=t.current,Yi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ta(t)};vt.render=function(e,t,n){if(!na(t))throw Error(D(200));return ra(null,e,t,!1,n)};vt.unmountComponentAtNode=function(e){if(!na(e))throw Error(D(40));return e._reactRootContainer?(or(function(){ra(null,null,e,!1,function(){e._reactRootContainer=null,e[un]=null})}),!0):!1};vt.unstable_batchedUpdates=Qu;vt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!na(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return ra(e,t,n,!1,r)};vt.version="18.3.1-next-f1338f8080-20240426";function Qh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qh)}catch(e){console.error(e)}}Qh(),Qd.exports=vt;var tc=Qd.exports;const Ay=lu(tc),Iy=Md({__proto__:null,default:Ay},[tc]);var Gh,Uf=tc;Gh=Uf.createRoot,Uf.hydrateRoot;/**
|
||
* @remix-run/router v1.20.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}var Le;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Le||(Le={}));const Vf="popstate";function $y(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:l,hash:a}=r.location;return io("",{pathname:o,search:l,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:lr(i)}return by(t,n,null,e)}function Z(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Jr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fy(){return Math.random().toString(36).substr(2,8)}function Wf(e,t){return{usr:e.state,key:e.key,idx:t}}function io(e,t,n,r){return n===void 0&&(n=null),ye({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bn(t):t,{state:n,key:t&&t.key||r||Fy()})}function lr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function by(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=Le.Pop,s=null,u=d();u==null&&(u=0,l.replaceState(ye({},l.state,{idx:u}),""));function d(){return(l.state||{idx:null}).idx}function c(){a=Le.Pop;let T=d(),m=T==null?null:T-u;u=T,s&&s({action:a,location:y.location,delta:m})}function p(T,m){a=Le.Push;let h=io(y.location,T,m);u=d()+1;let g=Wf(h,u),C=y.createHref(h);try{l.pushState(g,"",C)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(C)}o&&s&&s({action:a,location:y.location,delta:1})}function v(T,m){a=Le.Replace;let h=io(y.location,T,m);u=d();let g=Wf(h,u),C=y.createHref(h);l.replaceState(g,"",C),o&&s&&s({action:a,location:y.location,delta:0})}function x(T){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof T=="string"?T:lr(T);return h=h.replace(/ $/,"%20"),Z(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return a},get location(){return e(i,l)},listen(T){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Vf,c),s=T,()=>{i.removeEventListener(Vf,c),s=null}},createHref(T){return t(i,T)},createURL:x,encodeLocation(T){let m=x(T);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:v,go(T){return l.go(T)}};return y}var ae;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ae||(ae={}));const By=new Set(["lazy","caseSensitive","path","id","index","children"]);function Uy(e){return e.index===!0}function Ml(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let l=[...n,String(o)],a=typeof i.id=="string"?i.id:l.join("-");if(Z(i.index!==!0||!i.children,"Cannot specify children on an index route"),Z(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Uy(i)){let s=ye({},i,t(i),{id:a});return r[a]=s,s}else{let s=ye({},i,t(i),{id:a,children:void 0});return r[a]=s,i.children&&(s.children=Ml(i.children,t,l,r)),s}})}function Qn(e,t,n){return n===void 0&&(n="/"),ll(e,t,n,!1)}function ll(e,t,n,r){let i=typeof t=="string"?Bn(t):t,o=ii(i.pathname||"/",n);if(o==null)return null;let l=Yh(e);Wy(l);let a=null;for(let s=0;a==null&&s<l.length;++s){let u=tv(o);a=qy(l[s],u,r)}return a}function Vy(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Yh(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,l,a)=>{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};s.relativePath.startsWith("/")&&(Z(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=ln([r,s.relativePath]),d=n.concat(s);o.children&&o.children.length>0&&(Z(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Yh(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Jy(u,o.index),routesMeta:d})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let s of Xh(o.path))i(o,l,s)}),t}function Xh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Xh(r.join("/")),a=[];return a.push(...l.map(s=>s===""?o:[o,s].join("/"))),i&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Wy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Zy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Hy=/^:[\w-]+$/,Ky=3,Qy=2,Gy=1,Yy=10,Xy=-2,Hf=e=>e==="*";function Jy(e,t){let n=e.split("/"),r=n.length;return n.some(Hf)&&(r+=Xy),t&&(r+=Qy),n.filter(i=>!Hf(i)).reduce((i,o)=>i+(Hy.test(o)?Ky:o===""?Gy:Yy),r)}function Zy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function qy(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",l=[];for(let a=0;a<r.length;++a){let s=r[a],u=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",c=Kf({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),p=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Kf({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!c)return null;Object.assign(i,c.params),l.push({params:i,pathname:ln([o,c.pathname]),pathnameBase:iv(ln([o,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(o=ln([o,c.pathnameBase]))}return l}function Kf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ev(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,d,c)=>{let{paramName:p,isOptional:v}=d;if(p==="*"){let y=a[c]||"";l=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const x=a[c];return v&&!x?u[p]=void 0:u[p]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:l,pattern:e}}function ev(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function tv(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Jr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ii(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function nv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Bn(e):e;return{pathname:n?n.startsWith("/")?n:rv(n,t):t,search:ov(r),hash:lv(i)}}function rv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ya(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Jh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nc(e,t){let n=Jh(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function rc(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Bn(e):(i=ye({},e),Z(!i.pathname||!i.pathname.includes("?"),Ya("?","pathname","search",i)),Z(!i.pathname||!i.pathname.includes("#"),Ya("#","pathname","hash",i)),Z(!i.search||!i.search.includes("#"),Ya("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),c-=1;i.pathname=p.join("/")}a=c>=0?t[c]:"/"}let s=nv(i,a),u=l&&l!=="/"&&l.endsWith("/"),d=(o||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}const ln=e=>e.join("/").replace(/\/\/+/g,"/"),iv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ov=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,lv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Al{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ia(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Zh=["post","put","patch","delete"],av=new Set(Zh),sv=["get",...Zh],uv=new Set(sv),cv=new Set([301,302,303,307,308]),fv=new Set([307,308]),Xa={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ic=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),qh="remix-router-transitions";function hv(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Z(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let S=e.detectErrorBoundary;i=k=>({hasErrorBoundary:S(k)})}else i=pv;let o={},l=Ml(e.routes,i,void 0,o),a,s=e.basename||"/",u=e.dataStrategy||vv,d=e.patchRoutesOnNavigation,c=ye({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,x=null,y=null,T=null,m=e.hydrationData!=null,h=Qn(l,e.history.location,s),g=null;if(h==null&&!d){let S=rt(404,{pathname:e.history.location.pathname}),{matches:k,route:E}=rd(l);h=k,g={[E.id]:S}}h&&!e.hydrationData&&Co(h,l,e.history.location.pathname).active&&(h=null);let C;if(h)if(h.some(S=>S.route.lazy))C=!1;else if(!h.some(S=>S.route.loader))C=!0;else if(c.v7_partialHydration){let S=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null;if(k){let E=h.findIndex(O=>k[O.route.id]!==void 0);C=h.slice(0,E+1).every(O=>!Js(O.route,S,k))}else C=h.every(E=>!Js(E.route,S,k))}else C=e.hydrationData!=null;else if(C=!1,h=[],c.v7_partialHydration){let S=Co(null,l,e.history.location.pathname);S.active&&S.matches&&(h=S.matches)}let P,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:C,navigation:Xa,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},R=Le.Pop,L=!1,M,f=!1,z=new Map,U=null,H=!1,X=!1,ze=[],nt=new Set,me=new Map,A=0,K=-1,Q=new Map,ne=new Set,de=new Map,$t=new Map,Fe=new Set,Rt=new Map,Xe=new Map,Yt;function Qm(){if(p=e.history.listen(S=>{let{action:k,location:E,delta:O}=S;if(Yt){Yt(),Yt=void 0;return}Jr(Xe.size===0||O!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let $=Nc({currentLocation:w.location,nextLocation:E,historyAction:k});if($&&O!=null){let V=new Promise(G=>{Yt=G});e.history.go(O*-1),ko($,{state:"blocked",location:E,proceed(){ko($,{state:"proceeding",proceed:void 0,reset:void 0,location:E}),V.then(()=>e.history.go(O))},reset(){let G=new Map(w.blockers);G.set($,vi),Je({blockers:G})}});return}return Un(k,E)}),n){jv(t,z);let S=()=>Dv(t,z);t.addEventListener("pagehide",S),U=()=>t.removeEventListener("pagehide",S)}return w.initialized||Un(Le.Pop,w.location,{initialHydration:!0}),P}function Gm(){p&&p(),U&&U(),v.clear(),M&&M.abort(),w.fetchers.forEach((S,k)=>xo(k)),w.blockers.forEach((S,k)=>Rc(k))}function Ym(S){return v.add(S),()=>v.delete(S)}function Je(S,k){k===void 0&&(k={}),w=ye({},w,S);let E=[],O=[];c.v7_fetcherPersist&&w.fetchers.forEach(($,V)=>{$.state==="idle"&&(Fe.has(V)?O.push(V):E.push(V))}),[...v].forEach($=>$(w,{deletedFetchers:O,viewTransitionOpts:k.viewTransitionOpts,flushSync:k.flushSync===!0})),c.v7_fetcherPersist&&(E.forEach($=>w.fetchers.delete($)),O.forEach($=>xo($)))}function fr(S,k,E){var O,$;let{flushSync:V}=E===void 0?{}:E,G=w.actionData!=null&&w.navigation.formMethod!=null&&jt(w.navigation.formMethod)&&w.navigation.state==="loading"&&((O=S.state)==null?void 0:O._isRedirect)!==!0,b;k.actionData?Object.keys(k.actionData).length>0?b=k.actionData:b=null:G?b=w.actionData:b=null;let B=k.loaderData?td(w.loaderData,k.loaderData,k.matches||[],k.errors):w.loaderData,F=w.blockers;F.size>0&&(F=new Map(F),F.forEach((q,be)=>F.set(be,vi)));let W=L===!0||w.navigation.formMethod!=null&&jt(w.navigation.formMethod)&&(($=S.state)==null?void 0:$._isRedirect)!==!0;a&&(l=a,a=void 0),H||R===Le.Pop||(R===Le.Push?e.history.push(S,S.state):R===Le.Replace&&e.history.replace(S,S.state));let J;if(R===Le.Pop){let q=z.get(w.location.pathname);q&&q.has(S.pathname)?J={currentLocation:w.location,nextLocation:S}:z.has(S.pathname)&&(J={currentLocation:S,nextLocation:w.location})}else if(f){let q=z.get(w.location.pathname);q?q.add(S.pathname):(q=new Set([S.pathname]),z.set(w.location.pathname,q)),J={currentLocation:w.location,nextLocation:S}}Je(ye({},k,{actionData:b,loaderData:B,historyAction:R,location:S,initialized:!0,navigation:Xa,revalidation:"idle",restoreScrollPosition:Oc(S,k.matches||w.matches),preventScrollReset:W,blockers:F}),{viewTransitionOpts:J,flushSync:V===!0}),R=Le.Pop,L=!1,f=!1,H=!1,X=!1,ze=[]}async function xc(S,k){if(typeof S=="number"){e.history.go(S);return}let E=Xs(w.location,w.matches,s,c.v7_prependBasename,S,c.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:O,submission:$,error:V}=Qf(c.v7_normalizeFormMethod,!1,E,k),G=w.location,b=io(w.location,O,k&&k.state);b=ye({},b,e.history.encodeLocation(b));let B=k&&k.replace!=null?k.replace:void 0,F=Le.Push;B===!0?F=Le.Replace:B===!1||$!=null&&jt($.formMethod)&&$.formAction===w.location.pathname+w.location.search&&(F=Le.Replace);let W=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,J=(k&&k.flushSync)===!0,q=Nc({currentLocation:G,nextLocation:b,historyAction:F});if(q){ko(q,{state:"blocked",location:b,proceed(){ko(q,{state:"proceeding",proceed:void 0,reset:void 0,location:b}),xc(S,k)},reset(){let be=new Map(w.blockers);be.set(q,vi),Je({blockers:be})}});return}return await Un(F,b,{submission:$,pendingError:V,preventScrollReset:W,replace:k&&k.replace,enableViewTransition:k&&k.viewTransition,flushSync:J})}function Xm(){if(wa(),Je({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Un(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Un(R||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:f===!0})}}async function Un(S,k,E){M&&M.abort(),M=null,R=S,H=(E&&E.startUninterruptedRevalidation)===!0,l0(w.location,w.matches),L=(E&&E.preventScrollReset)===!0,f=(E&&E.enableViewTransition)===!0;let O=a||l,$=E&&E.overrideNavigation,V=Qn(O,k,s),G=(E&&E.flushSync)===!0,b=Co(V,O,k.pathname);if(b.active&&b.matches&&(V=b.matches),!V){let{error:ce,notFoundMatches:re,route:ke}=Sa(k.pathname);fr(k,{matches:re,loaderData:{},errors:{[ke.id]:ce}},{flushSync:G});return}if(w.initialized&&!X&&Ev(w.location,k)&&!(E&&E.submission&&jt(E.submission.formMethod))){fr(k,{matches:V},{flushSync:G});return}M=new AbortController;let B=gr(e.history,k,M.signal,E&&E.submission),F;if(E&&E.pendingError)F=[Gn(V).route.id,{type:ae.error,error:E.pendingError}];else if(E&&E.submission&&jt(E.submission.formMethod)){let ce=await Jm(B,k,E.submission,V,b.active,{replace:E.replace,flushSync:G});if(ce.shortCircuited)return;if(ce.pendingActionResult){let[re,ke]=ce.pendingActionResult;if(ft(ke)&&ia(ke.error)&&ke.error.status===404){M=null,fr(k,{matches:ce.matches,loaderData:{},errors:{[re]:ke.error}});return}}V=ce.matches||V,F=ce.pendingActionResult,$=Ja(k,E.submission),G=!1,b.active=!1,B=gr(e.history,B.url,B.signal)}let{shortCircuited:W,matches:J,loaderData:q,errors:be}=await Zm(B,k,V,b.active,$,E&&E.submission,E&&E.fetcherSubmission,E&&E.replace,E&&E.initialHydration===!0,G,F);W||(M=null,fr(k,ye({matches:J||V},nd(F),{loaderData:q,errors:be})))}async function Jm(S,k,E,O,$,V){V===void 0&&(V={}),wa();let G=Lv(k,E);if(Je({navigation:G},{flushSync:V.flushSync===!0}),$){let F=await Eo(O,k.pathname,S.signal);if(F.type==="aborted")return{shortCircuited:!0};if(F.type==="error"){let W=Gn(F.partialMatches).route.id;return{matches:F.partialMatches,pendingActionResult:[W,{type:ae.error,error:F.error}]}}else if(F.matches)O=F.matches;else{let{notFoundMatches:W,error:J,route:q}=Sa(k.pathname);return{matches:W,pendingActionResult:[q.id,{type:ae.error,error:J}]}}}let b,B=Ri(O,k);if(!B.route.action&&!B.route.lazy)b={type:ae.error,error:rt(405,{method:S.method,pathname:k.pathname,routeId:B.route.id})};else if(b=(await li("action",w,S,[B],O,null))[B.route.id],S.signal.aborted)return{shortCircuited:!0};if(Zn(b)){let F;return V&&V.replace!=null?F=V.replace:F=Zf(b.response.headers.get("Location"),new URL(S.url),s)===w.location.pathname+w.location.search,await Vn(S,b,!0,{submission:E,replace:F}),{shortCircuited:!0}}if(Pn(b))throw rt(400,{type:"defer-action"});if(ft(b)){let F=Gn(O,B.route.id);return(V&&V.replace)!==!0&&(R=Le.Push),{matches:O,pendingActionResult:[F.route.id,b]}}return{matches:O,pendingActionResult:[B.route.id,b]}}async function Zm(S,k,E,O,$,V,G,b,B,F,W){let J=$||Ja(k,V),q=V||G||od(J),be=!H&&(!c.v7_partialHydration||!B);if(O){if(be){let Ce=kc(W);Je(ye({navigation:J},Ce!==void 0?{actionData:Ce}:{}),{flushSync:F})}let te=await Eo(E,k.pathname,S.signal);if(te.type==="aborted")return{shortCircuited:!0};if(te.type==="error"){let Ce=Gn(te.partialMatches).route.id;return{matches:te.partialMatches,loaderData:{},errors:{[Ce]:te.error}}}else if(te.matches)E=te.matches;else{let{error:Ce,notFoundMatches:pr,route:ui}=Sa(k.pathname);return{matches:pr,loaderData:{},errors:{[ui.id]:Ce}}}}let ce=a||l,[re,ke]=Yf(e.history,w,E,q,k,c.v7_partialHydration&&B===!0,c.v7_skipActionErrorRevalidation,X,ze,nt,Fe,de,ne,ce,s,W);if(xa(te=>!(E&&E.some(Ce=>Ce.route.id===te))||re&&re.some(Ce=>Ce.route.id===te)),K=++A,re.length===0&&ke.length===0){let te=Pc();return fr(k,ye({matches:E,loaderData:{},errors:W&&ft(W[1])?{[W[0]]:W[1].error}:null},nd(W),te?{fetchers:new Map(w.fetchers)}:{}),{flushSync:F}),{shortCircuited:!0}}if(be){let te={};if(!O){te.navigation=J;let Ce=kc(W);Ce!==void 0&&(te.actionData=Ce)}ke.length>0&&(te.fetchers=qm(ke)),Je(te,{flushSync:F})}ke.forEach(te=>{gn(te.key),te.controller&&me.set(te.key,te.controller)});let dr=()=>ke.forEach(te=>gn(te.key));M&&M.signal.addEventListener("abort",dr);let{loaderResults:ai,fetcherResults:Jt}=await Cc(w,E,re,ke,S);if(S.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",dr),ke.forEach(te=>me.delete(te.key));let Ft=Wo(ai);if(Ft)return await Vn(S,Ft.result,!0,{replace:b}),{shortCircuited:!0};if(Ft=Wo(Jt),Ft)return ne.add(Ft.key),await Vn(S,Ft.result,!0,{replace:b}),{shortCircuited:!0};let{loaderData:ka,errors:si}=ed(w,E,ai,W,ke,Jt,Rt);Rt.forEach((te,Ce)=>{te.subscribe(pr=>{(pr||te.done)&&Rt.delete(Ce)})}),c.v7_partialHydration&&B&&w.errors&&(si=ye({},w.errors,si));let Wn=Pc(),_o=Tc(K),Po=Wn||_o||ke.length>0;return ye({matches:E,loaderData:ka,errors:si},Po?{fetchers:new Map(w.fetchers)}:{})}function kc(S){if(S&&!ft(S[1]))return{[S[0]]:S[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function qm(S){return S.forEach(k=>{let E=w.fetchers.get(k.key),O=wi(void 0,E?E.data:void 0);w.fetchers.set(k.key,O)}),new Map(w.fetchers)}function e0(S,k,E,O){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");gn(S);let $=(O&&O.flushSync)===!0,V=a||l,G=Xs(w.location,w.matches,s,c.v7_prependBasename,E,c.v7_relativeSplatPath,k,O==null?void 0:O.relative),b=Qn(V,G,s),B=Co(b,V,G);if(B.active&&B.matches&&(b=B.matches),!b){Xt(S,k,rt(404,{pathname:G}),{flushSync:$});return}let{path:F,submission:W,error:J}=Qf(c.v7_normalizeFormMethod,!0,G,O);if(J){Xt(S,k,J,{flushSync:$});return}let q=Ri(b,F),be=(O&&O.preventScrollReset)===!0;if(W&&jt(W.formMethod)){t0(S,k,F,q,b,B.active,$,be,W);return}de.set(S,{routeId:k,path:F}),n0(S,k,F,q,b,B.active,$,be,W)}async function t0(S,k,E,O,$,V,G,b,B){wa(),de.delete(S);function F(Ne){if(!Ne.route.action&&!Ne.route.lazy){let hr=rt(405,{method:B.formMethod,pathname:E,routeId:k});return Xt(S,k,hr,{flushSync:G}),!0}return!1}if(!V&&F(O))return;let W=w.fetchers.get(S);mn(S,Ov(B,W),{flushSync:G});let J=new AbortController,q=gr(e.history,E,J.signal,B);if(V){let Ne=await Eo($,E,q.signal);if(Ne.type==="aborted")return;if(Ne.type==="error"){Xt(S,k,Ne.error,{flushSync:G});return}else if(Ne.matches){if($=Ne.matches,O=Ri($,E),F(O))return}else{Xt(S,k,rt(404,{pathname:E}),{flushSync:G});return}}me.set(S,J);let be=A,re=(await li("action",w,q,[O],$,S))[O.route.id];if(q.signal.aborted){me.get(S)===J&&me.delete(S);return}if(c.v7_fetcherPersist&&Fe.has(S)){if(Zn(re)||ft(re)){mn(S,vn(void 0));return}}else{if(Zn(re))if(me.delete(S),K>be){mn(S,vn(void 0));return}else return ne.add(S),mn(S,wi(B)),Vn(q,re,!1,{fetcherSubmission:B,preventScrollReset:b});if(ft(re)){Xt(S,k,re.error);return}}if(Pn(re))throw rt(400,{type:"defer-action"});let ke=w.navigation.location||w.location,dr=gr(e.history,ke,J.signal),ai=a||l,Jt=w.navigation.state!=="idle"?Qn(ai,w.navigation.location,s):w.matches;Z(Jt,"Didn't find any matches after fetcher action");let Ft=++A;Q.set(S,Ft);let ka=wi(B,re.data);w.fetchers.set(S,ka);let[si,Wn]=Yf(e.history,w,Jt,B,ke,!1,c.v7_skipActionErrorRevalidation,X,ze,nt,Fe,de,ne,ai,s,[O.route.id,re]);Wn.filter(Ne=>Ne.key!==S).forEach(Ne=>{let hr=Ne.key,jc=w.fetchers.get(hr),u0=wi(void 0,jc?jc.data:void 0);w.fetchers.set(hr,u0),gn(hr),Ne.controller&&me.set(hr,Ne.controller)}),Je({fetchers:new Map(w.fetchers)});let _o=()=>Wn.forEach(Ne=>gn(Ne.key));J.signal.addEventListener("abort",_o);let{loaderResults:Po,fetcherResults:te}=await Cc(w,Jt,si,Wn,dr);if(J.signal.aborted)return;J.signal.removeEventListener("abort",_o),Q.delete(S),me.delete(S),Wn.forEach(Ne=>me.delete(Ne.key));let Ce=Wo(Po);if(Ce)return Vn(dr,Ce.result,!1,{preventScrollReset:b});if(Ce=Wo(te),Ce)return ne.add(Ce.key),Vn(dr,Ce.result,!1,{preventScrollReset:b});let{loaderData:pr,errors:ui}=ed(w,Jt,Po,void 0,Wn,te,Rt);if(w.fetchers.has(S)){let Ne=vn(re.data);w.fetchers.set(S,Ne)}Tc(Ft),w.navigation.state==="loading"&&Ft>K?(Z(R,"Expected pending action"),M&&M.abort(),fr(w.navigation.location,{matches:Jt,loaderData:pr,errors:ui,fetchers:new Map(w.fetchers)})):(Je({errors:ui,loaderData:td(w.loaderData,pr,Jt,ui),fetchers:new Map(w.fetchers)}),X=!1)}async function n0(S,k,E,O,$,V,G,b,B){let F=w.fetchers.get(S);mn(S,wi(B,F?F.data:void 0),{flushSync:G});let W=new AbortController,J=gr(e.history,E,W.signal);if(V){let re=await Eo($,E,J.signal);if(re.type==="aborted")return;if(re.type==="error"){Xt(S,k,re.error,{flushSync:G});return}else if(re.matches)$=re.matches,O=Ri($,E);else{Xt(S,k,rt(404,{pathname:E}),{flushSync:G});return}}me.set(S,W);let q=A,ce=(await li("loader",w,J,[O],$,S))[O.route.id];if(Pn(ce)&&(ce=await oc(ce,J.signal,!0)||ce),me.get(S)===W&&me.delete(S),!J.signal.aborted){if(Fe.has(S)){mn(S,vn(void 0));return}if(Zn(ce))if(K>q){mn(S,vn(void 0));return}else{ne.add(S),await Vn(J,ce,!1,{preventScrollReset:b});return}if(ft(ce)){Xt(S,k,ce.error);return}Z(!Pn(ce),"Unhandled fetcher deferred data"),mn(S,vn(ce.data))}}async function Vn(S,k,E,O){let{submission:$,fetcherSubmission:V,preventScrollReset:G,replace:b}=O===void 0?{}:O;k.response.headers.has("X-Remix-Revalidate")&&(X=!0);let B=k.response.headers.get("Location");Z(B,"Expected a Location header on the redirect Response"),B=Zf(B,new URL(S.url),s);let F=io(w.location,B,{_isRedirect:!0});if(n){let re=!1;if(k.response.headers.has("X-Remix-Reload-Document"))re=!0;else if(ic.test(B)){const ke=e.history.createURL(B);re=ke.origin!==t.location.origin||ii(ke.pathname,s)==null}if(re){b?t.location.replace(B):t.location.assign(B);return}}M=null;let W=b===!0||k.response.headers.has("X-Remix-Replace")?Le.Replace:Le.Push,{formMethod:J,formAction:q,formEncType:be}=w.navigation;!$&&!V&&J&&q&&be&&($=od(w.navigation));let ce=$||V;if(fv.has(k.response.status)&&ce&&jt(ce.formMethod))await Un(W,F,{submission:ye({},ce,{formAction:B}),preventScrollReset:G||L,enableViewTransition:E?f:void 0});else{let re=Ja(F,$);await Un(W,F,{overrideNavigation:re,fetcherSubmission:V,preventScrollReset:G||L,enableViewTransition:E?f:void 0})}}async function li(S,k,E,O,$,V){let G,b={};try{G=await wv(u,S,k,E,O,$,V,o,i)}catch(B){return O.forEach(F=>{b[F.route.id]={type:ae.error,error:B}}),b}for(let[B,F]of Object.entries(G))if(_v(F)){let W=F.result;b[B]={type:ae.redirect,response:kv(W,E,B,$,s,c.v7_relativeSplatPath)}}else b[B]=await xv(F);return b}async function Cc(S,k,E,O,$){let V=S.matches,G=li("loader",S,$,E,k,null),b=Promise.all(O.map(async W=>{if(W.matches&&W.match&&W.controller){let q=(await li("loader",S,gr(e.history,W.path,W.controller.signal),[W.match],W.matches,W.key))[W.match.route.id];return{[W.key]:q}}else return Promise.resolve({[W.key]:{type:ae.error,error:rt(404,{pathname:W.path})}})})),B=await G,F=(await b).reduce((W,J)=>Object.assign(W,J),{});return await Promise.all([Rv(k,B,$.signal,V,S.loaderData),Nv(k,F,O)]),{loaderResults:B,fetcherResults:F}}function wa(){X=!0,ze.push(...xa()),de.forEach((S,k)=>{me.has(k)&&nt.add(k),gn(k)})}function mn(S,k,E){E===void 0&&(E={}),w.fetchers.set(S,k),Je({fetchers:new Map(w.fetchers)},{flushSync:(E&&E.flushSync)===!0})}function Xt(S,k,E,O){O===void 0&&(O={});let $=Gn(w.matches,k);xo(S),Je({errors:{[$.route.id]:E},fetchers:new Map(w.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function Ec(S){return c.v7_fetcherPersist&&($t.set(S,($t.get(S)||0)+1),Fe.has(S)&&Fe.delete(S)),w.fetchers.get(S)||dv}function xo(S){let k=w.fetchers.get(S);me.has(S)&&!(k&&k.state==="loading"&&Q.has(S))&&gn(S),de.delete(S),Q.delete(S),ne.delete(S),Fe.delete(S),nt.delete(S),w.fetchers.delete(S)}function r0(S){if(c.v7_fetcherPersist){let k=($t.get(S)||0)-1;k<=0?($t.delete(S),Fe.add(S)):$t.set(S,k)}else xo(S);Je({fetchers:new Map(w.fetchers)})}function gn(S){let k=me.get(S);k&&(k.abort(),me.delete(S))}function _c(S){for(let k of S){let E=Ec(k),O=vn(E.data);w.fetchers.set(k,O)}}function Pc(){let S=[],k=!1;for(let E of ne){let O=w.fetchers.get(E);Z(O,"Expected fetcher: "+E),O.state==="loading"&&(ne.delete(E),S.push(E),k=!0)}return _c(S),k}function Tc(S){let k=[];for(let[E,O]of Q)if(O<S){let $=w.fetchers.get(E);Z($,"Expected fetcher: "+E),$.state==="loading"&&(gn(E),Q.delete(E),k.push(E))}return _c(k),k.length>0}function i0(S,k){let E=w.blockers.get(S)||vi;return Xe.get(S)!==k&&Xe.set(S,k),E}function Rc(S){w.blockers.delete(S),Xe.delete(S)}function ko(S,k){let E=w.blockers.get(S)||vi;Z(E.state==="unblocked"&&k.state==="blocked"||E.state==="blocked"&&k.state==="blocked"||E.state==="blocked"&&k.state==="proceeding"||E.state==="blocked"&&k.state==="unblocked"||E.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+E.state+" -> "+k.state);let O=new Map(w.blockers);O.set(S,k),Je({blockers:O})}function Nc(S){let{currentLocation:k,nextLocation:E,historyAction:O}=S;if(Xe.size===0)return;Xe.size>1&&Jr(!1,"A router only supports one blocker at a time");let $=Array.from(Xe.entries()),[V,G]=$[$.length-1],b=w.blockers.get(V);if(!(b&&b.state==="proceeding")&&G({currentLocation:k,nextLocation:E,historyAction:O}))return V}function Sa(S){let k=rt(404,{pathname:S}),E=a||l,{matches:O,route:$}=rd(E);return xa(),{notFoundMatches:O,route:$,error:k}}function xa(S){let k=[];return Rt.forEach((E,O)=>{(!S||S(O))&&(E.cancel(),k.push(O),Rt.delete(O))}),k}function o0(S,k,E){if(x=S,T=k,y=E||null,!m&&w.navigation===Xa){m=!0;let O=Oc(w.location,w.matches);O!=null&&Je({restoreScrollPosition:O})}return()=>{x=null,T=null,y=null}}function Lc(S,k){return y&&y(S,k.map(O=>Vy(O,w.loaderData)))||S.key}function l0(S,k){if(x&&T){let E=Lc(S,k);x[E]=T()}}function Oc(S,k){if(x){let E=Lc(S,k),O=x[E];if(typeof O=="number")return O}return null}function Co(S,k,E){if(d)if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:ll(k,E,s,!0)}}else return{active:!0,matches:ll(k,E,s,!0)||[]};return{active:!1,matches:null}}async function Eo(S,k,E){if(!d)return{type:"success",matches:S};let O=S;for(;;){let $=a==null,V=a||l,G=o;try{await d({path:k,matches:O,patch:(F,W)=>{E.aborted||Jf(F,W,V,G,i)}})}catch(F){return{type:"error",error:F,partialMatches:O}}finally{$&&!E.aborted&&(l=[...l])}if(E.aborted)return{type:"aborted"};let b=Qn(V,k,s);if(b)return{type:"success",matches:b};let B=ll(V,k,s,!0);if(!B||O.length===B.length&&O.every((F,W)=>F.route.id===B[W].route.id))return{type:"success",matches:null};O=B}}function a0(S){o={},a=Ml(S,i,void 0,o)}function s0(S,k){let E=a==null;Jf(S,k,a||l,o,i),E&&(l=[...l],Je({}))}return P={get basename(){return s},get future(){return c},get state(){return w},get routes(){return l},get window(){return t},initialize:Qm,subscribe:Ym,enableScrollRestoration:o0,navigate:xc,fetch:e0,revalidate:Xm,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:Ec,deleteFetcher:r0,dispose:Gm,getBlocker:i0,deleteBlocker:Rc,patchRoutes:s0,_internalFetchControllers:me,_internalActiveDeferreds:Rt,_internalSetRoutes:a0},P}function mv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Xs(e,t,n,r,i,o,l,a){let s,u;if(l){s=[];for(let c of t)if(s.push(c),c.route.id===l){u=c;break}}else s=t,u=t[t.length-1];let d=rc(i||".",nc(s,o),ii(e.pathname,n)||e.pathname,a==="path");if(i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u){let c=lc(d.search);if(u.route.index&&!c)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&c){let p=new URLSearchParams(d.search),v=p.getAll("index");p.delete("index"),v.filter(y=>y).forEach(y=>p.append("index",y));let x=p.toString();d.search=x?"?"+x:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:ln([n,d.pathname])),lr(d)}function Qf(e,t,n,r){if(!r||!mv(r))return{path:n};if(r.formMethod&&!Tv(r.formMethod))return{path:n,error:rt(405,{method:r.formMethod})};let i=()=>({path:n,error:rt(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=nm(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!jt(l))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,x)=>{let[y,T]=x;return""+v+y+"="+T+`
|
||
`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!jt(l))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Z(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Zs(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Zs(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=qf(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=qf(s)}catch{return i()}let d={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(jt(d.formMethod))return{path:n,submission:d};let c=Bn(n);return t&&c.search&&lc(c.search)&&s.append("index",""),c.search="?"+s,{path:lr(c),submission:d}}function Gf(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Yf(e,t,n,r,i,o,l,a,s,u,d,c,p,v,x,y){let T=y?ft(y[1])?y[1].error:y[1].data:void 0,m=e.createURL(t.location),h=e.createURL(i),g=n;o&&t.errors?g=Gf(n,Object.keys(t.errors)[0],!0):y&&ft(y[1])&&(g=Gf(n,y[0]));let C=y?y[1].statusCode:void 0,P=l&&C&&C>=400,w=g.filter((L,M)=>{let{route:f}=L;if(f.lazy)return!0;if(f.loader==null)return!1;if(o)return Js(f,t.loaderData,t.errors);if(gv(t.loaderData,t.matches[M],L)||s.some(H=>H===L.route.id))return!0;let z=t.matches[M],U=L;return Xf(L,ye({currentUrl:m,currentParams:z.params,nextUrl:h,nextParams:U.params},r,{actionResult:T,actionStatus:C,defaultShouldRevalidate:P?!1:a||m.pathname+m.search===h.pathname+h.search||m.search!==h.search||em(z,U)}))}),R=[];return c.forEach((L,M)=>{if(o||!n.some(X=>X.route.id===L.routeId)||d.has(M))return;let f=Qn(v,L.path,x);if(!f){R.push({key:M,routeId:L.routeId,path:L.path,matches:null,match:null,controller:null});return}let z=t.fetchers.get(M),U=Ri(f,L.path),H=!1;p.has(M)?H=!1:u.has(M)?(u.delete(M),H=!0):z&&z.state!=="idle"&&z.data===void 0?H=a:H=Xf(U,ye({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:n[n.length-1].params},r,{actionResult:T,actionStatus:C,defaultShouldRevalidate:P?!1:a})),H&&R.push({key:M,routeId:L.routeId,path:L.path,matches:f,match:U,controller:new AbortController})}),[w,R]}function Js(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function gv(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function em(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Xf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Jf(e,t,n,r,i){var o;let l;if(e){let u=r[e];Z(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),l=u.children}else l=n;let a=t.filter(u=>!l.some(d=>tm(u,d))),s=Ml(a,i,[e||"_","patch",String(((o=l)==null?void 0:o.length)||"0")],r);l.push(...s)}function tm(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>tm(n,o))}):!1}async function yv(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Z(i,"No route found in manifest");let o={};for(let l in r){let s=i[l]!==void 0&&l!=="hasErrorBoundary";Jr(!s,'Route "'+i.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!By.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,ye({},t(i),{lazy:void 0}))}async function vv(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,l)=>Object.assign(i,{[n[l].route.id]:o}),{})}async function wv(e,t,n,r,i,o,l,a,s,u){let d=o.map(v=>v.route.lazy?yv(v.route,s,a):void 0),c=o.map((v,x)=>{let y=d[x],T=i.some(h=>h.route.id===v.route.id);return ye({},v,{shouldLoad:T,resolve:async h=>(h&&r.method==="GET"&&(v.route.lazy||v.route.loader)&&(T=!0),T?Sv(t,r,v,y,h,u):Promise.resolve({type:ae.data,result:void 0}))})}),p=await e({matches:c,request:r,params:o[0].params,fetcherKey:l,context:u});try{await Promise.all(d)}catch{}return p}async function Sv(e,t,n,r,i,o){let l,a,s=u=>{let d,c=new Promise((x,y)=>d=y);a=()=>d(),t.signal.addEventListener("abort",a);let p=x=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:o},...x!==void 0?[x]:[]),v=(async()=>{try{return{type:"data",result:await(i?i(y=>p(y)):p())}}catch(x){return{type:"error",result:x}}})();return Promise.race([v,c])};try{let u=n.route[e];if(r)if(u){let d,[c]=await Promise.all([s(u).catch(p=>{d=p}),r]);if(d!==void 0)throw d;l=c}else if(await r,u=n.route[e],u)l=await s(u);else if(e==="action"){let d=new URL(t.url),c=d.pathname+d.search;throw rt(405,{method:t.method,pathname:c,routeId:n.route.id})}else return{type:ae.data,result:void 0};else if(u)l=await s(u);else{let d=new URL(t.url),c=d.pathname+d.search;throw rt(404,{pathname:c})}Z(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:ae.error,result:u}}finally{a&&t.signal.removeEventListener("abort",a)}return l}async function xv(e){let{result:t,type:n}=e;if(rm(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:ae.error,error:d}}return n===ae.error?{type:ae.error,error:new Al(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:ae.data,data:u,statusCode:t.status,headers:t.headers}}if(n===ae.error){if(id(t)){var r;if(t.data instanceof Error){var i;return{type:ae.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new Al(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:ae.error,error:t,statusCode:ia(t)?t.status:void 0}}if(Pv(t)){var o,l;return{type:ae.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(id(t)){var a,s;return{type:ae.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:ae.data,data:t}}function kv(e,t,n,r,i,o){let l=e.headers.get("Location");if(Z(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!ic.test(l)){let a=r.slice(0,r.findIndex(s=>s.route.id===n)+1);l=Xs(new URL(t.url),a,i,!0,l,o),e.headers.set("Location",l)}return e}function Zf(e,t,n){if(ic.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=ii(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function gr(e,t,n,r){let i=e.createURL(nm(t)).toString(),o={signal:n};if(r&&jt(r.formMethod)){let{formMethod:l,formEncType:a}=r;o.method=l.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=Zs(r.formData):o.body=r.formData}return new Request(i,o)}function Zs(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function qf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Cv(e,t,n,r,i){let o={},l=null,a,s=!1,u={},d=n&&ft(n[1])?n[1].error:void 0;return e.forEach(c=>{if(!(c.route.id in t))return;let p=c.route.id,v=t[p];if(Z(!Zn(v),"Cannot handle redirect results in processLoaderData"),ft(v)){let x=v.error;d!==void 0&&(x=d,d=void 0),l=l||{};{let y=Gn(e,p);l[y.route.id]==null&&(l[y.route.id]=x)}o[p]=void 0,s||(s=!0,a=ia(v.error)?v.error.status:500),v.headers&&(u[p]=v.headers)}else Pn(v)?(r.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!s&&(a=v.statusCode),v.headers&&(u[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!s&&(a=v.statusCode),v.headers&&(u[p]=v.headers))}),d!==void 0&&n&&(l={[n[0]]:d},o[n[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:u}}function ed(e,t,n,r,i,o,l){let{loaderData:a,errors:s}=Cv(t,n,r,l);return i.forEach(u=>{let{key:d,match:c,controller:p}=u,v=o[d];if(Z(v,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(ft(v)){let x=Gn(e.matches,c==null?void 0:c.route.id);s&&s[x.route.id]||(s=ye({},s,{[x.route.id]:v.error})),e.fetchers.delete(d)}else if(Zn(v))Z(!1,"Unhandled fetcher revalidation redirect");else if(Pn(v))Z(!1,"Unhandled fetcher deferred data");else{let x=vn(v.data);e.fetchers.set(d,x)}}),{loaderData:a,errors:s}}function td(e,t,n,r){let i=ye({},t);for(let o of n){let l=o.route.id;if(t.hasOwnProperty(l)?t[l]!==void 0&&(i[l]=t[l]):e[l]!==void 0&&o.route.loader&&(i[l]=e[l]),r&&r.hasOwnProperty(l))break}return i}function nd(e){return e?ft(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Gn(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function rd(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function rt(e,t){let{pathname:n,routeId:r,method:i,type:o,message:l}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new Al(e||500,a,new Error(s),!0)}function Wo(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Zn(i))return{key:r,result:i}}}function nm(e){let t=typeof e=="string"?Bn(e):e;return lr(ye({},t,{hash:""}))}function Ev(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _v(e){return rm(e.result)&&cv.has(e.result.status)}function Pn(e){return e.type===ae.deferred}function ft(e){return e.type===ae.error}function Zn(e){return(e&&e.type)===ae.redirect}function id(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Pv(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function rm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Tv(e){return uv.has(e.toLowerCase())}function jt(e){return av.has(e.toLowerCase())}async function Rv(e,t,n,r,i){let o=Object.entries(t);for(let l=0;l<o.length;l++){let[a,s]=o[l],u=e.find(p=>(p==null?void 0:p.route.id)===a);if(!u)continue;let d=r.find(p=>p.route.id===u.route.id),c=d!=null&&!em(d,u)&&(i&&i[u.route.id])!==void 0;Pn(s)&&c&&await oc(s,n,!1).then(p=>{p&&(t[a]=p)})}}async function Nv(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:l}=n[r],a=t[i];e.find(u=>(u==null?void 0:u.route.id)===o)&&Pn(a)&&(Z(l,"Expected an AbortController for revalidating fetcher deferred result"),await oc(a,l.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function oc(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ae.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ae.error,error:i}}return{type:ae.data,data:e.deferredData.data}}}function lc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ri(e,t){let n=typeof t=="string"?Bn(t).search:t.search;if(e[e.length-1].route.index&&lc(n||""))return e[e.length-1];let r=Jh(e);return r[r.length-1]}function od(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Ja(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Lv(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function wi(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ov(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function vn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function jv(e,t){try{let n=e.sessionStorage.getItem(qh);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function Dv(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(qh,JSON.stringify(n))}catch(r){Jr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
|
||
* React Router v6.27.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Il.apply(this,arguments)}const oa=N.createContext(null),im=N.createContext(null),cr=N.createContext(null),ac=N.createContext(null),hn=N.createContext({outlet:null,matches:[],isDataRoute:!1}),om=N.createContext(null);function zv(e,t){let{relative:n}=t===void 0?{}:t;go()||Z(!1);let{basename:r,navigator:i}=N.useContext(cr),{hash:o,pathname:l,search:a}=sm(e,{relative:n}),s=l;return r!=="/"&&(s=l==="/"?r:ln([r,l])),i.createHref({pathname:s,search:a,hash:o})}function go(){return N.useContext(ac)!=null}function la(){return go()||Z(!1),N.useContext(ac).location}function lm(e){N.useContext(cr).static||N.useLayoutEffect(e)}function Mv(){let{isDataRoute:e}=N.useContext(hn);return e?Yv():Av()}function Av(){go()||Z(!1);let e=N.useContext(oa),{basename:t,future:n,navigator:r}=N.useContext(cr),{matches:i}=N.useContext(hn),{pathname:o}=la(),l=JSON.stringify(nc(i,n.v7_relativeSplatPath)),a=N.useRef(!1);return lm(()=>{a.current=!0}),N.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=rc(u,JSON.parse(l),o,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:ln([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,l,o,e])}const am=N.createContext(null);function sc(){return N.useContext(am)}function Iv(e){let t=N.useContext(hn).outlet;return t&&N.createElement(am.Provider,{value:e},t)}function $v(){let{matches:e}=N.useContext(hn),t=e[e.length-1];return t?t.params:{}}function sm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=N.useContext(cr),{matches:i}=N.useContext(hn),{pathname:o}=la(),l=JSON.stringify(nc(i,r.v7_relativeSplatPath));return N.useMemo(()=>rc(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function Fv(e,t,n,r){go()||Z(!1);let{navigator:i}=N.useContext(cr),{matches:o}=N.useContext(hn),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let s=l?l.pathnameBase:"/";l&&l.route;let u=la(),d;d=u;let c=d.pathname||"/",p=c;if(s!=="/"){let y=s.replace(/^\//,"").split("/");p="/"+c.replace(/^\//,"").split("/").slice(y.length).join("/")}let v=Qn(e,{pathname:p});return Wv(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:ln([s,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ln([s,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r)}function bv(){let e=Gv(),t=ia(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:i},n):null,null)}const Bv=N.createElement(bv,null);class Uv extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?N.createElement(hn.Provider,{value:this.props.routeContext},N.createElement(om.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Vv(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(oa);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(hn.Provider,{value:t},r)}function Wv(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=l.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);d>=0||Z(!1),l=l.slice(0,Math.min(l.length,d+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<l.length;d++){let c=l[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=d),c.route.id){let{loaderData:p,errors:v}=n,x=c.route.loader&&p[c.route.id]===void 0&&(!v||v[c.route.id]===void 0);if(c.route.lazy||x){s=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((d,c,p)=>{let v,x=!1,y=null,T=null;n&&(v=a&&c.route.id?a[c.route.id]:void 0,y=c.route.errorElement||Bv,s&&(u<0&&p===0?(Xv("route-fallback"),x=!0,T=null):u===p&&(x=!0,T=c.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,p+1)),h=()=>{let g;return v?g=y:x?g=T:c.route.Component?g=N.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=d,N.createElement(Vv,{match:c,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?N.createElement(Uv,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var um=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(um||{}),$l=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($l||{});function Hv(e){let t=N.useContext(oa);return t||Z(!1),t}function Kv(e){let t=N.useContext(im);return t||Z(!1),t}function Qv(e){let t=N.useContext(hn);return t||Z(!1),t}function cm(e){let t=Qv(),n=t.matches[t.matches.length-1];return n.route.id||Z(!1),n.route.id}function Gv(){var e;let t=N.useContext(om),n=Kv($l.UseRouteError),r=cm($l.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Yv(){let{router:e}=Hv(um.UseNavigateStable),t=cm($l.UseNavigateStable),n=N.useRef(!1);return lm(()=>{n.current=!0}),N.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Il({fromRouteId:t},o)))},[e,t])}const ld={};function Xv(e,t,n){ld[e]||(ld[e]=!0)}function Jv(e){return Iv(e.context)}function Zv(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Le.Pop,navigator:o,static:l=!1,future:a}=e;go()&&Z(!1);let s=t.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:s,navigator:o,static:l,future:Il({v7_relativeSplatPath:!1},a)}),[s,a,o,l]);typeof r=="string"&&(r=Bn(r));let{pathname:d="/",search:c="",hash:p="",state:v=null,key:x="default"}=r,y=N.useMemo(()=>{let T=ii(d,s);return T==null?null:{location:{pathname:T,search:c,hash:p,state:v,key:x},navigationType:i}},[s,d,c,p,v,x,i]);return y==null?null:N.createElement(cr.Provider,{value:u},N.createElement(ac.Provider,{children:n,value:y}))}new Promise(()=>{});function qv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:N.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
|
||
* React Router DOM v6.27.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oo.apply(this,arguments)}function e1(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function t1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function n1(e,t){return e.button===0&&(!t||t==="_self")&&!t1(e)}const r1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],i1="6";try{window.__reactRouterVersion=i1}catch{}function o1(e,t){return hv({basename:void 0,future:oo({},void 0,{v7_prependBasename:!0}),history:$y({window:void 0}),hydrationData:l1(),routes:e,mapRouteProperties:qv,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function l1(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=oo({},t,{errors:a1(t.errors)})),t}function a1(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Al(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let l=new o(i.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const s1=N.createContext({isTransitioning:!1}),u1=N.createContext(new Map),c1="startTransition",ad=rs[c1],f1="flushSync",sd=Iy[f1];function d1(e){ad?ad(e):e()}function Si(e){sd?sd(e):e()}class p1{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function h1(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=N.useState(n.state),[l,a]=N.useState(),[s,u]=N.useState({isTransitioning:!1}),[d,c]=N.useState(),[p,v]=N.useState(),[x,y]=N.useState(),T=N.useRef(new Map),{v7_startTransition:m}=r||{},h=N.useCallback(L=>{m?d1(L):L()},[m]),g=N.useCallback((L,M)=>{let{deletedFetchers:f,flushSync:z,viewTransitionOpts:U}=M;f.forEach(X=>T.current.delete(X)),L.fetchers.forEach((X,ze)=>{X.data!==void 0&&T.current.set(ze,X.data)});let H=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!U||H){z?Si(()=>o(L)):h(()=>o(L));return}if(z){Si(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:U.currentLocation,nextLocation:U.nextLocation})});let X=n.window.document.startViewTransition(()=>{Si(()=>o(L))});X.finished.finally(()=>{Si(()=>{c(void 0),v(void 0),a(void 0),u({isTransitioning:!1})})}),Si(()=>v(X));return}p?(d&&d.resolve(),p.skipTransition(),y({state:L,currentLocation:U.currentLocation,nextLocation:U.nextLocation})):(a(L),u({isTransitioning:!0,flushSync:!1,currentLocation:U.currentLocation,nextLocation:U.nextLocation}))},[n.window,p,d,T,h]);N.useLayoutEffect(()=>n.subscribe(g),[n,g]),N.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new p1)},[s]),N.useEffect(()=>{if(d&&l&&n.window){let L=l,M=d.promise,f=n.window.document.startViewTransition(async()=>{h(()=>o(L)),await M});f.finished.finally(()=>{c(void 0),v(void 0),a(void 0),u({isTransitioning:!1})}),v(f)}},[h,l,d,n.window]),N.useEffect(()=>{d&&l&&i.location.key===l.location.key&&d.resolve()},[d,p,i.location,l]),N.useEffect(()=>{!s.isTransitioning&&x&&(a(x.state),u({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),y(void 0))},[s.isTransitioning,x]),N.useEffect(()=>{},[]);let C=N.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:L=>n.navigate(L),push:(L,M,f)=>n.navigate(L,{state:M,preventScrollReset:f==null?void 0:f.preventScrollReset}),replace:(L,M,f)=>n.navigate(L,{replace:!0,state:M,preventScrollReset:f==null?void 0:f.preventScrollReset})}),[n]),P=n.basename||"/",w=N.useMemo(()=>({router:n,navigator:C,static:!1,basename:P}),[n,C,P]),R=N.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return N.createElement(N.Fragment,null,N.createElement(oa.Provider,{value:w},N.createElement(im.Provider,{value:i},N.createElement(u1.Provider,{value:T.current},N.createElement(s1.Provider,{value:s},N.createElement(Zv,{basename:P,location:i.location,navigationType:i.historyAction,navigator:C,future:R},i.initialized||n.future.v7_partialHydration?N.createElement(m1,{routes:n.routes,future:n.future,state:i}):t))))),null)}const m1=N.memo(g1);function g1(e){let{routes:t,future:n,state:r}=e;return Fv(t,void 0,r,n)}const y1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,an=N.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:s,to:u,preventScrollReset:d,viewTransition:c}=t,p=e1(t,r1),{basename:v}=N.useContext(cr),x,y=!1;if(typeof u=="string"&&v1.test(u)&&(x=u,y1))try{let g=new URL(window.location.href),C=u.startsWith("//")?new URL(g.protocol+u):new URL(u),P=ii(C.pathname,v);C.origin===g.origin&&P!=null?u=P+C.search+C.hash:y=!0}catch{}let T=zv(u,{relative:i}),m=w1(u,{replace:l,state:a,target:s,preventScrollReset:d,relative:i,viewTransition:c});function h(g){r&&r(g),g.defaultPrevented||m(g)}return N.createElement("a",oo({},p,{href:x||T,onClick:y||o?r:h,ref:n,target:s}))});var ud;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ud||(ud={}));var cd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cd||(cd={}));function w1(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,viewTransition:a}=t===void 0?{}:t,s=Mv(),u=la(),d=sm(e,{relative:l});return N.useCallback(c=>{if(n1(c,n)){c.preventDefault();let p=r!==void 0?r:lr(u)===lr(d);s(e,{replace:p,state:i,preventScrollReset:o,relative:l,viewTransition:a})}},[u,s,d,r,i,n,e,o,l,a])}const S1="_container_xopze_1",x1="_nav_xopze_8",k1="_link_xopze_19",xn={container:S1,nav:x1,link:k1,"nav-heading":"_nav-heading_xopze_25","cart-icon-container":"_cart-icon-container_xopze_29","cart-icon-circle":"_cart-icon-circle_xopze_33"};var fm={exports:{}},C1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",E1=C1,_1=E1;function dm(){}function pm(){}pm.resetWarningCache=dm;var P1=function(){function e(r,i,o,l,a,s){if(s!==_1){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:pm,resetWarningCache:dm};return n.PropTypes=n,n};fm.exports=P1();var T1=fm.exports;const De=lu(T1);function tn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function hm(e){if(N.isValidElement(e)||!tn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=hm(e[n])}),t}function mt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return tn(e)&&tn(t)&&Object.keys(t).forEach(i=>{N.isValidElement(t[i])?r[i]=t[i]:tn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&tn(e[i])?r[i]=mt(e[i],t[i],n):n.clone?r[i]=tn(t[i])?hm(t[i]):t[i]:r[i]=t[i]}),r}function ar(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Zr(e){if(typeof e!="string")throw new Error(ar(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qs(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],l=t[i];if(!l)n[i]=o||{};else if(!o)n[i]=l;else{n[i]={...l};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const s=a;n[i][s]=qs(o[s],l[s])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function R1(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let l="",a=!0;for(let s=0;s<o.length;s+=1){const u=o[s];u&&(l+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(l+=" "+n[u]))}r[i]=l}return r}const fd=e=>e,N1=()=>{let e=fd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=fd}}},L1=N1(),O1={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function mm(e,t,n="Mui"){const r=O1[t];return r?`${n}-${r}`:`${L1.generate(e)}-${t}`}function j1(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=mm(e,i,n)}),r}function D1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function gm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=gm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function z1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=gm(e))&&(r&&(r+=" "),r+=t);return r}function bi(e,t){return t?mt(e,t,{clone:!1}):e}function M1(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var l,a;const o=/min-width:\s*([0-9.]+)/;return+(((l=r.match(o))==null?void 0:l[1])||0)-+(((a=i.match(o))==null?void 0:a[1])||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},{...t}):t}function A1(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function I1(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function $1(e){const t=(o,l)=>o.replace("@media",l?`@container ${l}`:"@container");function n(o,l){o.up=(...a)=>t(e.breakpoints.up(...a),l),o.down=(...a)=>t(e.breakpoints.down(...a),l),o.between=(...a)=>t(e.breakpoints.between(...a),l),o.only=(...a)=>t(e.breakpoints.only(...a),l),o.not=(...a)=>{const s=t(e.breakpoints.not(...a),l);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const aa={xs:0,sm:600,md:900,lg:1200,xl:1536},dd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${aa[e]}px)`},F1={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:aa[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function dn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||dd;return t.reduce((l,a,s)=>(l[o.up(o.keys[s])]=n(t[s]),l),{})}if(typeof t=="object"){const o=r.breakpoints||dd;return Object.keys(t).reduce((l,a)=>{if(A1(o.keys,a)){const s=I1(r.containerQueries?r:F1,a);s&&(l[s]=n(t[a],a))}else if(Object.keys(o.values||aa).includes(a)){const s=o.up(a);l[s]=n(t[a],a)}else{const s=a;l[s]=t[s]}return l},{})}return n(t)}function b1(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function B1(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function sa(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Fl(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=sa(e,n)||r,t&&(i=t(i,r,e)),i}function Re(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=l=>{if(l[t]==null)return null;const a=l[t],s=l.theme,u=sa(s,r)||{};return dn(l,a,c=>{let p=Fl(u,i,c);return c===p&&typeof c=="string"&&(p=Fl(u,i,`${t}${c==="default"?"":Zr(c)}`,c)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function U1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const V1={m:"margin",p:"padding"},W1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},H1=U1(e=>{if(e.length>2)if(pd[e])e=pd[e];else return[e];const[t,n]=e.split(""),r=V1[t],i=W1[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),uc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...uc,...cc];function yo(e,t,n,r){const i=sa(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const l=Math.abs(o),a=i[l];return o>=0?a:typeof a=="number"?-a:`-${a}`}:typeof i=="function"?i:()=>{}}function fc(e){return yo(e,"spacing",8)}function vo(e,t){return typeof t=="string"||t==null?t:e(t)}function K1(e,t){return n=>e.reduce((r,i)=>(r[i]=vo(t,n),r),{})}function Q1(e,t,n,r){if(!t.includes(n))return null;const i=H1(n),o=K1(i,r),l=e[n];return dn(e,l,o)}function ym(e,t){const n=fc(e.theme);return Object.keys(e).map(r=>Q1(e,t,r,n)).reduce(bi,{})}function Ee(e){return ym(e,uc)}Ee.propTypes={};Ee.filterProps=uc;function _e(e){return ym(e,cc)}_e.propTypes={};_e.filterProps=cc;function ua(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?bi(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function kt(e){return typeof e!="number"?e:`${e}px solid`}function Tt(e,t){return Re({prop:e,themeKey:"borders",transform:t})}const G1=Tt("border",kt),Y1=Tt("borderTop",kt),X1=Tt("borderRight",kt),J1=Tt("borderBottom",kt),Z1=Tt("borderLeft",kt),q1=Tt("borderColor"),ew=Tt("borderTopColor"),tw=Tt("borderRightColor"),nw=Tt("borderBottomColor"),rw=Tt("borderLeftColor"),iw=Tt("outline",kt),ow=Tt("outlineColor"),ca=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yo(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:vo(t,r)});return dn(e,e.borderRadius,n)}return null};ca.propTypes={};ca.filterProps=["borderRadius"];ua(G1,Y1,X1,J1,Z1,q1,ew,tw,nw,rw,ca,iw,ow);const fa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yo(e.theme,"spacing",8),n=r=>({gap:vo(t,r)});return dn(e,e.gap,n)}return null};fa.propTypes={};fa.filterProps=["gap"];const da=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yo(e.theme,"spacing",8),n=r=>({columnGap:vo(t,r)});return dn(e,e.columnGap,n)}return null};da.propTypes={};da.filterProps=["columnGap"];const pa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yo(e.theme,"spacing",8),n=r=>({rowGap:vo(t,r)});return dn(e,e.rowGap,n)}return null};pa.propTypes={};pa.filterProps=["rowGap"];const lw=Re({prop:"gridColumn"}),aw=Re({prop:"gridRow"}),sw=Re({prop:"gridAutoFlow"}),uw=Re({prop:"gridAutoColumns"}),cw=Re({prop:"gridAutoRows"}),fw=Re({prop:"gridTemplateColumns"}),dw=Re({prop:"gridTemplateRows"}),pw=Re({prop:"gridTemplateAreas"}),hw=Re({prop:"gridArea"});ua(fa,da,pa,lw,aw,sw,uw,cw,fw,dw,pw,hw);function Br(e,t){return t==="grey"?t:e}const mw=Re({prop:"color",themeKey:"palette",transform:Br}),gw=Re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Br}),yw=Re({prop:"backgroundColor",themeKey:"palette",transform:Br});ua(mw,gw,yw);function dt(e){return e<=1&&e!==0?`${e*100}%`:e}const vw=Re({prop:"width",transform:dt}),dc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,o,l,a,s;const r=((l=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:l[n])||aa[n];return r?((s=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:dt(n)}};return dn(e,e.maxWidth,t)}return null};dc.filterProps=["maxWidth"];const ww=Re({prop:"minWidth",transform:dt}),Sw=Re({prop:"height",transform:dt}),xw=Re({prop:"maxHeight",transform:dt}),kw=Re({prop:"minHeight",transform:dt});Re({prop:"size",cssProperty:"width",transform:dt});Re({prop:"size",cssProperty:"height",transform:dt});const Cw=Re({prop:"boxSizing"});ua(vw,dc,ww,Sw,xw,kw,Cw);const ha={border:{themeKey:"borders",transform:kt},borderTop:{themeKey:"borders",transform:kt},borderRight:{themeKey:"borders",transform:kt},borderBottom:{themeKey:"borders",transform:kt},borderLeft:{themeKey:"borders",transform:kt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ca},color:{themeKey:"palette",transform:Br},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Br},backgroundColor:{themeKey:"palette",transform:Br},p:{style:_e},pt:{style:_e},pr:{style:_e},pb:{style:_e},pl:{style:_e},px:{style:_e},py:{style:_e},padding:{style:_e},paddingTop:{style:_e},paddingRight:{style:_e},paddingBottom:{style:_e},paddingLeft:{style:_e},paddingX:{style:_e},paddingY:{style:_e},paddingInline:{style:_e},paddingInlineStart:{style:_e},paddingInlineEnd:{style:_e},paddingBlock:{style:_e},paddingBlockStart:{style:_e},paddingBlockEnd:{style:_e},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fa},rowGap:{style:pa},columnGap:{style:da},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dt},maxWidth:{style:dc},minWidth:{transform:dt},height:{transform:dt},maxHeight:{transform:dt},minHeight:{transform:dt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ew(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function _w(e,t){return typeof e=="function"?e(t):e}function Pw(){function e(n,r,i,o){const l={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:d,style:c}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=sa(i,u)||{};return c?c(l):dn(l,r,x=>{let y=Fl(p,d,x);return x===y&&typeof x=="string"&&(y=Fl(p,d,`${n}${x==="default"?"":Zr(x)}`,x)),s===!1?y:{[s]:y}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??ha;function l(a){let s=a;if(typeof a=="function")s=a(i);else if(typeof a!="object")return a;if(!s)return null;const u=b1(i.breakpoints),d=Object.keys(u);let c=u;return Object.keys(s).forEach(p=>{const v=_w(s[p],i);if(v!=null)if(typeof v=="object")if(o[p])c=bi(c,e(p,v,i,o));else{const x=dn({theme:i},v,y=>({[p]:y}));Ew(x,v)?c[p]=t({sx:v,theme:i}):c=bi(c,x)}else c=bi(c,e(p,v,i,o))}),M1(i,B1(d,c))}return Array.isArray(r)?r.map(l):l(r)}return t}const qr=Pw();qr.filterProps=["sx"];function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(null,arguments)}function vm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Tw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Rw=vm(function(e){return Tw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Nw=!1;function Lw(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ow(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jw=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!Nw:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ow(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Lw(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Qe="-ms-",bl="-moz-",ie="-webkit-",wm="comm",pc="rule",hc="decl",Dw="@import",Sm="@keyframes",zw="@layer",Mw=Math.abs,ma=String.fromCharCode,Aw=Object.assign;function Iw(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function xm(e){return e.trim()}function $w(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,n){return e.replace(t,n)}function tu(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function lo(e,t,n){return e.slice(t,n)}function Vt(e){return e.length}function mc(e){return e.length}function Ho(e,t){return t.push(e),e}function Fw(e,t){return e.map(t).join("")}var ga=1,ei=1,km=0,ut=0,Oe=0,oi="";function ya(e,t,n,r,i,o,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ga,column:ei,length:l,return:""}}function xi(e,t){return Aw(ya("",null,null,"",null,null,0),e,{length:-e.length},t)}function bw(){return Oe}function Bw(){return Oe=ut>0?Ue(oi,--ut):0,ei--,Oe===10&&(ei=1,ga--),Oe}function gt(){return Oe=ut<km?Ue(oi,ut++):0,ei++,Oe===10&&(ei=1,ga++),Oe}function Gt(){return Ue(oi,ut)}function al(){return ut}function wo(e,t){return lo(oi,e,t)}function ao(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cm(e){return ga=ei=1,km=Vt(oi=e),ut=0,[]}function Em(e){return oi="",e}function sl(e){return xm(wo(ut-1,nu(e===91?e+2:e===40?e+1:e)))}function Uw(e){for(;(Oe=Gt())&&Oe<33;)gt();return ao(e)>2||ao(Oe)>3?"":" "}function Vw(e,t){for(;--t&>()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return wo(e,al()+(t<6&&Gt()==32&>()==32))}function nu(e){for(;gt();)switch(Oe){case e:return ut;case 34:case 39:e!==34&&e!==39&&nu(Oe);break;case 40:e===41&&nu(e);break;case 92:gt();break}return ut}function Ww(e,t){for(;gt()&&e+Oe!==57;)if(e+Oe===84&&Gt()===47)break;return"/*"+wo(t,ut-1)+"*"+ma(e===47?e:gt())}function Hw(e){for(;!ao(Gt());)gt();return wo(e,ut)}function Kw(e){return Em(ul("",null,null,null,[""],e=Cm(e),0,[0],e))}function ul(e,t,n,r,i,o,l,a,s){for(var u=0,d=0,c=l,p=0,v=0,x=0,y=1,T=1,m=1,h=0,g="",C=i,P=o,w=r,R=g;T;)switch(x=h,h=gt()){case 40:if(x!=108&&Ue(R,c-1)==58){tu(R+=oe(sl(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:R+=sl(h);break;case 9:case 10:case 13:case 32:R+=Uw(x);break;case 92:R+=Vw(al()-1,7);continue;case 47:switch(Gt()){case 42:case 47:Ho(Qw(Ww(gt(),al()),t,n),s);break;default:R+="/"}break;case 123*y:a[u++]=Vt(R)*m;case 125*y:case 59:case 0:switch(h){case 0:case 125:T=0;case 59+d:m==-1&&(R=oe(R,/\f/g,"")),v>0&&Vt(R)-c&&Ho(v>32?md(R+";",r,n,c-1):md(oe(R," ","")+";",r,n,c-2),s);break;case 59:R+=";";default:if(Ho(w=hd(R,t,n,u,d,i,a,g,C=[],P=[],c),o),h===123)if(d===0)ul(R,t,w,w,C,o,c,a,P);else switch(p===99&&Ue(R,3)===110?100:p){case 100:case 108:case 109:case 115:ul(e,w,w,r&&Ho(hd(e,w,w,0,0,i,a,g,i,C=[],c),P),i,P,c,a,r?C:P);break;default:ul(R,w,w,w,[""],P,0,a,P)}}u=d=v=0,y=m=1,g=R="",c=l;break;case 58:c=1+Vt(R),v=x;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&Bw()==125)continue}switch(R+=ma(h),h*y){case 38:m=d>0?1:(R+="\f",-1);break;case 44:a[u++]=(Vt(R)-1)*m,m=1;break;case 64:Gt()===45&&(R+=sl(gt())),p=Gt(),d=c=Vt(g=R+=Hw(al())),h++;break;case 45:x===45&&Vt(R)==2&&(y=0)}}return o}function hd(e,t,n,r,i,o,l,a,s,u,d){for(var c=i-1,p=i===0?o:[""],v=mc(p),x=0,y=0,T=0;x<r;++x)for(var m=0,h=lo(e,c+1,c=Mw(y=l[x])),g=e;m<v;++m)(g=xm(y>0?p[m]+" "+h:oe(h,/&\f/g,p[m])))&&(s[T++]=g);return ya(e,t,n,i===0?pc:a,s,u,d)}function Qw(e,t,n){return ya(e,t,n,wm,ma(bw()),lo(e,2,-2),0)}function md(e,t,n,r){return ya(e,t,n,hc,lo(e,0,r),lo(e,r+1,-1),r)}function Ur(e,t){for(var n="",r=mc(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Gw(e,t,n,r){switch(e.type){case zw:if(e.children.length)break;case Dw:case hc:return e.return=e.return||e.value;case wm:return"";case Sm:return e.return=e.value+"{"+Ur(e.children,r)+"}";case pc:e.value=e.props.join(",")}return Vt(n=Ur(e.children,r))?e.return=e.value+"{"+n+"}":""}function Yw(e){var t=mc(e);return function(n,r,i,o){for(var l="",a=0;a<t;a++)l+=e[a](n,r,i,o)||"";return l}}function Xw(e){return function(t){t.root||(t=t.return)&&e(t)}}var Jw=function(t,n,r){for(var i=0,o=0;i=o,o=Gt(),i===38&&o===12&&(n[r]=1),!ao(o);)gt();return wo(t,ut)},Zw=function(t,n){var r=-1,i=44;do switch(ao(i)){case 0:i===38&&Gt()===12&&(n[r]=1),t[r]+=Jw(ut-1,n,r);break;case 2:t[r]+=sl(i);break;case 4:if(i===44){t[++r]=Gt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ma(i)}while(i=gt());return t},qw=function(t,n){return Em(Zw(Cm(t),n))},gd=new WeakMap,eS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!gd.get(r))&&!i){gd.set(t,!0);for(var o=[],l=qw(n,o),a=r.props,s=0,u=0;s<l.length;s++)for(var d=0;d<a.length;d++,u++)t.props[u]=o[s]?l[s].replace(/&\f/g,a[d]):a[d]+" "+l[s]}}},tS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function _m(e,t){switch(Iw(e,t)){case 5103:return ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+bl+e+Qe+e+e;case 6828:case 4268:return ie+e+Qe+e+e;case 6165:return ie+e+Qe+"flex-"+e+e;case 5187:return ie+e+oe(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return ie+e+Qe+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ie+e+Qe+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ie+e+Qe+oe(e,"shrink","negative")+e;case 5292:return ie+e+Qe+oe(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+oe(e,"-grow","")+ie+e+Qe+oe(e,"grow","positive")+e;case 4554:return ie+oe(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+Qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vt(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+bl+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tu(e,"stretch")?_m(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,Vt(e)-3-(~tu(e,"!important")&&10))){case 107:return oe(e,":",":"+ie)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Ue(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Qe+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return ie+e+Qe+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+Qe+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+Qe+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+Qe+e+e}return e}var nS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case hc:t.return=_m(t.value,t.length);break;case Sm:return Ur([xi(t,{value:oe(t.value,"@","@"+ie)})],i);case pc:if(t.length)return Fw(t.props,function(o){switch($w(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ur([xi(t,{props:[oe(o,/:(read-\w+)/,":"+bl+"$1")]})],i);case"::placeholder":return Ur([xi(t,{props:[oe(o,/:(plac\w+)/,":"+ie+"input-$1")]}),xi(t,{props:[oe(o,/:(plac\w+)/,":"+bl+"$1")]}),xi(t,{props:[oe(o,/:(plac\w+)/,Qe+"input-$1")]})],i)}return""})}},rS=[nS],iS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var T=y.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||rS,o={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var T=y.getAttribute("data-emotion").split(" "),m=1;m<T.length;m++)o[T[m]]=!0;a.push(y)});var s,u=[eS,tS];{var d,c=[Gw,Xw(function(y){d.insert(y)})],p=Yw(u.concat(i,c)),v=function(T){return Ur(Kw(T),p)};s=function(T,m,h,g){d=h,v(T?T+"{"+m.styles+"}":m.styles),g&&(x.inserted[m.name]=!0)}}var x={key:n,sheet:new jw({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return x.sheet.hydrate(a),x},oS=!0;function lS(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Pm=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||oS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},aS=function(t,n,r){Pm(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function sS(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var uS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},cS=!1,fS=/[A-Z]|^ms/g,dS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tm=function(t){return t.charCodeAt(1)===45},yd=function(t){return t!=null&&typeof t!="boolean"},Za=vm(function(e){return Tm(e)?e:e.replace(fS,"-$&").toLowerCase()}),vd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dS,function(r,i,o){return Wt={name:i,styles:o,next:Wt},i})}return uS[t]!==1&&!Tm(t)&&typeof n=="number"&&n!==0?n+"px":n},pS="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function so(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Wt={name:i.name,styles:i.styles,next:Wt},i.name;var o=n;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)Wt={name:l.name,styles:l.styles,next:Wt},l=l.next;var a=o.styles+";";return a}return hS(e,t,n)}case"function":{if(e!==void 0){var s=Wt,u=n(e);return Wt=s,so(e,t,u)}break}}var d=n;if(t==null)return d;var c=t[d];return c!==void 0?c:d}function hS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=so(e,t,n[i])+";";else for(var o in n){var l=n[o];if(typeof l!="object"){var a=l;t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":yd(a)&&(r+=Za(o)+":"+vd(o,a)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&cS)throw new Error(pS);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var s=0;s<l.length;s++)yd(l[s])&&(r+=Za(o)+":"+vd(o,l[s])+";");else{var u=so(e,t,l);switch(o){case"animation":case"animationName":{r+=Za(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}}return r}var wd=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function Rm(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Wt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=so(n,t,o);else{var l=o;i+=l[0]}for(var a=1;a<e.length;a++)if(i+=so(n,t,e[a]),r){var s=o;i+=s[a]}wd.lastIndex=0;for(var u="",d;(d=wd.exec(i))!==null;)u+="-"+d[1];var c=sS(i)+u;return{name:c,styles:i,next:Wt}}var mS=function(t){return t()},gS=rs.useInsertionEffect?rs.useInsertionEffect:!1,yS=gS||mS,Nm=N.createContext(typeof HTMLElement<"u"?iS({key:"css"}):null);Nm.Provider;var vS=function(t){return N.forwardRef(function(n,r){var i=N.useContext(Nm);return t(n,i,r)})},wS=N.createContext({}),SS=Rw,xS=function(t){return t!=="theme"},Sd=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?SS:xS},xd=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(l){return t.__emotion_forwardProp(l)&&o(l)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},kS=!1,CS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Pm(n,r,i),yS(function(){return aS(n,r,i)}),null},ES=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,l;n!==void 0&&(o=n.label,l=n.target);var a=xd(t,n,r),s=a||Sd(i),u=!s("as");return function(){var d=arguments,c=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&c.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)c.push.apply(c,d);else{c.push(d[0][0]);for(var p=d.length,v=1;v<p;v++)c.push(d[v],d[0][v])}var x=vS(function(y,T,m){var h=u&&y.as||i,g="",C=[],P=y;if(y.theme==null){P={};for(var w in y)P[w]=y[w];P.theme=N.useContext(wS)}typeof y.className=="string"?g=lS(T.registered,C,y.className):y.className!=null&&(g=y.className+" ");var R=Rm(c.concat(C),T.registered,P);g+=T.key+"-"+R.name,l!==void 0&&(g+=" "+l);var L=u&&a===void 0?Sd(h):s,M={};for(var f in y)u&&f==="as"||L(f)&&(M[f]=y[f]);return M.className=g,m&&(M.ref=m),N.createElement(N.Fragment,null,N.createElement(CS,{cache:T,serialized:R,isStringTag:typeof h=="string"}),N.createElement(h,M))});return x.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=i,x.__emotion_styles=c,x.__emotion_forwardProp=a,Object.defineProperty(x,"toString",{value:function(){return l===void 0&&kS?"NO_COMPONENT_SELECTOR":"."+l}}),x.withComponent=function(y,T){return e(y,eu({},n,T,{shouldForwardProp:xd(x,T,!0)})).apply(void 0,c)},x}},_S=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ru=ES.bind();_S.forEach(function(e){ru[e]=ru(e)});/**
|
||
* @mui/styled-engine v6.1.8
|
||
*
|
||
* @license MIT
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function PS(e,t){return ru(e,t)}function TS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const kd=[];function Cd(e){return kd[0]=e,Rm(kd)}const RS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function NS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=RS(t),l=Object.keys(o);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function s(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,v){const x=l.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:v)-r/100}${n})`}function d(p){return l.indexOf(p)+1<l.length?u(p,l[l.indexOf(p)+1]):a(p)}function c(p){const v=l.indexOf(p);return v===0?a(l[1]):v===l.length-1?s(l[v]):u(p,l[l.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:l,values:o,up:a,down:s,between:u,only:d,not:c,unit:n,...i}}const LS={borderRadius:4};function Lm(e=8,t=fc({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const l=t(o);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function OS(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function Om(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...l}=e,a=NS(n),s=Lm(i);let u=mt({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:s,shape:{...LS,...o}},l);return u=$1(u),u.applyStyles=OS,u=t.reduce((d,c)=>mt(d,c),u),u.unstable_sxConfig={...ha,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(c){return qr({sx:c,theme:this})},u}function jm(e){const{variants:t,...n}=e,r={variants:t,style:Cd(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Cd(i.style))}),r}const jS=Om();function qa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function DS(e){return e?(t,n)=>n[e]:null}function zS(e,t,n){e.theme=IS(e.theme)?n:e.theme[t]||e.theme}function cl(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>cl(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...o}=n;r=o}return Dm(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Dm(e,t,n=[]){var i;let r;e:for(let o=0;o<t.length;o+=1){const l=t[o];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const a in l.props)if(e[a]!==l.props[a]&&((i=e.ownerState)==null?void 0:i[a])!==l.props[a])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function MS(e={}){const{themeId:t,defaultTheme:n=jS,rootShouldForwardProp:r=qa,slotShouldForwardProp:i=qa}=e;function o(a){zS(a,t,n)}return(a,s={})=>{TS(a,P=>P.filter(w=>w!==qr));const{name:u,slot:d,skipVariantsResolver:c,skipSx:p,overridesResolver:v=DS(FS(d)),...x}=s,y=c!==void 0?c:d&&d!=="Root"&&d!=="root"||!1,T=p||!1;let m=qa;d==="Root"||d==="root"?m=r:d?m=i:$S(a)&&(m=void 0);const h=PS(a,{shouldForwardProp:m,label:AS(),...x}),g=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(R){return cl(R,P)};if(tn(P)){const w=jm(P);return w.variants?function(L){return cl(L,w)}:w.style}return P},C=(...P)=>{const w=[],R=P.map(g),L=[];if(w.push(o),u&&v&&L.push(function(U){var nt,me;const X=(me=(nt=U.theme.components)==null?void 0:nt[u])==null?void 0:me.styleOverrides;if(!X)return null;const ze={};for(const A in X)ze[A]=cl(U,X[A]);return v(U,ze)}),u&&!y&&L.push(function(U){var ze,nt;const H=U.theme,X=(nt=(ze=H==null?void 0:H.components)==null?void 0:ze[u])==null?void 0:nt.variants;return X?Dm(U,X):null}),T||L.push(qr),Array.isArray(R[0])){const z=R.shift(),U=new Array(w.length).fill(""),H=new Array(L.length).fill("");let X;X=[...U,...z,...H],X.raw=[...U,...z.raw,...H],w.unshift(X)}const M=[...w,...R,...L],f=h(...M);return a.muiName&&(f.muiName=a.muiName),f};return h.withConfig&&(C.withConfig=h.withConfig),C}}function AS(e,t){return void 0}function IS(e){for(const t in e)return!1;return!0}function $S(e){return typeof e=="string"&&e.charCodeAt(0)>96}function FS(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function gc(e,t=0,n=1){return D1(e,t,n)}function bS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function In(e){if(e.type)return e;if(e.charAt(0)==="#")return In(bS(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ar(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(ar(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const BS=e=>{const t=In(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ni=(e,t)=>{try{return BS(e)}catch{return e}};function va(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function zm(e){e=In(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),l=(u,d=(u+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const s=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",s.push(t[3])),va({type:a,values:s})}function iu(e){e=In(e);let t=e.type==="hsl"||e.type==="hsla"?In(zm(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function US(e,t){const n=iu(e),r=iu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function VS(e,t){return e=In(e),t=gc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,va(e)}function Ko(e,t,n){try{return VS(e,t)}catch{return e}}function yc(e,t){if(e=In(e),t=gc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return va(e)}function se(e,t,n){try{return yc(e,t)}catch{return e}}function vc(e,t){if(e=In(e),t=gc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return va(e)}function ue(e,t,n){try{return vc(e,t)}catch{return e}}function WS(e,t=.15){return iu(e)>.5?yc(e,t):vc(e,t)}function Qo(e,t,n){try{return WS(e,t)}catch{return e}}const HS=N.createContext(void 0);function KS(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?qs(i.defaultProps,r):!i.styleOverrides&&!i.variants?qs(i,r):r}function QS({props:e,name:t}){const n=N.useContext(HS);return KS({props:e,name:t,theme:{components:n}})}const Ed={theme:void 0};function GS(e){let t,n;return function(i){let o=t;return(o===void 0||i.theme!==n)&&(Ed.theme=i.theme,o=jm(e(Ed)),t=o,n=i.theme),o}}function YS(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const _d=(e,t,n,r=[])=>{let i=e;t.forEach((o,l)=>{l===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},XS=(e,t,n)=>{function r(i,o=[],l=[]){Object.entries(i).forEach(([a,s])=>{(!n||n&&!n([...o,a]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?r(s,[...o,a],Array.isArray(s)?[...l,a]:l):t([...o,a],s,l))})}r(e)},JS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function es(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},l={};return XS(e,(a,s,u)=>{if((typeof s=="string"||typeof s=="number")&&(!r||!r(a,s))){const d=`--${n?`${n}-`:""}${a.join("-")}`,c=JS(a,s);Object.assign(i,{[d]:c}),_d(o,a,`var(${d})`,u),_d(l,a,`var(${d}, ${c})`,u)}},a=>a[0]==="vars"),{css:i,vars:o,varsWithDefaults:l}}function ZS(e,t={}){const{getSelector:n=T,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:l,defaultColorScheme:a="light",...s}=e,{vars:u,css:d,varsWithDefaults:c}=es(s,t);let p=c;const v={},{[a]:x,...y}=o;if(Object.entries(y||{}).forEach(([g,C])=>{const{vars:P,css:w,varsWithDefaults:R}=es(C,t);p=mt(p,R),v[g]={css:w,vars:P}}),x){const{css:g,vars:C,varsWithDefaults:P}=es(x,t);p=mt(p,P),v[a]={css:g,vars:C}}function T(g,C){var w,R;let P=i;if(i==="class"&&(P=".%s"),i==="data"&&(P="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(P=`[${i}="%s"]`),g){if(P==="media")return e.defaultColorScheme===g?":root":{[`@media (prefers-color-scheme: ${((R=(w=o[g])==null?void 0:w.palette)==null?void 0:R.mode)||g})`]:{":root":C}};if(P)return e.defaultColorScheme===g?`:root, ${P.replace("%s",String(g))}`:P.replace("%s",String(g))}return":root"}return{vars:p,generateThemeVars:()=>{let g={...u};return Object.entries(v).forEach(([,{vars:C}])=>{g=mt(g,C)}),g},generateStyleSheets:()=>{var L,M;const g=[],C=e.defaultColorScheme||"light";function P(f,z){Object.keys(z).length&&g.push(typeof f=="string"?{[f]:{...z}}:f)}P(n(void 0,{...d}),d);const{[C]:w,...R}=v;if(w){const{css:f}=w,z=(M=(L=o[C])==null?void 0:L.palette)==null?void 0:M.mode,U=!r&&z?{colorScheme:z,...f}:{...f};P(n(C,{...U}),U)}return Object.entries(R).forEach(([f,{css:z}])=>{var X,ze;const U=(ze=(X=o[f])==null?void 0:X.palette)==null?void 0:ze.mode,H=!r&&U?{colorScheme:U,...z}:{...z};P(n(f,{...H}),H)}),g}}}function qS(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const uo={black:"#000",white:"#fff"},ex={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},yr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},vr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ki={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Sr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Mm(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:uo.white,default:uo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const tx=Mm();function Am(){return{text:{primary:uo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:uo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Pd=Am();function Td(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=vc(e.main,i):t==="dark"&&(e.dark=yc(e.main,o)))}function nx(e="light"){return e==="dark"?{main:wr[200],light:wr[50],dark:wr[400]}:{main:wr[700],light:wr[400],dark:wr[800]}}function rx(e="light"){return e==="dark"?{main:yr[200],light:yr[50],dark:yr[400]}:{main:yr[500],light:yr[300],dark:yr[700]}}function ix(e="light"){return e==="dark"?{main:vr[500],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[400],dark:vr[800]}}function ox(e="light"){return e==="dark"?{main:Sr[400],light:Sr[300],dark:Sr[700]}:{main:Sr[700],light:Sr[500],dark:Sr[900]}}function lx(e="light"){return e==="dark"?{main:xr[400],light:xr[300],dark:xr[700]}:{main:xr[800],light:xr[500],dark:xr[900]}}function ax(e="light"){return e==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:"#ed6c02",light:ki[500],dark:ki[900]}}function wc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||nx(t),l=e.secondary||rx(t),a=e.error||ix(t),s=e.info||ox(t),u=e.success||lx(t),d=e.warning||ax(t);function c(y){return US(y,Pd.text.primary)>=n?Pd.text.primary:tx.text.primary}const p=({color:y,name:T,mainShade:m=500,lightShade:h=300,darkShade:g=700})=>{if(y={...y},!y.main&&y[m]&&(y.main=y[m]),!y.hasOwnProperty("main"))throw new Error(ar(11,T?` (${T})`:"",m));if(typeof y.main!="string")throw new Error(ar(12,T?` (${T})`:"",JSON.stringify(y.main)));return Td(y,"light",h,r),Td(y,"dark",g,r),y.contrastText||(y.contrastText=c(y.main)),y};let v;return t==="light"?v=Mm():t==="dark"&&(v=Am()),mt({common:{...uo},mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:ex,contrastThreshold:n,getContrastText:c,augmentColor:p,tonalOffset:r,...v},i)}function sx(e){const t={};return Object.entries(e).forEach(r=>{const[i,o]=r;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function ux(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function cx(e){return Math.round(e*1e5)/1e5}const Rd={textTransform:"uppercase"},Nd='"Roboto", "Helvetica", "Arial", sans-serif';function fx(e,t){const{fontFamily:n=Nd,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:s=16,allVariants:u,pxToRem:d,...c}=typeof t=="function"?t(e):t,p=r/14,v=d||(T=>`${T/s*p}rem`),x=(T,m,h,g,C)=>({fontFamily:n,fontWeight:T,fontSize:v(m),lineHeight:h,...n===Nd?{letterSpacing:`${cx(g/m)}em`}:{},...C,...u}),y={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(o,48,1.167,0),h4:x(o,34,1.235,.25),h5:x(o,24,1.334,0),h6:x(l,20,1.6,.15),subtitle1:x(o,16,1.75,.15),subtitle2:x(l,14,1.57,.1),body1:x(o,16,1.5,.15),body2:x(o,14,1.43,.15),button:x(l,14,1.75,.4,Rd),caption:x(o,12,1.66,.4),overline:x(o,12,2.66,1,Rd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mt({htmlFontSize:s,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:l,fontWeightBold:a,...y},c,{clone:!1})}const dx=.2,px=.14,hx=.12;function ge(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${dx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${px})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hx})`].join(",")}const mx=["none",ge(0,2,1,-1,0,1,1,0,0,1,3,0),ge(0,3,1,-2,0,2,2,0,0,1,5,0),ge(0,3,3,-2,0,3,4,0,0,1,8,0),ge(0,2,4,-1,0,4,5,0,0,1,10,0),ge(0,3,5,-1,0,5,8,0,0,1,14,0),ge(0,3,5,-1,0,6,10,0,0,1,18,0),ge(0,4,5,-2,0,7,10,1,0,2,16,1),ge(0,5,5,-3,0,8,10,1,0,3,14,2),ge(0,5,6,-3,0,9,12,1,0,3,16,2),ge(0,6,6,-3,0,10,14,1,0,4,18,3),ge(0,6,7,-4,0,11,15,1,0,4,20,3),ge(0,7,8,-4,0,12,17,2,0,5,22,4),ge(0,7,8,-4,0,13,19,2,0,5,24,4),ge(0,7,9,-4,0,14,21,2,0,5,26,4),ge(0,8,9,-5,0,15,22,2,0,6,28,5),ge(0,8,10,-5,0,16,24,2,0,6,30,5),ge(0,8,11,-5,0,17,26,2,0,6,32,5),ge(0,9,11,-5,0,18,28,2,0,7,34,6),ge(0,9,12,-6,0,19,29,2,0,7,36,6),ge(0,10,13,-6,0,20,31,3,0,8,38,7),ge(0,10,13,-6,0,21,33,3,0,8,40,7),ge(0,10,14,-6,0,22,35,3,0,8,42,7),ge(0,11,14,-7,0,23,36,3,0,9,44,8),ge(0,11,15,-7,0,24,38,3,0,9,46,8)],gx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},yx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ld(e){return`${Math.round(e)}ms`}function vx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function wx(e){const t={...gx,...e.easing},n={...yx,...e.duration};return{getAutoHeightDuration:vx,create:(i=["all"],o={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:s=0,...u}=o;return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof l=="string"?l:Ld(l)} ${a} ${typeof s=="string"?s:Ld(s)}`).join(",")},...e,easing:t,duration:n}}const Sx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xx(e){return tn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Im(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let o=0;o<i.length;o++){const[l,a]=i[o];!xx(a)||l.startsWith("unstable_")?delete r[l]:tn(a)&&(r[l]={...a},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
||
|
||
const theme = ${JSON.stringify(t,null,2)};
|
||
|
||
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
||
theme.transitions = createTransitions(theme.transitions || {});
|
||
|
||
export default theme;`}function ou(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:l={},typography:a={},shape:s,...u}=e;if(e.vars)throw new Error(ar(20));const d=wc(o),c=Om(e);let p=mt(c,{mixins:ux(c.breakpoints,r),palette:d,shadows:mx.slice(),typography:fx(d,a),transitions:wx(l),zIndex:{...Sx}});return p=mt(p,u),p=t.reduce((v,x)=>mt(v,x),p),p.unstable_sxConfig={...ha,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(x){return qr({sx:x,theme:this})},p.toRuntimeSource=Im,p}function kx(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Cx=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=kx(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function $m(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Fm(e){return e==="dark"?Cx:[]}function Ex(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=wc(t);return{palette:o,opacity:{...$m(o.mode),...n},overlays:r||Fm(o.mode),...i}}function _x(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Px=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Tx=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return Px(e.cssVarPrefix).forEach(a=>{l[a]=n[a],delete n[a]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:o?{[o.replace("%s",t)]:l,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function Rx(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _(e,t,n){!e[t]&&n&&(e[t]=n)}function Li(e){return!e||!e.startsWith("hsl")?e:zm(e)}function Zt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ni(Li(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
||
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Nx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Bt=e=>{try{return e()}catch{}},Lx=(e="mui")=>YS(e);function ts(e,t,n,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!n){e[r]=Ex({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:o,...l}=ou({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:o,opacity:{...$m(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Fm(i)},l}function Ox(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:l=_x,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:s=":root",...u}=e,d=Object.keys(n)[0],c=r||(n.light&&d!=="light"?"light":d),p=Lx(o),{[c]:v,light:x,dark:y,...T}=n,m={...T};let h=v;if((c==="dark"&&!("dark"in n)||c==="light"&&!("light"in n))&&(h=!0),!h)throw new Error(ar(21,c));const g=ts(m,h,u,c);x&&!m.light&&ts(m,x,void 0,"light"),y&&!m.dark&&ts(m,y,void 0,"dark");let C={defaultColorScheme:c,...g,cssVarPrefix:o,colorSchemeSelector:a,rootSelector:s,getCssVar:p,colorSchemes:m,font:{...sx(g.typography),...g.font},spacing:Nx(u.spacing)};Object.keys(C.colorSchemes).forEach(M=>{const f=C.colorSchemes[M].palette,z=U=>{const H=U.split("-"),X=H[1],ze=H[2];return p(U,f[X][ze])};if(f.mode==="light"&&(_(f.common,"background","#fff"),_(f.common,"onBackground","#000")),f.mode==="dark"&&(_(f.common,"background","#000"),_(f.common,"onBackground","#fff")),Rx(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){_(f.Alert,"errorColor",se(f.error.light,.6)),_(f.Alert,"infoColor",se(f.info.light,.6)),_(f.Alert,"successColor",se(f.success.light,.6)),_(f.Alert,"warningColor",se(f.warning.light,.6)),_(f.Alert,"errorFilledBg",z("palette-error-main")),_(f.Alert,"infoFilledBg",z("palette-info-main")),_(f.Alert,"successFilledBg",z("palette-success-main")),_(f.Alert,"warningFilledBg",z("palette-warning-main")),_(f.Alert,"errorFilledColor",Bt(()=>f.getContrastText(f.error.main))),_(f.Alert,"infoFilledColor",Bt(()=>f.getContrastText(f.info.main))),_(f.Alert,"successFilledColor",Bt(()=>f.getContrastText(f.success.main))),_(f.Alert,"warningFilledColor",Bt(()=>f.getContrastText(f.warning.main))),_(f.Alert,"errorStandardBg",ue(f.error.light,.9)),_(f.Alert,"infoStandardBg",ue(f.info.light,.9)),_(f.Alert,"successStandardBg",ue(f.success.light,.9)),_(f.Alert,"warningStandardBg",ue(f.warning.light,.9)),_(f.Alert,"errorIconColor",z("palette-error-main")),_(f.Alert,"infoIconColor",z("palette-info-main")),_(f.Alert,"successIconColor",z("palette-success-main")),_(f.Alert,"warningIconColor",z("palette-warning-main")),_(f.AppBar,"defaultBg",z("palette-grey-100")),_(f.Avatar,"defaultBg",z("palette-grey-400")),_(f.Button,"inheritContainedBg",z("palette-grey-300")),_(f.Button,"inheritContainedHoverBg",z("palette-grey-A100")),_(f.Chip,"defaultBorder",z("palette-grey-400")),_(f.Chip,"defaultAvatarColor",z("palette-grey-700")),_(f.Chip,"defaultIconColor",z("palette-grey-700")),_(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(f.LinearProgress,"primaryBg",ue(f.primary.main,.62)),_(f.LinearProgress,"secondaryBg",ue(f.secondary.main,.62)),_(f.LinearProgress,"errorBg",ue(f.error.main,.62)),_(f.LinearProgress,"infoBg",ue(f.info.main,.62)),_(f.LinearProgress,"successBg",ue(f.success.main,.62)),_(f.LinearProgress,"warningBg",ue(f.warning.main,.62)),_(f.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),_(f.Slider,"primaryTrack",ue(f.primary.main,.62)),_(f.Slider,"secondaryTrack",ue(f.secondary.main,.62)),_(f.Slider,"errorTrack",ue(f.error.main,.62)),_(f.Slider,"infoTrack",ue(f.info.main,.62)),_(f.Slider,"successTrack",ue(f.success.main,.62)),_(f.Slider,"warningTrack",ue(f.warning.main,.62));const U=Qo(f.background.default,.8);_(f.SnackbarContent,"bg",U),_(f.SnackbarContent,"color",Bt(()=>f.getContrastText(U))),_(f.SpeedDialAction,"fabHoverBg",Qo(f.background.paper,.15)),_(f.StepConnector,"border",z("palette-grey-400")),_(f.StepContent,"border",z("palette-grey-400")),_(f.Switch,"defaultColor",z("palette-common-white")),_(f.Switch,"defaultDisabledColor",z("palette-grey-100")),_(f.Switch,"primaryDisabledColor",ue(f.primary.main,.62)),_(f.Switch,"secondaryDisabledColor",ue(f.secondary.main,.62)),_(f.Switch,"errorDisabledColor",ue(f.error.main,.62)),_(f.Switch,"infoDisabledColor",ue(f.info.main,.62)),_(f.Switch,"successDisabledColor",ue(f.success.main,.62)),_(f.Switch,"warningDisabledColor",ue(f.warning.main,.62)),_(f.TableCell,"border",ue(Ko(f.divider,1),.88)),_(f.Tooltip,"bg",Ko(f.grey[700],.92))}if(f.mode==="dark"){_(f.Alert,"errorColor",ue(f.error.light,.6)),_(f.Alert,"infoColor",ue(f.info.light,.6)),_(f.Alert,"successColor",ue(f.success.light,.6)),_(f.Alert,"warningColor",ue(f.warning.light,.6)),_(f.Alert,"errorFilledBg",z("palette-error-dark")),_(f.Alert,"infoFilledBg",z("palette-info-dark")),_(f.Alert,"successFilledBg",z("palette-success-dark")),_(f.Alert,"warningFilledBg",z("palette-warning-dark")),_(f.Alert,"errorFilledColor",Bt(()=>f.getContrastText(f.error.dark))),_(f.Alert,"infoFilledColor",Bt(()=>f.getContrastText(f.info.dark))),_(f.Alert,"successFilledColor",Bt(()=>f.getContrastText(f.success.dark))),_(f.Alert,"warningFilledColor",Bt(()=>f.getContrastText(f.warning.dark))),_(f.Alert,"errorStandardBg",se(f.error.light,.9)),_(f.Alert,"infoStandardBg",se(f.info.light,.9)),_(f.Alert,"successStandardBg",se(f.success.light,.9)),_(f.Alert,"warningStandardBg",se(f.warning.light,.9)),_(f.Alert,"errorIconColor",z("palette-error-main")),_(f.Alert,"infoIconColor",z("palette-info-main")),_(f.Alert,"successIconColor",z("palette-success-main")),_(f.Alert,"warningIconColor",z("palette-warning-main")),_(f.AppBar,"defaultBg",z("palette-grey-900")),_(f.AppBar,"darkBg",z("palette-background-paper")),_(f.AppBar,"darkColor",z("palette-text-primary")),_(f.Avatar,"defaultBg",z("palette-grey-600")),_(f.Button,"inheritContainedBg",z("palette-grey-800")),_(f.Button,"inheritContainedHoverBg",z("palette-grey-700")),_(f.Chip,"defaultBorder",z("palette-grey-700")),_(f.Chip,"defaultAvatarColor",z("palette-grey-300")),_(f.Chip,"defaultIconColor",z("palette-grey-300")),_(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(f.LinearProgress,"primaryBg",se(f.primary.main,.5)),_(f.LinearProgress,"secondaryBg",se(f.secondary.main,.5)),_(f.LinearProgress,"errorBg",se(f.error.main,.5)),_(f.LinearProgress,"infoBg",se(f.info.main,.5)),_(f.LinearProgress,"successBg",se(f.success.main,.5)),_(f.LinearProgress,"warningBg",se(f.warning.main,.5)),_(f.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),_(f.Slider,"primaryTrack",se(f.primary.main,.5)),_(f.Slider,"secondaryTrack",se(f.secondary.main,.5)),_(f.Slider,"errorTrack",se(f.error.main,.5)),_(f.Slider,"infoTrack",se(f.info.main,.5)),_(f.Slider,"successTrack",se(f.success.main,.5)),_(f.Slider,"warningTrack",se(f.warning.main,.5));const U=Qo(f.background.default,.98);_(f.SnackbarContent,"bg",U),_(f.SnackbarContent,"color",Bt(()=>f.getContrastText(U))),_(f.SpeedDialAction,"fabHoverBg",Qo(f.background.paper,.15)),_(f.StepConnector,"border",z("palette-grey-600")),_(f.StepContent,"border",z("palette-grey-600")),_(f.Switch,"defaultColor",z("palette-grey-300")),_(f.Switch,"defaultDisabledColor",z("palette-grey-600")),_(f.Switch,"primaryDisabledColor",se(f.primary.main,.55)),_(f.Switch,"secondaryDisabledColor",se(f.secondary.main,.55)),_(f.Switch,"errorDisabledColor",se(f.error.main,.55)),_(f.Switch,"infoDisabledColor",se(f.info.main,.55)),_(f.Switch,"successDisabledColor",se(f.success.main,.55)),_(f.Switch,"warningDisabledColor",se(f.warning.main,.55)),_(f.TableCell,"border",se(Ko(f.divider,1),.68)),_(f.Tooltip,"bg",Ko(f.grey[700],.92))}Zt(f.background,"default"),Zt(f.background,"paper"),Zt(f.common,"background"),Zt(f.common,"onBackground"),Zt(f,"divider"),Object.keys(f).forEach(U=>{const H=f[U];H&&typeof H=="object"&&(H.main&&_(f[U],"mainChannel",Ni(Li(H.main))),H.light&&_(f[U],"lightChannel",Ni(Li(H.light))),H.dark&&_(f[U],"darkChannel",Ni(Li(H.dark))),H.contrastText&&_(f[U],"contrastTextChannel",Ni(Li(H.contrastText))),U==="text"&&(Zt(f[U],"primary"),Zt(f[U],"secondary")),U==="action"&&(H.active&&Zt(f[U],"active"),H.selected&&Zt(f[U],"selected")))})}),C=t.reduce((M,f)=>mt(M,f),C);const P={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:Tx(C)},{vars:w,generateThemeVars:R,generateStyleSheets:L}=ZS(C,P);return C.vars=w,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([M,f])=>{C[M]=f}),C.generateThemeVars=R,C.generateStyleSheets=L,C.generateSpacing=function(){return Lm(u.spacing,fc(this))},C.getColorSchemeSelector=qS(a),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=l,C.unstable_sxConfig={...ha,...u==null?void 0:u.unstable_sxConfig},C.unstable_sx=function(f){return qr({sx:f,theme:this})},C.toRuntimeSource=Im,C}function Od(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:wc({...n===!0?{}:n.palette,mode:t})})}function jx(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n==null?void 0:n.mode,...l}=e,a=o||"light",s=i==null?void 0:i[a],u={...i,...n?{[a]:{...typeof s!="boolean"&&s,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ou(e,...t);let d=n;"palette"in e||u[a]&&(u[a]!==!0?d=u[a].palette:a==="dark"&&(d={mode:"dark"}));const c=ou({...e,palette:d},...t);return c.defaultColorScheme=a,c.colorSchemes=u,c.palette.mode==="light"&&(c.colorSchemes.light={...u.light!==!0&&u.light,palette:c.palette},Od(c,"dark",u.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:c.palette},Od(c,"light",u.light)),c}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),Ox({...l,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Dx=jx(),zx="$$material";function Mx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ax=e=>Mx(e)&&e!=="classes",Ix=MS({themeId:zx,defaultTheme:Dx,rootShouldForwardProp:Ax}),$x=GS;function Fx(e){return QS(e)}function bx(e){return mm("MuiSvgIcon",e)}j1("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Bx=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Zr(t)}`,`fontSize${Zr(n)}`]};return R1(i,bx,r)},Ux=Ix("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Zr(n.color)}`],t[`fontSize${Zr(n.fontSize)}`]]}})($x(({theme:e})=>{var t,n,r,i,o,l,a,s,u,d,c,p,v,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:l.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var T,m;return{props:{color:y},style:{color:(m=(T=(e.vars??e).palette)==null?void 0:T[y])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(p=(c=(e.vars??e).palette)==null?void 0:c.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(x=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Bl=N.forwardRef(function(t,n){const r=Fx({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:l="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:c,viewBox:p="0 0 24 24",...v}=r,x=N.isValidElement(i)&&i.type==="svg",y={...r,color:l,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:x},T={};d||(T.viewBox=p);const m=Bx(y);return j.jsxs(Ux,{as:a,className:z1(m.root,o),focusable:"false",color:u,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n,...T,...v,...x&&i.props,ownerState:y,children:[x?i.props.children:i,c?j.jsx("title",{children:c}):null]})});Bl&&(Bl.muiName="SvgIcon");function Vx(e,t){function n(r,i){return j.jsx(Bl,{"data-testid":`${t}Icon`,ref:i,...r,children:e})}return n.muiName=Bl.muiName,N.memo(N.forwardRef(n))}const jd=Vx(j.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCart");function bm({cartItems:e}){const t=Object.keys(e).length;return j.jsxs("nav",{className:xn.container,children:[j.jsx("h1",{className:xn["nav-heading"],children:"Hobby Tech"}),j.jsx(Bm,{sumCartItems:t})]})}function Bm({sumCartItems:e}){return j.jsxs("ul",{className:xn.nav,children:[j.jsx("li",{children:j.jsx(an,{to:"/",className:xn.link,children:"home"})}),j.jsx("li",{children:j.jsx(an,{to:"store",className:xn.link,children:"shop"})}),j.jsx(an,{to:"bag",className:xn.link,children:e>0?j.jsxs("div",{className:xn["cart-icon-container"],children:[j.jsx("div",{className:xn["cart-icon-circle"]}),j.jsx(jd,{fontSize:"large"})]}):j.jsx(jd,{fontSize:"large"})})]})}bm.propTypes={cartItems:De.object};Bm.propTypes={sumCartItems:De.number};function Wx(){const[e,t]=N.useState({}),[n,r]=N.useState(null);return j.jsxs(j.Fragment,{children:[j.jsx(bm,{cartItems:e}),j.jsx(Jv,{context:[e,t,n,r]})]})}const Hx="_btn_1oi8g_1",Kx="_action_1oi8g_10",Dd={btn:Hx,action:Kx};function So(e){return j.jsx("button",{onClick:e.onClick,className:e.styles?Dd[e.styles]:Dd.btn,children:e.text})}So.propTypes={onClick:De.func,text:De.string,styles:De.string};const Qx="_container_wwoz3_1",Gx="_summary_wwoz3_14",Yx="_fullwidth_wwoz3_21",Xx="_card_wwoz3_25",Jx="_cartItems_wwoz3_33",Zx="_cartItem_wwoz3_33",qx="_qtybtn_wwoz3_73",ek="_qtyp_wwoz3_77",tk="_img_wwoz3_1",nk="_header_wwoz3_91",rk="_input_wwoz3_95",zt={container:Qx,"empty-cart":"_empty-cart_wwoz3_6",summary:Gx,fullwidth:Yx,card:Xx,cartItems:Jx,cartItem:Zx,"price-qty":"_price-qty_wwoz3_63",qtybtn:qx,qtyp:ek,img:tk,header:nk,input:rk};function Vr(e){return(e/100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}const ik=()=>{const[e,t]=sc(),n=Object.keys(e);return j.jsx("div",{children:j.jsxs("div",{className:zt.container,children:[j.jsx(Um,{cartKeys:n,cart:e,setCart:t}),j.jsx(Vm,{cart:e})]})})};function Um({cartKeys:e,cart:t,setCart:n}){return j.jsx(j.Fragment,{children:e.length>0?j.jsx("div",{className:zt.fullwidth,children:j.jsx("div",{className:zt.cartItems,children:e.map((r,i)=>j.jsx(Wm,{item:t[r],cart:t,setCart:n},i))})}):j.jsx("div",{className:zt["empty-cart"],children:j.jsx("h2",{children:"Your cart is empty"})})})}function Vm({cart:e}){const t=Object.keys(e),n=.1;let r=0,i=0;t.forEach(a=>{i+=Number(e[a].price)*Number(e[a].qty),r+=Number(e[a].qty)});const o=n*i,l=o+i;return j.jsxs("div",{className:zt.summary,children:[j.jsx("h2",{children:"Order Summary"}),j.jsxs("p",{children:["Subtotal (",r," items): $",Vr(i)]}),j.jsxs("p",{children:["Shipping (10%): $",Vr(o)]}),j.jsxs("p",{children:["Total: $",Vr(l)]}),j.jsx(So,{text:"Checkout",onClick:()=>alert("Congrats! You would've leveled up")})]})}function Wm({item:e,cart:t,setCart:n}){const{title:r,price:i,image:o,qty:l}=e;return j.jsxs("div",{className:zt.cartItem,children:[j.jsx("img",{id:zt.img,src:o,alt:r}),j.jsxs("div",{className:zt.card,children:[j.jsxs("div",{children:[j.jsx("h3",{children:r}),j.jsxs("div",{className:zt["price-qty"],children:[j.jsxs("p",{children:[" $",Vr(i)," x "]}),j.jsxs("div",{className:zt.qtybtn,children:[j.jsx("button",{onClick:()=>lk(e,t,n),children:"-"}),j.jsx(Hm,{item:e,cart:t,setCart:n}),j.jsx("button",{onClick:()=>ok(e,t,n),children:"+"})]}),j.jsxs("p",{children:["Item total: $",Vr(l*i)," "]})]})]}),j.jsx("div",{children:j.jsx(So,{onClick:()=>ak(e,t,n),text:"Remove From Cart"})})]})]})}function Hm({item:e,cart:t,setCart:n}){function r(i){const o=Number(i.target.value);let l={...t};o!==0?l[e.id].qty=o:l[e.id].qty=1,n(l)}return j.jsx("input",{value:e.qty,onChange:r,min:"1",max:"999",type:"number",className:zt.input})}function ok(e,t,n){if(t[e.id]){let r={...t};r[e.id].qty+=1,n(r)}}function lk(e,t,n){if(t[e.id]){let r={...t};r[e.id].qty>1&&(r[e.id].qty-=1),n(r)}}function ak(e,t,n){if(t[e.id]){let r={...t};delete r[e.id],n(r)}}Wm.propTypes={item:De.object,cart:De.object,setCart:De.func};Um.propTypes={cartKeys:De.array,cart:De.object,setCart:De.func};Vm.propTypes={cart:De.object};Hm.propTypes={item:De.object,cart:De.object,setCart:De.func};const sk="_container_exc1g_5",uk="_mainHeading_exc1g_13",Ci={container:sk,mainHeading:uk,"sub-heading":"_sub-heading_exc1g_18","heading-color":"_heading-color_exc1g_22","hero-img":"_hero-img_exc1g_26"};function ck(){return j.jsx("main",{children:j.jsx(fk,{})})}function fk(){return j.jsx(j.Fragment,{children:j.jsxs("div",{className:Ci.container,children:[j.jsxs("h1",{className:Ci.mainHeading,children:["Our products help ",j.jsx("span",{className:Ci["heading-color"],children:"you"})," "]}),j.jsx("p",{className:Ci["sub-heading"],children:"Keep engineers happy using working technology. Fast results and guaranteed value from day one."}),j.jsx(an,{to:"/store",children:j.jsx(So,{text:"Start shopping now!"})}),j.jsx("div",{children:j.jsx("img",{src:"/hero.jpg",alt:"",className:Ci["hero-img"]})})]})})}const dk="_img_1sizt_1",pk={img:dk};function Sc({item:e}){return j.jsxs(j.Fragment,{children:[j.jsx("img",{src:e.image,alt:e.title,className:pk.img}),j.jsx("p",{children:e.title}),j.jsxs("p",{children:["$",Vr(e.price)]})]})}Sc.propTypes={item:De.object};const hk="_container_1lsd1_1",mk="_card_1lsd1_9",gk="_link_1lsd1_20",zr={container:hk,card:mk,link:gk};function yk(){const[e,t,n]=sc(),{id:r}=$v();if(!n)return j.jsx(zd,{});const i=n.find(o=>o.id===r);return j.jsx("div",{className:zr.container,children:i?j.jsxs("div",{className:zr.card,children:[j.jsx(an,{to:"/store",className:zr.link,children:"Back"}),j.jsx(Sc,{item:i,cart:e,setCart:t}),j.jsx(So,{onClick:()=>{e[i.id]?wk(i,e,t):vk(i,e,t)},text:e[i.id]?"Remove from Cart":"Add to Cart"}),Object.keys(e).length>0?j.jsx(an,{to:"/bag",className:zr.link,children:"View Cart"}):null]}):j.jsx(zd,{})})}function zd(){return j.jsx("div",{className:zr.container,children:j.jsxs("div",{className:zr.card,children:[j.jsx("h1",{children:"Product Does Not Exist!"}),j.jsx(an,{to:"/store",children:"Return to Store"})]})})}function vk(e,t,n){let r={...t};r[e.id]=e,r[e.id].qty=1,n(r)}function wk(e,t,n){if(t[e.id]){let r={...t};delete r[e.id],n(r)}}const Sk="_container_1wfgo_1",xk="_card_1wfgo_8",kk="_link_1wfgo_20",ns={container:Sk,card:xk,link:kk};function Km({loading:e,items:t,cart:n,setCart:r}){return j.jsx("div",{className:ns.container,children:e?null:t.map((i,o)=>j.jsxs("div",{className:ns.card,children:[j.jsx(Sc,{item:i,cart:n,setCart:r}),j.jsxs(an,{to:i.id,className:ns.link,children:[" ","More Info"]})]},o))})}Km.propTypes={loading:De.bool,items:De.array,cart:De.object,setCart:De.func};function Ck(){const[e,t,n,r]=sc(),[i,o]=N.useState(!0);return Ek(n,r,i,o),j.jsx("div",{children:j.jsx(Km,{loading:i,items:n,cart:e,setCart:t})})}function Ek(e,t,n,r){N.useEffect(()=>{if(e!==null){r(!1);return}fetch("https://fakestoreapi.com/products/category/electronics",{mode:"cors"}).then(i=>{if(i.status>=400)throw new Error("unable to fetch items");return i.json()}).then(i=>{const o=[];i.forEach(l=>{o.push({title:l.title,price:l.price*100,image:l.image,id:crypto.randomUUID()})}),t(o)}).catch(i=>console.log(i)).finally(()=>r(!1))},[e,t,n,r])}function _k(){return j.jsxs("div",{children:[j.jsx("h1",{children:"Oh no, this route doesn't exist!"}),j.jsxs("p",{children:["You can go back to the home page by clicking ",j.jsx(an,{to:"/",children:"here"})," though!"]})]})}const Pk=[{path:"/",element:j.jsx(Wx,{}),errorElement:j.jsx(_k,{}),children:[{path:"/",element:j.jsx(ck,{}),index:!0},{path:"store",element:j.jsx(Ck,{})},{path:"store/:id",element:j.jsx(yk,{})},{path:"bag",element:j.jsx(ik,{})}]}],Tk=o1(Pk);Gh(document.getElementById("root")).render(j.jsx(N.StrictMode,{children:j.jsx(h1,{router:Tk})}));
|