import{ZBarSymbolType as dt,ZBarConfigType as FS,scanRGBABuffer as bw,getDefaultScanner as vw}from"https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.9.16/dist/main.js";function Sw(e,t){for(var o=0;or[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function o(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(i){if(i.ep)return;i.ep=!0;const c=o(i);fetch(i.href,c)}})();function Eh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jp={exports:{}},Zi={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var m1;function xw(){if(m1)return Zi;m1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(r,i,c){var u=null;if(c!==void 0&&(u=""+c),i.key!==void 0&&(u=""+i.key),"key"in i){c={};for(var d in i)d!=="key"&&(c[d]=i[d])}else c=i;return i=c.ref,{$$typeof:e,type:r,key:u,ref:i!==void 0?i:null,props:c}}return Zi.Fragment=t,Zi.jsx=o,Zi.jsxs=o,Zi}var h1;function Tw(){return h1||(h1=1,Jp.exports=xw()),Jp.exports}var f=Tw(),em={exports:{}},$e={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var g1;function Cw(){if(g1)return $e;g1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function T(I){return I===null||typeof I!="object"?null:(I=S&&I[S]||I["@@iterator"],typeof I=="function"?I:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,A={};function w(I,G,X){this.props=I,this.context=G,this.refs=A,this.updater=X||x}w.prototype.isReactComponent={},w.prototype.setState=function(I,G){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,G,"setState")},w.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function j(){}j.prototype=w.prototype;function R(I,G,X){this.props=I,this.context=G,this.refs=A,this.updater=X||x}var M=R.prototype=new j;M.constructor=R,C(M,w.prototype),M.isPureReactComponent=!0;var N=Array.isArray;function D(){}var O={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function $(I,G,X){var ne=X.ref;return{$$typeof:e,type:I,key:G,ref:ne!==void 0?ne:null,props:X}}function W(I,G){return $(I.type,G,I.props)}function F(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function E(I){var G={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(X){return G[X]})}var B=/\/+/g;function L(I,G){return typeof I=="object"&&I!==null&&I.key!=null?E(""+I.key):G.toString(36)}function H(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(D,D):(I.status="pending",I.then(function(G){I.status==="pending"&&(I.status="fulfilled",I.value=G)},function(G){I.status==="pending"&&(I.status="rejected",I.reason=G)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function _(I,G,X,ne,re){var pe=typeof I;(pe==="undefined"||pe==="boolean")&&(I=null);var le=!1;if(I===null)le=!0;else switch(pe){case"bigint":case"string":case"number":le=!0;break;case"object":switch(I.$$typeof){case e:case t:le=!0;break;case g:return le=I._init,_(le(I._payload),G,X,ne,re)}}if(le)return re=re(I),le=ne===""?"."+L(I,0):ne,N(re)?(X="",le!=null&&(X=le.replace(B,"$&/")+"/"),_(re,G,X,"",function(me){return me})):re!=null&&(F(re)&&(re=W(re,X+(re.key==null||I&&I.key===re.key?"":(""+re.key).replace(B,"$&/")+"/")+le)),G.push(re)),1;le=0;var we=ne===""?".":ne+":";if(N(I))for(var fe=0;fe>>1,K=_[Q];if(0>>1;Qi(X,Y))nei(re,X)?(_[Q]=re,_[ne]=Y,Q=ne):(_[Q]=X,_[G]=Y,Q=G);else if(nei(re,Y))_[Q]=re,_[ne]=Y,Q=ne;else break e}}return U}function i(_,U){var Y=_.sortIndex-U.sortIndex;return Y!==0?Y:_.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var m=[],p=[],g=1,y=null,S=3,T=!1,x=!1,C=!1,A=!1,w=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function M(_){for(var U=o(p);U!==null;){if(U.callback===null)r(p);else if(U.startTime<=_)r(p),U.sortIndex=U.expirationTime,t(m,U);else break;U=o(p)}}function N(_){if(C=!1,M(_),!x)if(o(m)!==null)x=!0,D||(D=!0,E());else{var U=o(p);U!==null&&H(N,U.startTime-_)}}var D=!1,O=-1,z=5,$=-1;function W(){return A?!0:!(e.unstable_now()-$_&&W());){var Q=y.callback;if(typeof Q=="function"){y.callback=null,S=y.priorityLevel;var K=Q(y.expirationTime<=_);if(_=e.unstable_now(),typeof K=="function"){y.callback=K,M(_),U=!0;break t}y===o(m)&&r(m),M(_)}else r(m);y=o(m)}if(y!==null)U=!0;else{var I=o(p);I!==null&&H(N,I.startTime-_),U=!1}}break e}finally{y=null,S=Y,T=!1}U=void 0}}finally{U?E():D=!1}}}var E;if(typeof R=="function")E=function(){R(F)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,L=B.port2;B.port1.onmessage=F,E=function(){L.postMessage(null)}}else E=function(){w(F,0)};function H(_,U){O=w(function(){_(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(_){switch(S){case 1:case 2:case 3:var U=3;break;default:U=S}var Y=S;S=U;try{return _()}finally{S=Y}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(_,U){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Y=S;S=_;try{return U()}finally{S=Y}},e.unstable_scheduleCallback=function(_,U,Y){var Q=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0Q?(_.sortIndex=Y,t(p,_),o(m)===null&&_===o(p)&&(C?(j(O),O=-1):C=!0,H(N,Y-Q))):(_.sortIndex=K,t(m,_),x||T||(x=!0,D||(D=!0,E()))),_},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(_){var U=S;return function(){var Y=S;S=U;try{return _.apply(this,arguments)}finally{S=Y}}}})(am)),am}var v1;function Aw(){return v1||(v1=1,nm.exports=ww()),nm.exports}var om={exports:{}},hn={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var S1;function Ew(){if(S1)return hn;S1=1;var e=$r();function t(m){var p="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),om.exports=Ew(),om.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var T1;function kw(){if(T1)return Ji;T1=1;var e=Aw(),t=$r(),o=WS();function r(n){var a="https://react.dev/errors/"+n;if(1K||(n.current=Q[K],Q[K]=null,K--)}function X(n,a){K++,Q[K]=n.current,n.current=a}var ne=I(null),re=I(null),pe=I(null),le=I(null);function we(n,a){switch(X(pe,a),X(re,n),X(ne,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?zb(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=zb(a),n=Ib(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}G(ne),X(ne,n)}function fe(){G(ne),G(re),G(pe)}function me(n){n.memoizedState!==null&&X(le,n);var a=ne.current,l=Ib(a,n.type);a!==l&&(X(re,n),X(ne,l))}function ye(n){re.current===n&&(G(ne),G(re)),le.current===n&&(G(le),Qi._currentValue=Y)}var he,xe;function ge(n){if(he===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);he=a&&a[1]||"",xe=-1)":-1h||V[s]!==ee[h]){var ie=` `+V[s].replace(" at new "," at ");return n.displayName&&ie.includes("")&&(ie=ie.replace("",n.displayName)),ie}while(1<=s&&0<=h);break}}}finally{oe=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?ge(l):""}function Ee(n,a){switch(n.tag){case 26:case 27:case 5:return ge(n.type);case 16:return ge("Lazy");case 13:return n.child!==a&&a!==null?ge("Suspense Fallback"):ge("Suspense");case 19:return ge("SuspenseList");case 0:case 15:return be(n.type,!1);case 11:return be(n.type.render,!1);case 1:return be(n.type,!0);case 31:return ge("Activity");default:return""}}function Te(n){try{var a="",l=null;do a+=Ee(n,l),l=n,n=n.return;while(n);return a}catch(s){return` Error generating stack: `+s.message+` `+s.stack}}var Se=Object.prototype.hasOwnProperty,_e=e.unstable_scheduleCallback,Ae=e.unstable_cancelCallback,ce=e.unstable_shouldYield,et=e.unstable_requestPaint,He=e.unstable_now,on=e.unstable_getCurrentPriorityLevel,Sn=e.unstable_ImmediatePriority,xn=e.unstable_UserBlockingPriority,Lt=e.unstable_NormalPriority,rn=e.unstable_LowPriority,Ut=e.unstable_IdlePriority,tt=e.log,mn=e.unstable_setDisableYieldValue,yt=null,Ie=null;function Ce(n){if(typeof tt=="function"&&mn(n),Ie&&typeof Ie.setStrictMode=="function")try{Ie.setStrictMode(yt,n)}catch{}}var Pe=Math.clz32?Math.clz32:Qa,Et=Math.log,In=Math.LN2;function Qa(n){return n>>>=0,n===0?32:31-(Et(n)/In|0)|0}var Gr=256,Yr=262144,Do=4194304;function qa(n){var a=n&42;if(a!==0)return a;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Qr(n,a,l){var s=n.pendingLanes;if(s===0)return 0;var h=0,b=n.suspendedLanes,k=n.pingedLanes;n=n.warmLanes;var P=s&134217727;return P!==0?(s=P&~b,s!==0?h=qa(s):(k&=P,k!==0?h=qa(k):l||(l=P&~n,l!==0&&(h=qa(l))))):(P=s&~b,P!==0?h=qa(P):k!==0?h=qa(k):l||(l=s&~n,l!==0&&(h=qa(l)))),h===0?0:a!==0&&a!==h&&(a&b)===0&&(b=h&-h,l=a&-a,b>=l||b===32&&(l&4194048)!==0)?a:h}function pr(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Hd(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zs(){var n=Do;return Do<<=1,(Do&62914560)===0&&(Do=4194304),n}function ii(n){for(var a=[],l=0;31>l;l++)a.push(n);return a}function ke(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function ze(n,a,l,s,h,b){var k=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var P=n.entanglements,V=n.expirationTimes,ee=n.hiddenUpdates;for(l=k&~l;0"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var fT=/[\n"\\]/g;function oa(n){return n.replace(fT,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Gd(n,a,l,s,h,b,k,P){n.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?n.type=k:n.removeAttribute("type"),a!=null?k==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+aa(a)):n.value!==""+aa(a)&&(n.value=""+aa(a)):k!=="submit"&&k!=="reset"||n.removeAttribute("value"),a!=null?Yd(n,k,aa(a)):l!=null?Yd(n,k,aa(l)):s!=null&&n.removeAttribute("value"),h==null&&b!=null&&(n.defaultChecked=!!b),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?n.name=""+aa(P):n.removeAttribute("name")}function Ng(n,a,l,s,h,b,k,P){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.type=b),a!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||a!=null)){Vd(n);return}l=l!=null?""+aa(l):"",a=a!=null?""+aa(a):l,P||a===n.value||(n.value=a),n.defaultValue=a}s=s??h,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=P?n.checked:!!s,n.defaultChecked=!!s,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(n.name=k),Vd(n)}function Yd(n,a,l){a==="number"&&tc(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function el(n,a,l,s){if(n=n.options,a){a={};for(var h=0;h"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zd=!1;if(Za)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){Zd=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{Zd=!1}var _o=null,Jd=null,ac=null;function Ig(){if(ac)return ac;var n,a=Jd,l=a.length,s,h="value"in _o?_o.value:_o.textContent,b=h.length;for(n=0;n=hi),Wg=" ",Vg=!1;function Gg(n,a){switch(n){case"keyup":return UT.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ol=!1;function HT(n,a){switch(n){case"compositionend":return Yg(a);case"keypress":return a.which!==32?null:(Vg=!0,Wg);case"textInput":return n=a.data,n===Wg&&Vg?null:n;default:return null}}function FT(n,a){if(ol)return n==="compositionend"||!of&&Gg(n,a)?(n=Ig(),ac=Jd=_o=null,ol=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:l,offset:a-n};n=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ty(l)}}function ay(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?ay(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function oy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=tc(n.document);a instanceof n.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)n=a.contentWindow;else break;a=tc(n.document)}return a}function sf(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var XT=Za&&"documentMode"in document&&11>=document.documentMode,rl=null,cf=null,vi=null,uf=!1;function ry(n,a,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;uf||rl==null||rl!==tc(s)||(s=rl,"selectionStart"in s&&sf(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),vi&&bi(vi,s)||(vi=s,s=Kc(cf,"onSelect"),0>=k,h-=k,Na=1<<32-Pe(a)+h|l<Qe?(at=De,De=null):at=De.sibling;var ut=te(Z,De,J[Qe],ue);if(ut===null){De===null&&(De=at);break}n&&De&&ut.alternate===null&&a(Z,De),q=b(ut,q,Qe),ct===null?Be=ut:ct.sibling=ut,ct=ut,De=at}if(Qe===J.length)return l(Z,De),rt&&eo(Z,Qe),Be;if(De===null){for(;QeQe?(at=De,De=null):at=De.sibling;var nr=te(Z,De,ut.value,ue);if(nr===null){De===null&&(De=at);break}n&&De&&nr.alternate===null&&a(Z,De),q=b(nr,q,Qe),ct===null?Be=nr:ct.sibling=nr,ct=nr,De=at}if(ut.done)return l(Z,De),rt&&eo(Z,Qe),Be;if(De===null){for(;!ut.done;Qe++,ut=J.next())ut=de(Z,ut.value,ue),ut!==null&&(q=b(ut,q,Qe),ct===null?Be=ut:ct.sibling=ut,ct=ut);return rt&&eo(Z,Qe),Be}for(De=s(De);!ut.done;Qe++,ut=J.next())ut=ae(De,Z,Qe,ut.value,ue),ut!==null&&(n&&ut.alternate!==null&&De.delete(ut.key===null?Qe:ut.key),q=b(ut,q,Qe),ct===null?Be=ut:ct.sibling=ut,ct=ut);return n&&De.forEach(function(yw){return a(Z,yw)}),rt&&eo(Z,Qe),Be}function wt(Z,q,J,ue){if(typeof J=="object"&&J!==null&&J.type===C&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case T:e:{for(var Be=J.key;q!==null;){if(q.key===Be){if(Be=J.type,Be===C){if(q.tag===7){l(Z,q.sibling),ue=h(q,J.props.children),ue.return=Z,Z=ue;break e}}else if(q.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===z&&wr(Be)===q.type){l(Z,q.sibling),ue=h(q,J.props),Ai(ue,J),ue.return=Z,Z=ue;break e}l(Z,q);break}else a(Z,q);q=q.sibling}J.type===C?(ue=vr(J.props.children,Z.mode,ue,J.key),ue.return=Z,Z=ue):(ue=pc(J.type,J.key,J.props,null,Z.mode,ue),Ai(ue,J),ue.return=Z,Z=ue)}return k(Z);case x:e:{for(Be=J.key;q!==null;){if(q.key===Be)if(q.tag===4&&q.stateNode.containerInfo===J.containerInfo&&q.stateNode.implementation===J.implementation){l(Z,q.sibling),ue=h(q,J.children||[]),ue.return=Z,Z=ue;break e}else{l(Z,q);break}else a(Z,q);q=q.sibling}ue=yf(J,Z.mode,ue),ue.return=Z,Z=ue}return k(Z);case z:return J=wr(J),wt(Z,q,J,ue)}if(H(J))return je(Z,q,J,ue);if(E(J)){if(Be=E(J),typeof Be!="function")throw Error(r(150));return J=Be.call(J),Le(Z,q,J,ue)}if(typeof J.then=="function")return wt(Z,q,Sc(J),ue);if(J.$$typeof===R)return wt(Z,q,gc(Z,J),ue);xc(Z,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,q!==null&&q.tag===6?(l(Z,q.sibling),ue=h(q,J),ue.return=Z,Z=ue):(l(Z,q),ue=gf(J,Z.mode,ue),ue.return=Z,Z=ue),k(Z)):l(Z,q)}return function(Z,q,J,ue){try{wi=0;var Be=wt(Z,q,J,ue);return gl=null,Be}catch(De){if(De===hl||De===bc)throw De;var ct=Un(29,De,null,Z.mode);return ct.lanes=ue,ct.return=Z,ct}finally{}}}var Er=Ry(!0),My=Ry(!1),Lo=!1;function Mf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jf(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Uo(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function $o(n,a,l){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(ft&2)!==0){var h=s.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),s.pending=a,a=fc(n),fy(n,null,l),a}return dc(n,s,a,l),fc(n)}function Ei(n,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var s=a.lanes;s&=n.pendingLanes,l|=s,a.lanes=l,lt(n,l)}}function Nf(n,a){var l=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var h=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var k={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?h=b=k:b=b.next=k,l=l.next}while(l!==null);b===null?h=b=a:b=b.next=a}else h=b=a;l={baseState:s.baseState,firstBaseUpdate:h,lastBaseUpdate:b,shared:s.shared,callbacks:s.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=a:n.next=a,l.lastBaseUpdate=a}var Df=!1;function ki(){if(Df){var n=ml;if(n!==null)throw n}}function Ri(n,a,l,s){Df=!1;var h=n.updateQueue;Lo=!1;var b=h.firstBaseUpdate,k=h.lastBaseUpdate,P=h.shared.pending;if(P!==null){h.shared.pending=null;var V=P,ee=V.next;V.next=null,k===null?b=ee:k.next=ee,k=V;var ie=n.alternate;ie!==null&&(ie=ie.updateQueue,P=ie.lastBaseUpdate,P!==k&&(P===null?ie.firstBaseUpdate=ee:P.next=ee,ie.lastBaseUpdate=V))}if(b!==null){var de=h.baseState;k=0,ie=ee=V=null,P=b;do{var te=P.lane&-536870913,ae=te!==P.lane;if(ae?(nt&te)===te:(s&te)===te){te!==0&&te===pl&&(Df=!0),ie!==null&&(ie=ie.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var je=n,Le=P;te=a;var wt=l;switch(Le.tag){case 1:if(je=Le.payload,typeof je=="function"){de=je.call(wt,de,te);break e}de=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Le.payload,te=typeof je=="function"?je.call(wt,de,te):je,te==null)break e;de=y({},de,te);break e;case 2:Lo=!0}}te=P.callback,te!==null&&(n.flags|=64,ae&&(n.flags|=8192),ae=h.callbacks,ae===null?h.callbacks=[te]:ae.push(te))}else ae={lane:te,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ie===null?(ee=ie=ae,V=de):ie=ie.next=ae,k|=te;if(P=P.next,P===null){if(P=h.shared.pending,P===null)break;ae=P,P=ae.next,ae.next=null,h.lastBaseUpdate=ae,h.shared.pending=null}}while(!0);ie===null&&(V=de),h.baseState=V,h.firstBaseUpdate=ee,h.lastBaseUpdate=ie,b===null&&(h.shared.lanes=0),Go|=k,n.lanes=k,n.memoizedState=de}}function jy(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function Ny(n,a){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;nb?b:8;var k=_.T,P={};_.T=P,Xf(n,!1,a,l);try{var V=h(),ee=_.S;if(ee!==null&&ee(P,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var ie=lC(V,s);Ni(n,a,ie,Vn(n))}else Ni(n,a,s,Vn(n))}catch(de){Ni(n,a,{then:function(){},status:"rejected",reason:de},Vn())}finally{U.p=b,k!==null&&P.types!==null&&(k.types=P.types),_.T=k}}function fC(){}function qf(n,a,l,s){if(n.tag!==5)throw Error(r(476));var h=c0(n).queue;s0(n,h,a,Y,l===null?fC:function(){return u0(n),l(s)})}function c0(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:Y},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:l},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function u0(n){var a=c0(n);a.next===null&&(a=n.alternate.memoizedState),Ni(n,a.next.queue,{},Vn())}function Kf(){return cn(Qi)}function d0(){return Ht().memoizedState}function f0(){return Ht().memoizedState}function pC(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var l=Vn();n=Uo(l);var s=$o(a,n,l);s!==null&&(Pn(s,a,l),Ei(s,a,l)),a={cache:Af()},n.payload=a;return}a=a.return}}function mC(n,a,l){var s=Vn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nc(n)?m0(a,l):(l=mf(n,a,l,s),l!==null&&(Pn(l,n,s),h0(l,a,s)))}function p0(n,a,l){var s=Vn();Ni(n,a,l,s)}function Ni(n,a,l,s){var h={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Nc(n))m0(a,h);else{var b=n.alternate;if(n.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var k=a.lastRenderedState,P=b(k,l);if(h.hasEagerState=!0,h.eagerState=P,Ln(P,k))return dc(n,a,h,0),kt===null&&uc(),!1}catch{}finally{}if(l=mf(n,a,h,s),l!==null)return Pn(l,n,s),h0(l,a,s),!0}return!1}function Xf(n,a,l,s){if(s={lane:2,revertLane:Mp(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Nc(n)){if(a)throw Error(r(479))}else a=mf(n,l,s,2),a!==null&&Pn(a,n,2)}function Nc(n){var a=n.alternate;return n===Ge||a!==null&&a===Ge}function m0(n,a){bl=wc=!0;var l=n.pending;l===null?a.next=a:(a.next=l.next,l.next=a),n.pending=a}function h0(n,a,l){if((l&4194048)!==0){var s=a.lanes;s&=n.pendingLanes,l|=s,a.lanes=l,lt(n,l)}}var Di={readContext:cn,use:kc,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt,useHostTransitionStatus:Pt,useFormState:Pt,useActionState:Pt,useOptimistic:Pt,useMemoCache:Pt,useCacheRefresh:Pt};Di.useEffectEvent=Pt;var g0={readContext:cn,use:kc,useCallback:function(n,a){return Tn().memoizedState=[n,a===void 0?null:a],n},useContext:cn,useEffect:Jy,useImperativeHandle:function(n,a,l){l=l!=null?l.concat([n]):null,Mc(4194308,4,a0.bind(null,a,n),l)},useLayoutEffect:function(n,a){return Mc(4194308,4,n,a)},useInsertionEffect:function(n,a){Mc(4,2,n,a)},useMemo:function(n,a){var l=Tn();a=a===void 0?null:a;var s=n();if(kr){Ce(!0);try{n()}finally{Ce(!1)}}return l.memoizedState=[s,a],s},useReducer:function(n,a,l){var s=Tn();if(l!==void 0){var h=l(a);if(kr){Ce(!0);try{l(a)}finally{Ce(!1)}}}else h=a;return s.memoizedState=s.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},s.queue=n,n=n.dispatch=mC.bind(null,Ge,n),[s.memoizedState,n]},useRef:function(n){var a=Tn();return n={current:n},a.memoizedState=n},useState:function(n){n=Wf(n);var a=n.queue,l=p0.bind(null,Ge,a);return a.dispatch=l,[n.memoizedState,l]},useDebugValue:Yf,useDeferredValue:function(n,a){var l=Tn();return Qf(l,n,a)},useTransition:function(){var n=Wf(!1);return n=s0.bind(null,Ge,n.queue,!0,!1),Tn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,l){var s=Ge,h=Tn();if(rt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=a(),kt===null)throw Error(r(349));(nt&127)!==0||zy(s,a,l)}h.memoizedState=l;var b={value:l,getSnapshot:a};return h.queue=b,Jy(Ly.bind(null,s,b,n),[n]),s.flags|=2048,Sl(9,{destroy:void 0},Iy.bind(null,s,b,l,a),null),l},useId:function(){var n=Tn(),a=kt.identifierPrefix;if(rt){var l=Da,s=Na;l=(s&~(1<<32-Pe(s)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Ac++,0<\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof s.is=="string"?k.createElement("select",{is:s.is}):k.createElement("select"),s.multiple?b.multiple=!0:s.size&&(b.size=s.size);break;default:b=typeof s.is=="string"?k.createElement(h,{is:s.is}):k.createElement(h)}}b[ln]=a,b[Mn]=s;e:for(k=a.child;k!==null;){if(k.tag===5||k.tag===6)b.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===a)break e;for(;k.sibling===null;){if(k.return===null||k.return===a)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}a.stateNode=b;e:switch(dn(b,h,s),h){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&lo(a)}}return jt(a),dp(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,l),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==s&&lo(a);else{if(typeof s!="string"&&a.stateNode===null)throw Error(r(166));if(n=pe.current,dl(a)){if(n=a.stateNode,l=a.memoizedProps,s=null,h=sn,h!==null)switch(h.tag){case 27:case 5:s=h.memoizedProps}n[ln]=a,n=!!(n.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Pb(n.nodeValue,l)),n||zo(a,!0)}else n=Xc(n).createTextNode(s),n[ln]=a,a.stateNode=n}return jt(a),null;case 31:if(l=a.memoizedState,n===null||n.memoizedState!==null){if(s=dl(a),l!==null){if(n===null){if(!s)throw Error(r(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[ln]=a}else Sr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;jt(a),n=!1}else l=xf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return a.flags&256?(Hn(a),a):(Hn(a),null);if((a.flags&128)!==0)throw Error(r(558))}return jt(a),null;case 13:if(s=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=dl(a),s!==null&&s.dehydrated!==null){if(n===null){if(!h)throw Error(r(318));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));h[ln]=a}else Sr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;jt(a),h=!1}else h=xf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return a.flags&256?(Hn(a),a):(Hn(a),null)}return Hn(a),(a.flags&128)!==0?(a.lanes=l,a):(l=s!==null,n=n!==null&&n.memoizedState!==null,l&&(s=a.child,h=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(h=s.alternate.memoizedState.cachePool.pool),b=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(b=s.memoizedState.cachePool.pool),b!==h&&(s.flags|=2048)),l!==n&&l&&(a.child.flags|=8192),Bc(a,a.updateQueue),jt(a),null);case 4:return fe(),n===null&&Op(a.stateNode.containerInfo),jt(a),null;case 10:return no(a.type),jt(a),null;case 19:if(G($t),s=a.memoizedState,s===null)return jt(a),null;if(h=(a.flags&128)!==0,b=s.rendering,b===null)if(h)_i(s,!1);else{if(Bt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(b=Cc(n),b!==null){for(a.flags|=128,_i(s,!1),n=b.updateQueue,a.updateQueue=n,Bc(a,n),a.subtreeFlags=0,n=l,l=a.child;l!==null;)py(l,n),l=l.sibling;return X($t,$t.current&1|2),rt&&eo(a,s.treeForkCount),a.child}n=n.sibling}s.tail!==null&&He()>$c&&(a.flags|=128,h=!0,_i(s,!1),a.lanes=4194304)}else{if(!h)if(n=Cc(b),n!==null){if(a.flags|=128,h=!0,n=n.updateQueue,a.updateQueue=n,Bc(a,n),_i(s,!0),s.tail===null&&s.tailMode==="hidden"&&!b.alternate&&!rt)return jt(a),null}else 2*He()-s.renderingStartTime>$c&&l!==536870912&&(a.flags|=128,h=!0,_i(s,!1),a.lanes=4194304);s.isBackwards?(b.sibling=a.child,a.child=b):(n=s.last,n!==null?n.sibling=b:a.child=b,s.last=b)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=He(),n.sibling=null,l=$t.current,X($t,h?l&1|2:l&1),rt&&eo(a,s.treeForkCount),n):(jt(a),null);case 22:case 23:return Hn(a),_f(),s=a.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(a.flags|=8192):s&&(a.flags|=8192),s?(l&536870912)!==0&&(a.flags&128)===0&&(jt(a),a.subtreeFlags&6&&(a.flags|=8192)):jt(a),l=a.updateQueue,l!==null&&Bc(a,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==l&&(a.flags|=2048),n!==null&&G(Cr),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),no(Wt),jt(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function vC(n,a){switch(vf(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return no(Wt),fe(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return ye(a),null;case 31:if(a.memoizedState!==null){if(Hn(a),a.alternate===null)throw Error(r(340));Sr()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(Hn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Sr()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return G($t),null;case 4:return fe(),null;case 10:return no(a.type),null;case 22:case 23:return Hn(a),_f(),n!==null&&G(Cr),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return no(Wt),null;case 25:return null;default:return null}}function U0(n,a){switch(vf(a),a.tag){case 3:no(Wt),fe();break;case 26:case 27:case 5:ye(a);break;case 4:fe();break;case 31:a.memoizedState!==null&&Hn(a);break;case 13:Hn(a);break;case 19:G($t);break;case 10:no(a.type);break;case 22:case 23:Hn(a),_f(),n!==null&&G(Cr);break;case 24:no(Wt)}}function Pi(n,a){try{var l=a.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var h=s.next;l=h;do{if((l.tag&n)===n){s=void 0;var b=l.create,k=l.inst;s=b(),k.destroy=s}l=l.next}while(l!==h)}}catch(P){vt(a,a.return,P)}}function Wo(n,a,l){try{var s=a.updateQueue,h=s!==null?s.lastEffect:null;if(h!==null){var b=h.next;s=b;do{if((s.tag&n)===n){var k=s.inst,P=k.destroy;if(P!==void 0){k.destroy=void 0,h=a;var V=l,ee=P;try{ee()}catch(ie){vt(h,V,ie)}}}s=s.next}while(s!==b)}}catch(ie){vt(a,a.return,ie)}}function $0(n){var a=n.updateQueue;if(a!==null){var l=n.stateNode;try{Ny(a,l)}catch(s){vt(n,n.return,s)}}}function H0(n,a,l){l.props=Rr(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(s){vt(n,a,s)}}function Bi(n,a){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof l=="function"?n.refCleanup=l(s):l.current=s}}catch(h){vt(n,a,h)}}function Oa(n,a){var l=n.ref,s=n.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(h){vt(n,a,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(h){vt(n,a,h)}else l.current=null}function F0(n){var a=n.type,l=n.memoizedProps,s=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(h){vt(n,n.return,h)}}function fp(n,a,l){try{var s=n.stateNode;$C(s,n.type,l,a),s[Mn]=a}catch(h){vt(n,n.return,h)}}function W0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Xo(n.type)||n.tag===4}function pp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||W0(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.tag===27&&Xo(n.type)||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 mp(n,a,l){var s=n.tag;if(s===5||s===6)n=n.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(n),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Xa));else if(s!==4&&(s===27&&Xo(n.type)&&(l=n.stateNode,a=null),n=n.child,n!==null))for(mp(n,a,l),n=n.sibling;n!==null;)mp(n,a,l),n=n.sibling}function zc(n,a,l){var s=n.tag;if(s===5||s===6)n=n.stateNode,a?l.insertBefore(n,a):l.appendChild(n);else if(s!==4&&(s===27&&Xo(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(zc(n,a,l),n=n.sibling;n!==null;)zc(n,a,l),n=n.sibling}function V0(n){var a=n.stateNode,l=n.memoizedProps;try{for(var s=n.type,h=a.attributes;h.length;)a.removeAttributeNode(h[0]);dn(a,s,l),a[ln]=n,a[Mn]=l}catch(b){vt(n,n.return,b)}}var io=!1,Yt=!1,hp=!1,G0=typeof WeakSet=="function"?WeakSet:Set,tn=null;function SC(n,a){if(n=n.containerInfo,Bp=ou,n=oy(n),sf(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var h=s.anchorOffset,b=s.focusNode;s=s.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var k=0,P=-1,V=-1,ee=0,ie=0,de=n,te=null;t:for(;;){for(var ae;de!==l||h!==0&&de.nodeType!==3||(P=k+h),de!==b||s!==0&&de.nodeType!==3||(V=k+s),de.nodeType===3&&(k+=de.nodeValue.length),(ae=de.firstChild)!==null;)te=de,de=ae;for(;;){if(de===n)break t;if(te===l&&++ee===h&&(P=k),te===b&&++ie===s&&(V=k),(ae=de.nextSibling)!==null)break;de=te,te=de.parentNode}de=ae}l=P===-1||V===-1?null:{start:P,end:V}}else l=null}l=l||{start:0,end:0}}else l=null;for(zp={focusedElem:n,selectionRange:l},ou=!1,tn=a;tn!==null;)if(a=tn,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,tn=n;else for(;tn!==null;){switch(a=tn,b=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l title"))),dn(b,s,l),b[ln]=n,en(b),s=b;break e;case"link":var k=Zb("link","href",h).get(s+(l.href||""));if(k){for(var P=0;Pwt&&(k=wt,wt=Le,Le=k);var Z=ny(P,Le),q=ny(P,wt);if(Z&&q&&(ae.rangeCount!==1||ae.anchorNode!==Z.node||ae.anchorOffset!==Z.offset||ae.focusNode!==q.node||ae.focusOffset!==q.offset)){var J=de.createRange();J.setStart(Z.node,Z.offset),ae.removeAllRanges(),Le>wt?(ae.addRange(J),ae.extend(q.node,q.offset)):(J.setEnd(q.node,q.offset),ae.addRange(J))}}}}for(de=[],ae=P;ae=ae.parentNode;)ae.nodeType===1&&de.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;Pl?32:l,_.T=null,l=Tp,Tp=null;var b=Qo,k=po;if(Jt=0,Al=Qo=null,po=0,(ft&6)!==0)throw Error(r(331));var P=ft;if(ft|=4,ab(b.current),eb(b,b.current,k,l),ft=P,Hi(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot=="function")try{Ie.onPostCommitFiberRoot(yt,b)}catch{}return!0}finally{U.p=h,_.T=s,xb(n,a)}}function Cb(n,a,l){a=la(l,a),a=tp(n.stateNode,a,2),n=$o(n,a,2),n!==null&&(ke(n,2),_a(n))}function vt(n,a,l){if(n.tag===3)Cb(n,n,l);else for(;a!==null;){if(a.tag===3){Cb(a,n,l);break}else if(a.tag===1){var s=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Yo===null||!Yo.has(s))){n=la(l,n),l=w0(2),s=$o(a,l,2),s!==null&&(A0(l,s,a,n),ke(s,2),_a(s));break}}a=a.return}}function Ep(n,a,l){var s=n.pingCache;if(s===null){s=n.pingCache=new CC;var h=new Set;s.set(a,h)}else h=s.get(a),h===void 0&&(h=new Set,s.set(a,h));h.has(l)||(bp=!0,h.add(l),n=RC.bind(null,n,a,l),a.then(n,n))}function RC(n,a,l){var s=n.pingCache;s!==null&&s.delete(a),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,kt===n&&(nt&l)===l&&(Bt===4||Bt===3&&(nt&62914560)===nt&&300>He()-Uc?(ft&2)===0&&El(n,0):vp|=l,wl===nt&&(wl=0)),_a(n)}function wb(n,a){a===0&&(a=Zs()),n=br(n,a),n!==null&&(ke(n,a),_a(n))}function MC(n){var a=n.memoizedState,l=0;a!==null&&(l=a.retryLane),wb(n,l)}function jC(n,a){var l=0;switch(n.tag){case 31:case 13:var s=n.stateNode,h=n.memoizedState;h!==null&&(l=h.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(a),wb(n,l)}function NC(n,a){return _e(n,a)}var Yc=null,Rl=null,kp=!1,Qc=!1,Rp=!1,Ko=0;function _a(n){n!==Rl&&n.next===null&&(Rl===null?Yc=Rl=n:Rl=Rl.next=n),Qc=!0,kp||(kp=!0,OC())}function Hi(n,a){if(!Rp&&Qc){Rp=!0;do for(var l=!1,s=Yc;s!==null;){if(n!==0){var h=s.pendingLanes;if(h===0)var b=0;else{var k=s.suspendedLanes,P=s.pingedLanes;b=(1<<31-Pe(42|n)+1)-1,b&=h&~(k&~P),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,Rb(s,b))}else b=nt,b=Qr(s,s===kt?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(b&3)===0||pr(s,b)||(l=!0,Rb(s,b));s=s.next}while(l);Rp=!1}}function DC(){Ab()}function Ab(){Qc=kp=!1;var n=0;Ko!==0&&FC()&&(n=Ko);for(var a=He(),l=null,s=Yc;s!==null;){var h=s.next,b=Eb(s,a);b===0?(s.next=null,l===null?Yc=h:l.next=h,h===null&&(Rl=l)):(l=s,(n!==0||(b&3)!==0)&&(Qc=!0)),s=h}Jt!==0&&Jt!==5||Hi(n),Ko!==0&&(Ko=0)}function Eb(n,a){for(var l=n.suspendedLanes,s=n.pingedLanes,h=n.expirationTimes,b=n.pendingLanes&-62914561;0P)break;var ie=V.transferSize,de=V.initiatorType;ie&&Bb(de)&&(V=V.responseEnd,k+=ie*(V"u"?null:document;function Qb(n,a,l){var s=Ml;if(s&&typeof a=="string"&&a){var h=oa(a);h='link[rel="'+n+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),Yb.has(h)||(Yb.add(h),n={rel:n,crossOrigin:l,href:a},s.querySelector(h)===null&&(a=s.createElement("link"),dn(a,"link",n),en(a),s.head.appendChild(a)))}}function ZC(n){mo.D(n),Qb("dns-prefetch",n,null)}function JC(n,a){mo.C(n,a),Qb("preconnect",n,a)}function ew(n,a,l){mo.L(n,a,l);var s=Ml;if(s&&n&&a){var h='link[rel="preload"][as="'+oa(a)+'"]';a==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+oa(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+oa(l.imageSizes)+'"]')):h+='[href="'+oa(n)+'"]';var b=h;switch(a){case"style":b=jl(n);break;case"script":b=Nl(n)}fa.has(b)||(n=y({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:n,as:a},l),fa.set(b,n),s.querySelector(h)!==null||a==="style"&&s.querySelector(Gi(b))||a==="script"&&s.querySelector(Yi(b))||(a=s.createElement("link"),dn(a,"link",n),en(a),s.head.appendChild(a)))}}function tw(n,a){mo.m(n,a);var l=Ml;if(l&&n){var s=a&&typeof a.as=="string"?a.as:"script",h='link[rel="modulepreload"][as="'+oa(s)+'"][href="'+oa(n)+'"]',b=h;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Nl(n)}if(!fa.has(b)&&(n=y({rel:"modulepreload",href:n},a),fa.set(b,n),l.querySelector(h)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Yi(b)))return}s=l.createElement("link"),dn(s,"link",n),en(s),l.head.appendChild(s)}}}function nw(n,a,l){mo.S(n,a,l);var s=Ml;if(s&&n){var h=Zr(s).hoistableStyles,b=jl(n);a=a||"default";var k=h.get(b);if(!k){var P={loading:0,preload:null};if(k=s.querySelector(Gi(b)))P.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":a},l),(l=fa.get(b))&&Wp(n,l);var V=k=s.createElement("link");en(V),dn(V,"link",n),V._p=new Promise(function(ee,ie){V.onload=ee,V.onerror=ie}),V.addEventListener("load",function(){P.loading|=1}),V.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Jc(k,a,s)}k={type:"stylesheet",instance:k,count:1,state:P},h.set(b,k)}}}function aw(n,a){mo.X(n,a);var l=Ml;if(l&&n){var s=Zr(l).hoistableScripts,h=Nl(n),b=s.get(h);b||(b=l.querySelector(Yi(h)),b||(n=y({src:n,async:!0},a),(a=fa.get(h))&&Vp(n,a),b=l.createElement("script"),en(b),dn(b,"link",n),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},s.set(h,b))}}function ow(n,a){mo.M(n,a);var l=Ml;if(l&&n){var s=Zr(l).hoistableScripts,h=Nl(n),b=s.get(h);b||(b=l.querySelector(Yi(h)),b||(n=y({src:n,async:!0,type:"module"},a),(a=fa.get(h))&&Vp(n,a),b=l.createElement("script"),en(b),dn(b,"link",n),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},s.set(h,b))}}function qb(n,a,l,s){var h=(h=pe.current)?Zc(h):null;if(!h)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=jl(l.href),l=Zr(h).hoistableStyles,s=l.get(a),s||(s={type:"style",instance:null,count:0,state:null},l.set(a,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=jl(l.href);var b=Zr(h).hoistableStyles,k=b.get(n);if(k||(h=h.ownerDocument||h,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(n,k),(b=h.querySelector(Gi(n)))&&!b._p&&(k.instance=b,k.state.loading=5),fa.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},fa.set(n,l),b||rw(h,n,l,k.state))),a&&s===null)throw Error(r(528,""));return k}if(a&&s!==null)throw Error(r(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Nl(l),l=Zr(h).hoistableScripts,s=l.get(a),s||(s={type:"script",instance:null,count:0,state:null},l.set(a,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function jl(n){return'href="'+oa(n)+'"'}function Gi(n){return'link[rel="stylesheet"]['+n+"]"}function Kb(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function rw(n,a,l,s){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?s.loading=1:(a=n.createElement("link"),s.preload=a,a.addEventListener("load",function(){return s.loading|=1}),a.addEventListener("error",function(){return s.loading|=2}),dn(a,"link",l),en(a),n.head.appendChild(a))}function Nl(n){return'[src="'+oa(n)+'"]'}function Yi(n){return"script[async]"+n}function Xb(n,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var s=n.querySelector('style[data-href~="'+oa(l.href)+'"]');if(s)return a.instance=s,en(s),s;var h=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),en(s),dn(s,"style",h),Jc(s,l.precedence,n),a.instance=s;case"stylesheet":h=jl(l.href);var b=n.querySelector(Gi(h));if(b)return a.state.loading|=4,a.instance=b,en(b),b;s=Kb(l),(h=fa.get(h))&&Wp(s,h),b=(n.ownerDocument||n).createElement("link"),en(b);var k=b;return k._p=new Promise(function(P,V){k.onload=P,k.onerror=V}),dn(b,"link",s),a.state.loading|=4,Jc(b,l.precedence,n),a.instance=b;case"script":return b=Nl(l.src),(h=n.querySelector(Yi(b)))?(a.instance=h,en(h),h):(s=l,(h=fa.get(b))&&(s=y({},l),Vp(s,h)),n=n.ownerDocument||n,h=n.createElement("script"),en(h),dn(h,"link",s),n.head.appendChild(h),a.instance=h);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(s=a.instance,a.state.loading|=4,Jc(s,l.precedence,n));return a.instance}function Jc(n,a,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=s.length?s[s.length-1]:null,b=h,k=0;k title"):null)}function lw(n,a,l){if(l===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function e1(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function iw(n,a,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var h=jl(s.href),b=a.querySelector(Gi(h));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=tu.bind(n),a.then(n,n)),l.state.loading|=4,l.instance=b,en(b);return}b=a.ownerDocument||a,s=Kb(s),(h=fa.get(h))&&Wp(s,h),b=b.createElement("link"),en(b);var k=b;k._p=new Promise(function(P,V){k.onload=P,k.onerror=V}),dn(b,"link",s),l.instance=b}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=tu.bind(n),a.addEventListener("load",l),a.addEventListener("error",l))}}var Gp=0;function sw(n,a){return n.stylesheets&&n.count===0&&au(n,n.stylesheets),0Gp?50:800)+a);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(h)}}:null}function tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)au(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var nu=null;function au(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,nu=new Map,a.forEach(cw,n),nu=null,tu.call(n))}function cw(n,a){if(!(a.state.loading&4)){var l=nu.get(n);if(l)var s=l.get(null);else{l=new Map,nu.set(n,l);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),tm.exports=kw(),tm.exports}var Mw=Rw(),rm={exports:{}},lm={};/** * @license React * react-compiler-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var w1;function jw(){if(w1)return lm;w1=1;var e=$r().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return lm.c=function(t){return e.H.useMemoCache(t)},lm}var A1;function Nw(){return A1||(A1=1,rm.exports=jw()),rm.exports}var Ke=Nw();/** * react-router v7.12.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var E1="popstate";function Dw(e={}){function t(r,i){let{pathname:c,search:u,hash:d}=r.location;return Gm("",{pathname:c,search:u,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function o(r,i){return typeof i=="string"?i:bs(i)}return _w(t,o,null,e)}function Ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ya(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ow(){return Math.random().toString(36).substring(2,10)}function k1(e,t){return{usr:e.state,key:e.key,idx:t}}function Gm(e,t,o=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Jl(t):t,state:o,key:t&&t.key||r||Ow()}}function bs({pathname:e="/",search:t="",hash:o=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}function Jl(e){let t={};if(e){let o=e.indexOf("#");o>=0&&(t.hash=e.substring(o),e=e.substring(0,o));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function _w(e,t,o,r={}){let{window:i=document.defaultView,v5Compat:c=!1}=r,u=i.history,d="POP",m=null,p=g();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function g(){return(u.state||{idx:null}).idx}function y(){d="POP";let A=g(),w=A==null?null:A-p;p=A,m&&m({action:d,location:C.location,delta:w})}function S(A,w){d="PUSH";let j=Gm(C.location,A,w);p=g()+1;let R=k1(j,p),M=C.createHref(j);try{u.pushState(R,"",M)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(M)}c&&m&&m({action:d,location:C.location,delta:1})}function T(A,w){d="REPLACE";let j=Gm(C.location,A,w);p=g();let R=k1(j,p),M=C.createHref(j);u.replaceState(R,"",M),c&&m&&m({action:d,location:C.location,delta:0})}function x(A){return Pw(A)}let C={get action(){return d},get location(){return e(i,u)},listen(A){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(E1,y),m=A,()=>{i.removeEventListener(E1,y),m=null}},createHref(A){return t(i,A)},createURL:x,encodeLocation(A){let w=x(A);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:S,replace:T,go(A){return u.go(A)}};return C}function Pw(e,t=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ot(o,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:bs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function VS(e,t,o="/"){return Bw(e,t,o,!1)}function Bw(e,t,o,r){let i=typeof t=="string"?Jl(t):t,c=Co(i.pathname||"/",o);if(c==null)return null;let u=GS(e);zw(u);let d=null;for(let m=0;d==null&&m{let g={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(r)&&m)return;Ot(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length)}let y=So([r,g.relativePath]),S=o.concat(g);u.children&&u.children.length>0&&(Ot(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),GS(u.children,t,S,y,m)),!(u.path==null&&!u.index)&&t.push({path:y,score:Ww(y,u.index),routesMeta:S})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))c(u,d);else for(let m of YS(u.path))c(u,d,!0,m)}),t}function YS(e){let t=e.split("/");if(t.length===0)return[];let[o,...r]=t,i=o.endsWith("?"),c=o.replace(/\?$/,"");if(r.length===0)return i?[c,""]:[c];let u=YS(r.join("/")),d=[];return d.push(...u.map(m=>m===""?c:[c,m].join("/"))),i&&d.push(...u),d.map(m=>e.startsWith("/")&&m===""?"/":m)}function zw(e){e.sort((t,o)=>t.score!==o.score?o.score-t.score:Vw(t.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var Iw=/^:[\w-]+$/,Lw=3,Uw=2,$w=1,Hw=10,Fw=-2,R1=e=>e==="*";function Ww(e,t){let o=e.split("/"),r=o.length;return o.some(R1)&&(r+=Fw),t&&(r+=Uw),o.filter(i=>!R1(i)).reduce((i,c)=>i+(Iw.test(c)?Lw:c===""?$w:Hw),r)}function Vw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Gw(e,t,o=!1){let{routesMeta:r}=e,i={},c="/",u=[];for(let d=0;d{if(g==="*"){let x=d[S]||"";u=c.slice(0,c.length-x.length).replace(/(.)\/+$/,"$1")}const T=d[S];return y&&!T?p[g]=void 0:p[g]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:e}}function Yw(e,t=!1,o=!0){ya(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,m)=>(r.push({paramName:d,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Qw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ya(!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 Co(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let o=t.endsWith("/")?t.length-1:t.length,r=e.charAt(o);return r&&r!=="/"?null:e.slice(o)||"/"}var QS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qw=e=>QS.test(e);function Kw(e,t="/"){let{pathname:o,search:r="",hash:i=""}=typeof e=="string"?Jl(e):e,c;if(o)if(qw(o))c=o;else{if(o.includes("//")){let u=o;o=o.replace(/\/\/+/g,"/"),ya(!1,`Pathnames cannot have embedded double slashes - normalizing ${u} -> ${o}`)}o.startsWith("/")?c=M1(o.substring(1),"/"):c=M1(o,t)}else c=t;return{pathname:c,search:Jw(r),hash:e5(i)}}function M1(e,t){let o=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?o.length>1&&o.pop():i!=="."&&o.push(i)}),o.length>1?o.join("/"):"/"}function im(e,t,o,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Xw(e){return e.filter((t,o)=>o===0||t.route.path&&t.route.path.length>0)}function kh(e){let t=Xw(e);return t.map((o,r)=>r===t.length-1?o.pathname:o.pathnameBase)}function Rh(e,t,o,r=!1){let i;typeof e=="string"?i=Jl(e):(i={...e},Ot(!i.pathname||!i.pathname.includes("?"),im("?","pathname","search",i)),Ot(!i.pathname||!i.pathname.includes("#"),im("#","pathname","hash",i)),Ot(!i.search||!i.search.includes("#"),im("#","search","hash",i)));let c=e===""||i.pathname==="",u=c?"/":i.pathname,d;if(u==null)d=o;else{let y=t.length-1;if(!r&&u.startsWith("..")){let S=u.split("/");for(;S[0]==="..";)S.shift(),y-=1;i.pathname=S.join("/")}d=y>=0?t[y]:"/"}let m=Kw(i,d),p=u&&u!=="/"&&u.endsWith("/"),g=(c||u===".")&&o.endsWith("/");return!m.pathname.endsWith("/")&&(p||g)&&(m.pathname+="/"),m}var So=e=>e.join("/").replace(/\/\/+/g,"/"),Zw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Jw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,e5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,t5=class{constructor(e,t,o,r=!1){this.status=e,this.statusText=t||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function n5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function a5(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var qS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function KS(e,t){let o=e;if(typeof o!="string"||!QS.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,i=!1;if(qS)try{let c=new URL(window.location.href),u=o.startsWith("//")?new URL(c.protocol+o):new URL(o),d=Co(u.pathname,t);u.origin===c.origin&&d!=null?o=d+u.search+u.hash:i=!0}catch{ya(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var XS=["POST","PUT","PATCH","DELETE"];new Set(XS);var o5=["GET",...XS];new Set(o5);var ei=v.createContext(null);ei.displayName="DataRouter";var ld=v.createContext(null);ld.displayName="DataRouterState";var r5=v.createContext(!1),ZS=v.createContext({isTransitioning:!1});ZS.displayName="ViewTransition";var l5=v.createContext(new Map);l5.displayName="Fetchers";var i5=v.createContext(null);i5.displayName="Await";var Xn=v.createContext(null);Xn.displayName="Navigation";var _s=v.createContext(null);_s.displayName="Location";var Ga=v.createContext({outlet:null,matches:[],isDataRoute:!1});Ga.displayName="Route";var Mh=v.createContext(null);Mh.displayName="RouteError";var JS="REACT_ROUTER_ERROR",s5="REDIRECT",c5="ROUTE_ERROR_RESPONSE";function u5(e){if(e.startsWith(`${JS}:${s5}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function d5(e){if(e.startsWith(`${JS}:${c5}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new t5(t.status,t.statusText,t.data)}catch{}}function f5(e,{relative:t}={}){Ot(ti(),"useHref() may be used only in the context of a component.");let{basename:o,navigator:r}=v.useContext(Xn),{hash:i,pathname:c,search:u}=Ps(e,{relative:t}),d=c;return o!=="/"&&(d=c==="/"?o:So([o,c])),r.createHref({pathname:d,search:u,hash:i})}function ti(){return v.useContext(_s)!=null}function zn(){return Ot(ti(),"useLocation() may be used only in the context of a component."),v.useContext(_s).location}var ex="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tx(e){v.useContext(Xn).static||v.useLayoutEffect(e)}function kn(){let{isDataRoute:e}=v.useContext(Ga);return e?A5():p5()}function p5(){Ot(ti(),"useNavigate() may be used only in the context of a component.");let e=v.useContext(ei),{basename:t,navigator:o}=v.useContext(Xn),{matches:r}=v.useContext(Ga),{pathname:i}=zn(),c=JSON.stringify(kh(r)),u=v.useRef(!1);return tx(()=>{u.current=!0}),v.useCallback((m,p={})=>{if(ya(u.current,ex),!u.current)return;if(typeof m=="number"){o.go(m);return}let g=Rh(m,JSON.parse(c),i,p.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:So([t,g.pathname])),(p.replace?o.replace:o.push)(g,p.state,p)},[t,o,c,i,e])}v.createContext(null);function Ps(e,{relative:t}={}){let{matches:o}=v.useContext(Ga),{pathname:r}=zn(),i=JSON.stringify(kh(o));return v.useMemo(()=>Rh(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function m5(e,t){return nx(e,t)}function nx(e,t,o,r,i){Ot(ti(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=v.useContext(Xn),{matches:u}=v.useContext(Ga),d=u[u.length-1],m=d?d.params:{},p=d?d.pathname:"/",g=d?d.pathnameBase:"/",y=d&&d.route;{let j=y&&y.path||"";ox(p,!y||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 S=zn(),T;if(t){let j=typeof t=="string"?Jl(t):t;Ot(g==="/"||j.pathname?.startsWith(g),`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 "${g}" but pathname "${j.pathname}" was given in the \`location\` prop.`),T=j}else T=S;let x=T.pathname||"/",C=x;if(g!=="/"){let j=g.replace(/^\//,"").split("/");C="/"+x.replace(/^\//,"").split("/").slice(j.length).join("/")}let A=VS(e,{pathname:C});ya(y||A!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),ya(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.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 w=v5(A&&A.map(j=>Object.assign({},j,{params:Object.assign({},m,j.params),pathname:So([g,c.encodeLocation?c.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?g:So([g,c.encodeLocation?c.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),u,o,r,i);return t&&w?v.createElement(_s.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},w):w}function h5(){let e=w5(),t=n5(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),o=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:c},"ErrorBoundary")," or"," ",v.createElement("code",{style:c},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),o?v.createElement("pre",{style:i},o):null,u)}var g5=v.createElement(h5,null),ax=class extends v.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){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const o=d5(e.digest);o&&(e=o)}let t=e!==void 0?v.createElement(Ga.Provider,{value:this.props.routeContext},v.createElement(Mh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?v.createElement(y5,{error:e},t):t}};ax.contextType=r5;var sm=new WeakMap;function y5({children:e,error:t}){let{basename:o}=v.useContext(Xn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=u5(t.digest);if(r){let i=sm.get(t);if(i)throw i;let c=KS(r.location,o);if(qS&&!sm.get(t))if(c.isExternal||r.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:r.replace}));throw sm.set(t,u),u}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function b5({routeContext:e,match:t,children:o}){let r=v.useContext(ei);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(Ga.Provider,{value:e},o)}function v5(e,t=[],o=null,r=null,i=null){if(e==null){if(!o)return null;if(o.errors)e=o.matches;else if(t.length===0&&!o.initialized&&o.matches.length>0)e=o.matches;else return null}let c=e,u=o?.errors;if(u!=null){let g=c.findIndex(y=>y.route.id&&u?.[y.route.id]!==void 0);Ot(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let d=!1,m=-1;if(o)for(let g=0;g=0?c=c.slice(0,m+1):c=[c[0]];break}}}let p=o&&r?(g,y)=>{r(g,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:a5(o.matches),errorInfo:y})}:void 0;return c.reduceRight((g,y,S)=>{let T,x=!1,C=null,A=null;o&&(T=u&&y.route.id?u[y.route.id]:void 0,C=y.route.errorElement||g5,d&&(m<0&&S===0?(ox("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,A=null):m===S&&(x=!0,A=y.route.hydrateFallbackElement||null)));let w=t.concat(c.slice(0,S+1)),j=()=>{let R;return T?R=C:x?R=A:y.route.Component?R=v.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=g,v.createElement(b5,{match:y,routeContext:{outlet:g,matches:w,isDataRoute:o!=null},children:R})};return o&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?v.createElement(ax,{location:o.location,revalidation:o.revalidation,component:C,error:T,children:j(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:p}):j()},null)}function jh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function S5(e){let t=v.useContext(ei);return Ot(t,jh(e)),t}function x5(e){let t=v.useContext(ld);return Ot(t,jh(e)),t}function T5(e){let t=v.useContext(Ga);return Ot(t,jh(e)),t}function Nh(e){let t=T5(e),o=t.matches[t.matches.length-1];return Ot(o.route.id,`${e} can only be used on routes that contain a unique "id"`),o.route.id}function C5(){return Nh("useRouteId")}function w5(){let e=v.useContext(Mh),t=x5("useRouteError"),o=Nh("useRouteError");return e!==void 0?e:t.errors?.[o]}function A5(){let{router:e}=S5("useNavigate"),t=Nh("useNavigate"),o=v.useRef(!1);return tx(()=>{o.current=!0}),v.useCallback(async(i,c={})=>{ya(o.current,ex),o.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...c}))},[e,t])}var j1={};function ox(e,t,o){!t&&!j1[e]&&(j1[e]=!0,ya(!1,o))}v.memo(E5);function E5({routes:e,future:t,state:o,onError:r}){return nx(e,void 0,o,r,t)}function k5({to:e,replace:t,state:o,relative:r}){Ot(ti()," may be used only in the context of a component.");let{static:i}=v.useContext(Xn);ya(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(Ga),{pathname:u}=zn(),d=kn(),m=Rh(e,kh(c),u,r==="path"),p=JSON.stringify(m);return v.useEffect(()=>{d(JSON.parse(p),{replace:t,state:o,relative:r})},[d,p,r,t,o]),null}function Kt(e){Ot(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function R5({basename:e="/",children:t=null,location:o,navigationType:r="POP",navigator:i,static:c=!1,unstable_useTransitions:u}){Ot(!ti(),"You cannot render a inside another . You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:d,navigator:i,static:c,unstable_useTransitions:u,future:{}}),[d,i,c,u]);typeof o=="string"&&(o=Jl(o));let{pathname:p="/",search:g="",hash:y="",state:S=null,key:T="default"}=o,x=v.useMemo(()=>{let C=Co(p,d);return C==null?null:{location:{pathname:C,search:g,hash:y,state:S,key:T},navigationType:r}},[d,p,g,y,S,T,r]);return ya(x!=null,` is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the won't render anything.`),x==null?null:v.createElement(Xn.Provider,{value:m},v.createElement(_s.Provider,{children:t,value:x}))}function M5({children:e,location:t}){return m5(Ym(e),t)}function Ym(e,t=[]){let o=[];return v.Children.forEach(e,(r,i)=>{if(!v.isValidElement(r))return;let c=[...t,i];if(r.type===v.Fragment){o.push.apply(o,Ym(r.props.children,c));return}Ot(r.type===Kt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Ot(!r.props.index||!r.props.children,"An index route cannot have child routes.");let u={id:r.props.id||c.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=Ym(r.props.children,c)),o.push(u)}),o}var Ru="get",Mu="application/x-www-form-urlencoded";function id(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function j5(e){return id(e)&&e.tagName.toLowerCase()==="button"}function N5(e){return id(e)&&e.tagName.toLowerCase()==="form"}function D5(e){return id(e)&&e.tagName.toLowerCase()==="input"}function O5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _5(e,t){return e.button===0&&(!t||t==="_self")&&!O5(e)}var du=null;function P5(){if(du===null)try{new FormData(document.createElement("form"),0),du=!1}catch{du=!0}return du}var B5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cm(e){return e!=null&&!B5.has(e)?(ya(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Mu}"`),null):e}function z5(e,t){let o,r,i,c,u;if(N5(e)){let d=e.getAttribute("action");r=d?Co(d,t):null,o=e.getAttribute("method")||Ru,i=cm(e.getAttribute("enctype"))||Mu,c=new FormData(e)}else if(j5(e)||D5(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a