diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..f506fbc19 --- /dev/null +++ b/.gitignore @@ -0,0 +1,48 @@ +# Node.js +node_modules/ +npm-debug.log +yarn-error.log +yarn-debug.log +.pnpm-debug.log +.npm +.yarn + +# Build outputs +dist/ +build/ +out/ +.next/ +.nuxt/ +.cache/ +.output/ + +# Environment variables +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# IDE and editors +.idea/ +.vscode/ +*.swp +*.swo +.DS_Store +*.sublime-project +*.sublime-workspace + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Testing +coverage/ +.nyc_output/ + +# Misc +.DS_Store +Thumbs.db diff --git a/apps/frontend/README.md b/apps/frontend/README.md new file mode 100644 index 000000000..74872fd4a --- /dev/null +++ b/apps/frontend/README.md @@ -0,0 +1,50 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: + +- Configure the top-level `parserOptions` property like this: + +```js +export default tseslint.config({ + languageOptions: { + // other options... + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + }, +}) +``` + +- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked` +- Optionally add `...tseslint.configs.stylisticTypeChecked` +- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config: + +```js +// eslint.config.js +import react from 'eslint-plugin-react' + +export default tseslint.config({ + // Set the react version + settings: { react: { version: '18.3' } }, + plugins: { + // Add the react plugin + react, + }, + rules: { + // other rules... + // Enable its recommended rules + ...react.configs.recommended.rules, + ...react.configs['jsx-runtime'].rules, + }, +}) +``` diff --git a/apps/frontend/components.json b/apps/frontend/components.json new file mode 100644 index 000000000..78cd18f50 --- /dev/null +++ b/apps/frontend/components.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/index.css", + "baseColor": "zinc", + "cssVariables": false, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "iconLibrary": "lucide" +} \ No newline at end of file diff --git a/apps/frontend/dist/assets/index-BMsfUJtG.js b/apps/frontend/dist/assets/index-BMsfUJtG.js new file mode 100644 index 000000000..b93eb7f8a --- /dev/null +++ b/apps/frontend/dist/assets/index-BMsfUJtG.js @@ -0,0 +1,200 @@ +var nS=Object.defineProperty;var rS=(e,t,r)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ys=(e,t,r)=>rS(e,typeof t!="symbol"?t+"":t,r);function oS(e,t){for(var r=0;ri[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=r(s);fetch(s.href,l)}})();function Wv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zd={exports:{}},Xs={},ep={exports:{}},Qe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $g;function iS(){if($g)return Qe;$g=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function k(O,Y,ae){this.props=O,this.context=Y,this.refs=w,this.updater=ae||R}k.prototype.isReactComponent={},k.prototype.setState=function(O,Y){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,Y,"setState")},k.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function E(){}E.prototype=k.prototype;function j(O,Y,ae){this.props=O,this.context=Y,this.refs=w,this.updater=ae||R}var I=j.prototype=new E;I.constructor=j,x(I,k.prototype),I.isPureReactComponent=!0;var T=Array.isArray,$=Object.prototype.hasOwnProperty,A={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function L(O,Y,ae){var de,oe={},pe=null,fe=null;if(Y!=null)for(de in Y.ref!==void 0&&(fe=Y.ref),Y.key!==void 0&&(pe=""+Y.key),Y)$.call(Y,de)&&!B.hasOwnProperty(de)&&(oe[de]=Y[de]);var xe=arguments.length-2;if(xe===1)oe.children=ae;else if(1>>1,Y=U[O];if(0>>1;Os(oe,J))pes(fe,oe)?(U[O]=fe,U[pe]=J,O=pe):(U[O]=oe,U[de]=J,O=de);else if(pes(fe,J))U[O]=fe,U[pe]=J,O=pe;else break e}}return F}function s(U,F){var J=U.sortIndex-F.sortIndex;return J!==0?J:U.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],g=1,v=null,b=3,R=!1,x=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(U){for(var F=r(m);F!==null;){if(F.callback===null)i(m);else if(F.startTime<=U)i(m),F.sortIndex=F.expirationTime,t(p,F);else break;F=r(m)}}function T(U){if(w=!1,I(U),!x)if(r(p)!==null)x=!0,G($);else{var F=r(m);F!==null&&ee(T,F.startTime-U)}}function $(U,F){x=!1,w&&(w=!1,E(L),L=-1),R=!0;var J=b;try{for(I(F),v=r(p);v!==null&&(!(v.expirationTime>F)||U&&!D());){var O=v.callback;if(typeof O=="function"){v.callback=null,b=v.priorityLevel;var Y=O(v.expirationTime<=F);F=e.unstable_now(),typeof Y=="function"?v.callback=Y:v===r(p)&&i(p),I(F)}else i(p);v=r(p)}if(v!==null)var ae=!0;else{var de=r(m);de!==null&&ee(T,de.startTime-F),ae=!1}return ae}finally{v=null,b=J,R=!1}}var A=!1,B=null,L=-1,N=5,C=-1;function D(){return!(e.unstable_now()-CU||125O?(U.sortIndex=J,t(m,U),r(p)===null&&U===r(m)&&(w?(E(L),L=-1):w=!0,ee(T,J-O))):(U.sortIndex=Y,t(p,U),x||R||(x=!0,G($))),U},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(U){var F=b;return function(){var J=b;b=F;try{return U.apply(this,arguments)}finally{b=J}}}}(rp)),rp}var Lg;function cS(){return Lg||(Lg=1,np.exports=lS()),np.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ng;function uS(){if(Ng)return Rn;Ng=1;var e=rf(),t=cS();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,g={},v={};function b(n){return p.call(v,n)?!0:p.call(g,n)?!1:m.test(n)?v[n]=!0:(g[n]=!0,!1)}function R(n,o,a,u){if(a!==null&&a.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:a!==null?!a.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function x(n,o,a,u){if(o===null||typeof o>"u"||R(n,o,a,u))return!0;if(u)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function w(n,o,a,u,f,y,P){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=a,this.propertyName=n,this.type=o,this.sanitizeURL=y,this.removeEmptyString=P}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){k[n]=new w(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];k[o]=new w(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){k[n]=new w(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){k[n]=new w(n,2,!1,n,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(n){k[n]=new w(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){k[n]=new w(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){k[n]=new w(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){k[n]=new w(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){k[n]=new w(n,5,!1,n.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function j(n){return n[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(n){var o=n.replace(E,j);k[o]=new w(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(E,j);k[o]=new w(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(E,j);k[o]=new w(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){k[n]=new w(n,1,!1,n.toLowerCase(),null,!1,!1)}),k.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){k[n]=new w(n,1,!1,n.toLowerCase(),null,!0,!0)});function I(n,o,a,u){var f=k.hasOwnProperty(o)?k[o]:null;(f!==null?f.type!==0:u||!(2M||f[P]!==y[M]){var z=` +`+f[P].replace(" at new "," at ");return n.displayName&&z.includes("")&&(z=z.replace("",n.displayName)),z}while(1<=P&&0<=M);break}}}finally{ae=!1,Error.prepareStackTrace=a}return(n=n?n.displayName||n.name:"")?Y(n):""}function oe(n){switch(n.tag){case 5:return Y(n.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return n=de(n.type,!1),n;case 11:return n=de(n.type.render,!1),n;case 1:return n=de(n.type,!0),n;default:return""}}function pe(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case B:return"Fragment";case A:return"Portal";case N:return"Profiler";case L:return"StrictMode";case H:return"Suspense";case W:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case D:return(n.displayName||"Context")+".Consumer";case C:return(n._context.displayName||"Context")+".Provider";case K:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case V:return o=n.displayName||null,o!==null?o:pe(n.type)||"Memo";case G:o=n._payload,n=n._init;try{return pe(n(o))}catch{}}return null}function fe(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(o);case 8:return o===L?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function xe(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Se(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function me(n){var o=Se(n)?"checked":"value",a=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),u=""+n[o];if(!n.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var f=a.get,y=a.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return f.call(this)},set:function(P){u=""+P,y.call(this,P)}}),Object.defineProperty(n,o,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(P){u=""+P},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function Be(n){n._valueTracker||(n._valueTracker=me(n))}function we(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var a=o.getValue(),u="";return n&&(u=Se(n)?n.checked?"true":"false":n.value),n=u,n!==a?(o.setValue(n),!0):!1}function Ve(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Oe(n,o){var a=o.checked;return J({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked})}function Ye(n,o){var a=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;a=xe(o.value!=null?o.value:a),n._wrapperState={initialChecked:u,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function ht(n,o){o=o.checked,o!=null&&I(n,"checked",o,!1)}function Ke(n,o){ht(n,o);var a=xe(o.value),u=o.type;if(a!=null)u==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+a):n.value!==""+a&&(n.value=""+a);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?Xe(n,o.type,a):o.hasOwnProperty("defaultValue")&&Xe(n,o.type,xe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function Ge(n,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,a||o===n.value||(n.value=o),n.defaultValue=o}a=n.name,a!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,a!==""&&(n.name=a)}function Xe(n,o,a){(o!=="number"||Ve(n.ownerDocument)!==n)&&(a==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+a&&(n.defaultValue=""+a))}var qe=Array.isArray;function _e(n,o,a,u){if(n=n.options,o){o={};for(var f=0;f"+o.valueOf().toString()+"",o=Rt.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function ot(n,o){if(o){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=o;return}}n.textContent=o}var ve={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},xt=["Webkit","ms","Moz","O"];Object.keys(ve).forEach(function(n){xt.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),ve[o]=ve[n]})});function pt(n,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||ve.hasOwnProperty(n)&&ve[n]?(""+o).trim():o+"px"}function at(n,o){n=n.style;for(var a in o)if(o.hasOwnProperty(a)){var u=a.indexOf("--")===0,f=pt(a,o[a],u);a==="float"&&(a="cssFloat"),u?n.setProperty(a,f):n[a]=f}}var Ie=J({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 rt(n,o){if(o){if(Ie[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function bt(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){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 Jt=null;function Mn(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Lo=null,xr=null,Vn=null;function mi(n){if(n=Os(n)){if(typeof Lo!="function")throw Error(r(280));var o=n.stateNode;o&&(o=ml(o),Lo(n.stateNode,n.type,o))}}function hi(n){xr?Vn?Vn.push(n):Vn=[n]:xr=n}function gi(){if(xr){var n=xr,o=Vn;if(Vn=xr=null,mi(n),o)for(n=0;n>>=0,n===0?32:31-(v1(n)/x1|0)|0}var Xa=64,Qa=4194304;function gs(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ja(n,o){var a=n.pendingLanes;if(a===0)return 0;var u=0,f=n.suspendedLanes,y=n.pingedLanes,P=a&268435455;if(P!==0){var M=P&~f;M!==0?u=gs(M):(y&=P,y!==0&&(u=gs(y)))}else P=a&~f,P!==0?u=gs(P):y!==0&&(u=gs(y));if(u===0)return 0;if(o!==0&&o!==u&&(o&f)===0&&(f=u&-u,y=o&-o,f>=y||f===16&&(y&4194240)!==0))return o;if((u&4)!==0&&(u|=a&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=u;0a;a++)o.push(n);return o}function ys(n,o,a){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-ar(o),n[o]=a}function C1(n,o){var a=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0=Rs),Cm=" ",km=!1;function Rm(n,o){switch(n){case"keyup":return Q1.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Em(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Si=!1;function Z1(n,o){switch(n){case"compositionend":return Em(o);case"keypress":return o.which!==32?null:(km=!0,Cm);case"textInput":return n=o.data,n===Cm&&km?null:n;default:return null}}function eb(n,o){if(Si)return n==="compositionend"||!Mu&&Rm(n,o)?(n=ym(),rl=Pu=co=null,Si=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:a,offset:o-n};n=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Mm(a)}}function Lm(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?Lm(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function Nm(){for(var n=window,o=Ve();o instanceof n.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)n=o.contentWindow;else break;o=Ve(n.document)}return o}function Nu(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function cb(n){var o=Nm(),a=n.focusedElem,u=n.selectionRange;if(o!==a&&a&&a.ownerDocument&&Lm(a.ownerDocument.documentElement,a)){if(u!==null&&Nu(a)){if(o=u.start,n=u.end,n===void 0&&(n=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(n,a.value.length);else if(n=(o=a.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var f=a.textContent.length,y=Math.min(u.start,f);u=u.end===void 0?y:Math.min(u.end,f),!n.extend&&y>u&&(f=u,u=y,y=f),f=Om(a,y);var P=Om(a,u);f&&P&&(n.rangeCount!==1||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==P.node||n.focusOffset!==P.offset)&&(o=o.createRange(),o.setStart(f.node,f.offset),n.removeAllRanges(),y>u?(n.addRange(o),n.extend(P.node,P.offset)):(o.setEnd(P.node,P.offset),n.addRange(o)))}}for(o=[],n=a;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,wi=null,Bu=null,Is=null,Du=!1;function Bm(n,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Du||wi==null||wi!==Ve(u)||(u=wi,"selectionStart"in u&&Nu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Is&&Ts(Is,u)||(Is=u,u=dl(Bu,"onSelect"),0Pi||(n.current=Xu[Pi],Xu[Pi]=null,Pi--)}function vt(n,o){Pi++,Xu[Pi]=n.current,n.current=o}var mo={},ln=fo(mo),bn=fo(!1),Do=mo;function Ti(n,o){var a=n.type.contextTypes;if(!a)return mo;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var f={},y;for(y in a)f[y]=o[y];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=f),f}function Sn(n){return n=n.childContextTypes,n!=null}function hl(){wt(bn),wt(ln)}function Jm(n,o,a){if(ln.current!==mo)throw Error(r(168));vt(ln,o),vt(bn,a)}function Zm(n,o,a){var u=n.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return a;u=u.getChildContext();for(var f in u)if(!(f in o))throw Error(r(108,fe(n)||"Unknown",f));return J({},a,u)}function gl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||mo,Do=ln.current,vt(ln,n),vt(bn,bn.current),!0}function eh(n,o,a){var u=n.stateNode;if(!u)throw Error(r(169));a?(n=Zm(n,o,Do),u.__reactInternalMemoizedMergedChildContext=n,wt(bn),wt(ln),vt(ln,n)):wt(bn),vt(bn,a)}var _r=null,yl=!1,Qu=!1;function th(n){_r===null?_r=[n]:_r.push(n)}function Sb(n){yl=!0,th(n)}function ho(){if(!Qu&&_r!==null){Qu=!0;var n=0,o=ft;try{var a=_r;for(ft=1;n>=P,f-=P,Wr=1<<32-ar(o)+f|a<Fe?(tn=Ne,Ne=null):tn=Ne.sibling;var lt=ie(q,Ne,X[Fe],ce);if(lt===null){Ne===null&&(Ne=tn);break}n&&Ne&<.alternate===null&&o(q,Ne),_=y(lt,_,Fe),Le===null?Ee=lt:Le.sibling=lt,Le=lt,Ne=tn}if(Fe===X.length)return a(q,Ne),Pt&&Fo(q,Fe),Ee;if(Ne===null){for(;FeFe?(tn=Ne,Ne=null):tn=Ne.sibling;var ko=ie(q,Ne,lt.value,ce);if(ko===null){Ne===null&&(Ne=tn);break}n&&Ne&&ko.alternate===null&&o(q,Ne),_=y(ko,_,Fe),Le===null?Ee=ko:Le.sibling=ko,Le=ko,Ne=tn}if(lt.done)return a(q,Ne),Pt&&Fo(q,Fe),Ee;if(Ne===null){for(;!lt.done;Fe++,lt=X.next())lt=le(q,lt.value,ce),lt!==null&&(_=y(lt,_,Fe),Le===null?Ee=lt:Le.sibling=lt,Le=lt);return Pt&&Fo(q,Fe),Ee}for(Ne=u(q,Ne);!lt.done;Fe++,lt=X.next())lt=ye(Ne,q,Fe,lt.value,ce),lt!==null&&(n&<.alternate!==null&&Ne.delete(lt.key===null?Fe:lt.key),_=y(lt,_,Fe),Le===null?Ee=lt:Le.sibling=lt,Le=lt);return n&&Ne.forEach(function(tS){return o(q,tS)}),Pt&&Fo(q,Fe),Ee}function zt(q,_,X,ce){if(typeof X=="object"&&X!==null&&X.type===B&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case $:e:{for(var Ee=X.key,Le=_;Le!==null;){if(Le.key===Ee){if(Ee=X.type,Ee===B){if(Le.tag===7){a(q,Le.sibling),_=f(Le,X.props.children),_.return=q,q=_;break e}}else if(Le.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===G&&ah(Ee)===Le.type){a(q,Le.sibling),_=f(Le,X.props),_.ref=Ls(q,Le,X),_.return=q,q=_;break e}a(q,Le);break}else o(q,Le);Le=Le.sibling}X.type===B?(_=qo(X.props.children,q.mode,ce,X.key),_.return=q,q=_):(ce=Vl(X.type,X.key,X.props,null,q.mode,ce),ce.ref=Ls(q,_,X),ce.return=q,q=ce)}return P(q);case A:e:{for(Le=X.key;_!==null;){if(_.key===Le)if(_.tag===4&&_.stateNode.containerInfo===X.containerInfo&&_.stateNode.implementation===X.implementation){a(q,_.sibling),_=f(_,X.children||[]),_.return=q,q=_;break e}else{a(q,_);break}else o(q,_);_=_.sibling}_=qd(X,q.mode,ce),_.return=q,q=_}return P(q);case G:return Le=X._init,zt(q,_,Le(X._payload),ce)}if(qe(X))return Ce(q,_,X,ce);if(F(X))return Re(q,_,X,ce);Sl(q,X)}return typeof X=="string"&&X!==""||typeof X=="number"?(X=""+X,_!==null&&_.tag===6?(a(q,_.sibling),_=f(_,X),_.return=q,q=_):(a(q,_),_=Gd(X,q.mode,ce),_.return=q,q=_),P(q)):a(q,_)}return zt}var Ai=lh(!0),ch=lh(!1),wl=fo(null),Cl=null,Mi=null,rd=null;function od(){rd=Mi=Cl=null}function id(n){var o=wl.current;wt(wl),n._currentValue=o}function sd(n,o,a){for(;n!==null;){var u=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),n===a)break;n=n.return}}function Oi(n,o){Cl=n,rd=Mi=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(wn=!0),n.firstContext=null)}function Yn(n){var o=n._currentValue;if(rd!==n)if(n={context:n,memoizedValue:o,next:null},Mi===null){if(Cl===null)throw Error(r(308));Mi=n,Cl.dependencies={lanes:0,firstContext:n}}else Mi=Mi.next=n;return o}var _o=null;function ad(n){_o===null?_o=[n]:_o.push(n)}function uh(n,o,a,u){var f=o.interleaved;return f===null?(a.next=a,ad(o)):(a.next=f.next,f.next=a),o.interleaved=a,Hr(n,u)}function Hr(n,o){n.lanes|=o;var a=n.alternate;for(a!==null&&(a.lanes|=o),a=n,n=n.return;n!==null;)n.childLanes|=o,a=n.alternate,a!==null&&(a.childLanes|=o),a=n,n=n.return;return a.tag===3?a.stateNode:null}var go=!1;function ld(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dh(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Vr(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function yo(n,o,a){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(it&2)!==0){var f=u.pending;return f===null?o.next=o:(o.next=f.next,f.next=o),u.pending=o,Hr(n,a)}return f=u.interleaved,f===null?(o.next=o,ad(u)):(o.next=f.next,f.next=o),u.interleaved=o,Hr(n,a)}function kl(n,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var u=o.lanes;u&=n.pendingLanes,a|=u,o.lanes=a,wu(n,a)}}function ph(n,o){var a=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var f=null,y=null;if(a=a.firstBaseUpdate,a!==null){do{var P={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};y===null?f=y=P:y=y.next=P,a=a.next}while(a!==null);y===null?f=y=o:y=y.next=o}else f=y=o;a={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:y,shared:u.shared,effects:u.effects},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=o:n.next=o,a.lastBaseUpdate=o}function Rl(n,o,a,u){var f=n.updateQueue;go=!1;var y=f.firstBaseUpdate,P=f.lastBaseUpdate,M=f.shared.pending;if(M!==null){f.shared.pending=null;var z=M,Q=z.next;z.next=null,P===null?y=Q:P.next=Q,P=z;var se=n.alternate;se!==null&&(se=se.updateQueue,M=se.lastBaseUpdate,M!==P&&(M===null?se.firstBaseUpdate=Q:M.next=Q,se.lastBaseUpdate=z))}if(y!==null){var le=f.baseState;P=0,se=Q=z=null,M=y;do{var ie=M.lane,ye=M.eventTime;if((u&ie)===ie){se!==null&&(se=se.next={eventTime:ye,lane:0,tag:M.tag,payload:M.payload,callback:M.callback,next:null});e:{var Ce=n,Re=M;switch(ie=o,ye=a,Re.tag){case 1:if(Ce=Re.payload,typeof Ce=="function"){le=Ce.call(ye,le,ie);break e}le=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Re.payload,ie=typeof Ce=="function"?Ce.call(ye,le,ie):Ce,ie==null)break e;le=J({},le,ie);break e;case 2:go=!0}}M.callback!==null&&M.lane!==0&&(n.flags|=64,ie=f.effects,ie===null?f.effects=[M]:ie.push(M))}else ye={eventTime:ye,lane:ie,tag:M.tag,payload:M.payload,callback:M.callback,next:null},se===null?(Q=se=ye,z=le):se=se.next=ye,P|=ie;if(M=M.next,M===null){if(M=f.shared.pending,M===null)break;ie=M,M=ie.next,ie.next=null,f.lastBaseUpdate=ie,f.shared.pending=null}}while(!0);if(se===null&&(z=le),f.baseState=z,f.firstBaseUpdate=Q,f.lastBaseUpdate=se,o=f.shared.interleaved,o!==null){f=o;do P|=f.lane,f=f.next;while(f!==o)}else y===null&&(f.shared.lanes=0);Ho|=P,n.lanes=P,n.memoizedState=le}}function fh(n,o,a){if(n=o.effects,o.effects=null,n!==null)for(o=0;oa?a:4,n(!0);var u=fd.transition;fd.transition={};try{n(!1),o()}finally{ft=a,fd.transition=u}}function Ah(){return Xn().memoizedState}function Rb(n,o,a){var u=So(n);if(a={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null},Mh(n))Oh(o,a);else if(a=uh(n,o,a,u),a!==null){var f=yn();fr(a,n,u,f),Lh(a,o,u)}}function Eb(n,o,a){var u=So(n),f={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null};if(Mh(n))Oh(o,f);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var P=o.lastRenderedState,M=y(P,a);if(f.hasEagerState=!0,f.eagerState=M,lr(M,P)){var z=o.interleaved;z===null?(f.next=f,ad(o)):(f.next=z.next,z.next=f),o.interleaved=f;return}}catch{}finally{}a=uh(n,o,f,u),a!==null&&(f=yn(),fr(a,n,u,f),Lh(a,o,u))}}function Mh(n){var o=n.alternate;return n===$t||o!==null&&o===$t}function Oh(n,o){zs=Tl=!0;var a=n.pending;a===null?o.next=o:(o.next=a.next,a.next=o),n.pending=o}function Lh(n,o,a){if((a&4194240)!==0){var u=o.lanes;u&=n.pendingLanes,a|=u,o.lanes=a,wu(n,a)}}var jl={readContext:Yn,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useInsertionEffect:cn,useLayoutEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useMutableSource:cn,useSyncExternalStore:cn,useId:cn,unstable_isNewReconciler:!1},Pb={readContext:Yn,useCallback:function(n,o){return kr().memoizedState=[n,o===void 0?null:o],n},useContext:Yn,useEffect:kh,useImperativeHandle:function(n,o,a){return a=a!=null?a.concat([n]):null,Il(4194308,4,Ph.bind(null,o,n),a)},useLayoutEffect:function(n,o){return Il(4194308,4,n,o)},useInsertionEffect:function(n,o){return Il(4,2,n,o)},useMemo:function(n,o){var a=kr();return o=o===void 0?null:o,n=n(),a.memoizedState=[n,o],n},useReducer:function(n,o,a){var u=kr();return o=a!==void 0?a(o):o,u.memoizedState=u.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},u.queue=n,n=n.dispatch=Rb.bind(null,$t,n),[u.memoizedState,n]},useRef:function(n){var o=kr();return n={current:n},o.memoizedState=n},useState:wh,useDebugValue:bd,useDeferredValue:function(n){return kr().memoizedState=n},useTransition:function(){var n=wh(!1),o=n[0];return n=kb.bind(null,n[1]),kr().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,a){var u=$t,f=kr();if(Pt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),en===null)throw Error(r(349));(Uo&30)!==0||yh(u,o,a)}f.memoizedState=a;var y={value:a,getSnapshot:o};return f.queue=y,kh(xh.bind(null,u,y,n),[n]),u.flags|=2048,Ws(9,vh.bind(null,u,y,a,o),void 0,null),a},useId:function(){var n=kr(),o=en.identifierPrefix;if(Pt){var a=Ur,u=Wr;a=(u&~(1<<32-ar(u)-1)).toString(32)+a,o=":"+o+"R"+a,a=Fs++,0<\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=P.createElement(a,{is:u.is}):(n=P.createElement(a),a==="select"&&(P=n,u.multiple?P.multiple=!0:u.size&&(P.size=u.size))):n=P.createElementNS(n,a),n[wr]=o,n[Ms]=u,tg(n,o,!1,!1),o.stateNode=n;e:{switch(P=bt(a,u),a){case"dialog":St("cancel",n),St("close",n),f=u;break;case"iframe":case"object":case"embed":St("load",n),f=u;break;case"video":case"audio":for(f=0;f<$s.length;f++)St($s[f],n);f=u;break;case"source":St("error",n),f=u;break;case"img":case"image":case"link":St("error",n),St("load",n),f=u;break;case"details":St("toggle",n),f=u;break;case"input":Ye(n,u),f=Oe(n,u),St("invalid",n);break;case"option":f=u;break;case"select":n._wrapperState={wasMultiple:!!u.multiple},f=J({},u,{value:void 0}),St("invalid",n);break;case"textarea":At(n,u),f=ge(n,u),St("invalid",n);break;default:f=u}rt(a,f),M=f;for(y in M)if(M.hasOwnProperty(y)){var z=M[y];y==="style"?at(n,z):y==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,z!=null&&Ut(n,z)):y==="children"?typeof z=="string"?(a!=="textarea"||z!=="")&&ot(n,z):typeof z=="number"&&ot(n,""+z):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(s.hasOwnProperty(y)?z!=null&&y==="onScroll"&&St("scroll",n):z!=null&&I(n,y,z,P))}switch(a){case"input":Be(n),Ge(n,u,!1);break;case"textarea":Be(n),Kt(n);break;case"option":u.value!=null&&n.setAttribute("value",""+xe(u.value));break;case"select":n.multiple=!!u.multiple,y=u.value,y!=null?_e(n,!!u.multiple,y,!1):u.defaultValue!=null&&_e(n,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(n.onclick=fl)}switch(a){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return un(o),null;case 6:if(n&&o.stateNode!=null)rg(n,o,n.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(a=Wo(Ds.current),Wo(Cr.current),bl(o)){if(u=o.stateNode,a=o.memoizedProps,u[wr]=o,(y=u.nodeValue!==a)&&(n=Ln,n!==null))switch(n.tag){case 3:pl(u.nodeValue,a,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&pl(u.nodeValue,a,(n.mode&1)!==0)}y&&(o.flags|=4)}else u=(a.nodeType===9?a:a.ownerDocument).createTextNode(u),u[wr]=o,o.stateNode=u}return un(o),null;case 13:if(wt(It),u=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Pt&&Nn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)sh(),ji(),o.flags|=98560,y=!1;else if(y=bl(o),u!==null&&u.dehydrated!==null){if(n===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[wr]=o}else ji(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;un(o),y=!1}else cr!==null&&(Wd(cr),cr=null),y=!0;if(!y)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=a,o):(u=u!==null,u!==(n!==null&&n.memoizedState!==null)&&u&&(o.child.flags|=8192,(o.mode&1)!==0&&(n===null||(It.current&1)!==0?qt===0&&(qt=3):Vd())),o.updateQueue!==null&&(o.flags|=4),un(o),null);case 4:return Li(),jd(n,o),n===null&&js(o.stateNode.containerInfo),un(o),null;case 10:return id(o.type._context),un(o),null;case 17:return Sn(o.type)&&hl(),un(o),null;case 19:if(wt(It),y=o.memoizedState,y===null)return un(o),null;if(u=(o.flags&128)!==0,P=y.rendering,P===null)if(u)Us(y,!1);else{if(qt!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(P=El(n),P!==null){for(o.flags|=128,Us(y,!1),u=P.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=a,a=o.child;a!==null;)y=a,n=u,y.flags&=14680066,P=y.alternate,P===null?(y.childLanes=0,y.lanes=n,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=P.childLanes,y.lanes=P.lanes,y.child=P.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=P.memoizedProps,y.memoizedState=P.memoizedState,y.updateQueue=P.updateQueue,y.type=P.type,n=P.dependencies,y.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),a=a.sibling;return vt(It,It.current&1|2),o.child}n=n.sibling}y.tail!==null&&Dt()>zi&&(o.flags|=128,u=!0,Us(y,!1),o.lanes=4194304)}else{if(!u)if(n=El(P),n!==null){if(o.flags|=128,u=!0,a=n.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),Us(y,!0),y.tail===null&&y.tailMode==="hidden"&&!P.alternate&&!Pt)return un(o),null}else 2*Dt()-y.renderingStartTime>zi&&a!==1073741824&&(o.flags|=128,u=!0,Us(y,!1),o.lanes=4194304);y.isBackwards?(P.sibling=o.child,o.child=P):(a=y.last,a!==null?a.sibling=P:o.child=P,y.last=P)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=Dt(),o.sibling=null,a=It.current,vt(It,u?a&1|2:a&1),o):(un(o),null);case 22:case 23:return Hd(),u=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(o.flags|=8192),u&&(o.mode&1)!==0?(Bn&1073741824)!==0&&(un(o),o.subtreeFlags&6&&(o.flags|=8192)):un(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function Lb(n,o){switch(Zu(o),o.tag){case 1:return Sn(o.type)&&hl(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return Li(),wt(bn),wt(ln),pd(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return ud(o),null;case 13:if(wt(It),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));ji()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return wt(It),null;case 4:return Li(),null;case 10:return id(o.type._context),null;case 22:case 23:return Hd(),null;case 24:return null;default:return null}}var Ll=!1,dn=!1,Nb=typeof WeakSet=="function"?WeakSet:Set,be=null;function Bi(n,o){var a=n.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(u){Mt(n,o,u)}else a.current=null}function Ad(n,o,a){try{a()}catch(u){Mt(n,o,u)}}var og=!1;function Bb(n,o){if(Hu=tl,n=Nm(),Nu(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var f=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{a.nodeType,y.nodeType}catch{a=null;break e}var P=0,M=-1,z=-1,Q=0,se=0,le=n,ie=null;t:for(;;){for(var ye;le!==a||f!==0&&le.nodeType!==3||(M=P+f),le!==y||u!==0&&le.nodeType!==3||(z=P+u),le.nodeType===3&&(P+=le.nodeValue.length),(ye=le.firstChild)!==null;)ie=le,le=ye;for(;;){if(le===n)break t;if(ie===a&&++Q===f&&(M=P),ie===y&&++se===u&&(z=P),(ye=le.nextSibling)!==null)break;le=ie,ie=le.parentNode}le=ye}a=M===-1||z===-1?null:{start:M,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(Vu={focusedElem:n,selectionRange:a},tl=!1,be=o;be!==null;)if(o=be,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,be=n;else for(;be!==null;){o=be;try{var Ce=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(Ce!==null){var Re=Ce.memoizedProps,zt=Ce.memoizedState,q=o.stateNode,_=q.getSnapshotBeforeUpdate(o.elementType===o.type?Re:ur(o.type,Re),zt);q.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var X=o.stateNode.containerInfo;X.nodeType===1?X.textContent="":X.nodeType===9&&X.documentElement&&X.removeChild(X.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ce){Mt(o,o.return,ce)}if(n=o.sibling,n!==null){n.return=o.return,be=n;break}be=o.return}return Ce=og,og=!1,Ce}function Hs(n,o,a){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&n)===n){var y=f.destroy;f.destroy=void 0,y!==void 0&&Ad(o,a,y)}f=f.next}while(f!==u)}}function Nl(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&n)===n){var u=a.create;a.destroy=u()}a=a.next}while(a!==o)}}function Md(n){var o=n.ref;if(o!==null){var a=n.stateNode;switch(n.tag){case 5:n=a;break;default:n=a}typeof o=="function"?o(n):o.current=n}}function ig(n){var o=n.alternate;o!==null&&(n.alternate=null,ig(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[wr],delete o[Ms],delete o[Yu],delete o[xb],delete o[bb])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function sg(n){return n.tag===5||n.tag===3||n.tag===4}function ag(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||sg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Od(n,o,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(n,o):a.insertBefore(n,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(n,a)):(o=a,o.appendChild(n)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=fl));else if(u!==4&&(n=n.child,n!==null))for(Od(n,o,a),n=n.sibling;n!==null;)Od(n,o,a),n=n.sibling}function Ld(n,o,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,o?a.insertBefore(n,o):a.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(Ld(n,o,a),n=n.sibling;n!==null;)Ld(n,o,a),n=n.sibling}var rn=null,dr=!1;function vo(n,o,a){for(a=a.child;a!==null;)lg(n,o,a),a=a.sibling}function lg(n,o,a){if(Sr&&typeof Sr.onCommitFiberUnmount=="function")try{Sr.onCommitFiberUnmount(Ya,a)}catch{}switch(a.tag){case 5:dn||Bi(a,o);case 6:var u=rn,f=dr;rn=null,vo(n,o,a),rn=u,dr=f,rn!==null&&(dr?(n=rn,a=a.stateNode,n.nodeType===8?n.parentNode.removeChild(a):n.removeChild(a)):rn.removeChild(a.stateNode));break;case 18:rn!==null&&(dr?(n=rn,a=a.stateNode,n.nodeType===8?qu(n.parentNode,a):n.nodeType===1&&qu(n,a),ws(n)):qu(rn,a.stateNode));break;case 4:u=rn,f=dr,rn=a.stateNode.containerInfo,dr=!0,vo(n,o,a),rn=u,dr=f;break;case 0:case 11:case 14:case 15:if(!dn&&(u=a.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var y=f,P=y.destroy;y=y.tag,P!==void 0&&((y&2)!==0||(y&4)!==0)&&Ad(a,o,P),f=f.next}while(f!==u)}vo(n,o,a);break;case 1:if(!dn&&(Bi(a,o),u=a.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=a.memoizedProps,u.state=a.memoizedState,u.componentWillUnmount()}catch(M){Mt(a,o,M)}vo(n,o,a);break;case 21:vo(n,o,a);break;case 22:a.mode&1?(dn=(u=dn)||a.memoizedState!==null,vo(n,o,a),dn=u):vo(n,o,a);break;default:vo(n,o,a)}}function cg(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var a=n.stateNode;a===null&&(a=n.stateNode=new Nb),o.forEach(function(u){var f=Kb.bind(null,n,u);a.has(u)||(a.add(u),u.then(f,f))})}}function pr(n,o){var a=o.deletions;if(a!==null)for(var u=0;uf&&(f=P),u&=~y}if(u=f,u=Dt()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*zb(u/1960))-u,10n?16:n,bo===null)var u=!1;else{if(n=bo,bo=null,_l=0,(it&6)!==0)throw Error(r(331));var f=it;for(it|=4,be=n.current;be!==null;){var y=be,P=y.child;if((be.flags&16)!==0){var M=y.deletions;if(M!==null){for(var z=0;zDt()-Dd?Ko(n,0):Bd|=a),kn(n,o)}function wg(n,o){o===0&&((n.mode&1)===0?o=1:(o=Qa,Qa<<=1,(Qa&130023424)===0&&(Qa=4194304)));var a=yn();n=Hr(n,o),n!==null&&(ys(n,o,a),kn(n,a))}function Vb(n){var o=n.memoizedState,a=0;o!==null&&(a=o.retryLane),wg(n,a)}function Kb(n,o){var a=0;switch(n.tag){case 13:var u=n.stateNode,f=n.memoizedState;f!==null&&(a=f.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(o),wg(n,a)}var Cg;Cg=function(n,o,a){if(n!==null)if(n.memoizedProps!==o.pendingProps||bn.current)wn=!0;else{if((n.lanes&a)===0&&(o.flags&128)===0)return wn=!1,Mb(n,o,a);wn=(n.flags&131072)!==0}else wn=!1,Pt&&(o.flags&1048576)!==0&&nh(o,xl,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;Ol(n,o),n=o.pendingProps;var f=Ti(o,ln.current);Oi(o,a),f=hd(null,o,u,n,f,a);var y=gd();return o.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Sn(u)?(y=!0,gl(o)):y=!1,o.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,ld(o),f.updater=Al,o.stateNode=f,f._reactInternals=o,wd(o,u,n,a),o=Ed(null,o,u,!0,y,a)):(o.tag=0,Pt&&y&&Ju(o),gn(null,o,f,a),o=o.child),o;case 16:u=o.elementType;e:{switch(Ol(n,o),n=o.pendingProps,f=u._init,u=f(u._payload),o.type=u,f=o.tag=qb(u),n=ur(u,n),f){case 0:o=Rd(null,o,u,n,a);break e;case 1:o=Yh(null,o,u,n,a);break e;case 11:o=Hh(null,o,u,n,a);break e;case 14:o=Vh(null,o,u,ur(u.type,n),a);break e}throw Error(r(306,u,""))}return o;case 0:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:ur(u,f),Rd(n,o,u,f,a);case 1:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:ur(u,f),Yh(n,o,u,f,a);case 3:e:{if(Xh(o),n===null)throw Error(r(387));u=o.pendingProps,y=o.memoizedState,f=y.element,dh(n,o),Rl(o,u,null,a);var P=o.memoizedState;if(u=P.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){f=Ni(Error(r(423)),o),o=Qh(n,o,u,a,f);break e}else if(u!==f){f=Ni(Error(r(424)),o),o=Qh(n,o,u,a,f);break e}else for(Nn=po(o.stateNode.containerInfo.firstChild),Ln=o,Pt=!0,cr=null,a=ch(o,null,u,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ji(),u===f){o=Kr(n,o,a);break e}gn(n,o,u,a)}o=o.child}return o;case 5:return mh(o),n===null&&td(o),u=o.type,f=o.pendingProps,y=n!==null?n.memoizedProps:null,P=f.children,Ku(u,f)?P=null:y!==null&&Ku(u,y)&&(o.flags|=32),qh(n,o),gn(n,o,P,a),o.child;case 6:return n===null&&td(o),null;case 13:return Jh(n,o,a);case 4:return cd(o,o.stateNode.containerInfo),u=o.pendingProps,n===null?o.child=Ai(o,null,u,a):gn(n,o,u,a),o.child;case 11:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:ur(u,f),Hh(n,o,u,f,a);case 7:return gn(n,o,o.pendingProps,a),o.child;case 8:return gn(n,o,o.pendingProps.children,a),o.child;case 12:return gn(n,o,o.pendingProps.children,a),o.child;case 10:e:{if(u=o.type._context,f=o.pendingProps,y=o.memoizedProps,P=f.value,vt(wl,u._currentValue),u._currentValue=P,y!==null)if(lr(y.value,P)){if(y.children===f.children&&!bn.current){o=Kr(n,o,a);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var M=y.dependencies;if(M!==null){P=y.child;for(var z=M.firstContext;z!==null;){if(z.context===u){if(y.tag===1){z=Vr(-1,a&-a),z.tag=2;var Q=y.updateQueue;if(Q!==null){Q=Q.shared;var se=Q.pending;se===null?z.next=z:(z.next=se.next,se.next=z),Q.pending=z}}y.lanes|=a,z=y.alternate,z!==null&&(z.lanes|=a),sd(y.return,a,o),M.lanes|=a;break}z=z.next}}else if(y.tag===10)P=y.type===o.type?null:y.child;else if(y.tag===18){if(P=y.return,P===null)throw Error(r(341));P.lanes|=a,M=P.alternate,M!==null&&(M.lanes|=a),sd(P,a,o),P=y.sibling}else P=y.child;if(P!==null)P.return=y;else for(P=y;P!==null;){if(P===o){P=null;break}if(y=P.sibling,y!==null){y.return=P.return,P=y;break}P=P.return}y=P}gn(n,o,f.children,a),o=o.child}return o;case 9:return f=o.type,u=o.pendingProps.children,Oi(o,a),f=Yn(f),u=u(f),o.flags|=1,gn(n,o,u,a),o.child;case 14:return u=o.type,f=ur(u,o.pendingProps),f=ur(u.type,f),Vh(n,o,u,f,a);case 15:return Kh(n,o,o.type,o.pendingProps,a);case 17:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:ur(u,f),Ol(n,o),o.tag=1,Sn(u)?(n=!0,gl(o)):n=!1,Oi(o,a),Bh(o,u,f),wd(o,u,f,a),Ed(null,o,u,!0,n,a);case 19:return eg(n,o,a);case 22:return Gh(n,o,a)}throw Error(r(156,o.tag))};function kg(n,o){return rm(n,o)}function Gb(n,o,a,u){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jn(n,o,a,u){return new Gb(n,o,a,u)}function Kd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function qb(n){if(typeof n=="function")return Kd(n)?1:0;if(n!=null){if(n=n.$$typeof,n===K)return 11;if(n===V)return 14}return 2}function Co(n,o){var a=n.alternate;return a===null?(a=Jn(n.tag,o,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=o,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&14680064,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,o=n.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a}function Vl(n,o,a,u,f,y){var P=2;if(u=n,typeof n=="function")Kd(n)&&(P=1);else if(typeof n=="string")P=5;else e:switch(n){case B:return qo(a.children,f,y,o);case L:P=8,f|=8;break;case N:return n=Jn(12,a,o,f|2),n.elementType=N,n.lanes=y,n;case H:return n=Jn(13,a,o,f),n.elementType=H,n.lanes=y,n;case W:return n=Jn(19,a,o,f),n.elementType=W,n.lanes=y,n;case ee:return Kl(a,f,y,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:P=10;break e;case D:P=9;break e;case K:P=11;break e;case V:P=14;break e;case G:P=16,u=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=Jn(P,a,o,f),o.elementType=n,o.type=u,o.lanes=y,o}function qo(n,o,a,u){return n=Jn(7,n,u,o),n.lanes=a,n}function Kl(n,o,a,u){return n=Jn(22,n,u,o),n.elementType=ee,n.lanes=a,n.stateNode={isHidden:!1},n}function Gd(n,o,a){return n=Jn(6,n,null,o),n.lanes=a,n}function qd(n,o,a){return o=Jn(4,n.children!==null?n.children:[],n.key,o),o.lanes=a,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function Yb(n,o,a,u,f){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Su(0),this.expirationTimes=Su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Su(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Yd(n,o,a,u,f,y,P,M,z){return n=new Yb(n,o,a,M,z),o===1?(o=1,y===!0&&(o|=8)):o=0,y=Jn(3,null,null,o),n.current=y,y.stateNode=n,y.memoizedState={element:u,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},ld(y),n}function Xb(n,o,a){var u=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),tp.exports=uS(),tp.exports}var Dg;function dS(){if(Dg)return Zl;Dg=1;var e=Uv();return Zl.createRoot=e.createRoot,Zl.hydrateRoot=e.hydrateRoot,Zl}var pS=dS(),Qs={},zg;function fS(){if(zg)return Qs;zg=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.parse=c,Qs.serialize=m;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,l=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function c(b,R){const x=new l,w=b.length;if(w<2)return x;const k=(R==null?void 0:R.decode)||g;let E=0;do{const j=b.indexOf("=",E);if(j===-1)break;const I=b.indexOf(";",E),T=I===-1?w:I;if(j>T){E=b.lastIndexOf(";",j-1)+1;continue}const $=d(b,E,j),A=p(b,j,$),B=b.slice($,A);if(x[B]===void 0){let L=d(b,j+1,T),N=p(b,T,L);const C=k(b.slice(L,N));x[B]=C}E=T+1}while(Ex;){const w=b.charCodeAt(--R);if(w!==32&&w!==9)return R+1}return x}function m(b,R,x){const w=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(b))throw new TypeError(`argument name is invalid: ${b}`);const k=w(R);if(!t.test(k))throw new TypeError(`argument val is invalid: ${R}`);let E=b+"="+k;if(!x)return E;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);E+="; Max-Age="+x.maxAge}if(x.domain){if(!r.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);E+="; Domain="+x.domain}if(x.path){if(!i.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);E+="; Path="+x.path}if(x.expires){if(!v(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);E+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(E+="; HttpOnly"),x.secure&&(E+="; Secure"),x.partitioned&&(E+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"none":E+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return E}function g(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function v(b){return s.call(b)==="[object Date]"}return Qs}fS();var Fg="popstate";function mS(e={}){function t(i,s){let{pathname:l,search:c,hash:d}=i.location;return kp("",{pathname:l,search:c,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(i,s){return typeof s=="string"?s:Sa(s)}return gS(t,r,null,e)}function jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Br(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hS(){return Math.random().toString(36).substring(2,10)}function _g(e,t){return{usr:e.state,key:e.key,idx:t}}function kp(e,t,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?cs(t):t,state:r,key:t&&t.key||i||hS()}}function Sa({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function cs(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function gS(e,t,r,i={}){let{window:s=document.defaultView,v5Compat:l=!1}=i,c=s.history,d="POP",p=null,m=g();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function g(){return(c.state||{idx:null}).idx}function v(){d="POP";let k=g(),E=k==null?null:k-m;m=k,p&&p({action:d,location:w.location,delta:E})}function b(k,E){d="PUSH";let j=kp(w.location,k,E);m=g()+1;let I=_g(j,m),T=w.createHref(j);try{c.pushState(I,"",T)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;s.location.assign(T)}l&&p&&p({action:d,location:w.location,delta:1})}function R(k,E){d="REPLACE";let j=kp(w.location,k,E);m=g();let I=_g(j,m),T=w.createHref(j);c.replaceState(I,"",T),l&&p&&p({action:d,location:w.location,delta:0})}function x(k){return yS(k)}let w={get action(){return d},get location(){return e(s,c)},listen(k){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Fg,v),p=k,()=>{s.removeEventListener(Fg,v),p=null}},createHref(k){return t(s,k)},createURL:x,encodeLocation(k){let E=x(k);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:b,replace:R,go(k){return c.go(k)}};return w}function yS(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),jt(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Sa(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Hv(e,t,r="/"){return vS(e,t,r,!1)}function vS(e,t,r,i){let s=typeof t=="string"?cs(t):t,l=Zr(s.pathname||"/",r);if(l==null)return null;let c=Vv(e);xS(c);let d=null;for(let p=0;d==null&&p{let p={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};p.relativePath.startsWith("/")&&(jt(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let m=Qr([i,p.relativePath]),g=r.concat(p);l.children&&l.children.length>0&&(jt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Vv(l.children,t,g,m)),!(l.path==null&&!l.index)&&t.push({path:m,score:ES(m,l.index),routesMeta:g})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))s(l,c);else for(let p of Kv(l.path))s(l,c,p)}),t}function Kv(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,s=r.endsWith("?"),l=r.replace(/\?$/,"");if(i.length===0)return s?[l,""]:[l];let c=Kv(i.join("/")),d=[];return d.push(...c.map(p=>p===""?l:[l,p].join("/"))),s&&d.push(...c),d.map(p=>e.startsWith("/")&&p===""?"/":p)}function xS(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:PS(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var bS=/^:[\w-]+$/,SS=3,wS=2,CS=1,kS=10,RS=-2,Wg=e=>e==="*";function ES(e,t){let r=e.split("/"),i=r.length;return r.some(Wg)&&(i+=RS),t&&(i+=wS),r.filter(s=>!Wg(s)).reduce((s,l)=>s+(bS.test(l)?SS:l===""?CS:kS),i)}function PS(e,t){return e.length===t.length&&e.slice(0,-1).every((i,s)=>i===t[s])?e[e.length-1]-t[t.length-1]:0}function TS(e,t,r=!1){let{routesMeta:i}=e,s={},l="/",c=[];for(let d=0;d{if(g==="*"){let x=d[b]||"";c=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const R=d[b];return v&&!R?m[g]=void 0:m[g]=(R||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:c,pattern:e}}function IS(e,t=!1,r=!0){Br(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 i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,p)=>(i.push({paramName:d,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),i]}function $S(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Br(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Zr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function jS(e,t="/"){let{pathname:r,search:i="",hash:s=""}=typeof e=="string"?cs(e):e;return{pathname:r?r.startsWith("/")?r:AS(r,t):t,search:LS(i),hash:NS(s)}}function AS(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function op(e,t,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function MS(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Gv(e){let t=MS(e);return t.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase)}function qv(e,t,r,i=!1){let s;typeof e=="string"?s=cs(e):(s={...e},jt(!s.pathname||!s.pathname.includes("?"),op("?","pathname","search",s)),jt(!s.pathname||!s.pathname.includes("#"),op("#","pathname","hash",s)),jt(!s.search||!s.search.includes("#"),op("#","search","hash",s)));let l=e===""||s.pathname==="",c=l?"/":s.pathname,d;if(c==null)d=r;else{let v=t.length-1;if(!i&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),v-=1;s.pathname=b.join("/")}d=v>=0?t[v]:"/"}let p=jS(s,d),m=c&&c!=="/"&&c.endsWith("/"),g=(l||c===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var Qr=e=>e.join("/").replace(/\/\/+/g,"/"),OS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function BS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Yv=["POST","PUT","PATCH","DELETE"];new Set(Yv);var DS=["GET",...Yv];new Set(DS);var us=S.createContext(null);us.displayName="DataRouter";var Uc=S.createContext(null);Uc.displayName="DataRouterState";var Xv=S.createContext({isTransitioning:!1});Xv.displayName="ViewTransition";var zS=S.createContext(new Map);zS.displayName="Fetchers";var FS=S.createContext(null);FS.displayName="Await";var zr=S.createContext(null);zr.displayName="Navigation";var ja=S.createContext(null);ja.displayName="Location";var oo=S.createContext({outlet:null,matches:[],isDataRoute:!1});oo.displayName="Route";var of=S.createContext(null);of.displayName="RouteError";function _S(e,{relative:t}={}){jt(Aa(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:i}=S.useContext(zr),{hash:s,pathname:l,search:c}=Ma(e,{relative:t}),d=l;return r!=="/"&&(d=l==="/"?r:Qr([r,l])),i.createHref({pathname:d,search:c,hash:s})}function Aa(){return S.useContext(ja)!=null}function ui(){return jt(Aa(),"useLocation() may be used only in the context of a component."),S.useContext(ja).location}var Qv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jv(e){S.useContext(zr).static||S.useLayoutEffect(e)}function WS(){let{isDataRoute:e}=S.useContext(oo);return e?tw():US()}function US(){jt(Aa(),"useNavigate() may be used only in the context of a component.");let e=S.useContext(us),{basename:t,navigator:r}=S.useContext(zr),{matches:i}=S.useContext(oo),{pathname:s}=ui(),l=JSON.stringify(Gv(i)),c=S.useRef(!1);return Jv(()=>{c.current=!0}),S.useCallback((p,m={})=>{if(Br(c.current,Qv),!c.current)return;if(typeof p=="number"){r.go(p);return}let g=qv(p,JSON.parse(l),s,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Qr([t,g.pathname])),(m.replace?r.replace:r.push)(g,m.state,m)},[t,r,l,s,e])}S.createContext(null);function Ma(e,{relative:t}={}){let{matches:r}=S.useContext(oo),{pathname:i}=ui(),s=JSON.stringify(Gv(r));return S.useMemo(()=>qv(e,JSON.parse(s),i,t==="path"),[e,s,i,t])}function HS(e,t){return Zv(e,t)}function Zv(e,t,r,i){var E;jt(Aa(),"useRoutes() may be used only in the context of a component.");let{navigator:s}=S.useContext(zr),{matches:l}=S.useContext(oo),c=l[l.length-1],d=c?c.params:{},p=c?c.pathname:"/",m=c?c.pathnameBase:"/",g=c&&c.route;{let j=g&&g.path||"";e0(p,!g||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${p}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let v=ui(),b;if(t){let j=typeof t=="string"?cs(t):t;jt(m==="/"||((E=j.pathname)==null?void 0:E.startsWith(m)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${j.pathname}" was given in the \`location\` prop.`),b=j}else b=v;let R=b.pathname||"/",x=R;if(m!=="/"){let j=m.replace(/^\//,"").split("/");x="/"+R.replace(/^\//,"").split("/").slice(j.length).join("/")}let w=Hv(e,{pathname:x});Br(g||w!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Br(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let k=YS(w&&w.map(j=>Object.assign({},j,{params:Object.assign({},d,j.params),pathname:Qr([m,s.encodeLocation?s.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:Qr([m,s.encodeLocation?s.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),l,r,i);return t&&k?S.createElement(ja.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},k):k}function VS(){let e=ew(),t=BS(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},l={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:l},"ErrorBoundary")," or"," ",S.createElement("code",{style:l},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:s},r):null,c)}var KS=S.createElement(VS,null),GS=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(oo.Provider,{value:this.props.routeContext},S.createElement(of.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qS({routeContext:e,match:t,children:r}){let i=S.useContext(us);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(oo.Provider,{value:e},r)}function YS(e,t=[],r=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,l=r==null?void 0:r.errors;if(l!=null){let p=s.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);jt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let c=!1,d=-1;if(r)for(let p=0;p=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((p,m,g)=>{let v,b=!1,R=null,x=null;r&&(v=l&&m.route.id?l[m.route.id]:void 0,R=m.route.errorElement||KS,c&&(d<0&&g===0?(e0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,x=null):d===g&&(b=!0,x=m.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,g+1)),k=()=>{let E;return v?E=R:b?E=x:m.route.Component?E=S.createElement(m.route.Component,null):m.route.element?E=m.route.element:E=p,S.createElement(qS,{match:m,routeContext:{outlet:p,matches:w,isDataRoute:r!=null},children:E})};return r&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?S.createElement(GS,{location:r.location,revalidation:r.revalidation,component:R,error:v,children:k(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):k()},null)}function sf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function XS(e){let t=S.useContext(us);return jt(t,sf(e)),t}function QS(e){let t=S.useContext(Uc);return jt(t,sf(e)),t}function JS(e){let t=S.useContext(oo);return jt(t,sf(e)),t}function af(e){let t=JS(e),r=t.matches[t.matches.length-1];return jt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function ZS(){return af("useRouteId")}function ew(){var i;let e=S.useContext(of),t=QS("useRouteError"),r=af("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[r]}function tw(){let{router:e}=XS("useNavigate"),t=af("useNavigate"),r=S.useRef(!1);return Jv(()=>{r.current=!0}),S.useCallback(async(s,l={})=>{Br(r.current,Qv),r.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var Ug={};function e0(e,t,r){!t&&!Ug[e]&&(Ug[e]=!0,Br(!1,r))}S.memo(nw);function nw({routes:e,future:t,state:r}){return Zv(e,void 0,r,t)}function Eo(e){jt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function rw({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:s,static:l=!1}){jt(!Aa(),"You cannot render a inside another . You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=S.useMemo(()=>({basename:c,navigator:s,static:l,future:{}}),[c,s,l]);typeof r=="string"&&(r=cs(r));let{pathname:p="/",search:m="",hash:g="",state:v=null,key:b="default"}=r,R=S.useMemo(()=>{let x=Zr(p,c);return x==null?null:{location:{pathname:x,search:m,hash:g,state:v,key:b},navigationType:i}},[c,p,m,g,v,b,i]);return Br(R!=null,` is not able to match the URL "${p}${m}${g}" because it does not start with the basename, so the won't render anything.`),R==null?null:S.createElement(zr.Provider,{value:d},S.createElement(ja.Provider,{children:t,value:R}))}function Hg({children:e,location:t}){return HS(Rp(e),t)}function Rp(e,t=[]){let r=[];return S.Children.forEach(e,(i,s)=>{if(!S.isValidElement(i))return;let l=[...t,s];if(i.type===S.Fragment){r.push.apply(r,Rp(i.props.children,l));return}jt(i.type===Eo,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),jt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=Rp(i.props.children,l)),r.push(c)}),r}var vc="get",xc="application/x-www-form-urlencoded";function Hc(e){return e!=null&&typeof e.tagName=="string"}function ow(e){return Hc(e)&&e.tagName.toLowerCase()==="button"}function iw(e){return Hc(e)&&e.tagName.toLowerCase()==="form"}function sw(e){return Hc(e)&&e.tagName.toLowerCase()==="input"}function aw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lw(e,t){return e.button===0&&(!t||t==="_self")&&!aw(e)}var ec=null;function cw(){if(ec===null)try{new FormData(document.createElement("form"),0),ec=!1}catch{ec=!0}return ec}var uw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ip(e){return e!=null&&!uw.has(e)?(Br(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${xc}"`),null):e}function dw(e,t){let r,i,s,l,c;if(iw(e)){let d=e.getAttribute("action");i=d?Zr(d,t):null,r=e.getAttribute("method")||vc,s=ip(e.getAttribute("enctype"))||xc,l=new FormData(e)}else if(ow(e)||sw(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a