From ee9abb330965b336445afa04781eadf3d7828c68 Mon Sep 17 00:00:00 2001 From: developersharif Date: Wed, 25 Oct 2023 10:24:40 +0600 Subject: [PATCH] build updated --- assets/index-771398e6.css | 1 + assets/index-83665998.js | 69 +++++++++++++++++++++++++++++++++++++++ index.html | 15 +++++++++ vite.svg | 1 + 4 files changed, 86 insertions(+) create mode 100644 assets/index-771398e6.css create mode 100644 assets/index-83665998.js create mode 100644 index.html create mode 100644 vite.svg diff --git a/assets/index-771398e6.css b/assets/index-771398e6.css new file mode 100644 index 0000000..74e27a4 --- /dev/null +++ b/assets/index-771398e6.css @@ -0,0 +1 @@ +#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}} diff --git a/assets/index-83665998.js b/assets/index-83665998.js new file mode 100644 index 0000000..dca6588 --- /dev/null +++ b/assets/index-83665998.js @@ -0,0 +1,69 @@ +function Wd(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();var Hd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ec={exports:{}},ho={},tc={exports:{}},W={};/** + * @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 tl=Symbol.for("react.element"),Qd=Symbol.for("react.portal"),Kd=Symbol.for("react.fragment"),Yd=Symbol.for("react.strict_mode"),Xd=Symbol.for("react.profiler"),Gd=Symbol.for("react.provider"),Jd=Symbol.for("react.context"),Zd=Symbol.for("react.forward_ref"),qd=Symbol.for("react.suspense"),bd=Symbol.for("react.memo"),ep=Symbol.for("react.lazy"),_a=Symbol.iterator;function tp(e){return e===null||typeof e!="object"?null:(e=_a&&e[_a]||e["@@iterator"],typeof e=="function"?e:null)}var nc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rc=Object.assign,lc={};function er(e,t,n){this.props=e,this.context=t,this.refs=lc,this.updater=n||nc}er.prototype.isReactComponent={};er.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oc(){}oc.prototype=er.prototype;function mu(e,t,n){this.props=e,this.context=t,this.refs=lc,this.updater=n||nc}var vu=mu.prototype=new oc;vu.constructor=mu;rc(vu,er.prototype);vu.isPureReactComponent=!0;var La=Array.isArray,ic=Object.prototype.hasOwnProperty,gu={current:null},uc={key:!0,ref:!0,__self:!0,__source:!0};function ac(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)ic.call(t,r)&&!uc.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,q=N[Y];if(0>>1;Yl(or,I))mtl(re,or)?(N[Y]=re,N[mt]=I,Y=mt):(N[Y]=or,N[ht]=I,Y=ht);else if(mtl(re,I))N[Y]=re,N[mt]=I,Y=mt;else break e}}return O}function l(N,O){var I=N.sortIndex-O.sortIndex;return I!==0?I:N.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var a=[],s=[],p=1,y=null,v=3,E=!1,h=!1,g=!1,k=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var O=n(s);O!==null;){if(O.callback===null)r(s);else if(O.startTime<=N)r(s),O.sortIndex=O.expirationTime,t(a,O);else break;O=n(s)}}function c(N){if(g=!1,m(N),!h)if(n(a)!==null)h=!0,Nt(x);else{var O=n(s);O!==null&&pt(c,O.startTime-N)}}function x(N,O){h=!1,g&&(g=!1,d(T),T=-1),E=!0;var I=v;try{for(m(O),y=n(a);y!==null&&(!(y.expirationTime>O)||N&&!we());){var Y=y.callback;if(typeof Y=="function"){y.callback=null,v=y.priorityLevel;var q=Y(y.expirationTime<=O);O=e.unstable_now(),typeof q=="function"?y.callback=q:y===n(a)&&r(a),m(O)}else r(a);y=n(a)}if(y!==null)var Dt=!0;else{var ht=n(s);ht!==null&&pt(c,ht.startTime-O),Dt=!1}return Dt}finally{y=null,v=I,E=!1}}var P=!1,_=null,T=-1,Q=5,U=-1;function we(){return!(e.unstable_now()-UN||125Y?(N.sortIndex=I,t(s,N),n(a)===null&&N===n(s)&&(g?(d(T),T=-1):g=!0,pt(c,I-Y))):(N.sortIndex=q,t(a,N),h||E||(h=!0,Nt(x))),N},e.unstable_shouldYield=we,e.unstable_wrapCallback=function(N){var O=v;return function(){var I=v;v=O;try{return N.apply(this,arguments)}finally{v=I}}}})(pc);dc.exports=pc;var pp=dc.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 hc=R,Ve=pp;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yi=Object.prototype.hasOwnProperty,hp=/^[: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]*$/,Na={},Da={};function mp(e){return yi.call(Da,e)?!0:yi.call(Na,e)?!1:hp.test(e)?Da[e]=!0:(Na[e]=!0,!1)}function vp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gp(e,t,n,r){if(t===null||typeof t>"u"||vp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Me(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var wu=/[\-:]([a-z])/g;function Su(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wu,Su);Ce[t]=new Me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wu,Su);Ce[t]=new Me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wu,Su);Ce[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function Eu(e,t,n,r){var l=Ce.hasOwnProperty(t)?Ce[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var a=` +`+l[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=u);break}}}finally{Ho=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kr(e):""}function yp(e){switch(e.tag){case 5:return kr(e.type);case 16:return kr("Lazy");case 13:return kr("Suspense");case 19:return kr("SuspenseList");case 0:case 2:case 15:return e=Qo(e.type,!1),e;case 11:return e=Qo(e.type.render,!1),e;case 1:return e=Qo(e.type,!0),e;default:return""}}function ki(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _n:return"Fragment";case Rn:return"Portal";case wi:return"Profiler";case ku:return"StrictMode";case Si:return"Suspense";case Ei:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gc:return(e.displayName||"Context")+".Consumer";case vc:return(e._context.displayName||"Context")+".Provider";case xu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cu:return t=e.displayName||null,t!==null?t:ki(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return ki(e(t))}catch{}}return null}function wp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ki(t);case 8:return t===ku?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sp(e){var t=wc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pl(e){e._valueTracker||(e._valueTracker=Sp(e))}function Sc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $l(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xi(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function za(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ec(e,t){t=t.checked,t!=null&&Eu(e,"checked",t,!1)}function Ci(e,t){Ec(e,t);var n=Gt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pi(e,t.type,Gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ja(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Pi(e,t,n){(t!=="number"||$l(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=hl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rr={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},Ep=["Webkit","ms","Moz","O"];Object.keys(Rr).forEach(function(e){Ep.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rr[t]=Rr[e]})});function Pc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Rr.hasOwnProperty(e)&&Rr[e]?(""+t).trim():t+"px"}function Rc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Pc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var kp=ae({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 Li(e,t){if(t){if(kp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Ti(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ni=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Di=null,$n=null,Vn=null;function Ua(e){if(e=ll(e)){if(typeof Di!="function")throw Error(L(280));var t=e.stateNode;t&&(t=wo(t),Di(e.stateNode,e.type,t))}}function _c(e){$n?Vn?Vn.push(e):Vn=[e]:$n=e}function Lc(){if($n){var e=$n,t=Vn;if(Vn=$n=null,Ua(e),t)for(e=0;e>>=0,e===0?32:31-(zp(e)/jp|0)|0}var ml=64,vl=4194304;function Cr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Cr(u):(o&=i,o!==0&&(r=Cr(o)))}else i=n&~l,i!==0?r=Cr(i):o!==0&&(r=Cr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function Ip(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Lr),Ka=String.fromCharCode(32),Ya=!1;function Xc(e,t){switch(e){case"keyup":return dh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function hh(e,t){switch(e){case"compositionend":return Gc(t);case"keypress":return t.which!==32?null:(Ya=!0,Ka);case"textInput":return e=t.data,e===Ka&&Ya?null:e;default:return null}}function mh(e,t){if(Ln)return e==="compositionend"||!zu&&Xc(e,t)?(e=Kc(),Ml=Nu=At=null,Ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Za(n)}}function bc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ef(){for(var e=window,t=$l();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$l(e.document)}return t}function ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ch(e){var t=ef(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bc(n.ownerDocument.documentElement,n)){if(r!==null&&ju(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=qa(n,o);var i=qa(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Tn=null,Ui=null,Nr=null,Ii=!1;function ba(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ii||Tn==null||Tn!==$l(r)||(r=Tn,"selectionStart"in r&&ju(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nr&&Wr(Nr,r)||(Nr=r,r=Xl(Ui,"onSelect"),0Mn||(e.current=Hi[Mn],Hi[Mn]=null,Mn--)}function b(e,t){Mn++,Hi[Mn]=e.current,e.current=t}var Jt={},Le=qt(Jt),Oe=qt(!1),hn=Jt;function Xn(e,t){var n=e.type.contextTypes;if(!n)return Jt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Fe(e){return e=e.childContextTypes,e!=null}function Jl(){te(Oe),te(Le)}function is(e,t,n){if(Le.current!==Jt)throw Error(L(168));b(Le,t),b(Oe,n)}function cf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(L(108,wp(e)||"Unknown",l));return ae({},n,r)}function Zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jt,hn=Le.current,b(Le,e),b(Oe,Oe.current),!0}function us(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=cf(e,t,hn),r.__reactInternalMemoizedMergedChildContext=e,te(Oe),te(Le),b(Le,e)):te(Oe),b(Oe,n)}var wt=null,So=!1,oi=!1;function ff(e){wt===null?wt=[e]:wt.push(e)}function Fh(e){So=!0,ff(e)}function bt(){if(!oi&&wt!==null){oi=!0;var e=0,t=X;try{var n=wt;for(X=1;e>=i,l-=i,St=1<<32-lt(t)+l|n<T?(Q=_,_=null):Q=_.sibling;var U=v(d,_,m[T],c);if(U===null){_===null&&(_=Q);break}e&&_&&U.alternate===null&&t(d,_),f=o(U,f,T),P===null?x=U:P.sibling=U,P=U,_=Q}if(T===m.length)return n(d,_),ne&&on(d,T),x;if(_===null){for(;TT?(Q=_,_=null):Q=_.sibling;var we=v(d,_,U.value,c);if(we===null){_===null&&(_=Q);break}e&&_&&we.alternate===null&&t(d,_),f=o(we,f,T),P===null?x=we:P.sibling=we,P=we,_=Q}if(U.done)return n(d,_),ne&&on(d,T),x;if(_===null){for(;!U.done;T++,U=m.next())U=y(d,U.value,c),U!==null&&(f=o(U,f,T),P===null?x=U:P.sibling=U,P=U);return ne&&on(d,T),x}for(_=r(d,_);!U.done;T++,U=m.next())U=E(_,d,T,U.value,c),U!==null&&(e&&U.alternate!==null&&_.delete(U.key===null?T:U.key),f=o(U,f,T),P===null?x=U:P.sibling=U,P=U);return e&&_.forEach(function(Ie){return t(d,Ie)}),ne&&on(d,T),x}function k(d,f,m,c){if(typeof m=="object"&&m!==null&&m.type===_n&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case dl:e:{for(var x=m.key,P=f;P!==null;){if(P.key===x){if(x=m.type,x===_n){if(P.tag===7){n(d,P.sibling),f=l(P,m.props.children),f.return=d,d=f;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ot&&hs(x)===P.type){n(d,P.sibling),f=l(P,m.props),f.ref=mr(d,P,m),f.return=d,d=f;break e}n(d,P);break}else t(d,P);P=P.sibling}m.type===_n?(f=pn(m.props.children,d.mode,c,m.key),f.return=d,d=f):(c=Bl(m.type,m.key,m.props,null,d.mode,c),c.ref=mr(d,f,m),c.return=d,d=c)}return i(d);case Rn:e:{for(P=m.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(d,f.sibling),f=l(f,m.children||[]),f.return=d,d=f;break e}else{n(d,f);break}else t(d,f);f=f.sibling}f=pi(m,d.mode,c),f.return=d,d=f}return i(d);case Ot:return P=m._init,k(d,f,P(m._payload),c)}if(xr(m))return h(d,f,m,c);if(cr(m))return g(d,f,m,c);xl(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(d,f.sibling),f=l(f,m),f.return=d,d=f):(n(d,f),f=di(m,d.mode,c),f.return=d,d=f),i(d)):n(d,f)}return k}var Jn=wf(!0),Sf=wf(!1),ol={},dt=qt(ol),Yr=qt(ol),Xr=qt(ol);function cn(e){if(e===ol)throw Error(L(174));return e}function Wu(e,t){switch(b(Xr,t),b(Yr,e),b(dt,ol),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_i(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_i(t,e)}te(dt),b(dt,t)}function Zn(){te(dt),te(Yr),te(Xr)}function Ef(e){cn(Xr.current);var t=cn(dt.current),n=_i(t,e.type);t!==n&&(b(Yr,e),b(dt,n))}function Hu(e){Yr.current===e&&(te(dt),te(Yr))}var ie=qt(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ii=[];function Qu(){for(var e=0;en?n:4,e(!0);var r=ui.transition;ui.transition={};try{e(!1),t()}finally{X=n,ui.transition=r}}function Uf(){return Ze().memoizedState}function Bh(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},If(e))Af(t,n);else if(n=mf(e,t,n,r),n!==null){var l=Ne();ot(n,e,r,l),Bf(n,t,r)}}function $h(e,t,n){var r=Yt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(If(e))Af(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,it(u,i)){var a=t.interleaved;a===null?(l.next=l,$u(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=mf(e,t,l,r),n!==null&&(l=Ne(),ot(n,e,r,l),Bf(n,t,r))}}function If(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Af(e,t){Dr=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_u(e,n)}}var oo={readContext:Je,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},Vh={readContext:Je,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:vs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fl(4194308,4,Mf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fl(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Bh.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:ms,useDebugValue:Ju,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=ms(!1),t=e[0];return e=Ah.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,l=st();if(ne){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ee===null)throw Error(L(349));vn&30||Cf(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,vs(Rf.bind(null,r,o,e),[e]),r.flags|=2048,Zr(9,Pf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=st(),t=Ee.identifierPrefix;if(ne){var n=Et,r=St;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ct]=t,e[Kr]=r,Gf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ti(n,r),n){case"dialog":ee("cancel",e),ee("close",e),l=r;break;case"iframe":case"object":case"embed":ee("load",e),l=r;break;case"video":case"audio":for(l=0;lbn&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ro(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!ne)return Re(t),null}else 2*he()-o.renderingStartTime>bn&&n!==1073741824&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=he(),t.sibling=null,n=ie.current,b(ie,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return na(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function Jh(e,t){switch(Fu(t),t.tag){case 1:return Fe(t.type)&&Jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),te(Oe),te(Le),Qu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hu(t),null;case 13:if(te(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(ie),null;case 4:return Zn(),null;case 10:return Bu(t.type._context),null;case 22:case 23:return na(),null;case 24:return null;default:return null}}var Pl=!1,_e=!1,Zh=typeof WeakSet=="function"?WeakSet:Set,z=null;function Fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(e,t,r)}else n.current=null}function nu(e,t,n){try{n()}catch(r){ce(e,t,r)}}var Ps=!1;function qh(e,t){if(Ai=Kl,e=ef(),ju(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,a=-1,s=0,p=0,y=e,v=null;t:for(;;){for(var E;y!==n||l!==0&&y.nodeType!==3||(u=i+l),y!==o||r!==0&&y.nodeType!==3||(a=i+r),y.nodeType===3&&(i+=y.nodeValue.length),(E=y.firstChild)!==null;)v=y,y=E;for(;;){if(y===e)break t;if(v===n&&++s===l&&(u=i),v===o&&++p===r&&(a=i),(E=y.nextSibling)!==null)break;y=v,v=y.parentNode}y=E}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bi={focusedElem:e,selectionRange:n},Kl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,k=h.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?g:et(t.type,g),k);d.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(c){ce(t,t.return,c)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return h=Ps,Ps=!1,h}function Mr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&nu(t,n,o)}l=l.next}while(l!==r)}}function xo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ru(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qf(e){var t=e.alternate;t!==null&&(e.alternate=null,qf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[Kr],delete t[Wi],delete t[jh],delete t[Oh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bf(e){return e.tag===5||e.tag===3||e.tag===4}function Rs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gl));else if(r!==4&&(e=e.child,e!==null))for(lu(e,t,n),e=e.sibling;e!==null;)lu(e,t,n),e=e.sibling}function ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}var ke=null,tt=!1;function jt(e,t,n){for(n=n.child;n!==null;)ed(e,t,n),n=n.sibling}function ed(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(mo,n)}catch{}switch(n.tag){case 5:_e||Fn(n,t);case 6:var r=ke,l=tt;ke=null,jt(e,t,n),ke=r,tt=l,ke!==null&&(tt?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(tt?(e=ke,n=n.stateNode,e.nodeType===8?li(e.parentNode,n):e.nodeType===1&&li(e,n),$r(e)):li(ke,n.stateNode));break;case 4:r=ke,l=tt,ke=n.stateNode.containerInfo,tt=!0,jt(e,t,n),ke=r,tt=l;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&nu(n,t,i),l=l.next}while(l!==r)}jt(e,t,n);break;case 1:if(!_e&&(Fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ce(n,t,u)}jt(e,t,n);break;case 21:jt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,jt(e,t,n),_e=r):jt(e,t,n);break;default:jt(e,t,n)}}function _s(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zh),t.forEach(function(r){var l=um.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function be(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*em(r/1960))-r,10e?16:e,Bt===null)var r=!1;else{if(e=Bt,Bt=null,ao=0,K&6)throw Error(L(331));var l=K;for(K|=4,z=e.current;z!==null;){var o=z,i=o.child;if(z.flags&16){var u=o.deletions;if(u!==null){for(var a=0;ahe()-ea?dn(e,0):bu|=n),Ue(e,t)}function ad(e,t){t===0&&(e.mode&1?(t=vl,vl<<=1,!(vl&130023424)&&(vl=4194304)):t=1);var n=Ne();e=Rt(e,t),e!==null&&(nl(e,t,n),Ue(e,n))}function im(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ad(e,n)}function um(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),ad(e,n)}var sd;sd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,Xh(e,t,n);je=!!(e.flags&131072)}else je=!1,ne&&t.flags&1048576&&df(t,bl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var l=Xn(t,Le.current);Hn(t,n),l=Yu(null,t,r,e,l,n);var o=Xu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(o=!0,Zl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Vu(t),l.updater=Eo,t.stateNode=l,l._reactInternals=t,Gi(t,r,e,n),t=qi(null,t,r,!0,o,n)):(t.tag=0,ne&&o&&Ou(t),Te(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=sm(r),e=et(r,e),l){case 0:t=Zi(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=Ss(null,t,r,e,n);break e;case 14:t=Es(null,t,r,et(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Zi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),ks(e,t,r,l,n);case 3:e:{if(Kf(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,l=o.element,vf(e,t),no(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=qn(Error(L(423)),t),t=xs(e,t,r,n,l);break e}else if(r!==l){l=qn(Error(L(424)),t),t=xs(e,t,r,n,l);break e}else for(Be=Ht(t.stateNode.containerInfo.firstChild),$e=t,ne=!0,rt=null,n=Sf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===l){t=_t(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return Ef(t),e===null&&Ki(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,$i(r,l)?i=null:o!==null&&$i(r,o)&&(t.flags|=32),Qf(e,t),Te(e,t,i,n),t.child;case 6:return e===null&&Ki(t),null;case 13:return Yf(e,t,n);case 4:return Wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jn(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Ss(e,t,r,l,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,b(eo,r._currentValue),r._currentValue=i,o!==null)if(it(o.value,i)){if(o.children===l.children&&!Oe.current){t=_t(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=kt(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var p=s.pending;p===null?a.next=a:(a.next=p.next,p.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Yi(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(L(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Yi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Te(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Hn(t,n),l=Je(l),r=r(l),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,l=et(r,t.pendingProps),l=et(r.type,l),Es(e,t,r,l,n);case 15:return Wf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:et(r,l),Ul(e,t),t.tag=1,Fe(r)?(e=!0,Zl(t)):e=!1,Hn(t,n),yf(t,r,l),Gi(t,r,l,n),qi(null,t,r,!0,e,n);case 19:return Xf(e,t,n);case 22:return Hf(e,t,n)}throw Error(L(156,t.tag))};function cd(e,t){return Oc(e,t)}function am(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xe(e,t,n,r){return new am(e,t,n,r)}function la(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sm(e){if(typeof e=="function")return la(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xu)return 11;if(e===Cu)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=Xe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")la(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case _n:return pn(n.children,l,o,t);case ku:i=8,l|=8;break;case wi:return e=Xe(12,n,t,l|2),e.elementType=wi,e.lanes=o,e;case Si:return e=Xe(13,n,t,l),e.elementType=Si,e.lanes=o,e;case Ei:return e=Xe(19,n,t,l),e.elementType=Ei,e.lanes=o,e;case yc:return Po(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vc:i=10;break e;case gc:i=9;break e;case xu:i=11;break e;case Cu:i=14;break e;case Ot:i=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Xe(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function pn(e,t,n,r){return e=Xe(7,e,r,t),e.lanes=n,e}function Po(e,t,n,r){return e=Xe(22,e,r,t),e.elementType=yc,e.lanes=n,e.stateNode={isHidden:!1},e}function di(e,t,n){return e=Xe(6,e,null,t),e.lanes=n,e}function pi(e,t,n){return t=Xe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yo(0),this.expirationTimes=Yo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function oa(e,t,n,r,l,o,i,u,a){return e=new cm(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Xe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vu(o),e}function fm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hd)}catch(e){console.error(e)}}hd(),fc.exports=We;var vm=fc.exports,Os=vm;gi.createRoot=Os.createRoot,gi.hydrateRoot=Os.hydrateRoot;/** + * @remix-run/router v1.10.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function wn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gm(){return Math.random().toString(36).substr(2,8)}function Us(e,t){return{usr:e.state,key:e.key,idx:t}}function br(e,t,n,r){return n===void 0&&(n=null),oe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tt(t):t,{state:n,key:t&&t.key||r||gm()})}function Sn(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ym(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=de.Pop,a=null,s=p();s==null&&(s=0,i.replaceState(oe({},i.state,{idx:s}),""));function p(){return(i.state||{idx:null}).idx}function y(){u=de.Pop;let k=p(),d=k==null?null:k-s;s=k,a&&a({action:u,location:g.location,delta:d})}function v(k,d){u=de.Push;let f=br(g.location,k,d);n&&n(f,k),s=p()+1;let m=Us(f,s),c=g.createHref(f);try{i.pushState(m,"",c)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;l.location.assign(c)}o&&a&&a({action:u,location:g.location,delta:1})}function E(k,d){u=de.Replace;let f=br(g.location,k,d);n&&n(f,k),s=p();let m=Us(f,s),c=g.createHref(f);i.replaceState(m,"",c),o&&a&&a({action:u,location:g.location,delta:0})}function h(k){let d=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof k=="string"?k:Sn(k);return V(d,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,d)}let g={get action(){return u},get location(){return e(l,i)},listen(k){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Fs,y),a=k,()=>{l.removeEventListener(Fs,y),a=null}},createHref(k){return t(l,k)},createURL:h,encodeLocation(k){let d=h(k);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:v,replace:E,go(k){return i.go(k)}};return g}var pe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pe||(pe={}));const wm=new Set(["lazy","caseSensitive","path","id","index","children"]);function Sm(e){return e.index===!0}function cu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],u=typeof l.id=="string"?l.id:i.join("-");if(V(l.index!==!0||!l.children,"Cannot specify children on an index route"),V(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),Sm(l)){let a=oe({},l,t(l),{id:u});return r[u]=a,a}else{let a=oe({},l,t(l),{id:u,children:void 0});return r[u]=a,l.children&&(a.children=cu(l.children,t,i,r)),a}})}function In(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Tt(t):t,l=rr(r.pathname||"/",n);if(l==null)return null;let o=vd(e);km(o);let i=null;for(let u=0;i==null&&u{let a={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(V(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let s=xt([r,a.relativePath]),p=n.concat(a);o.children&&o.children.length>0&&(V(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),vd(o.children,t,p,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Tm(s,o.index),routesMeta:p})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let a of gd(o.path))l(o,i,a)}),t}function gd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=gd(r.join("/")),u=[];return u.push(...i.map(a=>a===""?o:[o,a].join("/"))),l&&u.push(...i),u.map(a=>e.startsWith("/")&&a===""?"/":a)}function km(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Nm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xm=/^:\w+$/,Cm=3,Pm=2,Rm=1,_m=10,Lm=-2,Is=e=>e==="*";function Tm(e,t){let n=e.split("/"),r=n.length;return n.some(Is)&&(r+=Lm),t&&(r+=Pm),n.filter(l=>!Is(l)).reduce((l,o)=>l+(xm.test(o)?Cm:o===""?Rm:_m),r)}function Nm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Dm(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{if(p==="*"){let v=u[y]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}return s[p]=Om(u[y]||"",p),s},{}),pathname:o,pathnameBase:i,pattern:e}}function zm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),wn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,u)=>(r.push(u),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function jm(e){try{return decodeURI(e)}catch(t){return wn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Om(e,t){try{return decodeURIComponent(e)}catch(n){return wn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function rr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Fm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Tt(e):e;return{pathname:n?n.startsWith("/")?n:Um(n,t):t,search:Am(r),hash:Bm(l)}}function Um(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function hi(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function No(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sa(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Tt(e):(l=oe({},e),V(!l.pathname||!l.pathname.includes("?"),hi("?","pathname","search",l)),V(!l.pathname||!l.pathname.includes("#"),hi("#","pathname","hash",l)),V(!l.search||!l.search.includes("#"),hi("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(r||i==null)u=n;else{let y=t.length-1;if(i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),y-=1;l.pathname=v.join("/")}u=y>=0?t[y]:"/"}let a=Fm(l,u),s=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(s||p)&&(a.pathname+="/"),a}const xt=e=>e.join("/").replace(/\/\/+/g,"/"),Im=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Am=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Bm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ca{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function yd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wd=["post","put","patch","delete"],$m=new Set(wd),Vm=["get",...wd],Wm=new Set(Vm),Hm=new Set([301,302,303,307,308]),Qm=new Set([307,308]),mi={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Km={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ym=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ed="remix-router-transitions";function Xm(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;V(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let w=e.detectErrorBoundary;l=S=>({hasErrorBoundary:w(S)})}else l=Ym;let o={},i=cu(e.routes,l,void 0,o),u,a=e.basename||"/",s=oe({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,y=new Set,v=null,E=null,h=null,g=e.hydrationData!=null,k=In(i,e.history.location,a),d=null;if(k==null){let w=Qe(404,{pathname:e.history.location.pathname}),{matches:S,route:C}=Ks(i);k=S,d={[C.id]:w}}let f=!k.some(w=>w.route.lazy)&&(!k.some(w=>w.route.loader)||e.hydrationData!=null),m,c={historyAction:e.history.action,location:e.history.location,matches:k,initialized:f,navigation:mi,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map,blockers:new Map},x=de.Pop,P=!1,_,T=!1,Q=new Map,U=null,we=!1,Ie=!1,ut=[],tn=[],se=new Map,Nt=0,pt=-1,N=new Map,O=new Set,I=new Map,Y=new Map,q=new Map,Dt=!1;function ht(){if(p=e.history.listen(w=>{let{action:S,location:C,delta:M}=w;if(Dt){Dt=!1;return}wn(q.size===0||M!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let B=xa({currentLocation:c.location,nextLocation:C,historyAction:S});if(B&&M!=null){Dt=!0,e.history.go(M*-1),sl(B,{state:"blocked",location:C,proceed(){sl(B,{state:"proceeding",proceed:void 0,reset:void 0,location:C}),e.history.go(M)},reset(){let A=new Map(c.blockers);A.set(B,yr),re({blockers:A})}});return}return nn(S,C)}),n){ov(t,Q);let w=()=>iv(t,Q);t.addEventListener("pagehide",w),U=()=>t.removeEventListener("pagehide",w)}return c.initialized||nn(de.Pop,c.location),m}function or(){p&&p(),U&&U(),y.clear(),_&&_.abort(),c.fetchers.forEach((w,S)=>Oo(S)),c.blockers.forEach((w,S)=>ka(S))}function mt(w){return y.add(w),()=>y.delete(w)}function re(w,S){c=oe({},c,w),y.forEach(C=>C(c,{unstable_viewTransitionOpts:S}))}function ir(w,S){var C,M;let B=c.actionData!=null&&c.navigation.formMethod!=null&&nt(c.navigation.formMethod)&&c.navigation.state==="loading"&&((C=w.state)==null?void 0:C._isRedirect)!==!0,A;S.actionData?Object.keys(S.actionData).length>0?A=S.actionData:A=null:B?A=c.actionData:A=null;let $=S.loaderData?Qs(c.loaderData,S.loaderData,S.matches||[],S.errors):c.loaderData,F=c.blockers;F.size>0&&(F=new Map(F),F.forEach((le,H)=>F.set(H,yr)));let j=P===!0||c.navigation.formMethod!=null&&nt(c.navigation.formMethod)&&((M=w.state)==null?void 0:M._isRedirect)!==!0;u&&(i=u,u=void 0),we||x===de.Pop||(x===de.Push?e.history.push(w,w.state):x===de.Replace&&e.history.replace(w,w.state));let J;if(x===de.Pop){let le=Q.get(c.location.pathname);le&&le.has(w.pathname)?J={currentLocation:c.location,nextLocation:w}:Q.has(w.pathname)&&(J={currentLocation:w,nextLocation:c.location})}else if(T){let le=Q.get(c.location.pathname);le?le.add(w.pathname):(le=new Set([w.pathname]),Q.set(c.location.pathname,le)),J={currentLocation:c.location,nextLocation:w}}re(oe({},S,{actionData:A,loaderData:$,historyAction:x,location:w,initialized:!0,navigation:mi,revalidation:"idle",restoreScrollPosition:Pa(w,S.matches||c.matches),preventScrollReset:j,blockers:F}),J),x=de.Pop,P=!1,T=!1,we=!1,Ie=!1,ut=[],tn=[]}async function va(w,S){if(typeof w=="number"){e.history.go(w);return}let C=fu(c.location,c.matches,a,s.v7_prependBasename,w,S==null?void 0:S.fromRouteId,S==null?void 0:S.relative),{path:M,submission:B,error:A}=As(s.v7_normalizeFormMethod,!1,C,S),$=c.location,F=br(c.location,M,S&&S.state);F=oe({},F,e.history.encodeLocation(F));let j=S&&S.replace!=null?S.replace:void 0,J=de.Push;j===!0?J=de.Replace:j===!1||B!=null&&nt(B.formMethod)&&B.formAction===c.location.pathname+c.location.search&&(J=de.Replace);let le=S&&"preventScrollReset"in S?S.preventScrollReset===!0:void 0,H=xa({currentLocation:$,nextLocation:F,historyAction:J});if(H){sl(H,{state:"blocked",location:F,proceed(){sl(H,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),va(w,S)},reset(){let Z=new Map(c.blockers);Z.set(H,yr),re({blockers:Z})}});return}return await nn(J,F,{submission:B,pendingError:A,preventScrollReset:le,replace:S&&S.replace,enableViewTransition:S&&S.unstable_viewTransition})}function Md(){if(jo(),re({revalidation:"loading"}),c.navigation.state!=="submitting"){if(c.navigation.state==="idle"){nn(c.historyAction,c.location,{startUninterruptedRevalidation:!0});return}nn(x||c.historyAction,c.navigation.location,{overrideNavigation:c.navigation})}}async function nn(w,S,C){_&&_.abort(),_=null,x=w,we=(C&&C.startUninterruptedRevalidation)===!0,Bd(c.location,c.matches),P=(C&&C.preventScrollReset)===!0,T=(C&&C.enableViewTransition)===!0;let M=u||i,B=C&&C.overrideNavigation,A=In(M,S,a);if(!A){let Z=Qe(404,{pathname:S.pathname}),{matches:fe,route:rn}=Ks(M);Fo(),ir(S,{matches:fe,loaderData:{},errors:{[rn.id]:Z}});return}if(c.initialized&&!Ie&&bm(c.location,S)&&!(C&&C.submission&&nt(C.submission.formMethod))){ir(S,{matches:A});return}_=new AbortController;let $=Sr(e.history,S,_.signal,C&&C.submission),F,j;if(C&&C.pendingError)j={[An(A).route.id]:C.pendingError};else if(C&&C.submission&&nt(C.submission.formMethod)){let Z=await zd($,S,C.submission,A,{replace:C.replace});if(Z.shortCircuited)return;F=Z.pendingActionData,j=Z.pendingActionError,B=vi(S,C.submission),$=new Request($.url,{signal:$.signal})}let{shortCircuited:J,loaderData:le,errors:H}=await jd($,S,A,B,C&&C.submission,C&&C.fetcherSubmission,C&&C.replace,F,j);J||(_=null,ir(S,oe({matches:A},F?{actionData:F}:{},{loaderData:le,errors:H})))}async function zd(w,S,C,M,B){B===void 0&&(B={}),jo();let A=rv(S,C);re({navigation:A});let $,F=pu(M,S);if(!F.route.action&&!F.route.lazy)$={type:pe.error,error:Qe(405,{method:w.method,pathname:S.pathname,routeId:F.route.id})};else if($=await wr("action",w,F,M,o,l,a),w.signal.aborted)return{shortCircuited:!0};if(Kn($)){let j;return B&&B.replace!=null?j=B.replace:j=$.location===c.location.pathname+c.location.search,await ur(c,$,{submission:C,replace:j}),{shortCircuited:!0}}if(Or($)){let j=An(M,F.route.id);return(B&&B.replace)!==!0&&(x=de.Push),{pendingActionData:{},pendingActionError:{[j.route.id]:$.error}}}if(fn($))throw Qe(400,{type:"defer-action"});return{pendingActionData:{[F.route.id]:$.data}}}async function jd(w,S,C,M,B,A,$,F,j){let J=M||vi(S,B),le=B||A||Gs(J),H=u||i,[Z,fe]=Bs(e.history,c,C,le,S,Ie,ut,tn,I,O,H,a,F,j);if(Fo(G=>!(C&&C.some(qe=>qe.route.id===G))||Z&&Z.some(qe=>qe.route.id===G)),pt=++Nt,Z.length===0&&fe.length===0){let G=Sa();return ir(S,oe({matches:C,loaderData:{},errors:j||null},F?{actionData:F}:{},G?{fetchers:new Map(c.fetchers)}:{})),{shortCircuited:!0}}if(!we){fe.forEach(qe=>{let zt=c.fetchers.get(qe.key),$o=Er(void 0,zt?zt.data:void 0);c.fetchers.set(qe.key,$o)});let G=F||c.actionData;re(oe({navigation:J},G?Object.keys(G).length===0?{actionData:null}:{actionData:G}:{},fe.length>0?{fetchers:new Map(c.fetchers)}:{}))}fe.forEach(G=>{se.has(G.key)&&Mt(G.key),G.controller&&se.set(G.key,G.controller)});let rn=()=>fe.forEach(G=>Mt(G.key));_&&_.signal.addEventListener("abort",rn);let{results:ln,loaderResults:ar,fetcherResults:Uo}=await ya(c.matches,C,Z,fe,w);if(w.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",rn),fe.forEach(G=>se.delete(G.key));let vt=Ys(ln);if(vt){if(vt.idx>=Z.length){let G=fe[vt.idx-Z.length].key;O.add(G)}return await ur(c,vt.result,{replace:$}),{shortCircuited:!0}}let{loaderData:gt,errors:cl}=Hs(c,C,Z,ar,j,fe,Uo,Y);Y.forEach((G,qe)=>{G.subscribe(zt=>{(zt||G.done)&&Y.delete(qe)})});let Io=Sa(),Ao=Ea(pt),Bo=Io||Ao||fe.length>0;return oe({loaderData:gt,errors:cl},Bo?{fetchers:new Map(c.fetchers)}:{})}function ga(w){return c.fetchers.get(w)||Km}function Od(w,S,C,M){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");se.has(w)&&Mt(w);let B=u||i,A=fu(c.location,c.matches,a,s.v7_prependBasename,C,S,M==null?void 0:M.relative),$=In(B,A,a);if(!$){al(w,S,Qe(404,{pathname:A}));return}let{path:F,submission:j,error:J}=As(s.v7_normalizeFormMethod,!0,A,M);if(J){al(w,S,J);return}let le=pu($,F);if(P=(M&&M.preventScrollReset)===!0,j&&nt(j.formMethod)){Fd(w,S,F,le,$,j);return}I.set(w,{routeId:S,path:F}),Ud(w,S,F,le,$,j)}async function Fd(w,S,C,M,B,A){if(jo(),I.delete(w),!M.route.action&&!M.route.lazy){let ve=Qe(405,{method:A.formMethod,pathname:C,routeId:S});al(w,S,ve);return}let $=c.fetchers.get(w),F=lv(A,$);c.fetchers.set(w,F),re({fetchers:new Map(c.fetchers)});let j=new AbortController,J=Sr(e.history,C,j.signal,A);se.set(w,j);let le=Nt,H=await wr("action",J,M,B,o,l,a);if(J.signal.aborted){se.get(w)===j&&se.delete(w);return}if(Kn(H))if(se.delete(w),pt>le){let ve=Pn(void 0);c.fetchers.set(w,ve),re({fetchers:new Map(c.fetchers)});return}else{O.add(w);let ve=Er(A);return c.fetchers.set(w,ve),re({fetchers:new Map(c.fetchers)}),ur(c,H,{fetcherSubmission:A})}if(Or(H)){al(w,S,H.error);return}if(fn(H))throw Qe(400,{type:"defer-action"});let Z=c.navigation.location||c.location,fe=Sr(e.history,Z,j.signal),rn=u||i,ln=c.navigation.state!=="idle"?In(rn,c.navigation.location,a):c.matches;V(ln,"Didn't find any matches after fetcher action");let ar=++Nt;N.set(w,ar);let Uo=Er(A,H.data);c.fetchers.set(w,Uo);let[vt,gt]=Bs(e.history,c,ln,A,Z,Ie,ut,tn,I,O,rn,a,{[M.route.id]:H.data},void 0);gt.filter(ve=>ve.key!==w).forEach(ve=>{let sr=ve.key,Ra=c.fetchers.get(sr),Vd=Er(void 0,Ra?Ra.data:void 0);c.fetchers.set(sr,Vd),se.has(sr)&&Mt(sr),ve.controller&&se.set(sr,ve.controller)}),re({fetchers:new Map(c.fetchers)});let cl=()=>gt.forEach(ve=>Mt(ve.key));j.signal.addEventListener("abort",cl);let{results:Io,loaderResults:Ao,fetcherResults:Bo}=await ya(c.matches,ln,vt,gt,fe);if(j.signal.aborted)return;j.signal.removeEventListener("abort",cl),N.delete(w),se.delete(w),gt.forEach(ve=>se.delete(ve.key));let G=Ys(Io);if(G){if(G.idx>=vt.length){let ve=gt[G.idx-vt.length].key;O.add(ve)}return ur(c,G.result)}let{loaderData:qe,errors:zt}=Hs(c,c.matches,vt,Ao,void 0,gt,Bo,Y);if(c.fetchers.has(w)){let ve=Pn(H.data);c.fetchers.set(w,ve)}let $o=Ea(ar);c.navigation.state==="loading"&&ar>pt?(V(x,"Expected pending action"),_&&_.abort(),ir(c.navigation.location,{matches:ln,loaderData:qe,errors:zt,fetchers:new Map(c.fetchers)})):(re(oe({errors:zt,loaderData:Qs(c.loaderData,qe,ln,zt)},$o||gt.length>0?{fetchers:new Map(c.fetchers)}:{})),Ie=!1)}async function Ud(w,S,C,M,B,A){let $=c.fetchers.get(w),F=Er(A,$?$.data:void 0);c.fetchers.set(w,F),re({fetchers:new Map(c.fetchers)});let j=new AbortController,J=Sr(e.history,C,j.signal);se.set(w,j);let le=Nt,H=await wr("loader",J,M,B,o,l,a);if(fn(H)&&(H=await Cd(H,J.signal,!0)||H),se.get(w)===j&&se.delete(w),J.signal.aborted)return;if(Kn(H))if(pt>le){let fe=Pn(void 0);c.fetchers.set(w,fe),re({fetchers:new Map(c.fetchers)});return}else{O.add(w),await ur(c,H);return}if(Or(H)){let fe=An(c.matches,S);c.fetchers.delete(w),re({fetchers:new Map(c.fetchers),errors:{[fe.route.id]:H.error}});return}V(!fn(H),"Unhandled fetcher deferred data");let Z=Pn(H.data);c.fetchers.set(w,Z),re({fetchers:new Map(c.fetchers)})}async function ur(w,S,C){let{submission:M,fetcherSubmission:B,replace:A}=C===void 0?{}:C;S.revalidate&&(Ie=!0);let $=br(w.location,S.location,{_isRedirect:!0});if(V($,"Expected a location on the redirect navigation"),n){let Z=!1;if(S.reloadDocument)Z=!0;else if(Sd.test(S.location)){const fe=e.history.createURL(S.location);Z=fe.origin!==t.location.origin||rr(fe.pathname,a)==null}if(Z){A?t.location.replace(S.location):t.location.assign(S.location);return}}_=null;let F=A===!0?de.Replace:de.Push,{formMethod:j,formAction:J,formEncType:le}=w.navigation;!M&&!B&&j&&J&&le&&(M=Gs(w.navigation));let H=M||B;if(Qm.has(S.status)&&H&&nt(H.formMethod))await nn(F,$,{submission:oe({},H,{formAction:S.location}),preventScrollReset:P});else{let Z=vi($,M);await nn(F,$,{overrideNavigation:Z,fetcherSubmission:B,preventScrollReset:P})}}async function ya(w,S,C,M,B){let A=await Promise.all([...C.map(j=>wr("loader",B,j,S,o,l,a)),...M.map(j=>j.matches&&j.match&&j.controller?wr("loader",Sr(e.history,j.path,j.controller.signal),j.match,j.matches,o,l,a):{type:pe.error,error:Qe(404,{pathname:j.path})})]),$=A.slice(0,C.length),F=A.slice(C.length);return await Promise.all([Xs(w,C,$,$.map(()=>B.signal),!1,c.loaderData),Xs(w,M.map(j=>j.match),F,M.map(j=>j.controller?j.controller.signal:null),!0)]),{results:A,loaderResults:$,fetcherResults:F}}function jo(){Ie=!0,ut.push(...Fo()),I.forEach((w,S)=>{se.has(S)&&(tn.push(S),Mt(S))})}function al(w,S,C){let M=An(c.matches,S);Oo(w),re({errors:{[M.route.id]:C},fetchers:new Map(c.fetchers)})}function Oo(w){let S=c.fetchers.get(w);se.has(w)&&!(S&&S.state==="loading"&&N.has(w))&&Mt(w),I.delete(w),N.delete(w),O.delete(w),c.fetchers.delete(w)}function Mt(w){let S=se.get(w);V(S,"Expected fetch controller: "+w),S.abort(),se.delete(w)}function wa(w){for(let S of w){let C=ga(S),M=Pn(C.data);c.fetchers.set(S,M)}}function Sa(){let w=[],S=!1;for(let C of O){let M=c.fetchers.get(C);V(M,"Expected fetcher: "+C),M.state==="loading"&&(O.delete(C),w.push(C),S=!0)}return wa(w),S}function Ea(w){let S=[];for(let[C,M]of N)if(M0}function Id(w,S){let C=c.blockers.get(w)||yr;return q.get(w)!==S&&q.set(w,S),C}function ka(w){c.blockers.delete(w),q.delete(w)}function sl(w,S){let C=c.blockers.get(w)||yr;V(C.state==="unblocked"&&S.state==="blocked"||C.state==="blocked"&&S.state==="blocked"||C.state==="blocked"&&S.state==="proceeding"||C.state==="blocked"&&S.state==="unblocked"||C.state==="proceeding"&&S.state==="unblocked","Invalid blocker state transition: "+C.state+" -> "+S.state);let M=new Map(c.blockers);M.set(w,S),re({blockers:M})}function xa(w){let{currentLocation:S,nextLocation:C,historyAction:M}=w;if(q.size===0)return;q.size>1&&wn(!1,"A router only supports one blocker at a time");let B=Array.from(q.entries()),[A,$]=B[B.length-1],F=c.blockers.get(A);if(!(F&&F.state==="proceeding")&&$({currentLocation:S,nextLocation:C,historyAction:M}))return A}function Fo(w){let S=[];return Y.forEach((C,M)=>{(!w||w(M))&&(C.cancel(),S.push(M),Y.delete(M))}),S}function Ad(w,S,C){if(v=w,h=S,E=C||null,!g&&c.navigation===mi){g=!0;let M=Pa(c.location,c.matches);M!=null&&re({restoreScrollPosition:M})}return()=>{v=null,h=null,E=null}}function Ca(w,S){return E&&E(w,S.map(M=>Em(M,c.loaderData)))||w.key}function Bd(w,S){if(v&&h){let C=Ca(w,S);v[C]=h()}}function Pa(w,S){if(v){let C=Ca(w,S),M=v[C];if(typeof M=="number")return M}return null}function $d(w){o={},u=cu(w,l,void 0,o)}return m={get basename(){return a},get state(){return c},get routes(){return i},get window(){return t},initialize:ht,subscribe:mt,enableScrollRestoration:Ad,navigate:va,fetch:Od,revalidate:Md,createHref:w=>e.history.createHref(w),encodeLocation:w=>e.history.encodeLocation(w),getFetcher:ga,deleteFetcher:Oo,dispose:or,getBlocker:Id,deleteBlocker:ka,_internalFetchControllers:se,_internalActiveDeferreds:Y,_internalSetRoutes:$d},m}function Gm(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function fu(e,t,n,r,l,o,i){let u,a;if(o!=null&&i!=="path"){u=[];for(let p of t)if(u.push(p),p.route.id===o){a=p;break}}else u=t,a=t[t.length-1];let s=sa(l||".",No(u).map(p=>p.pathnameBase),rr(e.pathname,n)||e.pathname,i==="path");return l==null&&(s.search=e.search,s.hash=e.hash),(l==null||l===""||l===".")&&a&&a.route.index&&!fa(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:xt([n,s.pathname])),Sn(s)}function As(e,t,n,r){if(!r||!Gm(r))return{path:n};if(r.formMethod&&!nv(r.formMethod))return{path:n,error:Qe(405,{method:r.formMethod})};let l=()=>({path:n,error:Qe(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),u=xd(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!nt(i))return l();let v=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((E,h)=>{let[g,k]=h;return""+E+g+"="+k+` +`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:v}}}else if(r.formEncType==="application/json"){if(!nt(i))return l();try{let v=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:u,formEncType:r.formEncType,formData:void 0,json:v,text:void 0}}}catch{return l()}}}V(typeof FormData=="function","FormData is not available in this environment");let a,s;if(r.formData)a=du(r.formData),s=r.formData;else if(r.body instanceof FormData)a=du(r.body),s=r.body;else if(r.body instanceof URLSearchParams)a=r.body,s=Ws(a);else if(r.body==null)a=new URLSearchParams,s=new FormData;else try{a=new URLSearchParams(r.body),s=Ws(a)}catch{return l()}let p={formMethod:i,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(nt(p.formMethod))return{path:n,submission:p};let y=Tt(n);return t&&y.search&&fa(y.search)&&a.append("index",""),y.search="?"+a,{path:Sn(y),submission:p}}function Jm(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Bs(e,t,n,r,l,o,i,u,a,s,p,y,v,E){let h=E?Object.values(E)[0]:v?Object.values(v)[0]:void 0,g=e.createURL(t.location),k=e.createURL(l),d=E?Object.keys(E)[0]:void 0,m=Jm(n,d).filter((x,P)=>{if(x.route.lazy)return!0;if(x.route.loader==null)return!1;if(Zm(t.loaderData,t.matches[P],x)||i.some(Q=>Q===x.route.id))return!0;let _=t.matches[P],T=x;return $s(x,oe({currentUrl:g,currentParams:_.params,nextUrl:k,nextParams:T.params},r,{actionResult:h,defaultShouldRevalidate:o||g.pathname+g.search===k.pathname+k.search||g.search!==k.search||kd(_,T)}))}),c=[];return a.forEach((x,P)=>{if(!n.some(we=>we.route.id===x.routeId))return;let _=In(p,x.path,y);if(!_){c.push({key:P,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(P),Q=pu(_,x.path),U=!1;s.has(P)?U=!1:u.includes(P)?U=!0:T&&T.state!=="idle"&&T.data===void 0?U=o:U=$s(Q,oe({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:k,nextParams:n[n.length-1].params},r,{actionResult:h,defaultShouldRevalidate:o})),U&&c.push({key:P,routeId:x.routeId,path:x.path,matches:_,match:Q,controller:new AbortController})}),[m,c]}function Zm(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function kd(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function $s(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Vs(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];V(l,"No route found in manifest");let o={};for(let i in r){let a=l[i]!==void 0&&i!=="hasErrorBoundary";wn(!a,'Route "'+l.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!a&&!wm.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,oe({},t(l),{lazy:void 0}))}async function wr(e,t,n,r,l,o,i,u){u===void 0&&(u={});let a,s,p,y=h=>{let g,k=new Promise((d,f)=>g=f);return p=()=>g(),t.signal.addEventListener("abort",p),Promise.race([h({request:t,params:n.params,context:u.requestContext}),k])};try{let h=n.route[e];if(n.route.lazy)if(h){let g,k=await Promise.all([y(h).catch(d=>{g=d}),Vs(n.route,o,l)]);if(g)throw g;s=k[0]}else if(await Vs(n.route,o,l),h=n.route[e],h)s=await y(h);else if(e==="action"){let g=new URL(t.url),k=g.pathname+g.search;throw Qe(405,{method:t.method,pathname:k,routeId:n.route.id})}else return{type:pe.data,data:void 0};else if(h)s=await y(h);else{let g=new URL(t.url),k=g.pathname+g.search;throw Qe(404,{pathname:k})}V(s!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(h){a=pe.error,s=h}finally{p&&t.signal.removeEventListener("abort",p)}if(tv(s)){let h=s.status;if(Hm.has(h)){let d=s.headers.get("Location");if(V(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!Sd.test(d))d=fu(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,d);else if(!u.isStaticRequest){let f=new URL(t.url),m=d.startsWith("//")?new URL(f.protocol+d):new URL(d),c=rr(m.pathname,i)!=null;m.origin===f.origin&&c&&(d=m.pathname+m.search+m.hash)}if(u.isStaticRequest)throw s.headers.set("Location",d),s;return{type:pe.redirect,status:h,location:d,revalidate:s.headers.get("X-Remix-Revalidate")!==null,reloadDocument:s.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:a===pe.error?pe.error:pe.data,response:s};let g,k=s.headers.get("Content-Type");return k&&/\bapplication\/json\b/.test(k)?g=await s.json():g=await s.text(),a===pe.error?{type:a,error:new ca(h,s.statusText,g),headers:s.headers}:{type:pe.data,data:g,statusCode:s.status,headers:s.headers}}if(a===pe.error)return{type:a,error:s};if(ev(s)){var v,E;return{type:pe.deferred,deferredData:s,statusCode:(v=s.init)==null?void 0:v.status,headers:((E=s.init)==null?void 0:E.headers)&&new Headers(s.init.headers)}}return{type:pe.data,data:s}}function Sr(e,t,n,r){let l=e.createURL(xd(t)).toString(),o={signal:n};if(r&&nt(r.formMethod)){let{formMethod:i,formEncType:u}=r;o.method=i.toUpperCase(),u==="application/json"?(o.headers=new Headers({"Content-Type":u}),o.body=JSON.stringify(r.json)):u==="text/plain"?o.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?o.body=du(r.formData):o.body=r.formData}return new Request(l,o)}function du(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ws(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function qm(e,t,n,r,l){let o={},i=null,u,a=!1,s={};return n.forEach((p,y)=>{let v=t[y].route.id;if(V(!Kn(p),"Cannot handle redirect results in processLoaderData"),Or(p)){let E=An(e,v),h=p.error;r&&(h=Object.values(r)[0],r=void 0),i=i||{},i[E.route.id]==null&&(i[E.route.id]=h),o[v]=void 0,a||(a=!0,u=yd(p.error)?p.error.status:500),p.headers&&(s[v]=p.headers)}else fn(p)?(l.set(v,p.deferredData),o[v]=p.deferredData.data):o[v]=p.data,p.statusCode!=null&&p.statusCode!==200&&!a&&(u=p.statusCode),p.headers&&(s[v]=p.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:u||200,loaderHeaders:s}}function Hs(e,t,n,r,l,o,i,u){let{loaderData:a,errors:s}=qm(t,n,r,l,u);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Ks(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Qe(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?u="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(i="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",u='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?u="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(u='Invalid request method "'+l.toUpperCase()+'"')),new ca(e||500,i,new Error(u),!0)}function Ys(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Kn(n))return{result:n,idx:t}}}function xd(e){let t=typeof e=="string"?Tt(e):e;return Sn(oe({},t,{hash:""}))}function bm(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function fn(e){return e.type===pe.deferred}function Or(e){return e.type===pe.error}function Kn(e){return(e&&e.type)===pe.redirect}function ev(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function tv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function nv(e){return Wm.has(e.toLowerCase())}function nt(e){return $m.has(e.toLowerCase())}async function Xs(e,t,n,r,l,o){for(let i=0;iy.route.id===a.route.id),p=s!=null&&!kd(s,a)&&(o&&o[a.route.id])!==void 0;if(fn(u)&&(l||p)){let y=r[i];V(y,"Expected an AbortSignal for revalidating fetcher deferred result"),await Cd(u,y,l).then(v=>{v&&(n[i]=v||n[i])})}}}async function Cd(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:pe.data,data:e.deferredData.unwrappedData}}catch(l){return{type:pe.error,error:l}}return{type:pe.data,data:e.deferredData.data}}}function fa(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function pu(e,t){let n=typeof t=="string"?Tt(t).search:t.search;if(e[e.length-1].route.index&&fa(n||""))return e[e.length-1];let r=No(e);return r[r.length-1]}function Gs(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:o,json:i}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function vi(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function rv(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Er(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function lv(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Pn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ov(e,t){try{let n=e.sessionStorage.getItem(Ed);if(n){let r=JSON.parse(n);for(let[l,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(l,new Set(o||[]))}}catch{}}function iv(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Ed,JSON.stringify(n))}catch(r){wn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.17.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),i=R.useRef(!1);return _d(()=>{i.current=!0}),R.useCallback(function(a,s){if(s===void 0&&(s={}),!i.current)return;if(typeof a=="number"){n.go(a);return}let p=sa(a,JSON.parse(o),l,s.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:xt([t,p.pathname])),(s.replace?n.replace:n.push)(p,s.state,s)},[t,n,o,l,e])}function sv(){let{matches:e}=R.useContext(en),t=e[e.length-1];return t?t.params:{}}function Ld(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=R.useContext(en),{pathname:l}=ul(),o=JSON.stringify(No(r).map(i=>i.pathnameBase));return R.useMemo(()=>sa(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function cv(e,t,n){il()||V(!1);let{navigator:r}=R.useContext(lr),{matches:l}=R.useContext(en),o=l[l.length-1],i=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let a=ul(),s;if(t){var p;let g=typeof t=="string"?Tt(t):t;u==="/"||(p=g.pathname)!=null&&p.startsWith(u)||V(!1),s=g}else s=a;let y=s.pathname||"/",v=u==="/"?y:y.slice(u.length)||"/",E=In(e,{pathname:v}),h=mv(E&&E.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:xt([u,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?u:xt([u,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),l,n);return t&&h?R.createElement(Mo.Provider,{value:{location:fo({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:de.Pop}},h):h}function fv(){let e=Sv(),t=yd(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:l},n):null,o)}const dv=R.createElement(fv,null);class pv extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?R.createElement(en.Provider,{value:this.props.routeContext},R.createElement(Rd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hv(e){let{routeContext:t,match:n,children:r}=e,l=R.useContext(Do);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(en.Provider,{value:t},r)}function mv(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let o=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let u=o.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));u>=0||V(!1),o=o.slice(0,Math.min(o.length,u+1))}return o.reduceRight((u,a,s)=>{let p=a.route.id?i==null?void 0:i[a.route.id]:null,y=null;n&&(y=a.route.errorElement||dv);let v=t.concat(o.slice(0,s+1)),E=()=>{let h;return p?h=y:a.route.Component?h=R.createElement(a.route.Component,null):a.route.element?h=a.route.element:h=u,R.createElement(hv,{match:a,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:h})};return n&&(a.route.ErrorBoundary||a.route.errorElement||s===0)?R.createElement(pv,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:E(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):E()},null)}var Td=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Td||{}),En=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(En||{});function vv(e){let t=R.useContext(Do);return t||V(!1),t}function pa(e){let t=R.useContext(Pd);return t||V(!1),t}function gv(e){let t=R.useContext(en);return t||V(!1),t}function ha(e){let t=gv(),n=t.matches[t.matches.length-1];return n.route.id||V(!1),n.route.id}function yv(){return pa(En.UseNavigation).navigation}function wv(){let e=pa(En.UseLoaderData),t=ha(En.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Sv(){var e;let t=R.useContext(Rd),n=pa(En.UseRouteError),r=ha(En.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Ev(){let{router:e}=vv(Td.UseNavigateStable),t=ha(En.UseNavigateStable),n=R.useRef(!1);return _d(()=>{n.current=!0}),R.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,fo({fromRouteId:t},o)))},[e,t])}function Nd(e){let{basename:t="/",children:n=null,location:r,navigationType:l=de.Pop,navigator:o,static:i=!1}=e;il()&&V(!1);let u=t.replace(/^\/*/,"/"),a=R.useMemo(()=>({basename:u,navigator:o,static:i}),[u,o,i]);typeof r=="string"&&(r=Tt(r));let{pathname:s="/",search:p="",hash:y="",state:v=null,key:E="default"}=r,h=R.useMemo(()=>{let g=rr(s,u);return g==null?null:{location:{pathname:g,search:p,hash:y,state:v,key:E},navigationType:l}},[u,s,p,y,v,E,l]);return h==null?null:R.createElement(lr.Provider,{value:a},R.createElement(Mo.Provider,{children:n,value:h}))}new Promise(()=>{});function kv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:R.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.17.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Cv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pv(e,t){return e.button===0&&(!t||t==="_self")&&!Cv(e)}function hu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function Rv(e,t){let n=hu(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(o=>{n.append(l,o)})}),n}const _v=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function Lv(e,t){return Xm({basename:t==null?void 0:t.basename,future:el({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:md({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Tv(),routes:e,mapRouteProperties:kv,window:t==null?void 0:t.window}).initialize()}function Tv(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=el({},t,{errors:Nv(t.errors)})),t}function Nv(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new ca(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let o=window[l.__subType];if(typeof o=="function")try{let i=new o(l.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let o=new Error(l.message);o.stack="",n[r]=o}}else n[r]=l;return n}const Dv=R.createContext({isTransitioning:!1}),Mv="startTransition",po=ip[Mv];function zv(e){po?po(e):e()}class jv{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Ov(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=R.useState(n.state),[i,u]=R.useState(),[a,s]=R.useState({isTransitioning:!1}),[p,y]=R.useState(),[v,E]=R.useState(),[h,g]=R.useState(),{v7_startTransition:k}=r||{},d=R.useCallback(P=>{k?zv(P):P()},[k]),f=R.useCallback((P,_)=>{let{unstable_viewTransitionOpts:T}=_;!T||n.window==null||typeof n.window.document.startViewTransition!="function"?d(()=>o(P)):v&&p?(p.resolve(),v.skipTransition(),g({state:P,currentLocation:T.currentLocation,nextLocation:T.nextLocation})):(u(P),s({isTransitioning:!0,currentLocation:T.currentLocation,nextLocation:T.nextLocation}))},[d,v,p,n.window]);R.useLayoutEffect(()=>n.subscribe(f),[n,f]),R.useEffect(()=>{a.isTransitioning&&y(new jv)},[a.isTransitioning]),R.useEffect(()=>{if(p&&i&&n.window){let P=i,_=p.promise,T=n.window.document.startViewTransition(async()=>{d(()=>o(P)),await _});T.finished.finally(()=>{y(void 0),E(void 0),u(void 0),s({isTransitioning:!1})}),E(T)}},[d,i,p,n.window]),R.useEffect(()=>{p&&i&&l.location.key===i.location.key&&p.resolve()},[p,v,l.location,i]),R.useEffect(()=>{!a.isTransitioning&&h&&(u(h.state),s({isTransitioning:!0,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),g(void 0))},[a.isTransitioning,h]);let m=R.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,_,T)=>n.navigate(P,{state:_,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(P,_,T)=>n.navigate(P,{replace:!0,state:_,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),c=n.basename||"/",x=R.useMemo(()=>({router:n,navigator:m,static:!1,basename:c}),[n,m,c]);return R.createElement(R.Fragment,null,R.createElement(Do.Provider,{value:x},R.createElement(Pd.Provider,{value:l},R.createElement(Dv.Provider,{value:a},R.createElement(Nd,{basename:c,location:l.location,navigationType:l.historyAction,navigator:m},l.initialized?R.createElement(Fv,{routes:n.routes,state:l}):t)))),null)}function Fv(e){let{routes:t,state:n}=e;return cv(t,void 0,n)}function Uv(e){let{basename:t,children:n,future:r,window:l}=e,o=R.useRef();o.current==null&&(o.current=md({window:l,v5Compat:!0}));let i=o.current,[u,a]=R.useState({action:i.action,location:i.location}),{v7_startTransition:s}=r||{},p=R.useCallback(y=>{s&&po?po(()=>a(y)):a(y)},[a,s]);return R.useLayoutEffect(()=>i.listen(p),[i,p]),R.createElement(Nd,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i})}const Iv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Av=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ll=R.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:a,to:s,preventScrollReset:p,unstable_viewTransition:y}=t,v=xv(t,_v),{basename:E}=R.useContext(lr),h,g=!1;if(typeof s=="string"&&Av.test(s)&&(h=s,Iv))try{let m=new URL(window.location.href),c=s.startsWith("//")?new URL(m.protocol+s):new URL(s),x=rr(c.pathname,E);c.origin===m.origin&&x!=null?s=x+c.search+c.hash:g=!0}catch{}let k=uv(s,{relative:l}),d=Bv(s,{replace:i,state:u,target:a,preventScrollReset:p,relative:l,unstable_viewTransition:y});function f(m){r&&r(m),m.defaultPrevented||d(m)}return R.createElement("a",el({},v,{href:h||k,onClick:g||o?r:f,ref:n,target:a}))});var Js;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Js||(Js={}));var Zs;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Zs||(Zs={}));function Bv(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,a=da(),s=ul(),p=Ld(e,{relative:i});return R.useCallback(y=>{if(Pv(y,n)){y.preventDefault();let v=r!==void 0?r:Sn(s)===Sn(p);a(e,{replace:v,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[s,a,p,r,l,n,e,o,i,u])}function $v(e){let t=R.useRef(hu(e)),n=R.useRef(!1),r=ul(),l=R.useMemo(()=>Rv(r.search,n.current?null:t.current),[r.search]),o=da(),i=R.useCallback((u,a)=>{const s=hu(typeof u=="function"?u(l):u);n.current=!0,o("?"+s,a)},[o,l]);return[l,i]}const ma=R.createContext();var Dd={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(e,t){(function(n,r){e.exports=r()})(Hd,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(h){var g,k;for(g in h)k=h[g],k!==void 0&&h.hasOwnProperty(g)&&(r[g]=k);return this},n.status=null,n.set=function(h){var g=n.isStarted();h=l(h,r.minimum,1),n.status=h===1?null:h;var k=n.render(!g),d=k.querySelector(r.barSelector),f=r.speed,m=r.easing;return k.offsetWidth,u(function(c){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),a(d,i(h,f,m)),h===1?(a(k,{transition:"none",opacity:1}),k.offsetWidth,setTimeout(function(){a(k,{transition:"all "+f+"ms linear",opacity:0}),setTimeout(function(){n.remove(),c()},f)},f)):setTimeout(c,f)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var h=function(){setTimeout(function(){n.status&&(n.trickle(),h())},r.trickleSpeed)};return r.trickle&&h(),this},n.done=function(h){return!h&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(h){var g=n.status;return g?(typeof h!="number"&&(h=(1-g)*l(Math.random()*g,.1,.95)),g=l(g+h,0,.994),n.set(g)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var h=0,g=0;n.promise=function(k){return!k||k.state()==="resolved"?this:(g===0&&n.start(),h++,g++,k.always(function(){g--,g===0?(h=0,n.done()):n.set((h-g)/h)}),this)}}(),n.render=function(h){if(n.isRendered())return document.getElementById("nprogress");p(document.documentElement,"nprogress-busy");var g=document.createElement("div");g.id="nprogress",g.innerHTML=r.template;var k=g.querySelector(r.barSelector),d=h?"-100":o(n.status||0),f=document.querySelector(r.parent),m;return a(k,{transition:"all 0 linear",transform:"translate3d("+d+"%,0,0)"}),r.showSpinner||(m=g.querySelector(r.spinnerSelector),m&&E(m)),f!=document.body&&p(f,"nprogress-custom-parent"),f.appendChild(g),g},n.remove=function(){y(document.documentElement,"nprogress-busy"),y(document.querySelector(r.parent),"nprogress-custom-parent");var h=document.getElementById("nprogress");h&&E(h)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var h=document.body.style,g="WebkitTransform"in h?"Webkit":"MozTransform"in h?"Moz":"msTransform"in h?"ms":"OTransform"in h?"O":"";return g+"Perspective"in h?"translate3d":g+"Transform"in h?"translate":"margin"};function l(h,g,k){return hk?k:h}function o(h){return(-1+h)*100}function i(h,g,k){var d;return r.positionUsing==="translate3d"?d={transform:"translate3d("+o(h)+"%,0,0)"}:r.positionUsing==="translate"?d={transform:"translate("+o(h)+"%,0)"}:d={"margin-left":o(h)+"%"},d.transition="all "+g+"ms "+k,d}var u=function(){var h=[];function g(){var k=h.shift();k&&k(g)}return function(k){h.push(k),h.length==1&&g()}}(),a=function(){var h=["Webkit","O","Moz","ms"],g={};function k(c){return c.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(x,P){return P.toUpperCase()})}function d(c){var x=document.body.style;if(c in x)return c;for(var P=h.length,_=c.charAt(0).toUpperCase()+c.slice(1),T;P--;)if(T=h[P]+_,T in x)return T;return c}function f(c){return c=k(c),g[c]||(g[c]=d(c))}function m(c,x,P){x=f(x),c.style[x]=P}return function(c,x){var P=arguments,_,T;if(P.length==2)for(_ in x)T=x[_],T!==void 0&&x.hasOwnProperty(_)&&m(c,_,T);else m(c,P[1],P[2])}}();function s(h,g){var k=typeof h=="string"?h:v(h);return k.indexOf(" "+g+" ")>=0}function p(h,g){var k=v(h),d=k+g;s(k,g)||(h.className=d.substring(1))}function y(h,g){var k=v(h),d;s(h,g)&&(d=k.replace(" "+g+" "," "),h.className=d.substring(1,d.length-1))}function v(h){return(" "+(h.className||"")+" ").replace(/\s+/gi," ")}function E(h){h&&h.parentNode&&h.parentNode.removeChild(h)}return n})})(Dd);var Vv=Dd.exports;const qs=bs(Vv);const zo=({title:e="Default Title",children:t})=>{const n=R.useContext(ma),r=yv();return R.useEffect(()=>{r.state==="loading"?qs.start():qs.done()}),document.title=e,D.jsxs("div",{children:["Global State: ",n.data.data.user.name," ",n.data.data.user.email,D.jsx("h2",{children:" Links:"})," ",D.jsx("br",{}),D.jsx(Ll,{to:"/test",children:"Loader APi Example"})," ",D.jsx("br",{}),D.jsx(Ll,{to:"/redirect",children:"Redirect"})," ",D.jsx("br",{}),D.jsx(Ll,{to:"/update/hello-world",children:"Parameter"})," ",D.jsx("br",{}),D.jsx(Ll,{to:"/datatable",replace:!0,children:"Data Table"})," ",D.jsx("br",{}),D.jsx("br",{}),t]})};function Wv(){var r,l,o;const e=R.useContext(ma),{id:t}=sv();function n(){e.setData({...e.data,isLoading:!0,data:{...e.data.data,user:{...e.data.data.user,name:"updated name"}}})}return D.jsx(D.Fragment,{children:D.jsxs(zo,{children:["Dynamic param: ",t," ",D.jsx("br",{}),(o=(l=(r=e==null?void 0:e.data)==null?void 0:r.data)==null?void 0:l.user)==null?void 0:o.name,D.jsx("button",{onClick:n,children:"Update Global State"})]})})}function Hv(){const e=wv();return D.jsx(D.Fragment,{children:D.jsxs(zo,{children:["Loader data:",e.map((t,n)=>D.jsx("li",{children:t.name},n))]})})}function Qv(){const e=da();return R.useEffect(()=>{e("/")}),D.jsx(D.Fragment,{children:"Redirecting..."})}const Kv=()=>{const[e,t]=R.useState([{name:"sharif",email:"sharif@default.com",age:22},{name:"arif",email:"arif@default.com",age:23},{name:"test",email:"test@default.com",age:21}]),[n,r]=R.useState(),[l,o]=R.useState(),[i,u]=$v();R.useEffect(()=>{const s=i.get("search");if(s){const p=e.filter(y=>y.name.includes(s)||y.email.includes(s)||y.age==s);p.length>0&&r(p)}else u(""),r(e)},[i,e]);function a(s){s.preventDefault(),t(p=>[l,...p])}return D.jsx(D.Fragment,{children:D.jsx(zo,{title:"DataTable Page",children:D.jsxs("center",{children:[D.jsx("h2",{children:"Live Data Form."}),D.jsx("hr",{}),D.jsx("h3",{children:"Add Data"}),D.jsxs("form",{children:[D.jsx("input",{type:"text",placeholder:"Name",onChange:s=>o({...l,name:s.target.value})})," ",D.jsx("br",{}),D.jsx("input",{type:"email",placeholder:"Email",onChange:s=>o({...l,email:s.target.value})})," ",D.jsx("br",{}),D.jsx("input",{type:"number",placeholder:"Age",onChange:s=>o({...l,age:s.target.value})})," ",D.jsx("br",{}),D.jsx("input",{type:"submit",value:"Add",onClick:a})]}),D.jsx("br",{}),D.jsx("hr",{}),D.jsx("h3",{children:"Search Data"}),D.jsx("input",{type:"search",placeholder:"Search...",onChange:s=>u(`search=${s.target.value}`)}),D.jsxs("table",{border:"1",children:[D.jsx("thead",{children:D.jsxs("tr",{children:[D.jsx("th",{children:"Name"}),D.jsx("th",{children:"Email"}),D.jsx("th",{children:"Age"})]})}),D.jsx("tbody",{children:n&&n.map((s,p)=>D.jsxs("tr",{children:[D.jsx("td",{children:s.name}),D.jsx("td",{children:s.email}),D.jsx("td",{children:s.age})]},p))})]})]})})})};function Yv(){return D.jsx(D.Fragment,{children:D.jsx(zo,{title:"Home Page"})})}const Xv=Lv([{path:"/",element:D.jsx(Yv,{})},{path:"/test",element:D.jsx(Hv,{}),loader:()=>(async()=>await(await fetch("https://jsonplaceholder.typicode.com/users")).json())()},{path:"/update/:id?",element:D.jsx(Wv,{})},{path:"/redirect",element:D.jsx(Qv,{})},{path:"/datatable",element:D.jsx(Kv,{})}]);function Gv(){return D.jsx(Uv,{basename:"/reactExample",children:D.jsx(Xv,{})})}const Jv=()=>{const[e,t]=R.useState({isLoading:!1,data:{user:{name:"sharif",email:"developersharif@yahoo.com"}}});return D.jsx(sc.StrictMode,{children:D.jsx(ma.Provider,{value:{data:e,setData:t},children:D.jsx(Ov,{router:Gv})})})};gi.createRoot(document.getElementById("root")).render(D.jsx(Jv,{})); diff --git a/index.html b/index.html new file mode 100644 index 0000000..3b66ca1 --- /dev/null +++ b/index.html @@ -0,0 +1,15 @@ + + + + + + + Vite + React + + + + +
+ + + diff --git a/vite.svg b/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file