54 lines
210 KiB
JavaScript
54 lines
210 KiB
JavaScript
|
|
function cp(i,u){for(var a=0;a<u.length;a++){const c=u[a];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in i)){const d=Object.getOwnPropertyDescriptor(c,f);d&&Object.defineProperty(i,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var gm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oc(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Bu={exports:{}},ge={};/**
|
||
|
|
* @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 zf;function dp(){if(zf)return ge;zf=1;var i=Symbol.for("react.element"),u=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.iterator;function T(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,H={};function O(E,F,ae){this.props=E,this.context=F,this.refs=H,this.updater=ae||N}O.prototype.isReactComponent={},O.prototype.setState=function(E,F){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,F,"setState")},O.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function j(){}j.prototype=O.prototype;function V(E,F,ae){this.props=E,this.context=F,this.refs=H,this.updater=ae||N}var b=V.prototype=new j;b.constructor=V,M(b,O.prototype),b.isPureReactComponent=!0;var le=Array.isArray,se=Object.prototype.hasOwnProperty,C={current:null},fe={key:!0,ref:!0,__self:!0,__source:!0};function me(E,F,ae){var pe,we={},ye=null,Ne=null;if(F!=null)for(pe in F.ref!==void 0&&(Ne=F.ref),F.key!==void 0&&(ye=""+F.key),F)se.call(F,pe)&&!fe.hasOwnProperty(pe)&&(we[pe]=F[pe]);var Pe=arguments.length-2;if(Pe===1)we.children=ae;else if(1<Pe){for(var ze=Array(Pe),Re=0;Re<Pe;Re++)ze[Re]=arguments[Re+2];we.children=ze}if(E&&E.defaultProps)for(pe in Pe=E.defaultProps,Pe)we[pe]===void 0&&(we[pe]=Pe[pe]);return{$$typeof:i,type:E,key:ye,ref:Ne,props:we,_owner:C.current}}function ce(E,F){return{$$typeof:i,type:E.type,key:F,ref:E.ref,props:E.props,_owner:E._owner}}function Ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Be(E){var F={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(ae){return F[ae]})}var ut=/\/+/g;function be(E,F){return typeof E=="object"&&E!==null&&E.key!=null?Be(""+E.key):F.toString(36)}function Je(E,F,ae,pe,we){var ye=typeof E;(ye==="undefined"||ye==="boolean")&&(E=null);var Ne=!1;if(E===null)Ne=!0;else switch(ye){case"string":case"number":Ne=!0;break;case"object":switch(E.$$typeof){case i:case u:Ne=!0}}if(Ne)return Ne=E,we=we(Ne),E=pe===""?"."+be(Ne,0):pe,le(we)?(ae="",E!=null&&(ae=E.replace(ut,"$&/")+"/"),Je(we,F,ae,"",function(Re){return Re})):we!=null&&(Ce(we)&&(we=ce(we,ae+(!we.key||Ne&&Ne.key===we.key?"":(""+we.key).replace(ut,"$&/")+"/")+E)),F.push(we)),1;if(Ne=0,pe=pe===""?".":pe+":",le(E))for(var Pe=0;Pe<E.length;Pe++){ye=E[Pe];var ze=pe+be(ye,Pe);Ne+=Je(ye,F,ae,ze,we)}else if(ze=T(E),typeof ze=="function")for(E=ze.call(E),Pe=0;!(ye=E.next()).done;)ye=ye.value,ze=pe+be(ye,Pe++),Ne+=Je(ye,F,ae,ze,we);else if(ye==="object")throw F=String(E),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return Ne}function dt(E,F,ae){if(E==null)return E;var pe=[],we=0;return Je(E,pe,"","",function(ye){return F.call(ae,ye,we++)}),pe}function Ee(E){if(E._status===-1){var F=E._result;F=F(),F.then(function(ae){(E._status===0||E._status===-1)&&(E._status=1,E._result=ae)},function(ae){(E._status===0||E._status===-1)&&(E._status=2,E._result=ae)}),E._status===-1&&(E._status=0,E._result=F)}if(E._status===1)return E._result.default;throw E._result}var Me={current:null},W={transition:null},re={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:W,ReactCurrentOwner:C};function K(){throw Error("act(...) is not supported in production builds of React.")}return ge.Children={map:dt,forEach:function(E,F,ae){dt(E,function(){F.apply(this,arguments)},ae)},count:function(E){var F=0;return dt(E,function(){F++}),F},toArray:func
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Of;function hp(){return Of||(Of=1,function(i){function u(W,re){var K=W.length;W.push(re);e:for(;0<K;){var E=K-1>>>1,F=W[E];if(0<f(F,re))W[E]=re,W[K]=F,K=E;else break e}}function a(W){return W.length===0?null:W[0]}function c(W){if(W.length===0)return null;var re=W[0],K=W.pop();if(K!==re){W[0]=K;e:for(var E=0,F=W.length,ae=F>>>1;E<ae;){var pe=2*(E+1)-1,we=W[pe],ye=pe+1,Ne=W[ye];if(0>f(we,K))ye<F&&0>f(Ne,we)?(W[E]=Ne,W[ye]=K,E=ye):(W[E]=we,W[pe]=K,E=pe);else if(ye<F&&0>f(Ne,K))W[E]=Ne,W[ye]=K,E=ye;else break e}}return re}function f(W,re){var K=W.sortIndex-re.sortIndex;return K!==0?K:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var y=Date,v=y.now();i.unstable_now=function(){return y.now()-v}}var g=[],S=[],D=1,z=null,T=3,N=!1,M=!1,H=!1,O=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(W){for(var re=a(S);re!==null;){if(re.callback===null)c(S);else if(re.startTime<=W)c(S),re.sortIndex=re.expirationTime,u(g,re);else break;re=a(S)}}function le(W){if(H=!1,b(W),!M)if(a(g)!==null)M=!0,Ee(se);else{var re=a(S);re!==null&&Me(le,re.startTime-W)}}function se(W,re){M=!1,H&&(H=!1,j(me),me=-1),N=!0;var K=T;try{for(b(re),z=a(g);z!==null&&(!(z.expirationTime>re)||W&&!Be());){var E=z.callback;if(typeof E=="function"){z.callback=null,T=z.priorityLevel;var F=E(z.expirationTime<=re);re=i.unstable_now(),typeof F=="function"?z.callback=F:z===a(g)&&c(g),b(re)}else c(g);z=a(g)}if(z!==null)var ae=!0;else{var pe=a(S);pe!==null&&Me(le,pe.startTime-re),ae=!1}return ae}finally{z=null,T=K,N=!1}}var C=!1,fe=null,me=-1,ce=5,Ce=-1;function Be(){return!(i.unstable_now()-Ce<ce)}function ut(){if(fe!==null){var W=i.unstable_now();Ce=W;var re=!0;try{re=fe(!0,W)}finally{re?be():(C=!1,fe=null)}}else C=!1}var be;if(typeof V=="function")be=function(){V(ut)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,dt=Je.port2;Je.port1.onmessage=ut,be=function(){dt.postMessage(null)}}else be=function(){O(ut,0)};function Ee(W){fe=W,C||(C=!0,be())}function Me(W,re){me=O(function(){W(i.unstable_now())},re)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(W){W.callback=null},i.unstable_continueExecution=function(){M||N||(M=!0,Ee(se))},i.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<W?Math.floor(1e3/W):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_getFirstCallbackNode=function(){return a(g)},i.unstable_next=function(W){switch(T){case 1:case 2:case 3:var re=3;break;default:re=T}var K=T;T=re;try{return W()}finally{T=K}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var K=T;T=W;try{return re()}finally{T=K}},i.unstable_scheduleCallback=function(W,re,K){var E=i.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?E+K:E):K=E,W){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=K+F,W={id:D++,callback:re,priorityLevel:W,startTime:K,expirationTime:F,sortIndex:-1},K>E?(W.sortIndex=K,u(S,W),a(g)===null&&W===a(S)&&(H?(j(me),me=-1):H=!0,Me(le,K-E))):(W.sortIndex=F,u(g,W),M||N||(M=!0,Ee(se))),W},i.unstable_shouldYield=Be,i.unstable_wrapCallback=function(W){var re=T;return function(){var K=T;T=re;try{return W.apply(this,arguments)}finally{T=K}}}}(Qu)),Qu}var If;function mp(){return If||(If=1,Wu.exports=hp()),Wu.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 Uf;function yp(){if(Uf)return Et;Uf=1;var i=uc(),u=mp();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=new Set,f={};function d(e,t){y(e,t),y(e+"Capture",t)}function y(e,t){for(f[e]=t,e=0;e<t.length;e++)c.add(t[e])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,S=/^[: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]*$/,D={},z={};function T(e){return g.call(z,e)?!0:g.call(D,e)?!1:S.test(e)?z[e]=!0:(D[e]=!0,!1)}function N(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 M(e,t,n,r){if(t===null||typeof t>"u"||N(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 H(e,t,n,r,l,o,s){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=s}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){O[e]=new H(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];O[t]=new H(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){O[e]=new H(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){O[e]=new H(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){O[e]=new H(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){O[e]=new H(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){O[e]=new H(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){O[e]=new H(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){O[e]=new H(e,5,!1,e.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function V(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
|
||
|
|
`+E+e}var ae=!1;function pe(e,t){if(!e||ae)return"";ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(R){var r=R}Reflect.construct(e,[],t)}else{try{t.call()}catch(R){r=R}e.call(t.prototype)}else{try{throw Error()}catch(R){r=R}e()}}catch(R){if(R&&r&&typeof R.stack=="string"){for(var l=R.stack.split(`
|
||
|
|
`),o=r.stack.split(`
|
||
|
|
`),s=l.length-1,p=o.length-1;1<=s&&0<=p&&l[s]!==o[p];)p--;for(;1<=s&&0<=p;s--,p--)if(l[s]!==o[p]){if(s!==1||p!==1)do if(s--,p--,0>p||l[s]!==o[p]){var h=`
|
||
|
|
`+l[s].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=s&&0<=p);break}}}finally{ae=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function we(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 1:return e=pe(e.type,!0),e;default:return""}}function ye(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 fe:return"Fragment";case C:return"Portal";case ce:return"Profiler";case me:return"StrictMode";case be:return"Suspense";case Je:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Be:return(e.displayName||"Context")+".Consumer";case Ce:return(e._context.displayName||"Context")+".Provider";case ut:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dt:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case Ee:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function Ne(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 ye(t);case 8:return t===me?"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 Pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ze(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Re(e){var t=ze(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jt(e){e._valueTracker||(e._valueTracker=Re(e))}function Wr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ze(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pr(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 $t(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pe(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 Bl(e,t){t=t.checked,t!=null&&b(e,"checked",t,!1)}function hr(e,t){Bl(e,t);var n=Pe(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")?Qr(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qr(e,t.type,Pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vl(e,t,n){if(t.hasOwnProperty("value")||t.
|
||
|
|
`).replace(Cd,"")}function fi(e,t,n){if(t=Za(t),Za(e)!==t&&n)throw Error(a(425))}function ci(){}var zo=null,Fo=null;function Oo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Io=typeof setTimeout=="function"?setTimeout:void 0,Pd=typeof clearTimeout=="function"?clearTimeout:void 0,qa=typeof Promise=="function"?Promise:void 0,Rd=typeof queueMicrotask=="function"?queueMicrotask:typeof qa<"u"?function(e){return qa.resolve(null).then(e).catch(Ld)}:Io;function Ld(e){setTimeout(function(){throw e})}function Uo(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),ll(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);ll(t)}function Ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ba(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Lr=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Lr,ml="__reactProps$"+Lr,on="__reactContainer$"+Lr,jo="__reactEvents$"+Lr,_d="__reactListeners$"+Lr,Td="__reactHandles$"+Lr;function Zn(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[on]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ba(e);e!==null;){if(n=e[Zt])return n;e=ba(e)}return t}e=n,n=e.parentNode}return null}function yl(e){return e=e[Zt]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _r(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function di(e){return e[ml]||null}var $o=[],Tr=-1;function _n(e){return{current:e}}function Ae(e){0>Tr||(e.current=$o[Tr],$o[Tr]=null,Tr--)}function Ie(e,t){Tr++,$o[Tr]=e.current,e.current=t}var Tn={},at=_n(Tn),yt=_n(!1),qn=Tn;function Nr(e,t){var n=e.type.contextTypes;if(!n)return Tn;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 vt(e){return e=e.childContextTypes,e!=null}function pi(){Ae(yt),Ae(at)}function es(e,t,n){if(at.current!==Tn)throw Error(a(168));Ie(at,t),Ie(yt,n)}function ts(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(a(108,Ne(e)||"Unknown",l));return K({},n,r)}function hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tn,qn=at.current,Ie(at,e),Ie(yt,yt.current),!0}function ns(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ts(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,Ae(yt),Ae(at),Ie(at,e)):Ae(yt),Ie(yt,n)}var un=null,mi=!1,Ao=!1;function rs(e){un===null?un=[e]:un.push(e)}function Nd(e){mi=!0,rs(e)}function Nn(){if(!Ao&&un!==null){Ao=!0;var e=0,t=Te;try{var n=un;for(Te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}un=null,mi=!1}catch(l){throw un!==null&&(un=un.slice(e+1)),Nt(wn,Nn),l}finally{Te=t,Ao=!1}}return null}var Dr=[],Mr=0,yi=null,vi=0,Dt=[],Mt=0,bn=null,an=1,sn="";function er(e,t){Dr[Mr++]=vi,Dr[Mr++]=yi,yi=e,vi=t}function ls(e,t,n){Dt[Mt++]=an,Dt[Mt++]=sn,Dt[Mt++]=bn,bn=e;var r=an;e=sn;var l=32-Ct(r)-1;r&=~(1<<l),n+=1;var o=32-Ct(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,an=1<<32-Ct(t)+l|n<<l|r,sn=o+e}else an=1<<o|n<<l|r,sn=e}function Ho(e){e.return!==null&&(er(e,1),ls(e,1,0))}function Bo(e){for(;e===yi;)yi=Dr[--Mr],Dr[Mr]=null,vi=Dr[--Mr],Dr[Mr]=null;for(;e===bn;)bn=Dt[--Mt],Dt[Mt]=null,sn=Dt[--Mt],Dt[Mt]=null,an=Dt[--Mt],Dt[Mt]=null}var Rt=null,Lt=null,He=!1,Vt=null;function is(e,t){var n=It(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletion
|
||
|
|
Error generating stack: `+o.message+`
|
||
|
|
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function du(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $d=typeof WeakMap=="function"?WeakMap:Map;function Hs(e,t,n){n=cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ui||(Ui=!0,_u=r),pu(e,t)},n}function Bs(e,t,n){n=cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){pu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){pu(e,t),typeof r!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Vs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $d;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=bd.bind(null,e,t,n),t.then(e,e))}function Ws(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Qs(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=cn(-1,1),t.tag=2,Mn(n,t,1))),n.lanes|=1),e)}var Ad=le.ReactCurrentOwner,gt=!1;function pt(e,t,n,r){t.child=e===null?cs(t,null,n,r):Fr(t,e.child,n,r)}function Ks(e,t,n,r,l){n=n.render;var o=t.ref;return Ir(t,l),r=lu(e,t,n,r,o,l),n=iu(),e!==null&&!gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,dn(e,t,l)):(He&&n&&Ho(t),t.flags|=1,pt(e,t,r,l),t.child)}function Ys(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Ou(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Xs(e,t,o,r,l)):(e=Vi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:fl,n(s,r)&&e.ref===t.ref)return dn(e,t,l)}return t.flags|=1,e=jn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Xs(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(fl(o,r)&&e.ref===t.ref)if(gt=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(gt=!0);else return t.lanes=e.lanes,dn(e,t,l)}return hu(e,t,n,r,l)}function Gs(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(Ar,_t),_t|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ie(Ar,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ie(Ar,_t),_t|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ie(Ar,_t),_t|=r;return pt(e,t,l,n),t.child}function Js(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hu(e,t,n,r,l){var o=vt(n)?qn:at.current;return o=Nr(t,o),Ir(t,l),n=lu(e,t,n,r,o,l),r=iu(),e!==null&&!gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,dn(e,t,l)):(He&&r&&Ho(t),t.flags|=1,pt(e,t,n,l),t.child)}function Zs(e,t,n,r,l){if(vt(n)){var o=!0;hi(t)}else o=!1;if(Ir(t,l),t.stateNode===null)Mi(e,t),$s(t,n,r),cu(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,p=t.memoizedProps;s.props=p;var h=s.context,R=n.contextType;typeof R=="object"&&R!==null?R=zt(R):(R=vt(n)?qn:at.current,R=Nr(t,R));var U=n.getDerivedStateFromProps,A=typeof U=="function"||typeof s.getSnapshotBeforeUpdate=="function";A||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p!==r||h!==R)&&As(t,s,r,R),Dn=!1;var I=t.memoizedState;s.state=I,xi(t,r,s,l),h=t.memoizedState,p!==r||I!==h||yt.current||Dn?(typeof U=="function"&&(fu(t,n,U,r),h=t.memoizedState),(p=Dn||js(t,n,p,r,I,h,R))?(A||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
|
||
|
|
* react-router v7.1.5
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/var Af="popstate";function wp(i={}){function u(c,f){let{pathname:d,search:y,hash:v}=c.location;return Il("",{pathname:d,search:y,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function a(c,f){return typeof f=="string"?f:Bn(f)}return Ep(u,a,null,i)}function Se(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function ot(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Sp(){return Math.random().toString(36).substring(2,10)}function Hf(i,u){return{usr:i.state,key:i.key,idx:u}}function Il(i,u,a=null,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?Vn(u):u,state:a,key:u&&u.key||c||Sp()}}function Bn({pathname:i="/",search:u="",hash:a=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),a&&a!=="#"&&(i+=a.charAt(0)==="#"?a:"#"+a),i}function Vn(i){let u={};if(i){let a=i.indexOf("#");a>=0&&(u.hash=i.substring(a),i=i.substring(0,a));let c=i.indexOf("?");c>=0&&(u.search=i.substring(c),i=i.substring(0,c)),i&&(u.pathname=i)}return u}function Ep(i,u,a,c={}){let{window:f=document.defaultView,v5Compat:d=!1}=c,y=f.history,v="POP",g=null,S=D();S==null&&(S=0,y.replaceState({...y.state,idx:S},""));function D(){return(y.state||{idx:null}).idx}function z(){v="POP";let O=D(),j=O==null?null:O-S;S=O,g&&g({action:v,location:H.location,delta:j})}function T(O,j){v="PUSH";let V=Il(H.location,O,j);S=D()+1;let b=Hf(V,S),le=H.createHref(V);try{y.pushState(b,"",le)}catch(se){if(se instanceof DOMException&&se.name==="DataCloneError")throw se;f.location.assign(le)}d&&g&&g({action:v,location:H.location,delta:1})}function N(O,j){v="REPLACE";let V=Il(H.location,O,j);S=D();let b=Hf(V,S),le=H.createHref(V);y.replaceState(b,"",le),d&&g&&g({action:v,location:H.location,delta:0})}function M(O){let j=f.location.origin!=="null"?f.location.origin:f.location.href,V=typeof O=="string"?O:Bn(O);return V=V.replace(/ $/,"%20"),Se(j,`No window.location.(origin|href) available to create URL for href: ${V}`),new URL(V,j)}let H={get action(){return v},get location(){return i(f,y)},listen(O){if(g)throw new Error("A history only accepts one active listener");return f.addEventListener(Af,z),g=O,()=>{f.removeEventListener(Af,z),g=null}},createHref(O){return u(f,O)},createURL:M,encodeLocation(O){let j=M(O);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:T,replace:N,go(O){return y.go(O)}};return H}var kp=new Set(["lazy","caseSensitive","path","id","index","children"]);function xp(i){return i.index===!0}function no(i,u,a=[],c={}){return i.map((f,d)=>{let y=[...a,String(d)],v=typeof f.id=="string"?f.id:y.join("-");if(Se(f.index!==!0||!f.children,"Cannot specify children on an index route"),Se(!c[v],`Found a route id collision on id "${v}". Route id's must be globally unique within Data Router usages`),xp(f)){let g={...f,...u(f),id:v};return c[v]=g,g}else{let g={...f,...u(f),id:v,children:void 0};return c[v]=g,f.children&&(g.children=no(f.children,u,y,c)),g}})}function Hn(i,u,a="/"){return bi(i,u,a,!1)}function bi(i,u,a,c){let f=typeof u=="string"?Vn(u):u,d=Gt(f.pathname||"/",a);if(d==null)return null;let y=ac(i);Pp(y);let v=null;for(let g=0;v==null&&g<y.length;++g){let S=Ip(d);v=Fp(y[g],S,c)}return v}function Cp(i,u){let{route:a,pathname:c,params:f}=i;return{id:a.id,pathname:c,params:f,data:u[a.id],handle:a.handle}}function ac(i,u=[],a=[],c=""){let f=(d,y,v)=>{let g={relativePath:v===void 0?d.path||"":v,caseSensitive:d.caseSensitive===!0,childrenIndex:y,route:d};g.relativePath.startsWith("/")&&(Se(g.relativePath.startsWith(c),`Absolute route path "${g.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(c.length));let S=tn([c,g.relativePath]),D=a.concat(g);d.children&&d.children.length>0&&(Se(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),ac(d.children,u,D,S)),!(d.path==null&&!d.index)&&u.push({path:S,score:Mp(S,d.index),routesMeta:D})};return i.forEach((d,y)=>{var
|
||
|
|
`,""):String(a.body);return{path:u,submission:{formMethod:d,formAction:y,formEncType:a.formEncType,formData:void 0,json:void 0,text:z}}}else if(a.formEncType==="application/json"){if(!Xt(d))return c();try{let z=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:u,submission:{formMethod:d,formAction:y,formEncType:a.formEncType,formData:void 0,json:z,text:void 0}}}catch{return c()}}}Se(typeof FormData=="function","FormData is not available in this environment");let v,g;if(a.formData)v=qu(a.formData),g=a.formData;else if(a.body instanceof FormData)v=qu(a.body),g=a.body;else if(a.body instanceof URLSearchParams)v=a.body,g=Gf(v);else if(a.body==null)v=new URLSearchParams,g=new FormData;else try{v=new URLSearchParams(a.body),g=Gf(v)}catch{return c()}let S={formMethod:d,formAction:y,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Xt(S.formMethod))return{path:u,submission:S};let D=Vn(u);return i&&D.search&&na(D.search)&&v.append("index",""),D.search=`?${v}`,{path:Bn(D),submission:S}}function Wf(i,u,a=!1){let c=i.findIndex(f=>f.route.id===u);return c>=0?i.slice(0,a?c+1:c):i}function Qf(i,u,a,c,f,d,y,v,g,S,D,z,T,N){let M=N?Tt(N[1])?N[1].error:N[1].data:void 0,H=i.createURL(u.location),O=i.createURL(f),j=a;d&&u.errors?j=Wf(a,Object.keys(u.errors)[0],!0):N&&Tt(N[1])&&(j=Wf(a,N[0]));let V=N?N[1].statusCode:void 0,b=V&&V>=400,le=j.filter((C,fe)=>{let{route:me}=C;if(me.lazy)return!0;if(me.loader==null)return!1;if(d)return Zu(me,u.loaderData,u.errors);if(Zp(u.loaderData,u.matches[fe],C))return!0;let ce=u.matches[fe],Ce=C;return Kf(C,{currentUrl:H,currentParams:ce.params,nextUrl:O,nextParams:Ce.params,...c,actionResult:M,actionStatus:V,defaultShouldRevalidate:b?!1:y||H.pathname+H.search===O.pathname+O.search||H.search!==O.search||qp(ce,Ce)})}),se=[];return S.forEach((C,fe)=>{if(d||!a.some(ut=>ut.route.id===C.routeId)||g.has(fe))return;let me=Hn(z,C.path,T);if(!me){se.push({key:fe,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let ce=u.fetchers.get(fe),Ce=Ol(me,C.path),Be=!1;D.has(fe)?Be=!1:v.has(fe)?(v.delete(fe),Be=!0):ce&&ce.state!=="idle"&&ce.data===void 0?Be=y:Be=Kf(Ce,{currentUrl:H,currentParams:u.matches[u.matches.length-1].params,nextUrl:O,nextParams:a[a.length-1].params,...c,actionResult:M,actionStatus:V,defaultShouldRevalidate:b?!1:y}),Be&&se.push({key:fe,routeId:C.routeId,path:C.path,matches:me,match:Ce,controller:new AbortController})}),[le,se]}function Zu(i,u,a){if(i.lazy)return!0;if(!i.loader)return!1;let c=u!=null&&u[i.id]!==void 0,f=a!=null&&a[i.id]!==void 0;return!c&&f?!1:typeof i.loader=="function"&&i.loader.hydrate===!0?!0:!c&&!f}function Zp(i,u,a){let c=!u||a.route.id!==u.route.id,f=!i.hasOwnProperty(a.route.id);return c||f}function qp(i,u){let a=i.route.path;return i.pathname!==u.pathname||a!=null&&a.endsWith("*")&&i.params["*"]!==u.params["*"]}function Kf(i,u){if(i.route.shouldRevalidate){let a=i.route.shouldRevalidate(u);if(typeof a=="boolean")return a}return u.defaultShouldRevalidate}function Yf(i,u,a,c,f){let d;if(i){let g=c[i];Se(g,`No route found to patch children into: routeId = ${i}`),g.children||(g.children=[]),d=g.children}else d=a;let y=u.filter(g=>!d.some(S=>hc(g,S))),v=no(y,f,[i||"_","patch",String((d==null?void 0:d.length)||"0")],c);d.push(...v)}function hc(i,u){return"id"in i&&"id"in u&&i.id===u.id?!0:i.index===u.index&&i.path===u.path&&i.caseSensitive===u.caseSensitive?(!i.children||i.children.length===0)&&(!u.children||u.children.length===0)?!0:i.children.every((a,c)=>{var f;return(f=u.children)==null?void 0:f.some(d=>hc(a,d))}):!1}async function bp(i,u,a){if(!i.lazy)return;let c=await i.lazy();if(!i.lazy)return;let f=a[i.id];Se(f,"No route found in manifest");let d={};for(let y in c){let g=f[y]!==void 0&&y!=="hasErrorBoundary";ot(!g,`Route "${f.id}" has a static property "${y}" defined but its lazy function is also returning a value for this property. The lazy route property "${y}" will be ignored.`),!g&&!kp.has(y)&&(d[y]=c[y])}Object.assign(f,d),Object.assign(f,{...u(f),lazy:void 0})}async function e
|
||
|
|
|
||
|
|
Please change the parent <Route path="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let T=dr(),N;N=T;let M=N.pathname||"/",H=M;if(D!=="/"){let V=D.replace(/^\//,"").split("/");H="/"+M.replace(/^\//,"").split("/").slice(V.length).join("/")}let O=!d&&a&&a.matches&&a.matches.length>0?a.matches:Hn(i,{pathname:H});return ot(z||O!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),ot(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Ph(O&&O.map(V=>Object.assign({},V,{params:Object.assign({},g,V.params),pathname:tn([D,f.encodeLocation?f.encodeLocation(V.pathname).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?D:tn([D,f.encodeLocation?f.encodeLocation(V.pathnameBase).pathname:V.pathnameBase])})),y,a,c)}function Eh(){let i=Nh(),u=Ul(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),a=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:d},"ErrorBoundary")," or"," ",_.createElement("code",{style:d},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},u),a?_.createElement("pre",{style:f},a):null,y)}var kh=_.createElement(Eh,null),xh=class extends _.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){console.error("React Router caught the following error during render",i,u)}render(){return this.state.error!==void 0?_.createElement(Jt.Provider,{value:this.props.routeContext},_.createElement(la.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ch({routeContext:i,match:u,children:a}){let c=_.useContext(cr);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),_.createElement(Jt.Provider,{value:i},a)}function Ph(i,u=[],a=null,c=null){if(i==null){if(!a)return null;if(a.errors)i=a.matches;else if(u.length===0&&!a.initialized&&a.matches.length>0)i=a.matches;else return null}let f=i,d=a==null?void 0:a.errors;if(d!=null){let g=f.findIndex(S=>S.route.id&&(d==null?void 0:d[S.route.id])!==void 0);Se(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let y=!1,v=-1;if(a)for(let g=0;g<f.length;g++){let S=f[g];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(v=g),S.route.id){let{loaderData:D,errors:z}=a,T=S.route.loader&&!D.hasOwnProperty(S.route.id)&&(!z||z[S.route.id]===void 0);if(S.route.lazy||T){y=!0,v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((g,S,D)=>{let z,T=!1,N=null,M=null;a&&(z=d&&S.route.id?d[S.route.id]:void 0,N=S.route.errorElement||kh,y&&(v<0&&D===0?(Sc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,M=null):v===D&&(T=!0,M=S.route.hydrateFallbackElement||null)));let H=u.concat(f.slice(0,D+1)),O=()=>{let j;return z?j=N:T?j=M:S.route.Component?j=_.createElement(S.route.Comp
|
||
|
|
* react-router v7.1.5
|
||
|
|
*
|
||
|
|
* 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 Cm(i){return _.createElement(Fh,{flushSync:Rc.flushSync,...i})}export{Cc as L,Em as O,wm as R,_ as a,Rc as b,xm as c,gm as d,pp as e,vp as f,dr as g,km as h,Cm as i,uc as r,Sm as u};
|