From a3a6b0fdc9c90b4950467d5489c016567b2300a4 Mon Sep 17 00:00:00 2001 From: Yusef Almamari Date: Wed, 25 Sep 2024 21:47:11 +0400 Subject: [PATCH] Updates --- index.css | 2 +- index.js | 29 ++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/index.css b/index.css index f4cfcf8..508cecf 100644 --- a/index.css +++ b/index.css @@ -1 +1 @@ -*:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}*{-webkit-tap-highlight-color:transparent}::selection{--tw-bg-opacity: 1;background-color:rgb(137 178 239 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }body{margin:0;padding:0}button{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}a{--tw-text-opacity: 1;color:rgb(137 178 239 / var(--tw-text-opacity))}.absolute{position:absolute}.relative{position:relative}.z-10{z-index:10}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.block{display:block}.flex{display:flex}.h-48{height:12rem}.h-80{height:20rem}.h-screen{height:100vh}.w-48{width:12rem}.w-80{width:20rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin-infinite{animation:spin 4s linear infinite}.items-center{align-items:center}.justify-center{justify-content:center}.bg-\[\#6d1b1b\]{--tw-bg-opacity: 1;background-color:rgb(109 27 27 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(27 58 109 / var(--tw-bg-opacity))}.text-center{text-align:center}.font-sans{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.blur-\[10rem\]{--tw-blur: blur(10rem);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)} +*:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}*{-webkit-tap-highlight-color:transparent}::selection{--tw-bg-opacity: 1;background-color:rgb(137 178 239 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }body{margin:0;padding:0}button{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}a{--tw-text-opacity: 1;color:rgb(137 178 239 / var(--tw-text-opacity))}.absolute{position:absolute}.relative{position:relative}.z-10{z-index:10}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.block{display:block}.flex{display:flex}.h-48{height:12rem}.h-80{height:20rem}.h-screen{height:100vh}.w-48{width:12rem}.w-80{width:20rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin-infinite{animation:spin 4s linear infinite}.items-center{align-items:center}.justify-center{justify-content:center}.bg-\[\#6d1b1b\]{--tw-bg-opacity: 1;background-color:rgb(109 27 27 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(27 58 109 / var(--tw-bg-opacity))}.text-center{text-align:center}.font-sans{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity))}.blur-\[10rem\]{--tw-blur: blur(10rem);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)} diff --git a/index.js b/index.js index 472003a..39b0090 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -function cc(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dc={exports:{}},Po={},pc={exports:{}},Y={};/** +function Wc(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ys={exports:{}},fl={},gs={exports:{}},T={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function cc(e,t){for(var n=0;n>>1,oe=z[G];if(0>>1;Gl(at,V))jel(Mn,at)?(z[G]=Mn,z[je]=V,G=je):(z[G]=at,z[Re]=V,G=Re);else if(jel(Mn,V))z[G]=Mn,z[je]=V,G=je;else break e}}return B}function l(z,B){var V=z.sortIndex-B.sortIndex;return V!==0?V:z.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var a=[],s=[],p=1,c=null,d=3,k=!1,E=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(z){for(var B=n(s);B!==null;){if(B.callback===null)r(s);else if(B.startTime<=z)r(s),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(s)}}function x(z){if(S=!1,v(z),!E)if(n(a)!==null)E=!0,Ut(L);else{var B=n(s);B!==null&&se(x,B.startTime-z)}}function L(z,B){E=!1,S&&(S=!1,m(D),D=-1),k=!0;var V=d;try{for(v(B),c=n(a);c!==null&&(!(c.expirationTime>B)||z&&!K());){var G=c.callback;if(typeof G=="function"){c.callback=null,d=c.priorityLevel;var oe=G(c.expirationTime<=B);B=e.unstable_now(),typeof oe=="function"?c.callback=oe:c===n(a)&&r(a),v(B)}else r(a);c=n(a)}if(c!==null)var yt=!0;else{var Re=n(s);Re!==null&&se(x,Re.startTime-B),yt=!1}return yt}finally{c=null,d=V,k=!1}}var g=!1,R=null,D=-1,F=5,I=-1;function K(){return!(e.unstable_now()-Iz||125G?(z.sortIndex=V,t(s,z),n(a)===null&&z===n(s)&&(S?(m(D),D=-1):S=!0,se(x,V-G))):(z.sortIndex=oe,t(a,z),E||k||(E=!0,Ut(L))),z},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(z){var B=d;return function(){var V=d;d=B;try{return z.apply(this,arguments)}finally{d=V}}}})(Pc);_c.exports=Pc;var Lp=_c.exports;/** + */(function(e){function t(_,R){var z=_.length;_.push(R);e:for(;0>>1,J=_[Q];if(0>>1;Ql(Tl,z))Stl(ar,Tl)?(_[Q]=ar,_[St]=z,Q=St):(_[Q]=Tl,_[wt]=z,Q=wt);else if(Stl(ar,z))_[Q]=ar,_[St]=z,Q=St;else break e}}return R}function l(_,R){var z=_.sortIndex-R.sortIndex;return z!==0?z:_.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],h=1,p=null,m=3,y=!1,g=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(_){for(var R=n(a);R!==null;){if(R.callback===null)r(a);else if(R.startTime<=_)r(a),R.sortIndex=R.expirationTime,t(s,R);else break;R=n(a)}}function v(_){if(w=!1,d(_),!g)if(n(s)!==null)g=!0,Rl(k);else{var R=n(a);R!==null&&zl(v,R.startTime-_)}}function k(_,R){g=!1,w&&(w=!1,f(L),L=-1),y=!0;var z=m;try{for(d(R),p=n(s);p!==null&&(!(p.expirationTime>R)||_&&!Le());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,m=p.priorityLevel;var J=Q(p.expirationTime<=R);R=e.unstable_now(),typeof J=="function"?p.callback=J:p===n(s)&&r(s),d(R)}else r(s);p=n(s)}if(p!==null)var sr=!0;else{var wt=n(a);wt!==null&&zl(v,wt.startTime-R),sr=!1}return sr}finally{p=null,m=z,y=!1}}var P=!1,N=null,L=-1,H=5,O=-1;function Le(){return!(e.unstable_now()-O_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var R=3;break;default:R=m}var z=m;m=R;try{return _()}finally{m=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,R){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var z=m;m=_;try{return R()}finally{m=z}},e.unstable_scheduleCallback=function(_,R,z){var Q=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0Q?(_.sortIndex=z,t(a,_),n(s)===null&&_===n(a)&&(w?(f(L),L=-1):w=!0,zl(v,z-Q))):(_.sortIndex=J,t(s,_),g||y||(g=!0,Rl(k))),_},e.unstable_shouldYield=Le,e.unstable_wrapCallback=function(_){var R=m;return function(){var z=m;m=R;try{return _.apply(this,arguments)}finally{m=z}}}})(Ts);zs.exports=Ts;var hf=zs.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function cc(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pi=Object.prototype.hasOwnProperty,Tp=/^[: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]*$/,ja={},Ia={};function Dp(e){return Pi.call(Ia,e)?!0:Pi.call(ja,e)?!1:Tp.test(e)?Ia[e]=!0:(ja[e]=!0,!1)}function Mp(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 zp(e,t,n,r){if(t===null||typeof t>"u"||Mp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){De[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cu=/[\-:]([a-z])/g;function _u(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(Cu,_u);De[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cu,_u);De[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cu,_u);De[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pu(e,t,n,r){var l=De.hasOwnProperty(t)?De[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=Object.prototype.hasOwnProperty,vf=/^[: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]*$/,ru={},lu={};function yf(e){return io.call(lu,e)?!0:io.call(ru,e)?!1:vf.test(e)?lu[e]=!0:(ru[e]=!0,!1)}function gf(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 wf(e,t,n,r){if(t===null||typeof t>"u"||gf(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 ce(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ne[t]=new ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ce(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){ne[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var ui=/[\-:]([a-z])/g;function si(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(ui,si);ne[t]=new ce(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(ui,si);ne[t]=new ce(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(ui,si);ne[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function ai(e,t,n,r){var l=ne.hasOwnProperty(t)?ne[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var a=` -`+l[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=u);break}}}finally{qo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function Op(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=bo(e.type,!1),e;case 11:return e=bo(e.type.render,!1),e;case 1:return e=bo(e.type,!0),e;default:return""}}function Ti(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 $n:return"Fragment";case An:return"Portal";case Ri:return"Profiler";case Ru:return"StrictMode";case Li:return"Suspense";case Ni:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nc:return(e.displayName||"Context")+".Consumer";case Lc:return(e._context.displayName||"Context")+".Provider";case Lu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nu:return t=e.displayName||null,t!==null?t:Ti(e.type)||"Memo";case Wt:t=e._payload,e=e._init;try{return Ti(e(t))}catch{}}return null}function Fp(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 Ti(t);case 8:return t===Ru?"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 ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jp(e){var t=Dc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _l(e){e._valueTracker||(e._valueTracker=jp(e))}function Mc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bl(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 Di(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Aa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(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 zc(e,t){t=t.checked,t!=null&&Pu(e,"checked",t,!1)}function Mi(e,t){zc(e,t);var n=ln(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")?zi(e,t.type,n):t.hasOwnProperty("defaultValue")&&zi(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $a(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 zi(e,t,n){(t!=="number"||bl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Tr=Array.isArray;function Zn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Pl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Or={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},Ip=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(e){Ip.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Or[t]=Or[e]})});function Ic(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Or.hasOwnProperty(e)&&Or[e]?(""+t).trim():t+"px"}function Uc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ic(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Up=he({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 ji(e,t){if(t){if(Up[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Ii(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 Ui=null;function Tu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ai=null,qn=null,bn=null;function Ha(e){if(e=pl(e)){if(typeof Ai!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Do(t),Ai(e.stateNode,e.type,t))}}function Ac(e){qn?bn?bn.push(e):bn=[e]:qn=e}function $c(){if(qn){var e=qn,t=bn;if(bn=qn=null,Ha(e),t)for(e=0;e>>=0,e===0?32:31-(Gp(e)/Jp|0)|0}var Rl=64,Ll=4194304;function Dr(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 ro(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Dr(u):(o&=i,o!==0&&(r=Dr(o)))}else i=n&~l,i!==0?r=Dr(i):o!==0&&(r=Dr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function eh(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=jr),qa=" ",ba=!1;function uf(e,t){switch(e){case"keyup":return Lh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function Th(e,t){switch(e){case"compositionend":return af(t);case"keypress":return t.which!==32?null:(ba=!0,qa);case"textInput":return e=t.data,e===qa&&ba?null:e;default:return null}}function Dh(e,t){if(Bn)return e==="compositionend"||!Uu&&uf(e,t)?(e=lf(),Hl=Fu=Xt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rs(n)}}function df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pf(){for(var e=window,t=bl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bl(e.document)}return t}function Au(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 $h(e){var t=pf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&df(n.ownerDocument.documentElement,n)){if(r!==null&&Au(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ls(n,o);var i=ls(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vn=null,Qi=null,Ur=null,Ki=!1;function os(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ki||Vn==null||Vn!==bl(r)||(r=Vn,"selectionStart"in r&&Au(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}),Ur&&Zr(Ur,r)||(Ur=r,r=io(Qi,"onSelect"),0Qn||(e.current=qi[Qn],qi[Qn]=null,Qn--)}function le(e,t){Qn++,qi[Qn]=e.current,e.current=t}var on={},Fe=an(on),Qe=an(!1),xn=on;function lr(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ke(e){return e=e.childContextTypes,e!=null}function ao(){ue(Qe),ue(Fe)}function ds(e,t,n){if(Fe.current!==on)throw Error(P(168));le(Fe,t),le(Qe,n)}function kf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(P(108,Fp(e)||"Unknown",l));return he({},n,r)}function so(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,xn=Fe.current,le(Fe,e),le(Qe,Qe.current),!0}function ps(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=kf(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,ue(Qe),ue(Fe),le(Fe,e)):ue(Qe),le(Qe,n)}var Rt=null,Mo=!1,pi=!1;function xf(e){Rt===null?Rt=[e]:Rt.push(e)}function qh(e){Mo=!0,xf(e)}function sn(){if(!pi&&Rt!==null){pi=!0;var e=0,t=q;try{var n=Rt;for(q=1;e>=i,l-=i,Lt=1<<32-ht(t)+l|n<D?(F=R,R=null):F=R.sibling;var I=d(m,R,v[D],x);if(I===null){R===null&&(R=F);break}e&&R&&I.alternate===null&&t(m,R),f=o(I,f,D),g===null?L=I:g.sibling=I,g=I,R=F}if(D===v.length)return n(m,R),ce&&pn(m,D),L;if(R===null){for(;DD?(F=R,R=null):F=R.sibling;var K=d(m,R,I.value,x);if(K===null){R===null&&(R=F);break}e&&R&&K.alternate===null&&t(m,R),f=o(K,f,D),g===null?L=K:g.sibling=K,g=K,R=F}if(I.done)return n(m,R),ce&&pn(m,D),L;if(R===null){for(;!I.done;D++,I=v.next())I=c(m,I.value,x),I!==null&&(f=o(I,f,D),g===null?L=I:g.sibling=I,g=I);return ce&&pn(m,D),L}for(R=r(m,R);!I.done;D++,I=v.next())I=k(R,m,D,I.value,x),I!==null&&(e&&I.alternate!==null&&R.delete(I.key===null?D:I.key),f=o(I,f,D),g===null?L=I:g.sibling=I,g=I);return e&&R.forEach(function(Ce){return t(m,Ce)}),ce&&pn(m,D),L}function T(m,f,v,x){if(typeof v=="object"&&v!==null&&v.type===$n&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Cl:e:{for(var L=v.key,g=f;g!==null;){if(g.key===L){if(L=v.type,L===$n){if(g.tag===7){n(m,g.sibling),f=l(g,v.props.children),f.return=m,m=f;break e}}else if(g.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Wt&&vs(L)===g.type){n(m,g.sibling),f=l(g,v.props),f.ref=xr(m,g,v),f.return=m,m=f;break e}n(m,g);break}else t(m,g);g=g.sibling}v.type===$n?(f=kn(v.props.children,m.mode,x,v.key),f.return=m,m=f):(x=Zl(v.type,v.key,v.props,null,m.mode,x),x.ref=xr(m,f,v),x.return=m,m=x)}return i(m);case An:e:{for(g=v.key;f!==null;){if(f.key===g)if(f.tag===4&&f.stateNode.containerInfo===v.containerInfo&&f.stateNode.implementation===v.implementation){n(m,f.sibling),f=l(f,v.children||[]),f.return=m,m=f;break e}else{n(m,f);break}else t(m,f);f=f.sibling}f=Ei(v,m.mode,x),f.return=m,m=f}return i(m);case Wt:return g=v._init,T(m,f,g(v._payload),x)}if(Tr(v))return E(m,f,v,x);if(gr(v))return S(m,f,v,x);Fl(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,f!==null&&f.tag===6?(n(m,f.sibling),f=l(f,v),f.return=m,m=f):(n(m,f),f=Si(v,m.mode,x),f.return=m,m=f),i(m)):n(m,f)}return T}var ir=Rf(!0),Lf=Rf(!1),po=an(null),ho=null,Xn=null,Hu=null;function Wu(){Hu=Xn=ho=null}function Qu(e){var t=po.current;ue(po),e._currentValue=t}function tu(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 tr(e,t){ho=e,Hu=Xn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(Hu!==e)if(e={context:e,memoizedValue:t,next:null},Xn===null){if(ho===null)throw Error(P(308));Xn=e,ho.dependencies={lanes:0,firstContext:e}}else Xn=Xn.next=e;return t}var yn=null;function Ku(e){yn===null?yn=[e]:yn.push(e)}function Nf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ku(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ot(e,r)}function Ot(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qt=!1;function Yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tf(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 Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function en(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ot(e,n)}return l=r.interleaved,l===null?(t.next=t,Ku(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ot(e,n)}function Ql(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,Mu(e,n)}}function ys(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,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 mo(e,t,n,r){var l=e.updateQueue;Qt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,s=a.next;a.next=null,i===null?o=s:i.next=s,i=a;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==i&&(u===null?p.firstBaseUpdate=s:u.next=s,p.lastBaseUpdate=a))}if(o!==null){var c=l.baseState;i=0,p=s=a=null,u=o;do{var d=u.lane,k=u.eventTime;if((r&d)===d){p!==null&&(p=p.next={eventTime:k,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var E=e,S=u;switch(d=t,k=n,S.tag){case 1:if(E=S.payload,typeof E=="function"){c=E.call(k,c,d);break e}c=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=S.payload,d=typeof E=="function"?E.call(k,c,d):E,d==null)break e;c=he({},c,d);break e;case 2:Qt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,d=l.effects,d===null?l.effects=[u]:d.push(u))}else k={eventTime:k,lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(s=p=k,a=c):p=p.next=k,i|=d;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;d=u,u=d.next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}while(!0);if(p===null&&(a=c),l.baseState=a,l.firstBaseUpdate=s,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Pn|=i,e.lanes=i,e.memoizedState=c}}function gs(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=mi.transition;mi.transition={};try{e(!1),t()}finally{q=n,mi.transition=r}}function Yf(){return ut().memoizedState}function nm(e,t,n){var r=nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xf(e))Gf(t,n);else if(n=Nf(e,t,n,r),n!==null){var l=$e();mt(n,e,r,l),Jf(n,t,r)}}function rm(e,t,n){var r=nn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xf(e))Gf(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,vt(u,i)){var a=t.interleaved;a===null?(l.next=l,Ku(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Nf(e,t,l,r),n!==null&&(l=$e(),mt(n,e,r,l),Jf(n,t,r))}}function Xf(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Gf(e,t){Ar=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mu(e,n)}}var go={readContext:it,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},lm={readContext:it,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Ss,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4194308,4,Vf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();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=nm.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:ws,useDebugValue:ta,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=ws(!1),t=e[0];return e=tm.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,l=St();if(ce){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),Pe===null)throw Error(P(349));_n&30||Of(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ss(jf.bind(null,r,o,e),[e]),r.flags|=2048,ol(9,Ff.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=St(),t=Pe.identifierPrefix;if(ce){var n=Nt,r=Lt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rl++,0u||l[i]!==o[u]){var s=` +`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function Sf(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=Ml(e.type,!1),e;case 11:return e=Ml(e.type.render,!1),e;case 1:return e=Ml(e.type,!0),e;default:return""}}function co(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 $t:return"Fragment";case Ut:return"Portal";case uo:return"Profiler";case ci:return"StrictMode";case so:return"Suspense";case ao:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Is:return(e.displayName||"Context")+".Consumer";case js:return(e._context.displayName||"Context")+".Provider";case fi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case di:return t=e.displayName||null,t!==null?t:co(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return co(e(t))}catch{}}return null}function kf(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 co(t);case 8:return t===ci?"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 ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ef(e){var t=Fs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=Ef(e))}function Ds(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fs(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $r(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 fo(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(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 Us(e,t){t=t.checked,t!=null&&ai(e,"checked",t,!1)}function po(e,t){Us(e,t);var n=ht(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")?ho(e,t.type,n):t.hasOwnProperty("defaultValue")&&ho(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uu(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 ho(e,t,n){(t!=="number"||$r(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _n=Array.isArray;function Zt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ln={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},xf=["Webkit","ms","Moz","O"];Object.keys(Ln).forEach(function(e){xf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ln[t]=Ln[e]})});function As(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ln.hasOwnProperty(e)&&Ln[e]?(""+t).trim():t+"px"}function Ws(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=As(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Cf=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yo(e,t){if(t){if(Cf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function go(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 wo=null;function pi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var So=null,Jt=null,qt=null;function cu(e){if(e=or(e)){if(typeof So!="function")throw Error(S(280));var t=e.stateNode;t&&(t=vl(t),So(e.stateNode,e.type,t))}}function Hs(e){Jt?qt?qt.push(e):qt=[e]:Jt=e}function Qs(){if(Jt){var e=Jt,t=qt;if(qt=Jt=null,cu(e),t)for(e=0;e>>=0,e===0?32:31-(Mf(e)/Ff|0)|0}var hr=64,mr=4194304;function Pn(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 Wr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Pn(u):(o&=i,o!==0&&(r=Pn(o)))}else i=n&~l,i!==0?r=Pn(i):o!==0&&(r=Pn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-je(t),e[t]=n}function Bf(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=zn),wu=" ",Su=!1;function fa(e,t){switch(e){case"keyup":return hd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function da(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bt=!1;function vd(e,t){switch(e){case"compositionend":return da(t);case"keypress":return t.which!==32?null:(Su=!0,wu);case"textInput":return e=t.data,e===wu&&Su?null:e;default:return null}}function yd(e,t){if(Bt)return e==="compositionend"||!ki&&fa(e,t)?(e=aa(),zr=gi=nt=null,Bt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cu(n)}}function va(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?va(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ya(){for(var e=window,t=$r();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$r(e.document)}return t}function Ei(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 Pd(e){var t=ya(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&va(n.ownerDocument.documentElement,n)){if(r!==null&&Ei(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=_u(n,o);var i=_u(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vt=null,Po=null,On=null,No=!1;function Pu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;No||Vt==null||Vt!==$r(r)||(r=Vt,"selectionStart"in r&&Ei(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}),On&&Hn(On,r)||(On=r,r=Kr(Po,"onSelect"),0Ht||(e.current=jo[Ht],jo[Ht]=null,Ht--)}function F(e,t){Ht++,jo[Ht]=e.current,e.current=t}var mt={},ie=yt(mt),pe=yt(!1),Lt=mt;function rn(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function he(e){return e=e.childContextTypes,e!=null}function Xr(){U(pe),U(ie)}function ju(e,t,n){if(ie.current!==mt)throw Error(S(168));F(ie,t),F(pe,n)}function Pa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,kf(e)||"Unknown",l));return A({},n,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,Lt=ie.current,F(ie,e),F(pe,pe.current),!0}function Iu(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Pa(e,t,Lt),r.__reactInternalMemoizedMergedChildContext=e,U(pe),U(ie),F(ie,e)):U(pe),F(pe,n)}var Ae=null,yl=!1,Gl=!1;function Na(e){Ae===null?Ae=[e]:Ae.push(e)}function Ud(e){yl=!0,Na(e)}function gt(){if(!Gl&&Ae!==null){Gl=!0;var e=0,t=I;try{var n=Ae;for(I=1;e>=i,l-=i,We=1<<32-je(t)+l|n<L?(H=N,N=null):H=N.sibling;var O=m(f,N,d[L],v);if(O===null){N===null&&(N=H);break}e&&N&&O.alternate===null&&t(f,N),c=o(O,c,L),P===null?k=O:P.sibling=O,P=O,N=H}if(L===d.length)return n(f,N),$&&kt(f,L),k;if(N===null){for(;LL?(H=N,N=null):H=N.sibling;var Le=m(f,N,O.value,v);if(Le===null){N===null&&(N=H);break}e&&N&&Le.alternate===null&&t(f,N),c=o(Le,c,L),P===null?k=Le:P.sibling=Le,P=Le,N=H}if(O.done)return n(f,N),$&&kt(f,L),k;if(N===null){for(;!O.done;L++,O=d.next())O=p(f,O.value,v),O!==null&&(c=o(O,c,L),P===null?k=O:P.sibling=O,P=O);return $&&kt(f,L),k}for(N=r(f,N);!O.done;L++,O=d.next())O=y(N,f,L,O.value,v),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?L:O.key),c=o(O,c,L),P===null?k=O:P.sibling=O,P=O);return e&&N.forEach(function(hn){return t(f,hn)}),$&&kt(f,L),k}function x(f,c,d,v){if(typeof d=="object"&&d!==null&&d.type===$t&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case fr:e:{for(var k=d.key,P=c;P!==null;){if(P.key===k){if(k=d.type,k===$t){if(P.tag===7){n(f,P.sibling),c=l(P,d.props.children),c.return=f,f=c;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===qe&&Du(k)===P.type){n(f,P.sibling),c=l(P,d.props),c.ref=kn(f,P,d),c.return=f,f=c;break e}n(f,P);break}else t(f,P);P=P.sibling}d.type===$t?(c=Nt(d.props.children,f.mode,v,d.key),c.return=f,f=c):(v=Ur(d.type,d.key,d.props,null,f.mode,v),v.ref=kn(f,c,d),v.return=f,f=v)}return i(f);case Ut:e:{for(P=d.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=l(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=ro(d,f.mode,v),c.return=f,f=c}return i(f);case qe:return P=d._init,x(f,c,P(d._payload),v)}if(_n(d))return g(f,c,d,v);if(vn(d))return w(f,c,d,v);Er(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,d),c.return=f,f=c):(n(f,c),c=no(d,f.mode,v),c.return=f,f=c),i(f)):n(f,c)}return x}var on=Ta(!0),Oa=Ta(!1),qr=yt(null),br=null,Yt=null,Pi=null;function Ni(){Pi=Yt=br=null}function Li(e){var t=qr.current;U(qr),e._currentValue=t}function Fo(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 en(e,t){br=e,Pi=Yt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(de=!0),e.firstContext=null)}function Pe(e){var t=e._currentValue;if(Pi!==e)if(e={context:e,memoizedValue:t,next:null},Yt===null){if(br===null)throw Error(S(308));Yt=e,br.dependencies={lanes:0,firstContext:e}}else Yt=Yt.next=e;return t}var Ct=null;function Ri(e){Ct===null?Ct=[e]:Ct.push(e)}function ja(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ri(t)):(n.next=l.next,l.next=n),t.interleaved=n,Xe(e,r)}function Xe(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 be=!1;function zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(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 Qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function at(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,j&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Xe(e,n)}return l=r.interleaved,l===null?(t.next=t,Ri(r)):(t.next=l.next,l.next=t),r.interleaved=t,Xe(e,n)}function Or(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,mi(e,n)}}function Uu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,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 el(e,t,n,r){var l=e.updateQueue;be=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==i&&(u===null?h.firstBaseUpdate=a:u.next=a,h.lastBaseUpdate=s))}if(o!==null){var p=l.baseState;i=0,h=a=s=null,u=o;do{var m=u.lane,y=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:y,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,w=u;switch(m=t,y=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){p=g.call(y,p,m);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,m=typeof g=="function"?g.call(y,p,m):g,m==null)break e;p=A({},p,m);break e;case 2:be=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else y={eventTime:y,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(a=h=y,s=p):h=h.next=y,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(s=p),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Tt|=i,e.lanes=i,e.memoizedState=p}}function $u(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Jl.transition;Jl.transition={};try{e(!1),t()}finally{I=n,Jl.transition=r}}function Ja(){return Ne().memoizedState}function Ad(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))ba(t,n);else if(n=ja(e,t,n,r),n!==null){var l=se();Ie(n,e,r,l),ec(n,t,r)}}function Wd(e,t,n){var r=ft(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))ba(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Me(u,i)){var s=t.interleaved;s===null?(l.next=l,Ri(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=ja(e,t,l,r),n!==null&&(l=se(),Ie(n,e,r,l),ec(n,t,r))}}function qa(e){var t=e.alternate;return e===V||t!==null&&t===V}function ba(e,t){jn=nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ec(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}var rl={readContext:Pe,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useInsertionEffect:re,useLayoutEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useMutableSource:re,useSyncExternalStore:re,useId:re,unstable_isNewReconciler:!1},Hd={readContext:Pe,useCallback:function(e,t){return De().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:Vu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ir(4194308,4,Ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ir(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ir(4,2,e,t)},useMemo:function(e,t){var n=De();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=De();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=Ad.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=De();return e={current:e},t.memoizedState=e},useState:Bu,useDebugValue:Ui,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=Bu(!1),t=e[0];return e=Vd.bind(null,e[1]),De().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,l=De();if($){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),b===null)throw Error(S(349));zt&30||Ua(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Vu(Ba.bind(null,r,o,e),[e]),r.flags|=2048,qn(9,$a.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=De(),t=b.identifierPrefix;if($){var n=He,r=We;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Et]=t,e[el]=r,id(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ii(n,r),n){case"dialog":ie("cancel",e),ie("close",e),l=r;break;case"iframe":case"object":case"embed":ie("load",e),l=r;break;case"video":case"audio":for(l=0;lsr&&(t.flags|=128,r=!0,Cr(o,!1),t.lanes=4194304)}else{if(!r)if(e=vo(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ce)return ze(t),null}else 2*ye()-o.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Cr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ye(),t.sibling=null,n=de.current,le(de,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return ua(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function dm(e,t){switch(Bu(t),t.tag){case 1:return Ke(t.type)&&ao(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ur(),ue(Qe),ue(Fe),Ju(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gu(t),null;case 13:if(ue(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(de),null;case 4:return ur(),null;case 10:return Qu(t.type._context),null;case 22:case 23:return ua(),null;case 24:return null;default:return null}}var Il=!1,Oe=!1,pm=typeof WeakSet=="function"?WeakSet:Set,O=null;function Gn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(e,t,r)}else n.current=null}function cu(e,t,n){try{n()}catch(r){ve(e,t,r)}}var Ds=!1;function hm(e,t){if(Yi=lo,e=pf(),Au(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,a=-1,s=0,p=0,c=e,d=null;t:for(;;){for(var k;c!==n||l!==0&&c.nodeType!==3||(u=i+l),c!==o||r!==0&&c.nodeType!==3||(a=i+r),c.nodeType===3&&(i+=c.nodeValue.length),(k=c.firstChild)!==null;)d=c,c=k;for(;;){if(c===e)break t;if(d===n&&++s===l&&(u=i),d===o&&++p===r&&(a=i),(k=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=k}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xi={focusedElem:e,selectionRange:n},lo=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var S=E.memoizedProps,T=E.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:ct(t.type,S),T);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(x){ve(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return E=Ds,Ds=!1,E}function $r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&cu(t,n,o)}l=l.next}while(l!==r)}}function Fo(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 fu(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 sd(e){var t=e.alternate;t!==null&&(e.alternate=null,sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Et],delete t[el],delete t[Zi],delete t[Jh],delete t[Zh])),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 cd(e){return e.tag===5||e.tag===3||e.tag===4}function Ms(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cd(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 du(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=uo));else if(r!==4&&(e=e.child,e!==null))for(du(e,t,n),e=e.sibling;e!==null;)du(e,t,n),e=e.sibling}function pu(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(pu(e,t,n),e=e.sibling;e!==null;)pu(e,t,n),e=e.sibling}var Ne=null,ft=!1;function Vt(e,t,n){for(n=n.child;n!==null;)fd(e,t,n),n=n.sibling}function fd(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(Ro,n)}catch{}switch(n.tag){case 5:Oe||Gn(n,t);case 6:var r=Ne,l=ft;Ne=null,Vt(e,t,n),Ne=r,ft=l,Ne!==null&&(ft?(e=Ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ne.removeChild(n.stateNode));break;case 18:Ne!==null&&(ft?(e=Ne,n=n.stateNode,e.nodeType===8?di(e.parentNode,n):e.nodeType===1&&di(e,n),Gr(e)):di(Ne,n.stateNode));break;case 4:r=Ne,l=ft,Ne=n.stateNode.containerInfo,ft=!0,Vt(e,t,n),Ne=r,ft=l;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&cu(n,t,i),l=l.next}while(l!==r)}Vt(e,t,n);break;case 1:if(!Oe&&(Gn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ve(n,t,u)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,Vt(e,t,n),Oe=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function zs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pm),t.forEach(function(r){var l=xm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function st(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vm(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Eo=0,X&6)throw Error(P(331));var l=X;for(X|=4,O=e.current;O!==null;){var o=O,i=o.child;if(O.flags&16){var u=o.deletions;if(u!==null){for(var a=0;aye()-oa?En(e,0):la|=n),Ye(e,t)}function wd(e,t){t===0&&(e.mode&1?(t=Ll,Ll<<=1,!(Ll&130023424)&&(Ll=4194304)):t=1);var n=$e();e=Ot(e,t),e!==null&&(fl(e,t,n),Ye(e,n))}function km(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wd(e,n)}function xm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),wd(e,n)}var Sd;Sd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,cm(e,t,n);We=!!(e.flags&131072)}else We=!1,ce&&t.flags&1048576&&Cf(t,fo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xl(e,t),e=t.pendingProps;var l=lr(t,Fe.current);tr(t,n),l=qu(null,t,r,e,l,n);var o=bu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(o=!0,so(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Yu(t),l.updater=Oo,t.stateNode=l,l._reactInternals=t,ru(t,r,e,n),t=iu(null,t,r,!0,o,n)):(t.tag=0,ce&&o&&$u(t),Ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=_m(r),e=ct(r,e),l){case 0:t=ou(null,t,r,e,n);break e;case 1:t=Ls(null,t,r,e,n);break e;case 11:t=Ps(null,t,r,e,n);break e;case 14:t=Rs(null,t,r,ct(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),ou(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),Ls(e,t,r,l,n);case 3:e:{if(rd(t),e===null)throw Error(P(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Tf(e,t),mo(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=ar(Error(P(423)),t),t=Ns(e,t,r,n,l);break e}else if(r!==l){l=ar(Error(P(424)),t),t=Ns(e,t,r,n,l);break e}else for(Ze=bt(t.stateNode.containerInfo.firstChild),qe=t,ce=!0,pt=null,n=Lf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===l){t=Ft(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Df(t),e===null&&eu(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Gi(r,l)?i=null:o!==null&&Gi(r,o)&&(t.flags|=32),nd(e,t),Ae(e,t,i,n),t.child;case 6:return e===null&&eu(t),null;case 13:return ld(e,t,n);case 4:return Xu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),Ps(e,t,r,l,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,le(po,r._currentValue),r._currentValue=i,o!==null)if(vt(o.value,i)){if(o.children===l.children&&!Qe.current){t=Ft(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Tt(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var p=s.pending;p===null?a.next=a:(a.next=p.next,p.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),tu(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(P(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),tu(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tr(t,n),l=it(l),r=r(l),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,l=ct(r,t.pendingProps),l=ct(r.type,l),Rs(e,t,r,l,n);case 15:return ed(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),Xl(e,t),t.tag=1,Ke(r)?(e=!0,so(t)):e=!1,tr(t,n),Zf(t,r,l),ru(t,r,l,n),iu(null,t,r,!0,e,n);case 19:return od(e,t,n);case 22:return td(e,t,n)}throw Error(P(156,t.tag))};function Ed(e,t){return Yc(e,t)}function Cm(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 lt(e,t,n,r){return new Cm(e,t,n,r)}function sa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _m(e){if(typeof e=="function")return sa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lu)return 11;if(e===Nu)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=lt(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 Zl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")sa(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $n:return kn(n.children,l,o,t);case Ru:i=8,l|=8;break;case Ri:return e=lt(12,n,t,l|2),e.elementType=Ri,e.lanes=o,e;case Li:return e=lt(13,n,t,l),e.elementType=Li,e.lanes=o,e;case Ni:return e=lt(19,n,t,l),e.elementType=Ni,e.lanes=o,e;case Tc:return Io(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lc:i=10;break e;case Nc:i=9;break e;case Lu:i=11;break e;case Nu:i=14;break e;case Wt:i=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=lt(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function kn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function Io(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Tc,e.lanes=n,e.stateNode={isHidden:!1},e}function Si(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function Ei(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ti(0),this.expirationTimes=ti(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ti(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ca(e,t,n,r,l,o,i,u,a){return e=new Pm(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yu(o),e}function Rm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_d)}catch(e){console.error(e)}}_d(),Cc.exports=et;var ha=Cc.exports;const Mm=fc(ha),zm=cc({__proto__:null,default:Mm},[ha]);var Bs=ha;_i.createRoot=Bs.createRoot,_i.hydrateRoot=Bs.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function eo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $o(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Yd=typeof WeakMap=="function"?WeakMap:Map;function nc(e,t,n){n=Qe(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ol||(ol=!0,Go=r),$o(e,t)},n}function rc(e,t,n){n=Qe(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){$o(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){$o(e,t),typeof r!="function"&&(ct===null?ct=new Set([this]):ct.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Hu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Yd;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=up.bind(null,e,t,n),t.then(e,e))}function Qu(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 Ku(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=Qe(-1,1),t.tag=2,at(n,t,1))),n.lanes|=1),e)}var Xd=Ze.ReactCurrentOwner,de=!1;function ue(e,t,n,r){t.child=e===null?Oa(t,null,n,r):on(t,e.child,n,r)}function Yu(e,t,n,r,l){n=n.render;var o=t.ref;return en(t,l),r=Mi(e,t,n,r,o,l),n=Fi(),e!==null&&!de?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ge(e,t,l)):($&&n&&xi(t),t.flags|=1,ue(e,t,r,l),t.child)}function Xu(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Ki(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,lc(e,t,o,r,l)):(e=Ur(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Hn,n(i,r)&&e.ref===t.ref)return Ge(e,t,l)}return t.flags|=1,e=dt(o,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Hn(o,r)&&e.ref===t.ref)if(de=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(de=!0);else return t.lanes=e.lanes,Ge(e,t,l)}return Bo(e,t,n,r,l)}function oc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(Gt,ve),ve|=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,F(Gt,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,F(Gt,ve),ve|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,F(Gt,ve),ve|=r;return ue(e,t,l,n),t.child}function ic(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bo(e,t,n,r,l){var o=he(n)?Lt:ie.current;return o=rn(t,o),en(t,l),n=Mi(e,t,n,r,o,l),r=Fi(),e!==null&&!de?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ge(e,t,l)):($&&r&&xi(t),t.flags|=1,ue(e,t,n,l),t.child)}function Gu(e,t,n,r,l){if(he(n)){var o=!0;Gr(t)}else o=!1;if(en(t,l),t.stateNode===null)Mr(e,t),tc(t,n,r),Uo(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Pe(a):(a=he(n)?Lt:ie.current,a=rn(t,a));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&Wu(t,i,r,a),be=!1;var m=t.memoizedState;i.state=m,el(t,r,i,l),s=t.memoizedState,u!==r||m!==s||pe.current||be?(typeof h=="function"&&(Do(t,n,h,r),s=t.memoizedState),(u=be||Au(t,n,u,r,m,s,a))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ia(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:ze(t.type,u),i.props=a,p=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Pe(s):(s=he(n)?Lt:ie.current,s=rn(t,s));var y=n.getDerivedStateFromProps;(h=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==p||m!==s)&&Wu(t,i,r,s),be=!1,m=t.memoizedState,i.state=m,el(t,r,i,l);var g=t.memoizedState;u!==p||m!==g||pe.current||be?(typeof y=="function"&&(Do(t,n,y,r),g=t.memoizedState),(a=be||Au(t,n,a,r,m,g,s)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,g,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,g,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=s,r=a):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Vo(e,t,n,r,o,l)}function Vo(e,t,n,r,l,o){ic(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Iu(t,n,!1),Ge(e,t,o);r=t.stateNode,Xd.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=on(t,e.child,null,o),t.child=on(t,null,u,o)):ue(e,t,u,o),t.memoizedState=r.state,l&&Iu(t,n,!0),t.child}function uc(e){var t=e.stateNode;t.pendingContext?ju(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ju(e,t.context,!1),Ti(e,t.containerInfo)}function Zu(e,t,n,r,l){return ln(),_i(l),t.flags|=256,ue(e,t,n,r),t.child}var Ao={dehydrated:null,treeContext:null,retryLane:0};function Wo(e){return{baseLanes:e,cachePool:null,transitions:null}}function sc(e,t,n){var r=t.pendingProps,l=B.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),F(B,l&1),e===null)return Mo(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):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=El(i,r,0,null),e=Nt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Wo(n),t.memoizedState=Ao,e):$i(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return Gd(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=dt(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=dt(u,o):(o=Nt(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Wo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Ao,r}return o=e.child,e=o.sibling,r=dt(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 $i(e,t){return t=El({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xr(e,t,n,r){return r!==null&&_i(r),on(t,e.child,null,n),e=$i(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gd(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=eo(Error(S(422))),xr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=El({mode:"visible",children:r.children},l,0,null),o=Nt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&on(t,e.child,null,i),t.child.memoizedState=Wo(i),t.memoizedState=Ao,o);if(!(t.mode&1))return xr(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(S(419)),r=eo(o,r,void 0),xr(e,t,i,r)}if(u=(i&e.childLanes)!==0,de||u){if(r=b,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Xe(e,l),Ie(r,e,l,-1))}return Qi(),r=eo(Error(S(421))),xr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=sp.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ye=st(l.nextSibling),ge=t,$=!0,Oe=null,e!==null&&(Ee[xe++]=We,Ee[xe++]=He,Ee[xe++]=Rt,We=e.id,He=e.overflow,Rt=t),t=$i(t,r.children),t.flags|=4096,t)}function Ju(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Fo(e.return,t,n)}function to(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function ac(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ue(e,t,r.children,n),r=B.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&&Ju(e,n,t);else if(e.tag===19)Ju(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(F(B,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&tl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),to(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&tl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}to(t,!0,n,null,o);break;case"together":to(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ge(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=dt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Zd(e,t,n){switch(t.tag){case 3:uc(t),ln();break;case 5:Ma(t);break;case 1:he(t.type)&&Gr(t);break;case 4:Ti(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;F(qr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(F(B,B.current&1),t.flags|=128,null):n&t.child.childLanes?sc(e,t,n):(F(B,B.current&1),e=Ge(e,t,n),e!==null?e.sibling:null);F(B,B.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ac(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),F(B,B.current),r)break;return null;case 22:case 23:return t.lanes=0,oc(e,t,n)}return Ge(e,t,n)}var cc,Ho,fc,dc;cc=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}};Ho=function(){};fc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,_t(Be.current);var o=null;switch(n){case"input":l=fo(e,l),r=fo(e,r),o=[];break;case"select":l=A({},l,{value:void 0}),r=A({},r,{value:void 0}),o=[];break;case"textarea":l=mo(e,l),r=mo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yr)}yo(n,r);var i;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var u=l[a];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Dn.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var s=r[a];if(u=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Dn.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&D("scroll",e),o||u===s||(o=[])):(o=o||[]).push(a,s))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};dc=function(e,t,n,r){n!==r&&(t.flags|=4)};function En(e,t){if(!$)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 le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Jd(e,t,n){var r=t.pendingProps;switch(Ci(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return le(t),null;case 1:return he(t.type)&&Xr(),le(t),null;case 3:return r=t.stateNode,un(),U(pe),U(ie),ji(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Oe!==null&&(qo(Oe),Oe=null))),Ho(e,t),le(t),null;case 5:Oi(t);var l=_t(Gn.current);if(n=t.type,e!==null&&t.stateNode!=null)fc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return le(t),null}if(e=_t(Be.current),kr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ue]=t,r[Yn]=o,e=(t.mode&1)!==0,n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ue]=t,e[Yn]=r,cc(e,t,!1,!1),t.stateNode=e;e:{switch(i=go(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lan&&(t.flags|=128,r=!0,En(o,!1),t.lanes=4194304)}else{if(!r)if(e=tl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),En(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return le(t),null}else 2*K()-o.renderingStartTime>an&&n!==1073741824&&(t.flags|=128,r=!0,En(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=B.current,F(B,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return Hi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function qd(e,t){switch(Ci(t),t.tag){case 1:return he(t.type)&&Xr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return un(),U(pe),U(ie),ji(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oi(t),null;case 13:if(U(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(B),null;case 4:return un(),null;case 10:return Li(t.type._context),null;case 22:case 23:return Hi(),null;case 24:return null;default:return null}}var Cr=!1,oe=!1,bd=typeof WeakSet=="function"?WeakSet:Set,C=null;function Xt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function Qo(e,t,n){try{n()}catch(r){W(e,t,r)}}var qu=!1;function ep(e,t){if(Lo=Hr,e=ya(),Ei(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,h=0,p=e,m=null;t:for(;;){for(var y;p!==n||l!==0&&p.nodeType!==3||(u=i+l),p!==o||r!==0&&p.nodeType!==3||(s=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++h===r&&(s=i),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ro={focusedElem:e,selectionRange:n},Hr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,x=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?w:ze(t.type,w),x);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(v){W(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return g=qu,qu=!1,g}function In(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Qo(t,n,o)}l=l.next}while(l!==r)}}function Sl(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 Ko(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 pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ue],delete t[Yn],delete t[Oo],delete t[Fd],delete t[Dd])),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 hc(e){return e.tag===5||e.tag===3||e.tag===4}function bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(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 Yo(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=Yr));else if(r!==4&&(e=e.child,e!==null))for(Yo(e,t,n),e=e.sibling;e!==null;)Yo(e,t,n),e=e.sibling}function Xo(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(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}var ee=null,Te=!1;function Je(e,t,n){for(n=n.child;n!==null;)mc(e,t,n),n=n.sibling}function mc(e,t,n){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:oe||Xt(n,t);case 6:var r=ee,l=Te;ee=null,Je(e,t,n),ee=r,Te=l,ee!==null&&(Te?(e=ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ee.removeChild(n.stateNode));break;case 18:ee!==null&&(Te?(e=ee,n=n.stateNode,e.nodeType===8?Xl(e.parentNode,n):e.nodeType===1&&Xl(e,n),An(e)):Xl(ee,n.stateNode));break;case 4:r=ee,l=Te,ee=n.stateNode.containerInfo,Te=!0,Je(e,t,n),ee=r,Te=l;break;case 0:case 11:case 14:case 15:if(!oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Qo(n,t,i),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!oe&&(Xt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){W(n,t,u)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,Je(e,t,n),oe=r):Je(e,t,n);break;default:Je(e,t,n)}}function es(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bd),t.forEach(function(r){var l=ap.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Re(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*np(r/1960))-r,10e?16:e,rt===null)var r=!1;else{if(e=rt,rt=null,il=0,j&6)throw Error(S(331));var l=j;for(j|=4,C=e.current;C!==null;){var o=C,i=o.child;if(C.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-Ai?Pt(e,0):Vi|=n),me(e,t)}function xc(e,t){t===0&&(e.mode&1?(t=mr,mr<<=1,!(mr&130023424)&&(mr=4194304)):t=1);var n=se();e=Xe(e,t),e!==null&&(rr(e,t,n),me(e,n))}function sp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xc(e,n)}function ap(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),xc(e,n)}var Cc;Cc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,Zd(e,t,n);de=!!(e.flags&131072)}else de=!1,$&&t.flags&1048576&&La(t,Jr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Mr(e,t),e=t.pendingProps;var l=rn(t,ie.current);en(t,n),l=Mi(null,t,r,e,l,n);var o=Fi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)?(o=!0,Gr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,zi(t),l.updater=wl,t.stateNode=l,l._reactInternals=t,Uo(t,r,e,n),t=Vo(null,t,r,!0,o,n)):(t.tag=0,$&&o&&xi(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Mr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=fp(r),e=ze(r,e),l){case 0:t=Bo(null,t,r,e,n);break e;case 1:t=Gu(null,t,r,e,n);break e;case 11:t=Yu(null,t,r,e,n);break e;case 14:t=Xu(null,t,r,ze(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Bo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Gu(e,t,r,l,n);case 3:e:{if(uc(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Ia(e,t),el(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=sn(Error(S(423)),t),t=Zu(e,t,r,n,l);break e}else if(r!==l){l=sn(Error(S(424)),t),t=Zu(e,t,r,n,l);break e}else for(ye=st(t.stateNode.containerInfo.firstChild),ge=t,$=!0,Oe=null,n=Oa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ln(),r===l){t=Ge(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return Ma(t),e===null&&Mo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,zo(r,l)?i=null:o!==null&&zo(r,o)&&(t.flags|=32),ic(e,t),ue(e,t,i,n),t.child;case 6:return e===null&&Mo(t),null;case 13:return sc(e,t,n);case 4:return Ti(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=on(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Yu(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,F(qr,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!pe.current){t=Ge(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Qe(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?s.next=s:(s.next=h.next,h.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Fo(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(S(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Fo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,en(t,n),l=Pe(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=ze(r,t.pendingProps),l=ze(r.type,l),Xu(e,t,r,l,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Mr(e,t),t.tag=1,he(r)?(e=!0,Gr(t)):e=!1,en(t,n),tc(t,r,l),Uo(t,r,l,n),Vo(null,t,r,!0,e,n);case 19:return ac(e,t,n);case 22:return oc(e,t,n)}throw Error(S(156,t.tag))};function _c(e,t){return qs(e,t)}function cp(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 Ce(e,t,n,r){return new cp(e,t,n,r)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fp(e){if(typeof e=="function")return Ki(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fi)return 11;if(e===di)return 14}return 2}function dt(e,t){var n=e.alternate;return n===null?(n=Ce(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 Ur(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ki(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $t:return Nt(n.children,l,o,t);case ci:i=8,l|=8;break;case uo:return e=Ce(12,n,t,l|2),e.elementType=uo,e.lanes=o,e;case so:return e=Ce(13,n,t,l),e.elementType=so,e.lanes=o,e;case ao:return e=Ce(19,n,t,l),e.elementType=ao,e.lanes=o,e;case Ms:return El(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case js:i=10;break e;case Is:i=9;break e;case fi:i=11;break e;case di:i=14;break e;case qe:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ce(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Nt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=Ms,e.lanes=n,e.stateNode={isHidden:!1},e}function no(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function ro(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dl(0),this.expirationTimes=Dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Yi(e,t,n,r,l,o,i,u,s){return e=new dp(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ce(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zi(o),e}function pp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rc)}catch(e){console.error(e)}}Rc(),Rs.exports=Se;var gp=Rs.exports,ss=gp;oo.createRoot=ss.createRoot,oo.hydrateRoot=ss.hydrateRoot;/** * @remix-run/router v1.17.1 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fm(){return Math.random().toString(36).substr(2,8)}function Hs(e,t){return{usr:e.state,key:e.key,idx:t}}function ul(e,t,n,r){return n===void 0&&(n=null),fe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?cn(t):t,{state:n,key:t&&t.key||r||Fm()})}function Ln(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 cn(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 jm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=Se.Pop,a=null,s=p();s==null&&(s=0,i.replaceState(fe({},i.state,{idx:s}),""));function p(){return(i.state||{idx:null}).idx}function c(){u=Se.Pop;let T=p(),m=T==null?null:T-s;s=T,a&&a({action:u,location:S.location,delta:m})}function d(T,m){u=Se.Push;let f=ul(S.location,T,m);s=p()+1;let v=Hs(f,s),x=S.createHref(f);try{i.pushState(v,"",x)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(x)}o&&a&&a({action:u,location:S.location,delta:1})}function k(T,m){u=Se.Replace;let f=ul(S.location,T,m);s=p();let v=Hs(f,s),x=S.createHref(f);i.replaceState(v,"",x),o&&a&&a({action:u,location:S.location,delta:0})}function E(T){let m=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof T=="string"?T:Ln(T);return f=f.replace(/ $/,"%20"),Q(m,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,m)}let S={get action(){return u},get location(){return e(l,i)},listen(T){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Vs,c),a=T,()=>{l.removeEventListener(Vs,c),a=null}},createHref(T){return t(l,T)},createURL:E,encodeLocation(T){let m=E(T);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:k,go(T){return i.go(T)}};return S}var re;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(re||(re={}));const Im=new Set(["lazy","caseSensitive","path","id","index","children"]);function Um(e){return e.index===!0}function al(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,String(o)],u=typeof l.id=="string"?l.id:i.join("-");if(Q(l.index!==!0||!l.children,"Cannot specify children on an index route"),Q(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),Um(l)){let a=fe({},l,t(l),{id:u});return r[u]=a,a}else{let a=fe({},l,t(l),{id:u,children:void 0});return r[u]=a,l.children&&(a.children=al(l.children,t,i,r)),a}})}function mn(e,t,n){return n===void 0&&(n="/"),ql(e,t,n,!1)}function ql(e,t,n,r){let l=typeof t=="string"?cn(t):t,o=hr(l.pathname||"/",n);if(o==null)return null;let i=Pd(e);$m(i);let u=null;for(let a=0;u==null&&a{let a={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(Q(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let s=Dt([r,a.relativePath]),p=n.concat(a);o.children&&o.children.length>0&&(Q(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Pd(o.children,t,p,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Ym(s,o.index),routesMeta:p})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let a of Rd(o.path))l(o,i,a)}),t}function Rd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Rd(r.join("/")),u=[];return u.push(...i.map(a=>a===""?o:[o,a].join("/"))),l&&u.push(...i),u.map(a=>e.startsWith("/")&&a===""?"/":a)}function $m(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Xm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Bm=/^:[\w-]+$/,Vm=3,Hm=2,Wm=1,Qm=10,Km=-2,Ws=e=>e==="*";function Ym(e,t){let n=e.split("/"),r=n.length;return n.some(Ws)&&(r+=Km),t&&(r+=Hm),n.filter(l=>!Ws(l)).reduce((l,o)=>l+(Bm.test(o)?Vm:o===""?Wm:Qm),r)}function Xm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Gm(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,l={},o="/",i=[];for(let u=0;u{let{paramName:d,isOptional:k}=p;if(d==="*"){let S=u[c]||"";i=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const E=u[c];return k&&!E?s[d]=void 0:s[d]=(E||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Jm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,a)=>(r.push({paramName:u,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Zm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cr(!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 hr(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 qm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?cn(e):e;return{pathname:n?n.startsWith("/")?n:bm(n,t):t,search:tv(r),hash:nv(l)}}function bm(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function ki(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ld(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ma(e,t){let n=Ld(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function va(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=cn(e):(l=fe({},e),Q(!l.pathname||!l.pathname.includes("?"),ki("?","pathname","search",l)),Q(!l.pathname||!l.pathname.includes("#"),ki("#","pathname","hash",l)),Q(!l.search||!l.search.includes("#"),ki("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let c=t.length-1;if(!r&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),c-=1;l.pathname=d.join("/")}u=c>=0?t[c]:"/"}let a=qm(l,u),s=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(s||p)&&(a.pathname+="/"),a}const Dt=e=>e.join("/").replace(/\/\/+/g,"/"),ev=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ya{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Vo(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Nd=["post","put","patch","delete"],rv=new Set(Nd),lv=["get",...Nd],ov=new Set(lv),iv=new Set([301,302,303,307,308]),uv=new Set([307,308]),xi={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},av={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Pr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ga=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Td="remix-router-transitions";function cv(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;Q(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let h=e.detectErrorBoundary;l=y=>({hasErrorBoundary:h(y)})}else l=sv;let o={},i=al(e.routes,l,void 0,o),u,a=e.basename||"/",s=e.unstable_dataStrategy||mv,p=e.unstable_patchRoutesOnMiss,c=fe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),d=null,k=new Set,E=null,S=null,T=null,m=e.hydrationData!=null,f=mn(i,e.history.location,a),v=null;if(f==null&&!p){let h=Ue(404,{pathname:e.history.location.pathname}),{matches:y,route:w}=tc(i);f=y,v={[w.id]:h}}f&&p&&Go(f,i,e.history.location.pathname).active&&(f=null);let x;if(!f)x=!1,f=[];else if(f.some(h=>h.route.lazy))x=!1;else if(!f.some(h=>h.route.loader))x=!0;else if(c.v7_partialHydration){let h=e.hydrationData?e.hydrationData.loaderData:null,y=e.hydrationData?e.hydrationData.errors:null,w=C=>C.route.loader?typeof C.route.loader=="function"&&C.route.loader.hydrate===!0?!1:h&&h[C.route.id]!==void 0||y&&y[C.route.id]!==void 0:!0;if(y){let C=f.findIndex(M=>y[M.route.id]!==void 0);x=f.slice(0,C+1).every(w)}else x=f.every(w)}else x=e.hydrationData!=null;let L,g={historyAction:e.history.action,location:e.history.location,matches:f,initialized:x,navigation:xi,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||v,fetchers:new Map,blockers:new Map},R=Se.Pop,D=!1,F,I=!1,K=new Map,Ce=null,ae=!1,ge=!1,It=[],Ut=[],se=new Map,z=0,B=-1,V=new Map,G=new Set,oe=new Map,yt=new Map,Re=new Set,at=new Map,je=new Map,Mn=new Map,Qo=!1;function Hd(){if(d=e.history.listen(h=>{let{action:y,location:w,delta:C}=h;if(Qo){Qo=!1;return}cr(je.size===0||C!=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 M=Na({currentLocation:g.location,nextLocation:w,historyAction:y});if(M&&C!=null){Qo=!0,e.history.go(C*-1),yl(M,{state:"blocked",location:w,proceed(){yl(M,{state:"proceeding",proceed:void 0,reset:void 0,location:w}),e.history.go(C)},reset(){let j=new Map(g.blockers);j.set(M,Pr),Ie({blockers:j})}});return}return dn(y,w)}),n){Lv(t,K);let h=()=>Nv(t,K);t.addEventListener("pagehide",h),Ce=()=>t.removeEventListener("pagehide",h)}return g.initialized||dn(Se.Pop,g.location,{initialHydration:!0}),L}function Wd(){d&&d(),Ce&&Ce(),k.clear(),F&&F.abort(),g.fetchers.forEach((h,y)=>vl(y)),g.blockers.forEach((h,y)=>La(y))}function Qd(h){return k.add(h),()=>k.delete(h)}function Ie(h,y){y===void 0&&(y={}),g=fe({},g,h);let w=[],C=[];c.v7_fetcherPersist&&g.fetchers.forEach((M,j)=>{M.state==="idle"&&(Re.has(j)?C.push(j):w.push(j))}),[...k].forEach(M=>M(g,{deletedFetchers:C,unstable_viewTransitionOpts:y.viewTransitionOpts,unstable_flushSync:y.flushSync===!0})),c.v7_fetcherPersist&&(w.forEach(M=>g.fetchers.delete(M)),C.forEach(M=>vl(M)))}function zn(h,y,w){var C,M;let{flushSync:j}=w===void 0?{}:w,$=g.actionData!=null&&g.navigation.formMethod!=null&&dt(g.navigation.formMethod)&&g.navigation.state==="loading"&&((C=h.state)==null?void 0:C._isRedirect)!==!0,N;y.actionData?Object.keys(y.actionData).length>0?N=y.actionData:N=null:$?N=g.actionData:N=null;let H=y.loaderData?bs(g.loaderData,y.loaderData,y.matches||[],y.errors):g.loaderData,U=g.blockers;U.size>0&&(U=new Map(U),U.forEach((J,ee)=>U.set(ee,Pr)));let A=D===!0||g.navigation.formMethod!=null&&dt(g.navigation.formMethod)&&((M=h.state)==null?void 0:M._isRedirect)!==!0;u&&(i=u,u=void 0),ae||R===Se.Pop||(R===Se.Push?e.history.push(h,h.state):R===Se.Replace&&e.history.replace(h,h.state));let b;if(R===Se.Pop){let J=K.get(g.location.pathname);J&&J.has(h.pathname)?b={currentLocation:g.location,nextLocation:h}:K.has(h.pathname)&&(b={currentLocation:h,nextLocation:g.location})}else if(I){let J=K.get(g.location.pathname);J?J.add(h.pathname):(J=new Set([h.pathname]),K.set(g.location.pathname,J)),b={currentLocation:g.location,nextLocation:h}}Ie(fe({},y,{actionData:N,loaderData:H,historyAction:R,location:h,initialized:!0,navigation:xi,revalidation:"idle",restoreScrollPosition:Da(h,y.matches||g.matches),preventScrollReset:A,blockers:U}),{viewTransitionOpts:b,flushSync:j===!0}),R=Se.Pop,D=!1,I=!1,ae=!1,ge=!1,It=[],Ut=[]}async function Ea(h,y){if(typeof h=="number"){e.history.go(h);return}let w=gu(g.location,g.matches,a,c.v7_prependBasename,h,c.v7_relativeSplatPath,y==null?void 0:y.fromRouteId,y==null?void 0:y.relative),{path:C,submission:M,error:j}=Ks(c.v7_normalizeFormMethod,!1,w,y),$=g.location,N=ul(g.location,C,y&&y.state);N=fe({},N,e.history.encodeLocation(N));let H=y&&y.replace!=null?y.replace:void 0,U=Se.Push;H===!0?U=Se.Replace:H===!1||M!=null&&dt(M.formMethod)&&M.formAction===g.location.pathname+g.location.search&&(U=Se.Replace);let A=y&&"preventScrollReset"in y?y.preventScrollReset===!0:void 0,b=(y&&y.unstable_flushSync)===!0,J=Na({currentLocation:$,nextLocation:N,historyAction:U});if(J){yl(J,{state:"blocked",location:N,proceed(){yl(J,{state:"proceeding",proceed:void 0,reset:void 0,location:N}),Ea(h,y)},reset(){let ee=new Map(g.blockers);ee.set(J,Pr),Ie({blockers:ee})}});return}return await dn(U,N,{submission:M,pendingError:j,preventScrollReset:A,replace:y&&y.replace,enableViewTransition:y&&y.unstable_viewTransition,flushSync:b})}function Kd(){if(Ko(),Ie({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){dn(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}dn(R||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function dn(h,y,w){F&&F.abort(),F=null,R=h,ae=(w&&w.startUninterruptedRevalidation)===!0,np(g.location,g.matches),D=(w&&w.preventScrollReset)===!0,I=(w&&w.enableViewTransition)===!0;let C=u||i,M=w&&w.overrideNavigation,j=mn(C,y,a),$=(w&&w.flushSync)===!0,N=Go(j,C,y.pathname);if(N.active&&N.matches&&(j=N.matches),!j){let{error:Z,notFoundMatches:Le,route:we}=Yo(y.pathname);zn(y,{matches:Le,loaderData:{},errors:{[we.id]:Z}},{flushSync:$});return}if(g.initialized&&!ge&&Ev(g.location,y)&&!(w&&w.submission&&dt(w.submission.formMethod))){zn(y,{matches:j},{flushSync:$});return}F=new AbortController;let H=Un(e.history,y,F.signal,w&&w.submission),U;if(w&&w.pendingError)U=[Hr(j).route.id,{type:re.error,error:w.pendingError}];else if(w&&w.submission&&dt(w.submission.formMethod)){let Z=await Yd(H,y,w.submission,j,N.active,{replace:w.replace,flushSync:$});if(Z.shortCircuited)return;if(Z.pendingActionResult){let[Le,we]=Z.pendingActionResult;if(Je(we)&&Vo(we.error)&&we.error.status===404){F=null,zn(y,{matches:Z.matches,loaderData:{},errors:{[Le]:we.error}});return}}j=Z.matches||j,U=Z.pendingActionResult,M=Ci(y,w.submission),$=!1,N.active=!1,H=Un(e.history,H.url,H.signal)}let{shortCircuited:A,matches:b,loaderData:J,errors:ee}=await Xd(H,y,j,N.active,M,w&&w.submission,w&&w.fetcherSubmission,w&&w.replace,w&&w.initialHydration===!0,$,U);A||(F=null,zn(y,fe({matches:b||j},ec(U),{loaderData:J,errors:ee})))}async function Yd(h,y,w,C,M,j){j===void 0&&(j={}),Ko();let $=Pv(y,w);if(Ie({navigation:$},{flushSync:j.flushSync===!0}),M){let U=await wl(C,y.pathname,h.signal);if(U.type==="aborted")return{shortCircuited:!0};if(U.type==="error"){let{error:A,notFoundMatches:b,route:J}=gl(y.pathname,U);return{matches:b,pendingActionResult:[J.id,{type:re.error,error:A}]}}else if(U.matches)C=U.matches;else{let{notFoundMatches:A,error:b,route:J}=Yo(y.pathname);return{matches:A,pendingActionResult:[J.id,{type:re.error,error:b}]}}}let N,H=zr(C,y);if(!H.route.action&&!H.route.lazy)N={type:re.error,error:Ue(405,{method:h.method,pathname:y.pathname,routeId:H.route.id})};else if(N=(await vr("action",h,[H],C))[0],h.signal.aborted)return{shortCircuited:!0};if(Sn(N)){let U;return j&&j.replace!=null?U=j.replace:U=Js(N.response.headers.get("Location"),new URL(h.url),a)===g.location.pathname+g.location.search,await mr(h,N,{submission:w,replace:U}),{shortCircuited:!0}}if(wn(N))throw Ue(400,{type:"defer-action"});if(Je(N)){let U=Hr(C,H.route.id);return(j&&j.replace)!==!0&&(R=Se.Push),{matches:C,pendingActionResult:[U.route.id,N]}}return{matches:C,pendingActionResult:[H.route.id,N]}}async function Xd(h,y,w,C,M,j,$,N,H,U,A){let b=M||Ci(y,j),J=j||$||lc(b),ee=!ae&&(!c.v7_partialHydration||!H);if(C){if(ee){let me=ka(A);Ie(fe({navigation:b},me!==void 0?{actionData:me}:{}),{flushSync:U})}let W=await wl(w,y.pathname,h.signal);if(W.type==="aborted")return{shortCircuited:!0};if(W.type==="error"){let{error:me,notFoundMatches:Xe,route:te}=gl(y.pathname,W);return{matches:Xe,loaderData:{},errors:{[te.id]:me}}}else if(W.matches)w=W.matches;else{let{error:me,notFoundMatches:Xe,route:te}=Yo(y.pathname);return{matches:Xe,loaderData:{},errors:{[te.id]:me}}}}let Z=u||i,[Le,we]=Ys(e.history,g,w,J,y,c.v7_partialHydration&&H===!0,c.unstable_skipActionErrorRevalidation,ge,It,Ut,Re,oe,G,Z,a,A);if(Xo(W=>!(w&&w.some(me=>me.route.id===W))||Le&&Le.some(me=>me.route.id===W)),B=++z,Le.length===0&&we.length===0){let W=Pa();return zn(y,fe({matches:w,loaderData:{},errors:A&&Je(A[1])?{[A[0]]:A[1].error}:null},ec(A),W?{fetchers:new Map(g.fetchers)}:{}),{flushSync:U}),{shortCircuited:!0}}if(ee){let W={};if(!C){W.navigation=b;let me=ka(A);me!==void 0&&(W.actionData=me)}we.length>0&&(W.fetchers=Gd(we)),Ie(W,{flushSync:U})}we.forEach(W=>{se.has(W.key)&&$t(W.key),W.controller&&se.set(W.key,W.controller)});let yr=()=>we.forEach(W=>$t(W.key));F&&F.signal.addEventListener("abort",yr);let{loaderResults:Bt,fetcherResults:On}=await xa(g.matches,w,Le,we,h);if(h.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",yr),we.forEach(W=>se.delete(W.key));let Fn=nc([...Bt,...On]);if(Fn){if(Fn.idx>=Le.length){let W=we[Fn.idx-Le.length].key;G.add(W)}return await mr(h,Fn.result,{replace:N}),{shortCircuited:!0}}let{loaderData:jn,errors:gt}=qs(g,w,Le,Bt,A,we,On,at);at.forEach((W,me)=>{W.subscribe(Xe=>{(Xe||W.done)&&at.delete(me)})}),c.v7_partialHydration&&H&&g.errors&&Object.entries(g.errors).filter(W=>{let[me]=W;return!Le.some(Xe=>Xe.route.id===me)}).forEach(W=>{let[me,Xe]=W;gt=Object.assign(gt||{},{[me]:Xe})});let Sl=Pa(),El=Ra(B),kl=Sl||El||we.length>0;return fe({matches:w,loaderData:jn,errors:gt},kl?{fetchers:new Map(g.fetchers)}:{})}function ka(h){if(h&&!Je(h[1]))return{[h[0]]:h[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function Gd(h){return h.forEach(y=>{let w=g.fetchers.get(y.key),C=Rr(void 0,w?w.data:void 0);g.fetchers.set(y.key,C)}),new Map(g.fetchers)}function Jd(h,y,w,C){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.");se.has(h)&&$t(h);let M=(C&&C.unstable_flushSync)===!0,j=u||i,$=gu(g.location,g.matches,a,c.v7_prependBasename,w,c.v7_relativeSplatPath,y,C==null?void 0:C.relative),N=mn(j,$,a),H=Go(N,j,$);if(H.active&&H.matches&&(N=H.matches),!N){Ct(h,y,Ue(404,{pathname:$}),{flushSync:M});return}let{path:U,submission:A,error:b}=Ks(c.v7_normalizeFormMethod,!0,$,C);if(b){Ct(h,y,b,{flushSync:M});return}let J=zr(N,U);if(D=(C&&C.preventScrollReset)===!0,A&&dt(A.formMethod)){Zd(h,y,U,J,N,H.active,M,A);return}oe.set(h,{routeId:y,path:U}),qd(h,y,U,J,N,H.active,M,A)}async function Zd(h,y,w,C,M,j,$,N){Ko(),oe.delete(h);function H(te){if(!te.route.action&&!te.route.lazy){let _t=Ue(405,{method:N.formMethod,pathname:w,routeId:y});return Ct(h,y,_t,{flushSync:$}),!0}return!1}if(!j&&H(C))return;let U=g.fetchers.get(h);At(h,Rv(N,U),{flushSync:$});let A=new AbortController,b=Un(e.history,w,A.signal,N);if(j){let te=await wl(M,w,b.signal);if(te.type==="aborted")return;if(te.type==="error"){let{error:_t}=gl(w,te);Ct(h,y,_t,{flushSync:$});return}else if(te.matches){if(M=te.matches,C=zr(M,w),H(C))return}else{Ct(h,y,Ue(404,{pathname:w}),{flushSync:$});return}}se.set(h,A);let J=z,Z=(await vr("action",b,[C],M))[0];if(b.signal.aborted){se.get(h)===A&&se.delete(h);return}if(c.v7_fetcherPersist&&Re.has(h)){if(Sn(Z)||Je(Z)){At(h,Ht(void 0));return}}else{if(Sn(Z))if(se.delete(h),B>J){At(h,Ht(void 0));return}else return G.add(h),At(h,Rr(N)),mr(b,Z,{fetcherSubmission:N});if(Je(Z)){Ct(h,y,Z.error);return}}if(wn(Z))throw Ue(400,{type:"defer-action"});let Le=g.navigation.location||g.location,we=Un(e.history,Le,A.signal),yr=u||i,Bt=g.navigation.state!=="idle"?mn(yr,g.navigation.location,a):g.matches;Q(Bt,"Didn't find any matches after fetcher action");let On=++z;V.set(h,On);let Fn=Rr(N,Z.data);g.fetchers.set(h,Fn);let[jn,gt]=Ys(e.history,g,Bt,N,Le,!1,c.unstable_skipActionErrorRevalidation,ge,It,Ut,Re,oe,G,yr,a,[C.route.id,Z]);gt.filter(te=>te.key!==h).forEach(te=>{let _t=te.key,Ma=g.fetchers.get(_t),op=Rr(void 0,Ma?Ma.data:void 0);g.fetchers.set(_t,op),se.has(_t)&&$t(_t),te.controller&&se.set(_t,te.controller)}),Ie({fetchers:new Map(g.fetchers)});let Sl=()=>gt.forEach(te=>$t(te.key));A.signal.addEventListener("abort",Sl);let{loaderResults:El,fetcherResults:kl}=await xa(g.matches,Bt,jn,gt,we);if(A.signal.aborted)return;A.signal.removeEventListener("abort",Sl),V.delete(h),se.delete(h),gt.forEach(te=>se.delete(te.key));let W=nc([...El,...kl]);if(W){if(W.idx>=jn.length){let te=gt[W.idx-jn.length].key;G.add(te)}return mr(we,W.result)}let{loaderData:me,errors:Xe}=qs(g,g.matches,jn,El,void 0,gt,kl,at);if(g.fetchers.has(h)){let te=Ht(Z.data);g.fetchers.set(h,te)}Ra(On),g.navigation.state==="loading"&&On>B?(Q(R,"Expected pending action"),F&&F.abort(),zn(g.navigation.location,{matches:Bt,loaderData:me,errors:Xe,fetchers:new Map(g.fetchers)})):(Ie({errors:Xe,loaderData:bs(g.loaderData,me,Bt,Xe),fetchers:new Map(g.fetchers)}),ge=!1)}async function qd(h,y,w,C,M,j,$,N){let H=g.fetchers.get(h);At(h,Rr(N,H?H.data:void 0),{flushSync:$});let U=new AbortController,A=Un(e.history,w,U.signal);if(j){let Z=await wl(M,w,A.signal);if(Z.type==="aborted")return;if(Z.type==="error"){let{error:Le}=gl(w,Z);Ct(h,y,Le,{flushSync:$});return}else if(Z.matches)M=Z.matches,C=zr(M,w);else{Ct(h,y,Ue(404,{pathname:w}),{flushSync:$});return}}se.set(h,U);let b=z,ee=(await vr("loader",A,[C],M))[0];if(wn(ee)&&(ee=await Fd(ee,A.signal,!0)||ee),se.get(h)===U&&se.delete(h),!A.signal.aborted){if(Re.has(h)){At(h,Ht(void 0));return}if(Sn(ee))if(B>b){At(h,Ht(void 0));return}else{G.add(h),await mr(A,ee);return}if(Je(ee)){Ct(h,y,ee.error);return}Q(!wn(ee),"Unhandled fetcher deferred data"),At(h,Ht(ee.data))}}async function mr(h,y,w){let{submission:C,fetcherSubmission:M,replace:j}=w===void 0?{}:w;y.response.headers.has("X-Remix-Revalidate")&&(ge=!0);let $=y.response.headers.get("Location");Q($,"Expected a Location header on the redirect Response"),$=Js($,new URL(h.url),a);let N=ul(g.location,$,{_isRedirect:!0});if(n){let ee=!1;if(y.response.headers.has("X-Remix-Reload-Document"))ee=!0;else if(ga.test($)){const Z=e.history.createURL($);ee=Z.origin!==t.location.origin||hr(Z.pathname,a)==null}if(ee){j?t.location.replace($):t.location.assign($);return}}F=null;let H=j===!0?Se.Replace:Se.Push,{formMethod:U,formAction:A,formEncType:b}=g.navigation;!C&&!M&&U&&A&&b&&(C=lc(g.navigation));let J=C||M;if(uv.has(y.response.status)&&J&&dt(J.formMethod))await dn(H,N,{submission:fe({},J,{formAction:$}),preventScrollReset:D});else{let ee=Ci(N,C);await dn(H,N,{overrideNavigation:ee,fetcherSubmission:M,preventScrollReset:D})}}async function vr(h,y,w,C){try{let M=await vv(s,h,y,w,C,o,l);return await Promise.all(M.map((j,$)=>{if(xv(j)){let N=j.result;return{type:re.redirect,response:wv(N,y,w[$].route.id,C,a,c.v7_relativeSplatPath)}}return gv(j)}))}catch(M){return w.map(()=>({type:re.error,error:M}))}}async function xa(h,y,w,C,M){let[j,...$]=await Promise.all([w.length?vr("loader",M,w,y):[],...C.map(N=>{if(N.matches&&N.match&&N.controller){let H=Un(e.history,N.path,N.controller.signal);return vr("loader",H,[N.match],N.matches).then(U=>U[0])}else return Promise.resolve({type:re.error,error:Ue(404,{pathname:N.path})})})]);return await Promise.all([rc(h,w,j,j.map(()=>M.signal),!1,g.loaderData),rc(h,C.map(N=>N.match),$,C.map(N=>N.controller?N.controller.signal:null),!0)]),{loaderResults:j,fetcherResults:$}}function Ko(){ge=!0,It.push(...Xo()),oe.forEach((h,y)=>{se.has(y)&&(Ut.push(y),$t(y))})}function At(h,y,w){w===void 0&&(w={}),g.fetchers.set(h,y),Ie({fetchers:new Map(g.fetchers)},{flushSync:(w&&w.flushSync)===!0})}function Ct(h,y,w,C){C===void 0&&(C={});let M=Hr(g.matches,y);vl(h),Ie({errors:{[M.route.id]:w},fetchers:new Map(g.fetchers)},{flushSync:(C&&C.flushSync)===!0})}function Ca(h){return c.v7_fetcherPersist&&(yt.set(h,(yt.get(h)||0)+1),Re.has(h)&&Re.delete(h)),g.fetchers.get(h)||av}function vl(h){let y=g.fetchers.get(h);se.has(h)&&!(y&&y.state==="loading"&&V.has(h))&&$t(h),oe.delete(h),V.delete(h),G.delete(h),Re.delete(h),g.fetchers.delete(h)}function bd(h){if(c.v7_fetcherPersist){let y=(yt.get(h)||0)-1;y<=0?(yt.delete(h),Re.add(h)):yt.set(h,y)}else vl(h);Ie({fetchers:new Map(g.fetchers)})}function $t(h){let y=se.get(h);Q(y,"Expected fetch controller: "+h),y.abort(),se.delete(h)}function _a(h){for(let y of h){let w=Ca(y),C=Ht(w.data);g.fetchers.set(y,C)}}function Pa(){let h=[],y=!1;for(let w of G){let C=g.fetchers.get(w);Q(C,"Expected fetcher: "+w),C.state==="loading"&&(G.delete(w),h.push(w),y=!0)}return _a(h),y}function Ra(h){let y=[];for(let[w,C]of V)if(C0}function ep(h,y){let w=g.blockers.get(h)||Pr;return je.get(h)!==y&&je.set(h,y),w}function La(h){g.blockers.delete(h),je.delete(h)}function yl(h,y){let w=g.blockers.get(h)||Pr;Q(w.state==="unblocked"&&y.state==="blocked"||w.state==="blocked"&&y.state==="blocked"||w.state==="blocked"&&y.state==="proceeding"||w.state==="blocked"&&y.state==="unblocked"||w.state==="proceeding"&&y.state==="unblocked","Invalid blocker state transition: "+w.state+" -> "+y.state);let C=new Map(g.blockers);C.set(h,y),Ie({blockers:C})}function Na(h){let{currentLocation:y,nextLocation:w,historyAction:C}=h;if(je.size===0)return;je.size>1&&cr(!1,"A router only supports one blocker at a time");let M=Array.from(je.entries()),[j,$]=M[M.length-1],N=g.blockers.get(j);if(!(N&&N.state==="proceeding")&&$({currentLocation:y,nextLocation:w,historyAction:C}))return j}function Yo(h){let y=Ue(404,{pathname:h}),w=u||i,{matches:C,route:M}=tc(w);return Xo(),{notFoundMatches:C,route:M,error:y}}function gl(h,y){let w=y.partialMatches,C=w[w.length-1].route,M=Ue(400,{type:"route-discovery",routeId:C.id,pathname:h,message:y.error!=null&&"message"in y.error?y.error:String(y.error)});return{notFoundMatches:w,route:C,error:M}}function Xo(h){let y=[];return at.forEach((w,C)=>{(!h||h(C))&&(w.cancel(),y.push(C),at.delete(C))}),y}function tp(h,y,w){if(E=h,T=y,S=w||null,!m&&g.navigation===xi){m=!0;let C=Da(g.location,g.matches);C!=null&&Ie({restoreScrollPosition:C})}return()=>{E=null,T=null,S=null}}function Ta(h,y){return S&&S(h,y.map(C=>Am(C,g.loaderData)))||h.key}function np(h,y){if(E&&T){let w=Ta(h,y);E[w]=T()}}function Da(h,y){if(E){let w=Ta(h,y),C=E[w];if(typeof C=="number")return C}return null}function Go(h,y,w){if(p)if(h){let C=h[h.length-1].route;if(C.path&&(C.path==="*"||C.path.endsWith("/*")))return{active:!0,matches:ql(y,w,a,!0)}}else return{active:!0,matches:ql(y,w,a,!0)||[]};return{active:!1,matches:null}}async function wl(h,y,w){let C=h,M=C.length>0?C[C.length-1].route:null;for(;;){let j=u==null,$=u||i;try{await hv(p,y,C,$,o,l,Mn,w)}catch(A){return{type:"error",error:A,partialMatches:C}}finally{j&&(i=[...i])}if(w.aborted)return{type:"aborted"};let N=mn($,y,a),H=!1;if(N){let A=N[N.length-1].route;if(A.index)return{type:"success",matches:N};if(A.path&&A.path.length>0)if(A.path==="*")H=!0;else return{type:"success",matches:N}}let U=ql($,y,a,!0);if(!U||C.map(A=>A.route.id).join("-")===U.map(A=>A.route.id).join("-"))return{type:"success",matches:H?N:null};if(C=U,M=C[C.length-1].route,M.path==="*")return{type:"success",matches:C}}}function rp(h){o={},u=al(h,l,void 0,o)}function lp(h,y){let w=u==null;Md(h,y,u||i,o,l),w&&(i=[...i],Ie({}))}return L={get basename(){return a},get future(){return c},get state(){return g},get routes(){return i},get window(){return t},initialize:Hd,subscribe:Qd,enableScrollRestoration:tp,navigate:Ea,fetch:Jd,revalidate:Kd,createHref:h=>e.history.createHref(h),encodeLocation:h=>e.history.encodeLocation(h),getFetcher:Ca,deleteFetcher:bd,dispose:Wd,getBlocker:ep,deleteBlocker:La,patchRoutes:lp,_internalFetchControllers:se,_internalActiveDeferreds:at,_internalSetRoutes:rp},L}function fv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function gu(e,t,n,r,l,o,i,u){let a,s;if(i){a=[];for(let c of t)if(a.push(c),c.route.id===i){s=c;break}}else a=t,s=t[t.length-1];let p=va(l||".",ma(a,o),hr(e.pathname,n)||e.pathname,u==="path");return l==null&&(p.search=e.search,p.hash=e.hash),(l==null||l===""||l===".")&&s&&s.route.index&&!wa(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:Dt([n,p.pathname])),Ln(p)}function Ks(e,t,n,r){if(!r||!fv(r))return{path:n};if(r.formMethod&&!_v(r.formMethod))return{path:n,error:Ue(405,{method:r.formMethod})};let l=()=>({path:n,error:Ue(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),u=zd(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!dt(i))return l();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((k,E)=>{let[S,T]=E;return""+k+S+"="+T+` -`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!dt(i))return l();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:u,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return l()}}}Q(typeof FormData=="function","FormData is not available in this environment");let a,s;if(r.formData)a=wu(r.formData),s=r.formData;else if(r.body instanceof FormData)a=wu(r.body),s=r.body;else if(r.body instanceof URLSearchParams)a=r.body,s=Zs(a);else if(r.body==null)a=new URLSearchParams,s=new FormData;else try{a=new URLSearchParams(r.body),s=Zs(a)}catch{return l()}let p={formMethod:i,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(dt(p.formMethod))return{path:n,submission:p};let c=cn(n);return t&&c.search&&wa(c.search)&&a.append("index",""),c.search="?"+a,{path:Ln(c),submission:p}}function dv(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ys(e,t,n,r,l,o,i,u,a,s,p,c,d,k,E,S){let T=S?Je(S[1])?S[1].error:S[1].data:void 0,m=e.createURL(t.location),f=e.createURL(l),v=S&&Je(S[1])?S[0]:void 0,x=v?dv(n,v):n,L=S?S[1].statusCode:void 0,g=i&&L&&L>=400,R=x.filter((F,I)=>{let{route:K}=F;if(K.lazy)return!0;if(K.loader==null)return!1;if(o)return typeof K.loader!="function"||K.loader.hydrate?!0:t.loaderData[K.id]===void 0&&(!t.errors||t.errors[K.id]===void 0);if(pv(t.loaderData,t.matches[I],F)||a.some(ge=>ge===F.route.id))return!0;let Ce=t.matches[I],ae=F;return Xs(F,fe({currentUrl:m,currentParams:Ce.params,nextUrl:f,nextParams:ae.params},r,{actionResult:T,unstable_actionStatus:L,defaultShouldRevalidate:g?!1:u||m.pathname+m.search===f.pathname+f.search||m.search!==f.search||Dd(Ce,ae)}))}),D=[];return c.forEach((F,I)=>{if(o||!n.some(It=>It.route.id===F.routeId)||p.has(I))return;let K=mn(k,F.path,E);if(!K){D.push({key:I,routeId:F.routeId,path:F.path,matches:null,match:null,controller:null});return}let Ce=t.fetchers.get(I),ae=zr(K,F.path),ge=!1;d.has(I)?ge=!1:s.includes(I)?ge=!0:Ce&&Ce.state!=="idle"&&Ce.data===void 0?ge=u:ge=Xs(ae,fe({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:n[n.length-1].params},r,{actionResult:T,unstable_actionStatus:L,defaultShouldRevalidate:g?!1:u})),ge&&D.push({key:I,routeId:F.routeId,path:F.path,matches:K,match:ae,controller:new AbortController})}),[R,D]}function pv(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Dd(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Xs(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function hv(e,t,n,r,l,o,i,u){let a=[t,...n.map(s=>s.route.id)].join("-");try{let s=i.get(a);s||(s=e({path:t,matches:n,patch:(p,c)=>{u.aborted||Md(p,c,r,l,o)}}),i.set(a,s)),s&&kv(s)&&await s}finally{i.delete(a)}}function Md(e,t,n,r,l){if(e){var o;let i=r[e];Q(i,"No route found to patch children into: routeId = "+e);let u=al(t,l,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],r);i.children?i.children.push(...u):i.children=u}else{let i=al(t,l,["patch",String(n.length||"0")],r);n.push(...i)}}async function Gs(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];Q(l,"No route found in manifest");let o={};for(let i in r){let a=l[i]!==void 0&&i!=="hasErrorBoundary";cr(!a,'Route "'+l.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!a&&!Im.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,fe({},t(l),{lazy:void 0}))}function mv(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function vv(e,t,n,r,l,o,i,u){let a=r.reduce((c,d)=>c.add(d.route.id),new Set),s=new Set,p=await e({matches:l.map(c=>{let d=a.has(c.route.id);return fe({},c,{shouldLoad:d,resolve:E=>(s.add(c.route.id),d?yv(t,n,c,o,i,E,u):Promise.resolve({type:re.data,result:void 0}))})}),request:n,params:l[0].params,context:u});return l.forEach(c=>Q(s.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),p.filter((c,d)=>a.has(l[d].route.id))}async function yv(e,t,n,r,l,o,i){let u,a,s=p=>{let c,d=new Promise((S,T)=>c=T);a=()=>c(),t.signal.addEventListener("abort",a);let k=S=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:i},...S!==void 0?[S]:[]),E;return o?E=o(S=>k(S)):E=(async()=>{try{return{type:"data",result:await k()}}catch(S){return{type:"error",result:S}}})(),Promise.race([E,d])};try{let p=n.route[e];if(n.route.lazy)if(p){let c,[d]=await Promise.all([s(p).catch(k=>{c=k}),Gs(n.route,l,r)]);if(c!==void 0)throw c;u=d}else if(await Gs(n.route,l,r),p=n.route[e],p)u=await s(p);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw Ue(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:re.data,result:void 0};else if(p)u=await s(p);else{let c=new URL(t.url),d=c.pathname+c.search;throw Ue(404,{pathname:d})}Q(u.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(p){return{type:re.error,result:p}}finally{a&&t.signal.removeEventListener("abort",a)}return u}async function gv(e){let{result:t,type:n,status:r}=e;if(Od(t)){let i;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(u){return{type:re.error,error:u}}return n===re.error?{type:re.error,error:new ya(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:re.data,data:i,statusCode:t.status,headers:t.headers}}if(n===re.error)return{type:re.error,error:t,statusCode:Vo(t)?t.status:r};if(Cv(t)){var l,o;return{type:re.deferred,deferredData:t,statusCode:(l=t.init)==null?void 0:l.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}return{type:re.data,data:t,statusCode:r}}function wv(e,t,n,r,l,o){let i=e.headers.get("Location");if(Q(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ga.test(i)){let u=r.slice(0,r.findIndex(a=>a.route.id===n)+1);i=gu(new URL(t.url),u,l,!0,i,o),e.headers.set("Location",i)}return e}function Js(e,t,n){if(ga.test(e)){let r=e,l=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=hr(l.pathname,n)!=null;if(l.origin===t.origin&&o)return l.pathname+l.search+l.hash}return e}function Un(e,t,n,r){let l=e.createURL(zd(t)).toString(),o={signal:n};if(r&&dt(r.formMethod)){let{formMethod:i,formEncType:u}=r;o.method=i.toUpperCase(),u==="application/json"?(o.headers=new Headers({"Content-Type":u}),o.body=JSON.stringify(r.json)):u==="text/plain"?o.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?o.body=wu(r.formData):o.body=r.formData}return new Request(l,o)}function wu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Zs(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Sv(e,t,n,r,l,o){let i={},u=null,a,s=!1,p={},c=r&&Je(r[1])?r[1].error:void 0;return n.forEach((d,k)=>{let E=t[k].route.id;if(Q(!Sn(d),"Cannot handle redirect results in processLoaderData"),Je(d)){let S=d.error;c!==void 0&&(S=c,c=void 0),u=u||{};{let T=Hr(e,E);u[T.route.id]==null&&(u[T.route.id]=S)}i[E]=void 0,s||(s=!0,a=Vo(d.error)?d.error.status:500),d.headers&&(p[E]=d.headers)}else wn(d)?(l.set(E,d.deferredData),i[E]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!s&&(a=d.statusCode),d.headers&&(p[E]=d.headers)):(i[E]=d.data,d.statusCode&&d.statusCode!==200&&!s&&(a=d.statusCode),d.headers&&(p[E]=d.headers))}),c!==void 0&&r&&(u={[r[0]]:c},i[r[0]]=void 0),{loaderData:i,errors:u,statusCode:a||200,loaderHeaders:p}}function qs(e,t,n,r,l,o,i,u){let{loaderData:a,errors:s}=Sv(t,n,r,l,u);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function tc(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 Ue(e,t){let{pathname:n,routeId:r,method:l,type:o,message:i}=t===void 0?{}:t,u="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(u="Bad Request",o==="route-discovery"?a='Unable to match URL "'+n+'" - the `children()` function for '+("route `"+r+"` threw the following error:\n"+i):l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(u="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(u="Not Found",a='No route matches URL "'+n+'"'):e===405&&(u="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new ya(e||500,u,new Error(a),!0)}function nc(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Sn(n))return{result:n,idx:t}}}function zd(e){let t=typeof e=="string"?cn(e):e;return Ln(fe({},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 kv(e){return typeof e=="object"&&e!=null&&"then"in e}function xv(e){return Od(e.result)&&iv.has(e.result.status)}function wn(e){return e.type===re.deferred}function Je(e){return e.type===re.error}function Sn(e){return(e&&e.type)===re.redirect}function Cv(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 Od(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function _v(e){return ov.has(e.toLowerCase())}function dt(e){return rv.has(e.toLowerCase())}async function rc(e,t,n,r,l,o){for(let i=0;ic.route.id===a.route.id),p=s!=null&&!Dd(s,a)&&(o&&o[a.route.id])!==void 0;if(wn(u)&&(l||p)){let c=r[i];Q(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await Fd(u,c,l).then(d=>{d&&(n[i]=d||n[i])})}}}async function Fd(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:re.data,data:e.deferredData.unwrappedData}}catch(l){return{type:re.error,error:l}}return{type:re.data,data:e.deferredData.data}}}function wa(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function zr(e,t){let n=typeof t=="string"?cn(t).search:t.search;if(e[e.length-1].route.index&&wa(n||""))return e[e.length-1];let r=Ld(e);return r[r.length-1]}function lc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:o,json:i}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Ci(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 Pv(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 Rr(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 Rv(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 Ht(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 Lv(e,t){try{let n=e.sessionStorage.getItem(Td);if(n){let r=JSON.parse(n);for(let[l,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(l,new Set(o||[]))}}catch{}}function Nv(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Td,JSON.stringify(n))}catch(r){cr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sp(){return Math.random().toString(36).substr(2,8)}function cs(e,t){return{usr:e.state,key:e.key,idx:t}}function bo(e,t,n,r){return n===void 0&&(n=null),er({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pn(t):t,{state:n,key:t&&t.key||r||Sp()})}function al(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 pn(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 kp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=lt.Pop,s=null,a=h();a==null&&(a=0,i.replaceState(er({},i.state,{idx:a}),""));function h(){return(i.state||{idx:null}).idx}function p(){u=lt.Pop;let x=h(),f=x==null?null:x-a;a=x,s&&s({action:u,location:w.location,delta:f})}function m(x,f){u=lt.Push;let c=bo(w.location,x,f);a=h()+1;let d=cs(c,a),v=w.createHref(c);try{i.pushState(d,"",v)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;l.location.assign(v)}o&&s&&s({action:u,location:w.location,delta:1})}function y(x,f){u=lt.Replace;let c=bo(w.location,x,f);a=h();let d=cs(c,a),v=w.createHref(c);i.replaceState(d,"",v),o&&s&&s({action:u,location:w.location,delta:0})}function g(x){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof x=="string"?x:al(x);return c=c.replace(/ $/,"%20"),X(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let w={get action(){return u},get location(){return e(l,i)},listen(x){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(as,p),s=x,()=>{l.removeEventListener(as,p),s=null}},createHref(x){return t(l,x)},createURL:g,encodeLocation(x){let f=g(x);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:y,go(x){return i.go(x)}};return w}var fs;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fs||(fs={}));function Ep(e,t,n){return n===void 0&&(n="/"),xp(e,t,n,!1)}function xp(e,t,n,r){let l=typeof t=="string"?pn(t):t,o=Ji(l.pathname||"/",n);if(o==null)return null;let i=Tc(e);Cp(i);let u=null;for(let s=0;u==null&&s{let s={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(X(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 a=pt([r,s.relativePath]),h=n.concat(s);o.children&&o.children.length>0&&(X(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Tc(o.children,t,h,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Tp(a,o.index),routesMeta:h})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let s of Oc(o.path))l(o,i,s)}),t}function Oc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Oc(r.join("/")),u=[];return u.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Cp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Op(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _p=/^:[\w-]+$/,Pp=3,Np=2,Lp=1,Rp=10,zp=-2,ds=e=>e==="*";function Tp(e,t){let n=e.split("/"),r=n.length;return n.some(ds)&&(r+=zp),t&&(r+=Np),n.filter(l=>!ds(l)).reduce((l,o)=>l+(_p.test(o)?Pp:o===""?Lp:Rp),r)}function Op(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function jp(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let u=0;u{let{paramName:m,isOptional:y}=h;if(m==="*"){let w=u[p]||"";i=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const g=u[p];return y&&!g?a[m]=void 0:a[m]=(g||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Ip(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Mp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zc(!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 Ji(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 Fp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?pn(e):e;return{pathname:n?n.startsWith("/")?n:Dp(n,t):t,search:Bp(r),hash:Vp(l)}}function Dp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function lo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Up(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jc(e,t){let n=Up(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ic(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=pn(e):(l=er({},e),X(!l.pathname||!l.pathname.includes("?"),lo("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),lo("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),lo("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}u=p>=0?t[p]:"/"}let s=Fp(l,u),a=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||h)&&(s.pathname+="/"),s}const pt=e=>e.join("/").replace(/\/\/+/g,"/"),$p=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Bp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Vp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ap(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Mc=["post","put","patch","delete"];new Set(Mc);const Wp=["get",...Mc];new Set(Wp);/** * React Router v6.24.1 * * Copyright (c) Remix Software Inc. @@ -56,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),_.useCallback(function(s,p){if(p===void 0&&(p={}),!u.current)return;if(typeof s=="number"){r.go(s);return}let c=va(s,JSON.parse(i),o,p.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Dt([t,c.pathname])),(p.replace?r.replace:r.push)(c,p.state,p)},[t,r,i,o,e])}const zv=_.createContext(null);function Ov(e){let t=_.useContext(fn).outlet;return t&&_.createElement(zv.Provider,{value:e},t)}function Ad(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(Dn),{matches:l}=_.useContext(fn),{pathname:o}=Wo(),i=JSON.stringify(ma(l,r.v7_relativeSplatPath));return _.useMemo(()=>va(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Fv(e,t,n,r){ml()||Q(!1);let{navigator:l}=_.useContext(Dn),{matches:o}=_.useContext(fn),i=o[o.length-1],u=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let s=Wo(),p;p=s;let c=p.pathname||"/",d=c;if(a!=="/"){let S=a.replace(/^\//,"").split("/");d="/"+c.replace(/^\//,"").split("/").slice(S.length).join("/")}let k=mn(e,{pathname:d});return $v(k&&k.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:Dt([a,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?a:Dt([a,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r)}function jv(){let e=Wv(),t=Vo(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:l},n):null,null)}const Iv=_.createElement(jv,null);class Uv extends _.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?_.createElement(fn.Provider,{value:this.props.routeContext},_.createElement(Id.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Av(e){let{routeContext:t,match:n,children:r}=e,l=_.useContext(Ho);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(fn.Provider,{value:t},r)}function $v(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let p=i.findIndex(c=>c.route.id&&(u==null?void 0:u[c.route.id])!==void 0);p>=0||Q(!1),i=i.slice(0,Math.min(i.length,p+1))}let a=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((p,c,d)=>{let k,E=!1,S=null,T=null;n&&(k=u&&c.route.id?u[c.route.id]:void 0,S=c.route.errorElement||Iv,a&&(s<0&&d===0?(Kv("route-fallback"),E=!0,T=null):s===d&&(E=!0,T=c.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,d+1)),f=()=>{let v;return k?v=S:E?v=T:c.route.Component?v=_.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=p,_.createElement(Av,{match:c,routeContext:{outlet:p,matches:m,isDataRoute:n!=null},children:v})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?_.createElement(Uv,{location:n.location,revalidation:n.revalidation,component:S,error:k,children:f(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):f()},null)}var $d=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($d||{}),_o=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}(_o||{});function Bv(e){let t=_.useContext(Ho);return t||Q(!1),t}function Vv(e){let t=_.useContext(jd);return t||Q(!1),t}function Hv(e){let t=_.useContext(fn);return t||Q(!1),t}function Bd(e){let t=Hv(),n=t.matches[t.matches.length-1];return n.route.id||Q(!1),n.route.id}function Wv(){var e;let t=_.useContext(Id),n=Vv(_o.UseRouteError),r=Bd(_o.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Qv(){let{router:e}=Bv($d.UseNavigateStable),t=Bd(_o.UseNavigateStable),n=_.useRef(!1);return Ud(()=>{n.current=!0}),_.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Co({fromRouteId:t},o)))},[e,t])}const oc={};function Kv(e,t,n){oc[e]||(oc[e]=!0)}function Yv(e){return Ov(e.context)}function Xv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Se.Pop,navigator:o,static:i=!1,future:u}=e;ml()&&Q(!1);let a=t.replace(/^\/*/,"/"),s=_.useMemo(()=>({basename:a,navigator:o,static:i,future:Co({v7_relativeSplatPath:!1},u)}),[a,u,o,i]);typeof r=="string"&&(r=cn(r));let{pathname:p="/",search:c="",hash:d="",state:k=null,key:E="default"}=r,S=_.useMemo(()=>{let T=hr(p,a);return T==null?null:{location:{pathname:T,search:c,hash:d,state:k,key:E},navigationType:l}},[a,p,c,d,k,E,l]);return S==null?null:_.createElement(Dn.Provider,{value:s},_.createElement(Sa.Provider,{children:n,value:S}))}new Promise(()=>{});function Gv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),E.useCallback(function(a,h){if(h===void 0&&(h={}),!u.current)return;if(typeof a=="number"){r.go(a);return}let p=Ic(a,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:pt([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,i,o,e])}function Uc(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Mt),{matches:l}=E.useContext(Ft),{pathname:o}=Ll(),i=JSON.stringify(jc(l,r.v7_relativeSplatPath));return E.useMemo(()=>Ic(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Xp(e,t){return Gp(e,t)}function Gp(e,t,n,r){ur()||X(!1);let{navigator:l}=E.useContext(Mt),{matches:o}=E.useContext(Ft),i=o[o.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=Ll(),h;if(t){var p;let x=typeof t=="string"?pn(t):t;s==="/"||(p=x.pathname)!=null&&p.startsWith(s)||X(!1),h=x}else h=a;let m=h.pathname||"/",y=m;if(s!=="/"){let x=s.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=Ep(e,{pathname:y}),w=eh(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},u,x.params),pathname:pt([s,l.encodeLocation?l.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?s:pt([s,l.encodeLocation?l.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&w?E.createElement(Nl.Provider,{value:{location:tr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:lt.Pop}},w):w}function Zp(){let e=lh(),t=Ap(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:l},n):null,null)}const Jp=E.createElement(Zp,null);class qp extends E.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?E.createElement(Ft.Provider,{value:this.props.routeContext},E.createElement(Fc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function bp(e){let{routeContext:t,match:n,children:r}=e,l=E.useContext(qi);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Ft.Provider,{value:t},r)}function eh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let h=i.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);h>=0||X(!1),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((h,p,m)=>{let y,g=!1,w=null,x=null;n&&(y=u&&p.route.id?u[p.route.id]:void 0,w=p.route.errorElement||Jp,s&&(a<0&&m===0?(g=!0,x=null):a===m&&(g=!0,x=p.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),c=()=>{let d;return y?d=w:g?d=x:p.route.Component?d=E.createElement(p.route.Component,null):p.route.element?d=p.route.element:d=h,E.createElement(bp,{match:p,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:d})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?E.createElement(qp,{location:n.location,revalidation:n.revalidation,component:w,error:y,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var $c=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($c||{}),cl=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}(cl||{});function th(e){let t=E.useContext(qi);return t||X(!1),t}function nh(e){let t=E.useContext(Hp);return t||X(!1),t}function rh(e){let t=E.useContext(Ft);return t||X(!1),t}function Bc(e){let t=rh(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function lh(){var e;let t=E.useContext(Fc),n=nh(cl.UseRouteError),r=Bc(cl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function oh(){let{router:e}=th($c.UseNavigateStable),t=Bc(cl.UseNavigateStable),n=E.useRef(!1);return Dc(()=>{n.current=!0}),E.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,tr({fromRouteId:t},o)))},[e,t])}function ei(e){X(!1)}function ih(e){let{basename:t="/",children:n=null,location:r,navigationType:l=lt.Pop,navigator:o,static:i=!1,future:u}=e;ur()&&X(!1);let s=t.replace(/^\/*/,"/"),a=E.useMemo(()=>({basename:s,navigator:o,static:i,future:tr({v7_relativeSplatPath:!1},u)}),[s,u,o,i]);typeof r=="string"&&(r=pn(r));let{pathname:h="/",search:p="",hash:m="",state:y=null,key:g="default"}=r,w=E.useMemo(()=>{let x=Ji(h,s);return x==null?null:{location:{pathname:x,search:p,hash:m,state:y,key:g},navigationType:l}},[s,h,p,m,y,g,l]);return w==null?null:E.createElement(Mt.Provider,{value:a},E.createElement(Nl.Provider,{children:n,value:w}))}function uh(e){let{children:t,location:n}=e;return Xp(ti(t),n)}new Promise(()=>{});function ti(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,l)=>{if(!E.isValidElement(r))return;let o=[...t,l];if(r.type===E.Fragment){n.push.apply(n,ti(r.props.children,o));return}r.type!==ei&&X(!1),!r.props.index||!r.props.children||X(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=ti(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.24.1 * * Copyright (c) Remix Software Inc. @@ -65,7 +64,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Zv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qv(e,t){return e.button===0&&(!t||t==="_self")&&!Zv(e)}const bv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ey="6";try{window.__reactRouterVersion=ey}catch{}function ty(e,t){return cv({basename:void 0,future:sl({},void 0,{v7_prependBasename:!0}),history:Om({window:void 0}),hydrationData:ny(),routes:e,mapRouteProperties:Gv,unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize()}function ny(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=sl({},t,{errors:ry(t.errors)})),t}function ry(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new ya(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let o=window[l.__subType];if(typeof o=="function")try{let i=new o(l.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let o=new Error(l.message);o.stack="",n[r]=o}}else n[r]=l;return n}const ly=_.createContext({isTransitioning:!1}),oy=_.createContext(new Map),iy="startTransition",ic=Ep[iy],uy="flushSync",uc=zm[uy];function ay(e){ic?ic(e):e()}function Lr(e){uc?uc(e):e()}class sy{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 cy(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=_.useState(n.state),[i,u]=_.useState(),[a,s]=_.useState({isTransitioning:!1}),[p,c]=_.useState(),[d,k]=_.useState(),[E,S]=_.useState(),T=_.useRef(new Map),{v7_startTransition:m}=r||{},f=_.useCallback(R=>{m?ay(R):R()},[m]),v=_.useCallback((R,D)=>{let{deletedFetchers:F,unstable_flushSync:I,unstable_viewTransitionOpts:K}=D;F.forEach(ae=>T.current.delete(ae)),R.fetchers.forEach((ae,ge)=>{ae.data!==void 0&&T.current.set(ge,ae.data)});let Ce=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!K||Ce){I?Lr(()=>o(R)):f(()=>o(R));return}if(I){Lr(()=>{d&&(p&&p.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:K.currentLocation,nextLocation:K.nextLocation})});let ae=n.window.document.startViewTransition(()=>{Lr(()=>o(R))});ae.finished.finally(()=>{Lr(()=>{c(void 0),k(void 0),u(void 0),s({isTransitioning:!1})})}),Lr(()=>k(ae));return}d?(p&&p.resolve(),d.skipTransition(),S({state:R,currentLocation:K.currentLocation,nextLocation:K.nextLocation})):(u(R),s({isTransitioning:!0,flushSync:!1,currentLocation:K.currentLocation,nextLocation:K.nextLocation}))},[n.window,d,p,T,f]);_.useLayoutEffect(()=>n.subscribe(v),[n,v]),_.useEffect(()=>{a.isTransitioning&&!a.flushSync&&c(new sy)},[a]),_.useEffect(()=>{if(p&&i&&n.window){let R=i,D=p.promise,F=n.window.document.startViewTransition(async()=>{f(()=>o(R)),await D});F.finished.finally(()=>{c(void 0),k(void 0),u(void 0),s({isTransitioning:!1})}),k(F)}},[f,i,p,n.window]),_.useEffect(()=>{p&&i&&l.location.key===i.location.key&&p.resolve()},[p,d,l.location,i]),_.useEffect(()=>{!a.isTransitioning&&E&&(u(E.state),s({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),S(void 0))},[a.isTransitioning,E]),_.useEffect(()=>{},[]);let x=_.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,D,F)=>n.navigate(R,{state:D,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(R,D,F)=>n.navigate(R,{replace:!0,state:D,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),L=n.basename||"/",g=_.useMemo(()=>({router:n,navigator:x,static:!1,basename:L}),[n,x,L]);return _.createElement(_.Fragment,null,_.createElement(Ho.Provider,{value:g},_.createElement(jd.Provider,{value:l},_.createElement(oy.Provider,{value:T.current},_.createElement(ly.Provider,{value:a},_.createElement(Xv,{basename:L,location:l.location,navigationType:l.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},l.initialized||n.future.v7_partialHydration?_.createElement(fy,{routes:n.routes,future:n.future,state:l}):t))))),null)}function fy(e){let{routes:t,future:n,state:r}=e;return Fv(t,void 0,r,n)}const dy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",py=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hy=_.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:a,to:s,preventScrollReset:p,unstable_viewTransition:c}=t,d=Jv(t,bv),{basename:k}=_.useContext(Dn),E,S=!1;if(typeof s=="string"&&py.test(s)&&(E=s,dy))try{let v=new URL(window.location.href),x=s.startsWith("//")?new URL(v.protocol+s):new URL(s),L=hr(x.pathname,k);x.origin===v.origin&&L!=null?s=L+x.search+x.hash:S=!0}catch{}let T=Tv(s,{relative:l}),m=my(s,{replace:i,state:u,target:a,preventScrollReset:p,relative:l,unstable_viewTransition:c});function f(v){r&&r(v),v.defaultPrevented||m(v)}return _.createElement("a",sl({},d,{href:E||T,onClick:S||o?r:f,ref:n,target:a}))});var ac;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ac||(ac={}));var sc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sc||(sc={}));function my(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,a=Dv(),s=Wo(),p=Ad(e,{relative:i});return _.useCallback(c=>{if(qv(c,n)){c.preventDefault();let d=r!==void 0?r:Ln(s)===Ln(p);a(e,{replace:d,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[s,a,p,r,l,n,e,o,i,u])}function vy(){return ne.jsx("main",{className:"h-screen bg-black text-white",children:ne.jsx(Yv,{})})}const Vd=_.forwardRef((e,t)=>{const{className:n="",src:r,alt:l,...o}=e;return ne.jsxs("picture",{children:[ne.jsx("source",{type:"image/webp"}),ne.jsx("img",{className:n,ref:t,loading:"lazy",src:r,alt:l,...o})]})});function yy(){return ne.jsxs("div",{className:"relative flex h-screen items-center justify-center font-sans",children:[ne.jsx("div",{className:"absolute h-80 w-80 bg-[#6d1b1b] blur-[10rem]"}),ne.jsxs("div",{className:"z-10",children:[ne.jsx(Vd,{className:"ml-auto mr-auto block h-48 w-48",src:"https://discontinuedlabs.github.io/react-vite-template/images/logo.png",alt:"Discontinued Labs Logo"}),ne.jsx("h1",{className:"text-center",children:"Not Found!"}),ne.jsxs("p",{className:"text-center",children:["Go back ",ne.jsx(hy,{to:"/react-vite-template/",children:"home"}),"."]})]})]})}function gy(){const[e,t]=_.useState(!0),[n,r]=_.useState(0),l=_.useRef(null),o=a=>{if(a.key===" "){if(!l.current)return;const s=window.getComputedStyle(l.current),{transform:p}=s;let c=n;if(p!=="none"){const d=p.split("(")[1].split(")")[0].split(","),k=parseFloat(d[0]),E=parseFloat(d[1]);c=Math.round(Math.atan2(E,k)*(180/Math.PI))}t(d=>!d),r(c)}};_.useEffect(()=>(window.addEventListener("keydown",o),()=>{window.removeEventListener("keydown",o)}),[]);const i={transform:`rotate(${n}deg)`,transition:e?"none":"transform 0.5s ease-out"},u=`@keyframes spin { + */function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function ah(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ch(e,t){return e.button===0&&(!t||t==="_self")&&!ah(e)}const fh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],dh="6";try{window.__reactRouterVersion=dh}catch{}const ph="startTransition",hs=uf[ph];function hh(e){let{basename:t,children:n,future:r,window:l}=e,o=E.useRef();o.current==null&&(o.current=wp({window:l,v5Compat:!0}));let i=o.current,[u,s]=E.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=E.useCallback(p=>{a&&hs?hs(()=>s(p)):s(p)},[s,a]);return E.useLayoutEffect(()=>i.listen(h),[i,h]),E.createElement(ih,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const mh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yh=E.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:h,unstable_viewTransition:p}=t,m=sh(t,fh),{basename:y}=E.useContext(Mt),g,w=!1;if(typeof a=="string"&&vh.test(a)&&(g=a,mh))try{let d=new URL(window.location.href),v=a.startsWith("//")?new URL(d.protocol+a):new URL(a),k=Ji(v.pathname,y);v.origin===d.origin&&k!=null?a=k+v.search+v.hash:w=!0}catch{}let x=Qp(a,{relative:l}),f=gh(a,{replace:i,state:u,target:s,preventScrollReset:h,relative:l,unstable_viewTransition:p});function c(d){r&&r(d),d.defaultPrevented||f(d)}return E.createElement("a",ni({},m,{href:g||x,onClick:w||o?r:c,ref:n,target:s}))});var ms;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ms||(ms={}));var vs;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vs||(vs={}));function gh(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,s=Kp(),a=Ll(),h=Uc(e,{relative:i});return E.useCallback(p=>{if(ch(p,n)){p.preventDefault();let m=r!==void 0?r:al(a)===al(h);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[a,s,h,r,l,n,e,o,i,u])}const Vc=E.forwardRef((e,t)=>{const{className:n="",src:r,alt:l,...o}=e;return M.jsxs("picture",{children:[M.jsx("source",{type:"image/webp"}),M.jsx("img",{className:n,ref:t,loading:"lazy",src:r,alt:l,...o})]})});function wh(){const[e,t]=E.useState(!0),[n,r]=E.useState(0),l=E.useRef(null),o=s=>{if(s.key===" "){if(!l.current)return;const a=window.getComputedStyle(l.current),{transform:h}=a;let p=n;if(h!=="none"){const m=h.split("(")[1].split(")")[0].split(","),y=parseFloat(m[0]),g=parseFloat(m[1]);p=Math.round(Math.atan2(g,y)*(180/Math.PI))}t(m=>!m),r(p)}};E.useEffect(()=>(window.addEventListener("keydown",o),()=>{window.removeEventListener("keydown",o)}),[]);const i={transform:`rotate(${n}deg)`,transition:e?"none":"transform 0.5s ease-out"},u=`@keyframes spin { from { transform: rotate(${n}deg); } to { transform: rotate(${n+360}deg); } - }`;return _.useEffect(()=>{const a=document.createElement("style");return a.innerHTML=u,document.head.appendChild(a),()=>{document.head.removeChild(a)}},[n]),ne.jsxs("div",{className:"relative flex h-screen items-center justify-center font-sans",children:[ne.jsx("div",{className:"absolute h-80 w-80 bg-secondary blur-[10rem]"}),ne.jsxs("div",{className:"z-10",children:[ne.jsx(Vd,{ref:l,style:i,className:`ml-auto mr-auto block h-48 w-48 ${e?"animate-spin-infinite":""}`,src:"https://discontinuedlabs.github.io/react-vite-template/images/logo.png",alt:"Discontinued Labs Logo"}),ne.jsx("h1",{className:"text-center",children:"React Vite Template"}),ne.jsxs("p",{className:"text-center text-lg",children:["Created by ",ne.jsx("a",{href:"https://github.com/discontinuedlabs",children:"Discontinued Labs"})]}),ne.jsx("p",{className:"text-center text-sm",children:ne.jsx("a",{href:"https://github.com/discontinuedlabs/react-vite-template",children:"View on GitHub"})})]})]})}const wy=ty([{path:"/react-vite-template/",element:ne.jsx(vy,{}),children:[{path:"/react-vite-template/",element:ne.jsx(gy,{})},{path:"/react-vite-template/*",element:ne.jsx(yy,{})}]}]);_i.createRoot(document.getElementById("root")).render(ne.jsx(kc.StrictMode,{children:ne.jsx(cy,{router:wy})}));if("serviceWorker"in navigator){const e="https://discontinuedlabs.github.io/react-vite-template";navigator.serviceWorker.register(`${e}/service-worker.js`,{scope:`${e}/`}).then(t=>{console.log("Service Worker registered with scope:",t.scope)}).catch(t=>{console.error("Service Worker registration failed:",t)})} + }`;return E.useEffect(()=>{const s=document.createElement("style");return s.innerHTML=u,document.head.appendChild(s),()=>{document.head.removeChild(s)}},[n]),M.jsxs("div",{className:"relative flex h-screen items-center justify-center font-sans",children:[M.jsx("div",{className:"absolute h-80 w-80 bg-secondary blur-[10rem]"}),M.jsxs("div",{className:"z-10",children:[M.jsx(Vc,{ref:l,style:i,className:`ml-auto mr-auto block h-48 w-48 ${e?"animate-spin-infinite":""}`,src:"https://discontinuedlabs.github.io/react-vite-template/images/logo.png",alt:"Discontinued Labs Logo"}),M.jsx("h1",{className:"text-center",children:"React Vite Template"}),M.jsxs("p",{className:"text-center text-lg",children:["Created by ",M.jsx("a",{href:"https://github.com/discontinuedlabs",children:"Discontinued Labs"})]}),M.jsx("p",{className:"text-center text-sm",children:M.jsx("a",{href:"https://github.com/discontinuedlabs/react-vite-template",children:"View on GitHub"})})]})]})}function Sh(){return M.jsxs("div",{className:"relative flex h-screen items-center justify-center font-sans",children:[M.jsx("div",{className:"absolute h-80 w-80 bg-[#6d1b1b] blur-[10rem]"}),M.jsxs("div",{className:"z-10",children:[M.jsx(Vc,{className:"ml-auto mr-auto block h-48 w-48",src:"https://discontinuedlabs.github.io/react-vite-template/images/logo.png",alt:"Discontinued Labs Logo"}),M.jsx("h1",{className:"text-center",children:"Not Found!"}),M.jsxs("p",{className:"text-center",children:["Go back ",M.jsx(yh,{to:"/",children:"home"}),"."]})]})]})}function kh(){return console.log("test 1"),M.jsx("main",{className:"h-screen bg-black text-blue-100",children:M.jsxs(uh,{children:[M.jsx(ei,{path:"/",element:M.jsx(wh,{})}),M.jsx(ei,{path:"*",element:M.jsx(Sh,{})})]})})}oo.createRoot(document.getElementById("root")).render(M.jsx(Ns.StrictMode,{children:M.jsx(hh,{basename:"/react-vite-template/",children:M.jsx(kh,{})})}));if("serviceWorker"in navigator){const e="https://discontinuedlabs.github.io/react-vite-template";navigator.serviceWorker.register(`${e}/service-worker.js`,{scope:`${e}/`}).then(t=>{console.log("Service Worker registered with scope:",t.scope)}).catch(t=>{console.error("Service Worker registration failed:",t)})}