1import{o as e,t}from"./rolldown-runtime-C0FnF6B9.js";import{t as n}from"./react-C21x__mS.js";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}var a=t(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),o=t(((e,t)=>{var n=a();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),s=t(((e,t)=>{t.exports=o()()})),c=e(n()),l=e(s());function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function d(e){return e.charAt(0)===`/`}function f(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function p(e,t){t===void 0&&(t=``);var n=e&&e.split(`/`)||[],r=t&&t.split(`/`)||[],i=e&&d(e),a=t&&d(t),o=i||a;if(e&&d(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return`/`;var s;if(r.length){var c=r[r.length-1];s=c===`.`||c===`..`||c===``}else s=!1;for(var l=0,u=r.length;u>=0;u--){var p=r[u];p===`.`?f(r,u):p===`..`?(f(r,u),l++):l&&(f(r,u),l--)}if(!o)for(;l--;)r.unshift(`..`);o&&r[0]!==``&&(!r[0]||!d(r[0]))&&r.unshift(``);var m=r.join(`/`);return s&&m.substr(-1)!==`/`&&(m+=`/`),m}function m(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function h(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return h(e,t[n])});if(typeof e==`object`||typeof t==`object`){var n=m(e),r=m(t);return n!==e||r!==t?h(n,r):Object.keys(Object.assign({},e,t)).every(function(n){return h(e[n],t[n])})}return!1}var g=`Invariant failed`;function _(e,t){if(!e)throw Error(g)}function v(e){return e.charAt(0)===`/`?e:`/`+e}function y(e){return e.charAt(0)===`/`?e.substr(1):e}function b(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&`/?#`.indexOf(e.charAt(t.length))!==-1}function x(e,t){return b(e,t)?e.substr(t.length):e}function S(e){return e.charAt(e.length-1)===`/`?e.slice(0,-1):e}function C(e){var t=e||`/`,n=``,r=``,i=t.indexOf(`#`);i!==-1&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf(`?`);return a!==-1&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:n===`?`?``:n,hash:r===`#`?``:r}}function w(e){var t=e.pathname,n=e.search,r=e.hash,i=t||`/`;return n&&n!==`?`&&(i+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(i+=r.charAt(0)===`#`?r:`#`+r),i}function T(e,t,n,r){var i;typeof e==`string`?(i=C(e),i.state=t):(i=u({},e),i.pathname===void 0&&(i.pathname=``),i.search?i.search.charAt(0)!==`?`&&(i.search=`?`+i.search):i.search=``,i.hash?i.hash.charAt(0)!==`#`&&(i.hash=`#`+i.hash):i.hash=``,t!==void 0&&i.state===void 0&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?URIError(`Pathname "`+i.pathname+`" could not be decoded. This is likely caused by an invalid percent-encoding.`):e}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!==`/`&&(i.pathname=p(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname=`/`),i}function E(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&h(e.state,t.state)}function ee(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function n(t,n,r,i){if(e!=null){var a=typeof e==`function`?e(t,n):e;typeof a==`string`?typeof r==`function`?r(a,i):i(!0):i(a!==!1)}else i(!0)}var r=[];function i(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}}function a(){var e=[...arguments];r.forEach(function(t){return t.apply(void 0,e)})}return{setPrompt:t,confirmTransitionTo:n,appendListener:i,notifyListeners:a}}var te=!!(typeof window<`u`&&window.document&&window.document.createElement);function ne(e,t){t(window.confirm(e))}function D(){var e=window.navigator.userAgent;return(e.indexOf(`Android 2.`)!==-1||e.indexOf(`Android 4.0`)!==-1)&&e.indexOf(`Mobile Safari`)!==-1&&e.indexOf(`Chrome`)===-1&&e.indexOf(`Windows Phone`)===-1?!1:window.history&&`pushState`in window.history}function O(){return window.navigator.userAgent.indexOf(`Trident`)===-1}function re(){return window.navigator.userAgent.indexOf(`Firefox`)===-1}function k(e){return e.state===void 0&&navigator.userAgent.indexOf(`CriOS`)===-1}
1var A=`popstate`,j=`hashchange`;function M(){try{return window.history.state||{}}catch{return{}}}function N(e){e===void 0&&(e={}),!te&&_(!1);var t=window.history,n=D(),r=!O(),i=e,a=i.forceRefresh,o=a!==void 0&&a,s=i.getUserConfirmation,c=s===void 0?ne:s,l=i.keyLength,d=l===void 0?6:l,f=e.basename?S(v(e.basename)):``;function p(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname,o=i.search,s=i.hash,c=a+o+s;return f&&(c=x(c,f)),T(c,r,n)}function m(){return Math.random().toString(36).substr(2,d)}var h=ee();function g(e){u(K,e),K.length=t.length,h.notifyListeners(K.location,K.action)}function y(e){k(e)||E(p(e.state))}function b(){E(p(M()))}var C=!1;function E(e){if(C)C=!1,g();else{var t=`POP`;h.confirmTransitionTo(e,t,c,function(n){n?g({action:t,location:e}):re(e)})}}function re(e){var t=K.location,n=P.indexOf(t.key);n===-1&&(n=0);var r=P.indexOf(e.key);r===-1&&(r=0);var i=n-r;i&&(C=!0,R(i))}var N=p(M()),P=[N.key];function F(e){return f+w(e)}function I(e,r){var i=`PUSH`,a=T(e,r,m(),K.location);h.confirmTransitionTo(a,i,c,function(e){if(e){var r=F(a),s=a.key,c=a.state;if(n){if(t.pushState({key:s,state:c},null,r),o)window.location.href=r;else{var l=P.indexOf(K.location.key),u=P.slice(0,l+1);u.push(a.key),P=u,g({action:i,location:a})}}else window.location.href=r}})}function L(e,r){var i=`REPLACE`,a=T(e,r,m(),K.location);h.confirmTransitionTo(a,i,c,function(e){if(e){var r=F(a),s=a.key,c=a.state;if(n){if(t.replaceState({key:s,state:c},null,r),o)window.location.replace(r);else{var l=P.indexOf(K.location.key);l!==-1&&(P[l]=a.key),g({action:i,location:a})}}else window.location.replace(r)}})}function R(e){t.go(e)}function z(){R(-1)}function B(){R(1)}var V=0;function H(e){V+=e,V===1&&e===1?(window.addEventListener(A,y),r&&window.addEventListener(j,b)):V===0&&(window.removeEventListener(A,y),r&&window.removeEventListener(j,b))}var U=!1;function W(e){e===void 0&&(e=!1);var t=h.setPrompt(e);return U||=(H(1),!0),function(){return U&&(U=!1,H(-1)),t()}}function G(e){var t=h.appendListener(e);return H(1),function(){H(-1),t()}}var K={length:t.length,action:`POP`,location:N,createHref:F,push:I,replace:L,go:R,goBack:z,goForward:B,block:W,listen:G};return K}var P=`hashchange`,F={hashbang:{encodePath:function(e){return e.charAt(0)===`!`?e:`!/`+y(e)},decodePath:function(e){return e.charAt(0)===`!`?e.substr(1):e}},noslash:{encodePath:y,decodePath:v},slash:{encodePath:v,decodePath:v}};function I(e){var t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}function L(){var e=window.location.href,t=e.indexOf(`#`);return t===-1?``:e.substring(t+1)}function R(e){window.location.hash=e}function z(e){window.location.replace(I(window.location.href)+`#`+e)}function B(e){e===void 0&&(e={}),!te&&_(!1);var t=window.history;re();var n=e,r=n.getUserConfirmation,i=r===void 0?ne:r,a=n.hashType,o=a===void 0?`slash`:a,s=e.basename?S(v(e.basename)):``,c=F[o],l=c.encodePath,d=c.decodePath;function f(){var e=d(L());return s&&(e=x(e,s)),T(e)}var p=ee();function m(e){u(J,e),J.length=t.length,p.notifyListeners(J.location,J.action)}var h=!1,g=null;function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}function b(){var e=L(),t=l(e);if(e!==t)z(t);else{var n=f(),r=J.location;if(!h&&y(r,n)||g===w(n))return;g=null,C(n)}}function C(e){if(h)h=!1,m();else{var t=`POP`;p.confirmTransitionTo(e,t,i,function(n){n?m({action:t,location:e}):E(e)})}}function E(e){var t=J.location,n=A.lastIndexOf(w(t));n===-1&&(n=0);var r=A.lastIndexOf(w(e));r===-1&&(r=0);var i=n-r;i&&(h=!0,B(i))}var D=L(),O=l(D);D!==O&&z(O);var k=f(),A=[w(k)];function j(e){var t=document.querySelector(`base`),n=``;return t&&t.getAttribute(`href`)&&(n=I(window.location.href)),n+`#`+l(s+w(e))}function M(e,t){var n=`PUSH`,r=T(e,void 0,void 0,J.location);p.confirmTransitionTo(r,n,i,function(e){if(e){var t=w(r),i=l(s+t);if(L()!==i){g=t,R(i);var a=A.lastIndexOf(w(J.location)),o=A.slice(0,a+1);o.push(t),A=o,m({action:n,location:r})}else m()}})}function N(e,t){var n=`REPLACE`,r=T(e,void 0,void 0,J.location);p.confirmTransitionTo(r,n,i,function(e){if(e){var t=w(r),i=l(s+t);L()!==i&&(g=t,z(i));var a=A.indexOf(w(J.location));a!==-1&&(A[a]=t),m({action:n,location:r})}})}function B(e){t.go(e)}function V(){B(-1)}function H(){B(1)}var U=0;function W(e){U+=e,U===1&&e===1?window.addEventListener(P,b):U===0&&window.removeEventListener(P,b)}var G=!1;function K(e){e===void 0&&(e=!1);var t=p.setPrompt(e);return G||=(W(1),!0),function(){return G&&(G=!1,W(-1)),t()}}function q(e){var t=p.appendListener(e);return W(1),function(){W(-1),t()}}var J={length:t.length,action:`POP`,location:k,createHref:j,push:M,replace:N,go:B,goBack:V,goForward:H,block:K,listen:q};return J}var V=t(((e,t)=>{t.exports=Array.isArray||function(e){return Object.prototype.toString.call(e)==`[object Array]`}}
1)),H=t(((e,t)=>{var n=V();t.exports=v,t.exports.parse=i,t.exports.compile=o,t.exports.tokensToFunction=l,t.exports.tokensToRegExp=_;var r=new RegExp([`(\\\\.)`,`([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))`].join(`|`),`g`);function i(e,t){for(var n=[],i=0,o=0,s=``,c=t&&t.delimiter||`/`,l;(l=r.exec(e))!=null;){var u=l[0],f=l[1],p=l.index;if(s+=e.slice(o,p),o=p+u.length,f){s+=f[1];continue}var m=e[o],h=l[2],g=l[3],_=l[4],v=l[5],y=l[6],b=l[7];s&&=(n.push(s),``);var x=h!=null&&m!=null&&m!==h,S=y===`+`||y===`*`,C=y===`?`||y===`*`,w=h||c,T=_||v,E=h||(typeof n[n.length-1]==`string`?n[n.length-1]:``);n.push({name:g||i++,prefix:h||``,delimiter:w,optional:C,repeat:S,partial:x,asterisk:!!b,pattern:T?d(T):b?`.*`:a(w,E)})}return o<e.length&&(s+=e.substr(o)),s&&n.push(s),n}function a(e,t){return!t||t.indexOf(e)>-1?`[^`+u(e)+`]+?`:u(t)+`|(?:(?!`+u(t)+`)[^`+u(e)+`])+?`}function o(e,t){return l(i(e,t),t)}function s(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function c(e){return encodeURI(e).replace(/[?#]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function l(e,t){for(var r=Array(e.length),i=0;i<e.length;i++)typeof e[i]==`object`&&(r[i]=RegExp(`^(?:`+e[i].pattern+`)$`,p(t)));return function(t,i){for(var a=``,o=t||{},l=(i||{}).pretty?s:encodeURIComponent,u=0;u<e.length;u++){var d=e[u];if(typeof d==`string`){a+=d;continue}var f=o[d.name],p;if(f==null){if(d.optional){d.partial&&(a+=d.prefix);continue}throw TypeError(`Expected "`+d.name+`" to be defined`)}if(n(f)){if(!d.repeat)throw TypeError(`Expected "`+d.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(f.length===0){if(d.optional)continue;throw TypeError(`Expected "`+d.name+`" to not be empty`)}for(var m=0;m<f.length;m++){if(p=l(f[m]),!r[u].test(p))throw TypeError(`Expected all "`+d.name+`" to match "`+d.pattern+'", but received `'+JSON.stringify(p)+"`");a+=(m===0?d.prefix:d.delimiter)+p}continue}if(p=d.asterisk?c(f):l(f),!r[u].test(p))throw TypeError(`Expected "`+d.name+`" to match "`+d.pattern+`", but received "`+p+`"`);a+=d.prefix+p}return a}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,`\\$1`)}function d(e){return e.replace(/([=!:$\/()])/g,`\\$1`)}function f(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?``:`i`}function m(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(e,t)}function h(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(v(e[i],t,n).source);return f(RegExp(`(?:`+r.join(`|`)+`)`,p(n)),t)}function g(e,t,n){return _(i(e,n),t,n)}function _(e,t,r){n(t)||(r=t||r,t=[]),r||={};for(var i=r.strict,a=r.end!==!1,o=``,s=0;s<e.length;s++){var c=e[s];if(typeof c==`string`)o+=u(c);else{var l=u(c.prefix),d=`(?:`+c.pattern+`)`;t.push(c),c.repeat&&(d+=`(?:`+l+d+`)*`),d=c.optional?c.partial?l+`(`+d+`)?`:`(?:`+l+`(`+d+`))?`:l+`(`+d+`)`,o+=d}}var m=u(r.delimiter||`/`),h=o.slice(-m.length)===m;return i||(o=(h?o.slice(0,-m.length):o)+`(?:`+m+`(?=$))?`),o+=a?`$`:i&&h?``:`(?=`+m+`|$)`,f(RegExp(`^`+o,p(r)),t)}function v(e,t,r){return n(t)||(r=t||r,t=[]),r||={},e instanceof RegExp?m(e,t):n(e)?h(e,t,r):g(e,t,r)}})),U=t((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.
1Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),W=t(((e,t)=>{t.exports=U()})),G=e(H());W();function K(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var q=t(((e,t)=>{var n=W(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),J=e(q()),Y=1073741823,ie=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:{};function ae(){var e=`__global_unique_id__`;return ie[e]=(ie[e]||0)+1}function oe(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function se(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(n,r){e=n,t.forEach(function(t){return t(e,r)})}}}function ce(e){return Array.isArray(e)?e[0]:e}function le(e,t){var n,r,a=`__create-react-context-`+ae()+`__`,o=function(e){i(n,e);function n(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.emitter=se(t.props.value),t}var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i;oe(n,r)?i=0:(i=typeof t==`function`?t(n,r):Y,i|=0,i!==0&&this.emitter.set(e.value,i))}},r.render=function(){return this.props.children},n}(c.Component);o.childContextTypes=(n={},n[a]=l.default.object.isRequired,n);var s=function(t){i(n,t);function n(){var e,n=[...arguments];return e=t.call.apply(t,[this].concat(n))||this,e.observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(e.observedBits|0)&n&&e.setState({value:e.getValue()})},e}var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=t??Y},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=e??Y},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return ce(this.props.children)(this.state.value)},n}(c.Component);return s.contextTypes=(r={},r[a]=l.default.object,r),{Provider:o,Consumer:s}}var ue=c.createContext||le,de=function(e){var t=ue();return t.displayName=e,t},fe=de(`Router-History`),X=de(`Router`),pe=function(e){i(t,e),t.computeRootMatch=function(e){return{path:`/`,url:`/`,params:{},isExact:e===`/`}};function t(t){var n=e.call(this,t)||this;return n.state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._pendingLocation=e})),n}var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(t){e._isMounted&&e.setState({location:t})}
1)),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return c.createElement(X.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},c.createElement(fe.Provider,{children:this.props.children||null,value:this.props.history}))},t}(c.Component);c.Component;var me=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(c.Component),Z={},he=1e4,ge=0;function _e(e){if(Z[e])return Z[e];var t=G.default.compile(e);return ge<he&&(Z[e]=t,ge++),t}function ve(e,t){return e===void 0&&(e=`/`),t===void 0&&(t={}),e===`/`?e:_e(e)(t,{pretty:!0})}function ye(e){var t=e.computedMatch,n=e.to,r=e.push,i=r!==void 0&&r;return c.createElement(X.Consumer,null,function(e){!e&&_(!1);var r=e.history,a=e.staticContext,o=i?r.push:r.replace,s=T(t?typeof n==`string`?ve(n,t.params):u({},n,{pathname:ve(n.pathname,t.params)}):n);return a?(o(s),null):c.createElement(me,{onMount:function(){o(s)},onUpdate:function(e,t){var n=T(t.to);E(n,u({},s,{key:n.key}))||o(s)},to:n})})}var be={},xe=1e4,Se=0;function Ce(e,t){var n=``+t.end+t.strict+t.sensitive,r=be[n]||(be[n]={});if(r[e])return r[e];var i=[],a={regexp:(0,G.default)(e,i,t),keys:i};return Se<xe&&(r[e]=a,Se++),a}function Q(e,t){t===void 0&&(t={}),(typeof t==`string`||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=i!==void 0&&i,o=n.strict,s=o!==void 0&&o,c=n.sensitive,l=c!==void 0&&c;return[].concat(r).reduce(function(t,n){if(!n&&n!==``)return null;if(t)return t;var r=Ce(n,{end:a,strict:s,sensitive:l}),i=r.regexp,o=r.keys,c=i.exec(e);if(!c)return null;var u=c[0],d=c.slice(1),f=e===u;return a&&!f?null:{path:n,url:n===`/`&&u===``?`/`:u,isExact:f,params:o.reduce(function(e,t,n){return e[t.name]=d[n],e},{})}},null)}function we(e){return c.Children.count(e)===0}var Te=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var e=this;return c.createElement(X.Consumer,null,function(t){!t&&_(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?Q(n.pathname,e.props):t.match,i=u({},t,{location:n,match:r}),a=e.props,o=a.children,s=a.component,l=a.render;return Array.isArray(o)&&we(o)&&(o=null),c.createElement(X.Provider,{value:i},i.match?o?typeof o==`function`?o(i):o:s?c.createElement(s,i):l?l(i):null:typeof o==`function`?o(i):null)})},t}(c.Component);c.Component;var Ee=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var e=this;return c.createElement(X.Consumer,null,function(t){!t&&_(!1);var n=e.props.location||t.location,r,i;return c.Children.forEach(e.props.children,function(e){if(i==null&&c.isValidElement(e)){r=e;var a=e.props.path||e.props.from;i=a?Q(n.pathname,u({},e.props,{path:a})):t.match}}),i?c.cloneElement(r,{location:n,computedMatch:i}):null})},t}(c.Component);function De(e){var t=`withRouter(`+(e.displayName||e.name)+`)`,n=function(t){var n=t.wrappedComponentRef,r=K(t,[`wrappedComponentRef`]);return c.createElement(X.Consumer,null,function(t){return!t&&_(!1),c.createElement(e,u({},r,t,{ref:n}))})};return n.displayName=t,n.WrappedComponent=e,(0,J.default)(n,e)}var $=c.useContext;function Oe(){return $(fe)}function ke(){return $(X).location}function Ae(){var e=$(X).match;return e?e.params:{}}function je(e){var t=ke(),n=$(X).match;return e?Q(t.pathname,e):n}export{r as S,w as _,X as a,s as b,ke as c,De as d,q as f,T as g,B as h,Ee as i,Ae as l,N as m,Te as n,Q as o,K as p,pe as r,Oe as s,ye as t,je as u,_ as v,i as x,u as y}; 2//# sourceMappingURL=react-router-BkmJBoOP.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.