2025-02-17 11:23:40 +00:00
function fp ( 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 vm = 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 : { } } , we = { } ; / * *
2025-02-09 13:36:07 +00:00
* @ 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 .
2025-02-17 11:23:40 +00:00
* /var zf;function cp(){if(zf)return we;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"),h=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"),O=Symbol.iterator;function L(E){return E===null||typeof E!="object"?null:(E=O&&E[O]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,$={};function H(E,F,se){this.props=E,this.context=F,this.refs=$,this.updater=se||N}H.prototype.isReactComponent={},H.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")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function M(){}M.prototype=H.prototype;function b(E,F,se){this.props=E,this.context=F,this.refs=$,this.updater=se||N}var J=b.prototype=new M;J.constructor=b,z(J,H.prototype),J.isPureReactComponent=!0;var ae=Array.isArray,C=Object.prototype.hasOwnProperty,le={current:null},pe={key:!0,ref:!0,__self:!0,__source:!0};function ie(E,F,se){var he,me={},Ee=null,De=null;if(F!=null)for(he in F.ref!==void 0&&(De=F.ref),F.key!==void 0&&(Ee=""+F.key),F)C.call(F,he)&&!pe.hasOwnProperty(he)&&(me[he]=F[he]);var Re=arguments.length-2;if(Re===1)me.children=se;else if(1<Re){for(var ye=Array(Re),Ye=0;Ye<Re;Ye++)ye[Ye]=arguments[Ye+2];me.children=ye}if(E&&E.defaultProps)for(he in Re=E.defaultProps,Re)me[he]===void 0&&(me[he]=Re[he]);return{$$typeof:i,type:E,key:Ee,ref:De,props:me,_owner:le.current}}function ge(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 Ke(E){var F={"=":"=0",":":"=2"};return"$"+E.replace(/ [ = : ] / g , function ( se ) { return F [ se ] } ) } var rt = /\/+/g ; function We ( E , F ) { return typeof E == "object" && E !== null && E . key != null ? Ke ( "" + E . key ) : F . toString ( 36 ) } function ut ( E , F , se , he , me ) { var Ee = typeof E ; ( Ee === "undefined" || Ee === "boolean" ) && ( E = null ) ; var De = ! 1 ; if ( E === null ) De = ! 0 ; else switch ( Ee ) { case "string" : case "number" : De = ! 0 ; break ; case "object" : switch ( E . $$typeof ) { case i : case u : De = ! 0 } } if ( De ) return De = E , me = me ( De ) , E = he === "" ? "." + We ( De , 0 ) : he , ae ( me ) ? ( se = "" , E != null && ( se = E . replace ( rt , "$&/" ) + "/" ) , ut ( me , F , se , "" , function ( Ye ) { return Ye } ) ) : me != null && ( Ce ( me ) && ( me = ge ( me , se + ( ! me . key || De && De . key === me . key ? "" : ( "" + me . key ) . replace ( rt , "$&/" ) + "/" ) + E ) ) , F . push ( me ) ) , 1 ; if ( De = 0 , he = he === "" ? "." : he + ":" , ae ( E ) ) for ( var Re = 0 ; Re < E . length ; Re ++ ) { Ee = E [ Re ] ; var ye = he + We ( Ee , Re ) ; De += ut ( Ee , F , se , ye , me ) } else if ( ye = L ( E ) , typeof ye == "function" ) for ( E = ye . call ( E ) , Re = 0 ; ! ( Ee = E . next ( ) ) . done ; ) Ee = Ee . value , ye = he + We ( Ee , Re ++ ) , De += ut ( Ee , F , se , ye , me ) ; else if ( Ee === "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 De } function _e ( E , F , se ) { if ( E == null ) return E ; var he = [ ] , me = 0 ; return ut ( E , he , "" , "" , function ( Ee ) { return F . call ( se , Ee , me ++ ) } ) , he } function Ge ( E ) { if ( E . _status === - 1 ) { var F = E . _result ; F = F ( ) , F . then ( function ( se ) { ( E . _status === 0 || E . _status === - 1 ) && ( E . _status = 1 , E . _result = se ) } , function ( se ) { ( E . _status === 0 || E . _status === - 1 ) && ( E . _status = 2 , E . _result = se ) } ) , E . _status === - 1 && ( E . _status = 0 , E . _result = F ) } if ( E . _status === 1 ) return E . _result . default ; throw E . _result } var Ne = { current : null } , V = { transition : null } , re = { ReactCurrentDispatcher : Ne , ReactCurrentBatchConfig : V , ReactCurrentOwner : le } ; function Q ( ) { throw Error ( "act(...) is not supported in production builds of React." ) } return we . Children = { map : _e , forEach : function ( E , F , se ) { _e ( E , function ( ) { F . apply ( this , arguments ) } , se ) } , count : function ( E ) { var F = 0 ; return _e ( E , function ( ) { F ++ } ) , F } , toArray : fun
2025-02-09 13:36:07 +00:00
* @ 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 .
2025-02-17 11:23:40 +00:00
* / v a r O f ; f u n c t i o n p p ( ) { r e t u r n O f | | ( O f = 1 , f u n c t i o n ( i ) { f u n c t i o n u ( V , r e ) { v a r Q = V . l e n g t h ; V . p u s h ( r e ) ; e : f o r ( ; 0 < Q ; ) { v a r E = Q - 1 > > > 1 , F = V [ E ] ; i f ( 0 < f ( F , r e ) ) V [ E ] = r e , V [ Q ] = F , Q = E ; e l s e b r e a k e } } f u n c t i o n a ( V ) { r e t u r n V . l e n g t h = = = 0 ? n u l l : V [ 0 ] } f u n c t i o n c ( V ) { i f ( V . l e n g t h = = = 0 ) r e t u r n n u l l ; v a r r e = V [ 0 ] , Q = V . p o p ( ) ; i f ( Q ! = = r e ) { V [ 0 ] = Q ; e : f o r ( v a r E = 0 , F = V . l e n g t h , s e = F > > > 1 ; E < s e ; ) { v a r h e = 2 * ( E + 1 ) - 1 , m e = V [ h e ] , E e = h e + 1 , D e = V [ E e ] ; i f ( 0 > f ( m e , Q ) ) E e < F & & 0 > f ( D e , m e ) ? ( V [ E ] = D e , V [ E e ] = Q , E = E e ) : ( V [ E ] = m e , V [ h e ] = Q , E = h e ) ; e l s e i f ( E e < F & & 0 > f ( D e , Q ) ) V [ E ] = D e , V [ E e ] = Q , E = E e ; e l s e b r e a k e } } r e t u r n r e } f u n c t i o n f ( V , r e ) { v a r Q = V . s o r t I n d e x - r e . s o r t I n d e x ; r e t u r n Q ! = = 0 ? Q : V . i d - r e . i d } i f ( t y p e o f p e r f o r m a n c e = = " o b j e c t " & & t y p e o f p e r f o r m a n c e . n o w = = " f u n c t i o n " ) { v a r d = p e r f o r m a n c e ; i . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n d . n o w ( ) } } e l s e { v a r h = D a t e , v = h . n o w ( ) ; i . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n h . n o w ( ) - v } } v a r g = [ ] , S = [ ] , D = 1 , O = n u l l , L = 3 , N = ! 1 , z = ! 1 , $ = ! 1 , H = t y p e o f s e t T i m e o u t = = " f u n c t i o n " ? s e t T i m e o u t : n u l l , M = t y p e o f c l e a r T i m e o u t = = " f u n c t i o n " ? c l e a r T i m e o u t : n u l l , b = t y p e o f s e t I m m e d i a t e < " u " ? s e t I m m e d i a t e : n u l l ; t y p e o f n a v i g a t o r < " u " & & n a v i g a t o r . s c h e d u l i n g ! = = v o i d 0 & & n a v i g a t o r . s c h e d u l i n g . i s I n p u t P e n d i n g ! = = v o i d 0 & & n a v i g a t o r . s c h e d u l i n g . i s I n p u t P e n d i n g . b i n d ( n a v i g a t o r . s c h e d u l i n g ) ; f u n c t i o n J ( V ) { f o r ( v a r r e = a ( S ) ; r e ! = = n u l l ; ) { i f ( r e . c a l l b a c k = = = n u l l ) c ( S ) ; e l s e i f ( r e . s t a r t T i m e < = V ) c ( S ) , r e . s o r t I n d e x = r e . e x p i r a t i o n T i m e , u ( g , r e ) ; e l s e b r e a k ; r e = a ( S ) } } f u n c t i o n a e ( V ) { i f ( $ = ! 1 , J ( V ) , ! z ) i f ( a ( g ) ! = = n u l l ) z = ! 0 , G e ( C ) ; e l s e { v a r r e = a ( S ) ; r e ! = = n u l l & & N e ( a e , r e . s t a r t T i m e - V ) } } f u n c t i o n C ( V , r e ) { z = ! 1 , $ & & ( $ = ! 1 , M ( i e ) , i e = - 1 ) , N = ! 0 ; v a r Q = L ; t r y { f o r ( J ( r e ) , O = a ( g ) ; O ! = = n u l l & & ( ! ( O . e x p i r a t i o n T i m e > r e ) | | V & & ! K e ( ) ) ; ) { v a r E = O . c a l l b a c k ; i f ( t y p e o f E = = " f u n c t i o n " ) { O . c a l l b a c k = n u l l , L = O . p r i o r i t y L e v e l ; v a r F = E ( O . e x p i r a t i o n T i m e < = r e ) ; r e = i . u n s t a b l e _ n o w ( ) , t y p e o f F = = " f u n c t i o n " ? O . c a l l b a c k = F : O = = = a ( g ) & & c ( g ) , J ( r e ) } e l s e c ( g ) ; O = a ( g ) } i f ( O ! = = n u l l ) v a r s e = ! 0 ; e l s e { v a r h e = a ( S ) ; h e ! = = n u l l & & N e ( a e , h e . s t a r t T i m e - r e ) , s e = ! 1 } r e t u r n s e } f i n a l l y { O = n u l l , L = Q , N = ! 1 } } v a r l e = ! 1 , p e = n u l l , i e = - 1 , g e = 5 , C e = - 1 ; f u n c t i o n K e ( ) { r e t u r n ! ( i . u n s t a b l e _ n o w ( ) - C e < g e ) } f u n c t i o n r t ( ) { i f ( p e ! = = n u l l ) { v a r V = i . u n s t a b l e _ n o w ( ) ; C e = V ; v a r r e = ! 0 ; t r y { r e = p e ( ! 0 , V ) } f i n a l l y { r e ? W e ( ) : ( l e = ! 1 , p e = n u l l ) } } e l s e l e = ! 1 } v a r W e ; i f ( t y p e o f b = = " f u n c t i o n " ) W e = f u n c t i o n ( ) { b ( r t ) } ; e l s e i f ( t y p e o f M e s s a g e C h a n n e l < " u " ) { v a r u t = n e w M e s s a g e C h a n n e l , _ e = u t . p o r t 2 ; u t . p o r t 1 . o n m e s s a g e = r t , W e = f u n c t i o n ( ) { _ e . p o s t M e s s a g e ( n u l l ) } } e l s e W e = f u n c t i o n ( ) { H ( r t , 0 ) } ; f u n c t i o n G e ( V ) { p e = V , l e | | ( l e = ! 0 , W e ( ) ) } f u n c t i o n N e ( V , r e ) { i e = H ( f u n c t i o n ( ) { V ( i . u n s t a b l e _ n o w ( ) ) } , r e ) } i . u n s t a b l e _ I d l e P r i o r i t y = 5 , i . u n s t a b l e _ I m m e d i a t e P r i o r i t y = 1 , i . u n s t a b l e _ L o w P r i o r i t y = 4 , i . u n s t a b l e _ N o r m a l P r i o r i t y = 3 , i . u n s t a b l e _ P r o f i l i n g = n u l l , i . u n s t a b l e _ U s e r B l o c k i n g P r i o r i t y = 2 , i . u n s t a b l e _ c a n c e l C a l l b a c k = f u n c t i o n ( V ) { V . c a l l b a c k = n u l l } , i . u n s t a b l e _ c o n t i n u e E x e c u t i o n = f u n c t i o n ( ) { z | | N | | ( z = ! 0 , G e ( C ) ) } , i . u n s t a b l e _ f o r c e F r a m e R a t e = f u n c t i o n ( V ) { 0 > V | | 1 2 5 < V ? c o n s o l e . e r r o r ( " f o r c e F r a m e R a t e t a k e s a p o s i t i v e i n t b e t w e e n 0 a n d 1 2 5 , f o r c i n g f r a m e r a t e s h i g h e r t h a n 1 2 5 f p s i s n o t s u p p o r t e d " ) : g e = 0 < V ? M a t h . f l o o r ( 1 e 3 / V ) : 5 } , i . u n s t a b l e _ g e t C u r r e n t P r i o r i t y L e v e l = f u n c t i o n ( ) { r e t u r n L } , i . u n s t a b l e _ g e t F i r s t C a l l b a c k N o d e = f u n c t i o n ( ) { r e t u r n a ( g ) } , i . u n s t a b l e _ n e x t = f u n c t i o n ( V ) { s w i t c h ( L ) { c a s e 1 : c a s e 2 : c a s e 3 : v a r r e = 3 ; b r e a k ; d e f a u l t : r e = L } v a r Q = L ; L = r e ; t r y { r e t u r n V ( ) } f i n a l l y { L = Q } } , i . u n s t a b l e _ p a u s e E x e c u t i o n = f u n c t i o n ( ) { } , i . u n s t a b l e _ r e q u e s t P a i n t = f u n c t i o n ( ) { } , i . u n s t a b l e _ r u n W i t h P r i o r i t y = f u n c t i o n ( V , r e ) { s w i t c h ( V ) { c a s e 1 : c a s e 2 : c a s e 3 : c a s e 4 : c a s e 5 : b r e a k ; d e f a u l t : V = 3 } v a r Q = L ; L = V ; t r y { r e t u r n r e ( ) } f i n a l l y { L = Q } } , i . u n s t a b l e _ s c h e d u l e C a l l b a c k = f u n c t i o n ( V , r e , Q ) { v a r E = i . u n s t a b l e _ n o w ( ) ; s w i t c h ( t y p e o f Q = = " o b j e c t " & & Q ! = = n u l l ? ( Q = Q . d e l a y , Q = t y p e o f Q = = " n u m b e r " & & 0 < Q ? E + Q : E ) : Q = E , V ) { c a s e 1 : v a r F = - 1 ; b r e a k ; c a s e 2 : F = 2 5 0 ; b r e a k ; c a s e 5 : F = 1 0 7 3 7 4 1 8 2 3 ; b r e a k ; c a s e 4 : F = 1 e 4 ; b r e a k ; d e f a u l t : F = 5 e 3 } r e t u r n F = Q + F , V = { i d : D + + , c a l l b a c k : r e , p r i o r i t y L e v e l : V , s t a r t T i m e : Q , e x p i r a t i o n T i m e : F , s o r t I n d e x : - 1 } , Q > E ? ( V . s o r t I n d e x = Q , u ( S , V ) , a ( g ) = = = n u l l & & V = = = a ( S ) & & ( $ ? ( M ( i e ) , i e = - 1 ) : $ = ! 0 , N e ( a e , Q - E ) ) ) : ( V . s o r t I n d e x = F , u ( g , V ) , z | | N | | ( z = ! 0 , G e ( C ) ) ) , V } , i . u n s t a b l e _ s h o u l d Y i e l d = K e , i . u n s t a b l e _ w r a p C a l l b a c k = f u n c t i o n ( V ) { v a r r e = L ; r e t u r n f u n c t i o n ( ) { v a r Q = L ; L = r e ; t r y { r e t u r n V . a p p l y ( t h i s , a r g u m e n t s ) } f i n a l l y { L = Q } } } } ( Q u ) ) , Q u } v a r I f ; f u n c t i o n h p ( ) { r e t u r n I f | | ( I f = 1 , W u . e x p o r t s = p p ( ) ) , W u . e x p o r t s } / * *
2025-02-09 13:36:07 +00:00
* @ 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 .
2025-02-17 11:23:40 +00:00
* /var Uf;function mp(){if(Uf)return Et;Uf=1;var i=uc(),u=hp();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){h(e,t),h(e+" Capture ",t)}function h(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={},O={};function L(e){return g.call(O,e)?!0:g.call(D,e)?!1:S.test(e)?O[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 z(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 $(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 H={};" children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style ".split(" ").forEach(function(e){H[e]=new $(e,0,!1,e,null,!1,!1)}),[[" acceptCharset "," accept - charset "],[" className "," class "],[" htmlFor "," for "],[" httpEquiv "," http - equiv "]].forEach(function(e){var t=e[0];H[t]=new $(t,1,!1,e[1],null,!1,!1)}),[" contentEditable "," draggable "," spellCheck "," value "].forEach(function(e){H[e]=new $(e,2,!1,e.toLowerCase(),null,!1,!1)}),[" autoReverse "," externalResourcesRequired "," focusable "," preserveAlpha "].forEach(function(e){H[e]=new $(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){H[e]=new $(e,3,!1,e.toLowerCase(),null,!1,!1)}),[" checked "," multiple "," muted "," selected "].forEach(function(e){H[e]=new $(e,3,!0,e,null,!1,!1)}),[" capture "," download "].forEach(function(e){H[e]=new $(e,4,!1,e,null,!1,!1)}),[" cols "," rows "," size "," span "].forEach(function(e){H[e]=new $(e,6,!1,e,null,!1,!1)}),[" rowSpan "," start "].forEach(function(e){H[e]=new $(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function b(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 se=!1;function he(e,t){if(!e||se)return"";se=!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(P){var r=P}Reflect.construct(e,[],t)}else{try{t.call()}catch(P){r=P}e.call(t.prototype)}else{try{throw Error()}catch(P){r=P}e()}}catch(P){if(P&&r&&typeof P.stack=="string"){for(var l=P.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 m= `
` +l[s].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=s&&0<=p);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function me(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=he(e.type,!1),e;case 11:return e=he(e.type.render,!1),e;case 1:return e=he(e.type,!0),e;default:return""}}function Ee(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 pe:return"Fragment";case le:return"Portal";case ge:return"Profiler";case ie:return"StrictMode";case We:return"Suspense";case ut:return"SuspenseList"}if(typeof e=="object")switch(e. $ $ typeof){case Ke:return(e.displayName||"Context")+".Consumer";case Ce:return(e._context.displayName||"Context")+".Provider";case rt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return t=e.displayName||null,t!==null?t:Ee(e.type)||"Memo";case Ge:t=e._payload,e=e._init;try{return Ee(e(t))}catch{}}return null}function De(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 Ee(t);case 8:return t===ie?"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 Re(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ye(e){var t=ye(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 Qn(e){e._valueTracker||(e._valueTracker=Ye(e))}function jl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tt(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 Vr(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $ l(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Re(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 Wr(e,t){t=t.checked,t!=null&&J(e,"checked",t,!1)}function Qr(e,t){Wr(e,t);var n=Re(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")?Kr(e,t.type,n):t.hasOwnProperty("defaultValue")&&Kr(e,t.type,Re(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Al(e,t,n){if(t.hasOwnProperty("value")||t
` ).replace(Cd,"")}function si(e,t,n){if(t=Za(t),Za(e)!==t&&n)throw Error(a(425))}function fi(){}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,Rd=typeof clearTimeout=="function"?clearTimeout:void 0,qa=typeof Promise=="function"?Promise:void 0,Pd=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),nl(t);return}r--}else n!==" $ "&&n!==" $ ?"&&n!==" $ !"||r++;n=l}while(n);nl(t)}function _n(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 Pr=Math.random().toString(36).slice(2),Jt="__reactFiber $ "+Pr,pl="__reactProps $ "+Pr,an="__reactContainer $ "+Pr,jo="__reactEvents $ "+Pr,_d="__reactListeners $ "+Pr,Td="__reactHandles $ "+Pr;function qn(e){var t=e[Jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[an]||n[Jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ba(e);e!==null;){if(n=e[Jt])return n;e=ba(e)}return t}e=n,n=e.parentNode}return null}function hl(e){return e=e[Jt]||e[an],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function ci(e){return e[pl]||null}var $ o=[],_r=-1;function Tn(e){return{current:e}}function Ue(e){0>_r||(e.current= $ o[_r], $ o[_r]=null,_r--)}function Oe(e,t){_r++, $ o[_r]=e.current,e.current=t}var Nn={},at=Tn(Nn),yt=Tn(!1),bn=Nn;function Tr(e,t){var n=e.type.contextTypes;if(!n)return Nn;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 di(){Ue(yt),Ue(at)}function es(e,t,n){if(at.current!==Nn)throw Error(a(168));Oe(at,t),Oe(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,De(e)||"Unknown",l));return Q({},n,r)}function pi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,bn=at.current,Oe(at,e),Oe(yt,yt.current),!0}function ns(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ts(e,t,bn),r.__reactInternalMemoizedMergedChildContext=e,Ue(yt),Ue(at),Oe(at,e)):Ue(yt),Oe(yt,n)}var sn=null,hi=!1,Ao=!1;function rs(e){sn===null?sn=[e]:sn.push(e)}function Nd(e){hi=!0,rs(e)}function Dn(){if(!Ao&&sn!==null){Ao=!0;var e=0,t=Te;try{var n=sn;for(Te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sn=null,hi=!1}catch(l){throw sn!==null&&(sn=sn.slice(e+1)),kt(Le,Dn),l}finally{Te=t,Ao=!1}}return null}var Nr=[],Dr=0,mi=null,yi=0,Mt=[],zt=0,er=null,fn=1,cn="";function tr(e,t){Nr[Dr++]=yi,Nr[Dr++]=mi,mi=e,yi=t}function ls(e,t,n){Mt[zt++]=fn,Mt[zt++]=cn,Mt[zt++]=er,er=e;var r=fn;e=cn;var l=32-Ht(r)-1;r&=~(1<<l),n+=1;var o=32-Ht(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,fn=1<<32-Ht(t)+l|n<<l|r,cn=o+e}else fn=1<<o|n<<l|r,cn=e}function Ho(e){e.return!==null&&(tr(e,1),ls(e,1,0))}function Bo(e){for(;e===mi;)mi=Nr[--Dr],Nr[Dr]=null,yi=Nr[--Dr],Nr[Dr]=null;for(;e===er;)er=Mt[--zt],Mt[zt]=null,cn=Mt[--zt],Mt[zt]=null,fn=Mt[--zt],Mt[zt]=null}var Rt=null,Pt=null,je=!1,Vt=null;function is(e,t){var n=Ut(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=pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ii||(Ii=!0,_u=r),pu(e,t)},n}function Bs(e,t,n){n=pn(-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"&&(On===null?On=new Set([this]):On.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=pn(-1,1),t.tag=2,zn(n,t,1))),n.lanes|=1),e)}var Ad=ae.ReactCurrentOwner,gt=!1;function dt(e,t,n,r){t.child=e===null?cs(t,null,n,r):zr(t,e.child,n,r)}function Ks(e,t,n,r,l){n=n.render;var o=t.ref;return Or(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,hn(e,t,l)):(je&&n&&Ho(t),t.flags|=1,dt(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=Bi(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:al,n(s,r)&&e.ref===t.ref)return hn(e,t,l)}return t.flags|=1,e= $ n(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(al(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,hn(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},Oe( $ r,Lt),Lt|=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,Oe( $ r,Lt),Lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Oe( $ r,Lt),Lt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Oe( $ r,Lt),Lt|=r;return dt(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)?bn:at.current;return o=Tr(t,o),Or(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,hn(e,t,l)):(je&&r&&Ho(t),t.flags|=1,dt(e,t,n,l),t.child)}function Zs(e,t,n,r,l){if(vt(n)){var o=!0;pi(t)}else o=!1;if(Or(t,l),t.stateNode===null)Di(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 m=s.context,P=n.contextType;typeof P=="object"&&P!==null?P=Ft(P):(P=vt(n)?bn:at.current,P=Tr(t,P));var j=n.getDerivedStateFromProps,A=typeof j=="function"||typeof s.getSnapshotBeforeUpdate=="function";A||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p!==r||m!==P)&&As(t,s,r,P),Mn=!1;var I=t.memoizedState;s.state=I,ki(t,r,s,l),m=t.memoizedState,p!==r||I!==m||yt.current||Mn?(typeof j=="function"&&(fu(t,n,j,r),m=t.memoizedState),(p=Mn||js(t,n,p,r,I,m,P))?(A||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
2025-02-09 13:36:07 +00:00
* react - router v7 . 1.3
*
* 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
2025-02-17 11:23:40 +00:00
* /var Af="popstate";function gp(i={}){function u(c,f){let{pathname:d,search:h,hash:v}=c.location;return Fl("",{pathname:d,search:h,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function a(c,f){return typeof f=="string"?f:Vn(f)}return Sp(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 wp(){return Math.random().toString(36).substring(2,10)}function Hf(i,u){return{usr:i.state,key:i.key,idx:u}}function Fl(i,u,a=null,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?Wn(u):u,state:a,key:u&&u.key||c||wp()}}function Vn({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 Wn(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 Sp(i,u,a,c={}){let{window:f=document.defaultView,v5Compat:d=!1}=c,h=f.history,v=" POP ",g=null,S=D();S==null&&(S=0,h.replaceState({...h.state,idx:S}," "));function D(){return(h.state||{idx:null}).idx}function O(){v=" POP ";let H=D(),M=H==null?null:H-S;S=H,g&&g({action:v,location:$.location,delta:M})}function L(H,M){v=" PUSH ";let b=Fl($.location,H,M);S=D()+1;let J=Hf(b,S),ae=$.createHref(b);try{h.pushState(J," ",ae)}catch(C){if(C instanceof DOMException&&C.name===" DataCloneError ")throw C;f.location.assign(ae)}d&&g&&g({action:v,location:$.location,delta:1})}function N(H,M){v=" REPLACE ";let b=Fl($.location,H,M);S=D();let J=Hf(b,S),ae=$.createHref(b);h.replaceState(J," ",ae),d&&g&&g({action:v,location:$.location,delta:0})}function z(H){let M=f.location.origin!==" null "?f.location.origin:f.location.href,b=typeof H==" string "?H:Vn(H);return b=b.replace(/ $/," % 20 "),Se(M,`No window.location.(origin|href) available to create URL for href: ${b}`),new URL(b,M)}let $={get action(){return v},get location(){return i(f,h)},listen(H){if(g)throw new Error(" A history only accepts one active listener ");return f.addEventListener(Af,O),g=H,()=>{f.removeEventListener(Af,O),g=null}},createHref(H){return u(f,H)},createURL:z,encodeLocation(H){let M=z(H);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:L,replace:N,go(H){return h.go(H)}};return $}var Ep=new Set([" lazy "," caseSensitive "," path "," id "," index "," children "]);function kp(i){return i.index===!0}function to(i,u,a=[],c={}){return i.map((f,d)=>{let h=[...a,String(d)],v=typeof f.id==" string "?f.id:h.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`),kp(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=to(f.children,u,h,c)),g}})}function Bn(i,u,a=" / "){return qi(i,u,a,!1)}function qi(i,u,a,c){let f=typeof u==" string "?Wn(u):u,d=Gt(f.pathname||" / ",a);if(d==null)return null;let h=ac(i);Cp(h);let v=null;for(let g=0;v==null&&g<h.length;++g){let S=Op(d);v=zp(h[g],S,c)}return v}function xp(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,h,v)=>{let g={relativePath:v===void 0?d.path||" ":v,caseSensitive:d.caseSensitive===!0,childrenIndex:h,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=en([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:Dp(S,d.index),routesMeta:D})};return i.forEach((d,h)=>{var v;i
` ,""):String(a.body);return{path:u,submission:{formMethod:d,formAction:h,formEncType:a.formEncType,formData:void 0,json:void 0,text:O}}}else if(a.formEncType==="application/json"){if(!Xt(d))return c();try{let O=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:u,submission:{formMethod:d,formAction:h,formEncType:a.formEncType,formData:void 0,json:O,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:h,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=Wn(u);return i&&D.search&&na(D.search)&&v.append("index",""),D.search= ` ? $ { v } ` ,{path:Vn(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,h,v,g,S,D,O,L,N){let z=N?_t(N[1])?N[1].error:N[1].data:void 0, $ =i.createURL(u.location),H=i.createURL(f),M=a;d&&u.errors?M=Wf(a,Object.keys(u.errors)[0],!0):N&&_t(N[1])&&(M=Wf(a,N[0]));let b=N?N[1].statusCode:void 0,J=b&&b>=400,ae=M.filter((le,pe)=>{let{route:ie}=le;if(ie.lazy)return!0;if(ie.loader==null)return!1;if(d)return Zu(ie,u.loaderData,u.errors);if(Jp(u.loaderData,u.matches[pe],le))return!0;let ge=u.matches[pe],Ce=le;return Kf(le,{currentUrl: $ ,currentParams:ge.params,nextUrl:H,nextParams:Ce.params,...c,actionResult:z,actionStatus:b,defaultShouldRevalidate:J?!1:h|| $ .pathname+ $ .search===H.pathname+H.search|| $ .search!==H.search||Zp(ge,Ce)})}),C=[];return S.forEach((le,pe)=>{if(d||!a.some(rt=>rt.route.id===le.routeId)||g.has(pe))return;let ie=Bn(O,le.path,L);if(!ie){C.push({key:pe,routeId:le.routeId,path:le.path,matches:null,match:null,controller:null});return}let ge=u.fetchers.get(pe),Ce=zl(ie,le.path),Ke=!1;D.has(pe)?Ke=!1:v.has(pe)?(v.delete(pe),Ke=!0):ge&&ge.state!=="idle"&&ge.data===void 0?Ke=h:Ke=Kf(Ce,{currentUrl: $ ,currentParams:u.matches[u.matches.length-1].params,nextUrl:H,nextParams:a[a.length-1].params,...c,actionResult:z,actionStatus:b,defaultShouldRevalidate:J?!1:h}),Ke&&C.push({key:pe,routeId:le.routeId,path:le.path,matches:ie,match:Ce,controller:new AbortController})}),[ae,C]}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 Jp(i,u,a){let c=!u||a.route.id!==u.route.id,f=!i.hasOwnProperty(a.route.id);return c||f}function Zp(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 h=u.filter(g=>!d.some(S=>hc(g,S))),v=to(h,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 qp(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 h in c){let g=f[h]!==void 0&&h!=="hasErrorBoundary";ot(!g, ` Route "${f.id}" has a static property "${h}" defined but its lazy function is also returning a value for this property . The lazy route property "${h}" will be ignored . ` ),!g&&!Ep.has(h)&&(d[h]=c[h])}Object.assign(f,d),Object.assign(f,{...u(f),lazy:void 0})}async f
2025-02-09 13:36:07 +00:00
2025-02-17 11:23:40 +00:00
Please change the parent < Route path = "${M}" > to < Route path = "${M===" / "?" * ":`${M}/*`}" > . ` )}let O=pr(),L;L=O;let N=L.pathname||"/",z=N;if(S!=="/"){let M=S.replace(/^ \/ /,"").split("/");z="/"+N.replace(/^ \/ /,"").split("/").slice(M.length).join("/")}let $ =Bn(i,{pathname:z});return ot(D|| $ !=null, ` No routes matched location "${L.pathname}${L.search}${L.hash}" ` ),ot( $ ==null|| $ [ $ .length-1].route.element!==void 0|| $ [ $ .length-1].route.Component!==void 0|| $ [ $ .length-1].route.lazy!==void 0, ` Matched leaf route at location "${L.pathname}${L.search}${L.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 . ` ),Ch( $ && $ .map(M=>Object.assign({},M,{params:Object.assign({},v,M.params),pathname:en([S,f.encodeLocation?f.encodeLocation(M.pathname).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?S:en([S,f.encodeLocation?f.encodeLocation(M.pathnameBase).pathname:M.pathnameBase])})),d,a,c)}function Sh(){let i=Th(),u=lo(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},h=null;return console.error("Error handled by React Router default ErrorBoundary:",i),h=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:d},"ErrorBoundary")," or"," ",T.createElement("code",{style:d},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},u),a?T.createElement("pre",{style:f},a):null,h)}var Eh=T.createElement(Sh,null),kh=class extends T.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?T.createElement(nn.Provider,{value:this.props.routeContext},T.createElement(la.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function xh({routeContext:i,match:u,children:a}){let c=T.useContext(dr);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),T.createElement(nn.Provider,{value:i},a)}function Ch(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 h=!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:O}=a,L=S.route.loader&&!D.hasOwnProperty(S.route.id)&&(!O||O[S.route.id]===void 0);if(S.route.lazy||L){h=!0,v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((g,S,D)=>{let O,L=!1,N=null,z=null;a&&(O=d&&S.route.id?d[S.route.id]:void 0,N=S.route.errorElement||Eh,h&&(v<0&&D===0?(Sc("route-fallback",!1,"No ` HydrateFallback ` element provided to render during initial hydration"),L=!0,z=null):v===D&&(L=!0,z=S.route.hydrateFallbackElement||null)));let $ =u.concat(f.slice(0,D+1)),H=()=>{let M;return O?M=N:L?M=z:S.route.Component?M=T.createElement(S.route.Component,null):S.route.element?M=S.route.element:M
2025-02-09 13:36:07 +00:00
* react - router v7 . 1.3
*
* 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
2025-02-25 10:34:53 +00:00
* / f u n c t i o n k m ( i ) { r e t u r n T . c r e a t e E l e m e n t ( z h , { f l u s h S y n c : P c . f l u s h S y n c , . . . i } ) } e x p o r t { C c a s L , w m a s O , g m a s R , T a s a , P c a s b , E m a s c , v m a s d , d p a s e , y p a s f , S m a s g , k m a s h , u c a s r } ;