1!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n((t=t||self).ReactRouterDOM={},t.React)}(this,(function(t,n){"use strict";function e(t,n){return(e=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function r(t,n){t.prototype=Object.create(n.prototype),e(t.prototype.constructor=t,n)}function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t,n){return t(n={exports:{}},n.exports),n.exports}n=n&&n.hasOwnProperty("default")?n.default:n;var a=i((function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118;function w(t){if("object"==typeof t&&null!==t){var n=t.$$typeof;switch(n){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case u:return t;default:return n}}case y:case v:case o:return n}}}function b(t){return w(t)===l}n.typeOf=w,n.AsyncMode=f,n.ConcurrentMode=l,n.ContextConsumer=s,n.ContextProvider=u,n.Element=r,n.ForwardRef=p,n.Fragment=i,n.Lazy=y,n.Memo=v,n.Portal=o,n.Profiler=c,n.StrictMode=a,n.Suspense=h,n.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===m||t.$$typeof===g)},n.isAsyncMode=function(t){return b(t)||w(t)===f},n.isConcurrentMode=b,n.isContextConsumer=function(t){return w(t)===s},n.isContextProvider=function(t){return w(t)===u},n.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},n.isForwardRef=function(t){return w(t)===p},n.isFragment=function(t){return w(t)===i},n.isLazy=function(t){return w(t)===y},n.isMemo=function(t){return w(t)===v},n.isPortal=function(t){return w(t)===o},n.isProfiler=function(t){return w(t)===c},n.isStrictMode=function(t){return w(t)===a},n.isSuspense=function(t){return w(t)===h}}));o(a),a.typeOf,a.AsyncMode,a.ConcurrentMode,a.ContextConsumer,a.ContextProvider,a.Element,a.ForwardRef,a.Fragment,a.Lazy,a.Memo,a.Portal,a.Profiler,a.StrictMode,a.Suspense,a.isValidElementType,a.isAsyncMode,a.isConcurrentMode,a.isContextConsumer,a.isContextProvider,a.isElement,a.isForwardRef,a.isFragment,a.isLazy,a.isMemo,a.isPortal,a.isProfiler,a.isStrictMode,a.isSuspense;var c=i((function(t,n){}));o(c),c.typeOf,c.AsyncMode,c.ConcurrentMode,c.ContextConsumer,c.ContextProvider,c.Element,c.ForwardRef,c.Fragment,c.Lazy,c.Memo,c.Portal,c.Profiler,c.StrictMode,c.Suspense,c.isValidElementType,c.isAsyncMode,c.isConcurrentMode,c.isContextConsumer,c.isContextProvider,c.isElement,c.isForwardRef,c.isFragment,c.isLazy,c.isMemo,c.isPortal,c.isProfiler,c.isStrictMode,c.isSuspense;var u=i((function(t){t.exports=a}));function s(){}function f(){}u.isValidElementType,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,!function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(t){return n[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()||Object.assign,Function.call.bind(Object.prototype.hasOwnProperty),f.resetWarningCache=s;var l=i((function(t){t.exports=function(){function t(t,n,e,r,o,i){if
1("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new 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 a.name="Invariant Violation",a}}function n(){return t}var e={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:f,resetWarningCache:s};return e.PropTypes=e}()}));function p(){return(p=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function h(t){return"/"===t.charAt(0)}function d(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y="Invariant failed";function m(t){if(!t)throw new Error(y)}function g(t){return"/"===t.charAt(0)?t:"/"+t}function w(t){return"/"===t.charAt(0)?t.substr(1):t}function b(t,n){return function(t,n){return new RegExp("^"+n+"(\\/|\\?|#|$)","i").test(t)}(t,n)?t.substr(n.length):t}function x(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function P(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function O(t,n,e,r){var o;"string"==typeof t?(o=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return-1!==i&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}}(t)).state=n:(void 0===(o=p({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t,n){var e=1<arguments.length&&void 0!==n?n:"",r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&h(t),a=e&&h(e),c=i||a;if(t&&h(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";var u=void 0;if(o.length){var s=o[o.length-1];u="."===s||".."===s||""===s}else u=!1;for(var f=0,l=o.length;0<=l;l--){var p=o[l];"."===p?d(o,l):".."===p?(d(o,l),f++):f&&(d(o,l),f--)}if(!c)for(;f--;)o.unshift("..");!c||""===o[0]||o[0]&&h(o[0])||o.unshift("");var v=o.join("/");return u&&"/"!==v.substr(-1)&&(v+="/"),v}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function C(t,n){return t.pathname===n.pathname&&t.search===n.search&&t.hash===n.hash&&t.key===n.key&&function t(n,e){if(n===e)return!0;if(null==n||null==e)return!1;if(Array.isArray(n))return Array.isArray(e)&&n.length===e.length&&n.every((function(n,r){return t(n,e[r])}));var r=void 0===n?"undefined":v(n);if(r!==(void 0===e?"undefined":v(e)))return!1;if("object"!==r)return!1;var o=n.valueOf(),i=e.valueOf();if(o!==n||i!==e)return t(o,i);var a=Object.keys(n),c=Object.keys(e);return a.length===c.length&&a.every((function(r){return t(n[r],e[r])}))}(t.state,n.state)}function E(){var t=null,n=[];return{setPrompt:function(n){return t=n,function(){t===n&&(t=null)}},confirmTransitionTo:function(n,e,r,o){if(null!=t){var i="function"==typeof t?t(n,e):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var e=!0;function r(){e&&t.apply(void 0,arguments)}return n.push(r),function(){e=!1,n=n.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.forEach((function(t){return t.apply(void 0,e)}))}}}var S=!("undefined"==typeof window||!window.document||!window.document.createElement);function R(t,n){n(window.confirm(t))}var T="popstate",k="hashchange";function A(){try{return window.history.state||{}}catch(t){return{}}}var M="hashchange",j={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+w(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:w,decodePath:g},slash:{encodePath:g,decodePath:g}};function _(){var t=window.location.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)}function L(t){var n=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0<=n?n:0)+"#"+t)}function $(t,n,e){return Math.min(Math.max(t,n),e)}var U=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},F=function t(n,e,r){return U(e)||(r=e||r,e=[]),r=r||{},n instanceof RegExp?function(t,n){var e=t.source.match(/\((?!\?)/g);if(e)for(var r=0;r<e.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return q(t,n)}(n,e):U(n)?function(n,e,r){for(var o=[],i=0;i<n.length;i++)o.push(t(n[i],e,r).source);return q(new RegExp("(?:"+o.join("|")+")",K(r)),e)}(n,e,r):function(t,n,e){return J(D(t,e),n,e)}(n,e,r)},N=D,H=V,I=J,B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function D(t,n){for(var e,r,o=[],i=0,a=0,c="",u=n&&n.delimiter||"/";null!=(e=B.exec(t));){var s=e[0],f=e[1],l=e.index;if(c+=t.slice(a,l),a=l+s.length,f)c+=f[1];else{var p=t[a],h=e[2],d=e[3],v=e[4],y=e[5],m=e[6],g=e[7];c&&(o.push(c),c="");var w=null!=h&&null!=p&&p!==h,b="+"===m||"*"===m,x="?"===m||"*"===m,P=e[2]||u,O=v||y;o.push({name:d||i++,prefix:h||"",delimiter:P,optional:x,repeat:b,partial:w,asterisk:!!g,pattern:O?(r=O,r.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+z(P)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&o.push(c),o}function W(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function V(t){for(var n=new Array(t.length),e=0;e<t.length;e++)"object"==typeof t[e]&&(n[e]=new RegExp("^(?:"+t[e].pattern+")$"));return function(e,r){for(var o="",i=e||{},a=(r||{}).pretty?W:encodeURIComponent,c=0;c<t.length;c++){var u=t[c];if("string"!=typeof u){var s,f=i[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(U(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var l=0;l<f.length;l++){if(s=a(f[l]),!n[c].test(s))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(s)+"`");o+=(0===l?u.prefix:u.delimiter)+s}}else{if(s=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):a(f),!n[c].test(s))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+s+'"');o+=u.prefix+s}}else o+=u}return o}}function z(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function q(t,n){return t.keys=n,t}function K(t){return t.sensitive?"":"i"}function J(t,n,e){U(n)||(e=n||e,n=[]);
1for(var r=(e=e||{}).strict,o=!1!==e.end,i="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)i+=z(c);else{var u=z(c.prefix),s="(?:"+c.pattern+")";n.push(c),c.repeat&&(s+="(?:"+u+s+")*"),i+=s=c.optional?c.partial?u+"("+s+")?":"(?:"+u+"("+s+"))?":u+"("+s+")"}}var f=z(e.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",q(new RegExp("^"+i,K(e)),n)}function G(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],0<=n.indexOf(e)||(o[e]=t[e]);return o}F.parse=N,F.compile=function(t,n){return V(D(t,n))},F.tokensToFunction=H,F.tokensToRegExp=I;var Y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Q={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},X={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Z={};function tt(t){return u.isMemo(t)?X:Z[t.$$typeof]||Y}Z[u.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var nt=Object.defineProperty,et=Object.getOwnPropertyNames,rt=Object.getOwnPropertySymbols,ot=Object.getOwnPropertyDescriptor,it=Object.getPrototypeOf,at=Object.prototype,ct=function t(n,e,r){if("string"==typeof e)return n;if(at){var o=it(e);o&&o!==at&&t(n,o,r)}var i=et(e);rt&&(i=i.concat(rt(e)));for(var a=tt(n),c=tt(e),u=0;u<i.length;++u){var s=i[u];if(!(Q[s]||r&&r[s]||c&&c[s]||a&&a[s])){var f=ot(e,s);try{nt(n,s,f)}catch(t){}}}return n},ut=1073741823,st="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function ft(t){var n=lt();return n.displayName=t,n}var lt=n.createContext||function(t,e){var o,i,a="__create-react-context-"+function(){var t="__global_unique_id__";return st[t]=(st[t]||0)+1}()+"__",c=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).emitter=function(t){var n=[];return{on:function(t){n.push(t)},off:function(t){n=n.filter((function(n){return n!==t}))},get:function(){return t},set:function(e,r){t=e,n.forEach((function(n){return n(t,r)}))}}}(n.props.value),n}r(n,t);var o=n.prototype;return o.getChildContext=function(){var t;return(t={})[a]=this.emitter,t},o.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;!function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}(r,o)?(n="function"==typeof e?e(r,o):ut,0!=(n|=0)&&this.emitter.set(t.value,n)):n=0}},o.render=function(){return this.props.children},n}(n.Component);c.childContextTypes=((o={})[a]=l.object.isRequired,o);var u=function(n){function e(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))||this).observedBits=void 0,t.state={value:t.getValue()},t.onUpdate=function(n,e){t.observedBits&e&&t.setState({value:t.getValue()})},t}r(e,n);var o=e.prototype;return o.componentWillReceiveProps=function(t){var n=t.observedBits;this.observedBits=null==n?ut:n},o.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?ut:t},o.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},o.getValue=function(){return this.context[a]?this.context[a].get():t},o.render=function(){return function(t){return Array.isArray(t)?t[0]:t}(this.props.children)(this.state.value)},e}(n.Component);return u.contextTypes=((i={})[a]=l.object,i),{Provider:c,Consumer:u}},pt=ft("Router-History"),ht=ft("Router"),dt=function(t){function e(n){var e;return(e=t.call(this,n)||this).state={location:n.history.location},e._isMounted=!1,e._pendingLocation=null,n.staticContext||(e.unlisten=n.history.listen((function(t){e._pendingLocation=t}))),e}r(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var o=e.prototype;return o.componentDidMount=function(){var t=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(n){t._isMounted&&t.setState({location:n})}
1))),this._pendingLocation&&this.setState({location:this._pendingLocation})},o.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},o.render=function(){return n.createElement(ht.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},n.createElement(pt.Provider,{children:this.props.children||null,value:this.props.history}))},e}(n.Component),vt=function(t){function e(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=function(t){void 0===t&&(t={});var n=t,e=n.getUserConfirmation,r=n.initialEntries,o=void 0===r?["/"]:r,i=n.initialIndex,a=void 0===i?0:i,c=n.keyLength,u=void 0===c?6:c,s=E();function f(t){p(m,t),m.length=m.entries.length,s.notifyListeners(m.location,m.action)}function l(){return Math.random().toString(36).substr(2,u)}var h=$(a,0,o.length-1),d=o.map((function(t){return O(t,void 0,"string"==typeof t?l():t.key||l())})),v=P;function y(t){var n=$(m.index+t,0,m.entries.length-1),r=m.entries[n];s.confirmTransitionTo(r,"POP",e,(function(t){t?f({action:"POP",location:r,index:n}):f()}))}var m={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:v,push:function(t,n){var r=O(t,n,l(),m.location);s.confirmTransitionTo(r,"PUSH",e,(function(t){if(t){var n=m.index+1,e=m.entries.slice(0);e.length>n?e.splice(n,e.length-n,r):e.push(r),f({action:"PUSH",location:r,index:n,entries:e})}}))},replace:function(t,n){var r="REPLACE",o=O(t,n,l(),m.location);s.confirmTransitionTo(o,r,e,(function(t){t&&(m.entries[m.index]=o,f({action:r,location:o}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var n=m.index+t;return 0<=n&&n<m.entries.length},block:function(t){return void 0===t&&(t=!1),s.setPrompt(t)},listen:function(t){return s.appendListener(t)}};return m}(n.props),n}return r(e,t),e.prototype.render=function(){return n.createElement(dt,{history:this.history,children:this.props.children})},e}(n.Component),yt=function(t){function n(){return t.apply(this,arguments)||this}r(n,t);var e=n.prototype;return e.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.render=function(){return null},n}(n.Component),mt={},gt=0;function wt(t,n){return void 0===t&&(t="/"),void 0===n&&(n={}),"/"===t?t:function(t){if(mt[t])return mt[t];var n=F.compile(t);return gt<1e4&&(mt[t]=n,gt++),n}(t)(n,{pretty:!0})}var bt={},xt=0;function Pt(t,n){void 0===n&&(n={}),"string"!=typeof n&&!Array.isArray(n)||(n={path:n});var e=n,r=e.path,o=e.exact,i=void 0!==o&&o,a=e.strict,c=void 0!==a&&a,u=e.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(n,e){if(!e&&""!==e)return null;if(n)return n;var r=function(t,n){var e=""+n.end+n.strict+n.sensitive,r=bt[e]||(bt[e]={});if(r[t])return r[t];var o=[],i={regexp:F(t,o,n),keys:o};return xt<1e4&&(r[t]=i,xt++),i}(e,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:e,url:"/"===e&&""===f?"/":f,isExact:p,params:a.reduce((function(t,n,e){return t[n.name]=l[e],t}),{})}}),null)}var Ot=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this;return n.createElement(ht.Consumer,null,(function(e){e||m(!1);var r=t.props.location||e.location,o=p({},e,{location:r,match:t.props.computedMatch?t.props.computedMatch:t.props.path?Pt(r.pathname,t.props):e.match}),i=t.props,a=i.children,c=i.component,u=i.render;return Array.isArray(a)&&function(t){return 0===n.Children.count(t)}(a)&&(a=null),n.createElement(ht.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:c?n.createElement(c,o):u?u(o):null:"function"==typeof a?a(o):null)}))},e}(n.Component);function Ct(t){return"/"===t.charAt(0)?t:"/"+t}function Et(t){return"string"==typeof t?t:P(t)}function St(){return function(){m(!1)}}function Rt(){}var Tt=function(t){function e(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).handlePush=function(t){return n.navigateTo(t,"PUSH")},n.handleReplace=function(t){return n.navigateTo(t,"REPLACE")},n.handleListen=function(){return Rt},n.handleBlock=function(){return Rt},n}r(e,t);var o=e.prototype;return o.navigateTo=function(t,n){var e=this.props,r=e.basename,o=void 0===r?"":r,i=e.context,a=void 0===i?{}:i;a.action=n,a.location=function(t,n){return t?p({},n,{pathname:Ct(t)+n.pathname}):n}(o,O(t)),a.url=Et(a.location)},o.render=function(){var t=this.props,e=t.basename,r=void 0===e?"":e,o=t.context,i=void 0===o?{}:o,a=t.location,c=void 0===a?"/":a,u=G(t,["basename","context","location"]),s={createHref:function(t){return Ct(r+Et(t))},action:"POP",location:function(t,n){if(!t)return n;var e=Ct(t);return 0!==n.pathname.indexOf(e)?n:p({},n,{pathname:n.pathname.substr(e.length)})}(r,O(c)),push:this.handlePush,replace:this.handleReplace,go:St(),goBack:St(),goForward:St(),listen:this.handleListen,block:this.handleBlock};return n.createElement(dt,p({},u,{history:s,staticContext:i}))},e}(n.Component),kt=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this;return n.createElement(ht.Consumer,null,(function(e){e||m(!1);var r,o,i=t.props.location||e.location;
1return n.Children.forEach(t.props.children,(function(t){if(null==o&&n.isValidElement(t)){var a=(r=t).props.path||t.props.from;o=a?Pt(i.pathname,p({},t.props,{path:a})):e.match}})),o?n.cloneElement(r,{location:i,computedMatch:o}):null}))},e}(n.Component),At=n.useContext;function Mt(){return At(ht).location}function jt(t,n){return"function"==typeof t?t(n):t}function _t(t,n){return"string"==typeof t?O(t,null,null,n):t}function Lt(t){return t}var $t=function(t){function e(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=function(t){void 0===t&&(t={}),S||m(!1);var n=window.history,e=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=t,i=o.forceRefresh,a=void 0!==i&&i,c=o.getUserConfirmation,u=void 0===c?R:c,s=o.keyLength,f=void 0===s?6:s,l=t.basename?x(g(t.basename)):"";function h(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return l&&(i=b(i,l)),O(i,r,e)}function d(){return Math.random().toString(36).substr(2,f)}var v=E();function y(t){p(I,t),I.length=n.length,v.notifyListeners(I.location,I.action)}function w(t){!function(t){void 0===t.state&&navigator.userAgent.indexOf("CriOS")}(t)&&j(h(t.state))}function C(){j(h(A()))}var M=!1;function j(t){M?(M=!1,y()):v.confirmTransitionTo(t,"POP",u,(function(n){n?y({action:"POP",location:t}):function(t){var n=I.location,e=L.indexOf(n.key);-1===e&&(e=0);var r=L.indexOf(t.key);-1===r&&(r=0);var o=e-r;o&&(M=!0,U(o))}(t)}))}var _=h(A()),L=[_.key];function $(t){return l+P(t)}function U(t){n.go(t)}var F=0;function N(t){1===(F+=t)&&1===t?(window.addEventListener(T,w),r&&window.addEventListener(k,C)):0===F&&(window.removeEventListener(T,w),r&&window.removeEventListener(k,C))}var H=!1,I={length:n.length,action:"POP",location:_,createHref:$,push:function(t,r){var o=O(t,r,d(),I.location);v.confirmTransitionTo(o,"PUSH",u,(function(t){if(t){var r=$(o),i=o.key,c=o.state;if(e)if(n.pushState({key:i,state:c},null,r),a)window.location.href=r;else{var u=L.indexOf(I.location.key),s=L.slice(0,-1===u?0:u+1);s.push(o.key),L=s,y({action:"PUSH",location:o})}else window.location.href=r}}))},replace:function(t,r){var o="REPLACE",i=O(t,r,d(),I.location);v.confirmTransitionTo(i,o,u,(function(t){if(t){var r=$(i),c=i.key,u=i.state;if(e)if(n.replaceState({key:c,state:u},null,r),a)window.location.replace(r);else{var s=L.indexOf(I.location.key);-1!==s&&(L[s]=i.key),y({action:o,location:i})}else window.location.replace(r)}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=v.setPrompt(t);return H||(N(1),H=!0),function(){return H&&(H=!1,N(-1)),n()}},listen:function(t){var n=v.appendListener(t);return N(1),function(){N(-1),n()}}};return I}(n.props),n}return r(e,t),e.prototype.render=function(){return n.createElement(dt,{history:this.history,children:this.props.children})},e}(n.Component),Ut=function(t){function e(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=function(t){void 0===t&&(t={}),S||m(!1);var n=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),t),r=e.getUserConfirmation,o=void 0===r?R:r,i=e.hashType,a=void 0===i?"slash":i,c=t.basename?x(g(t.basename)):"",u=j[a],s=u.encodePath,f=u.decodePath;function l(){var t=f(_());return c&&(t=b(t,c)),O(t)}var h=E();function d(t){p(I,t),I.length=n.length,h.notifyListeners(I.location,I.action)}var v=!1,y=null;function w(){var t=_(),n=s(t);if(t!==n)L(n);else{var e=l(),r=I.location;if(!v&&C(r,e))return;if(y===P(e))return;y=null,function(t){v?(v=!1,d()):h.confirmTransitionTo(t,"POP",o,(function(n){n?d({action:"POP",location:t}):function(t){var n=I.location,e=$.lastIndexOf(P(n));-1===e&&(e=0);var r=$.lastIndexOf(P(t));-1===r&&(r=0);var o=e-r;o&&(v=!0,U(o))}(t)}))}(e)}}var T=_(),k=s(T);T!==k&&L(k);var A=l(),$=[P(A)];function U(t){n.go(t)}var F=0;function N(t){1===(F+=t)&&1===t?window.addEventListener(M,w):0===F&&window.removeEventListener(M,w)}var H=!1,I={length:n.length,action:"POP",location:A,createHref:function(t){return"#"+s(c+P(t))},push:function(t,n){var e=O(t,void 0,void 0,I.location);h.confirmTransitionTo(e,"PUSH",o,(function(t){if(t){var n=P(e),r=s(c+n);if(_()!==r){y=n,function(t){window.location.hash=t}(r);var o=$.lastIndexOf(P(I.location)),i=$.slice(0,-1===o?0:o+1);i.push(n),$=i,d({action:"PUSH",location:e})}else d()}}))},replace:function(t,n){var e="REPLACE",r=O(t,void 0,void 0,I.location);h.confirmTransitionTo(r,e,o,(function(t){if(t){var n=P(r),o=s(c+n);_()!==o&&(y=n,L(o));var i=$.indexOf(P(I.location));-1!==i&&($[i]=n),d({action:e,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=h.setPrompt(t);return H||(N(1),H=!0),function(){return H&&(H=!1,N(-1)),n()}},listen:function(t){var n=h.appendListener(t);return N(1),function(){N(-1),n()}}};return I}(n.props),n}return r(e,t),e.prototype.render=function(){return n.createElement(dt,{history:this.history,children:this.props.children})},e}(n.Component),Ft=n.forwardRef;function Nt(t){return t}void 0===Ft&&(Ft=Lt);var Ht=Ft((function(t,e){var r=t.innerRef,o=t.navigate,i=t.onClick,a=G(t,["innerRef","navigate","onClick"]),c=a.target,u=p({},a,{onClick:function(t){try{i&&i(t)}catch(n){throw t.preventDefault(),n}t.defaultPrevented||0!==t.button||c&&"_self"!==c||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),o())}});return u.ref=Lt!==Ft&&e||r,n.createElement("a",u)})),It=Ft((function(t,e){var r=t.component,o=void 0===r?Ht:r,i=t.replace,a=t.to,c=t.innerRef,u=G(t,["component","replace","to","innerRef"]);return n.createElement(ht.Consumer,null,(function(t){t||m(!1);var r=t.history,s=_t(jt(a,t.location),t.location),f=s?r.createHref(s):"",l=p({},u,{href:f,navigate:function(){var n=jt(a,t.location),e=P(t.location)===P(_t(n));(i||e?r.replace:r.push)(n)}});return Lt!==Ft?l.ref=e||c:l.innerRef=c,n.createElement(o,l)}))})),Bt=n.forwardRef;void 0===Bt&&(Bt=Nt);var Dt=Bt((function(t,e){var r=t["aria-current"],o=void 0===r?"page":r,i=t.activeClassName,a=void 0===i?"active":i,c=t.activeStyle,u=t.className,s=t.exact,f=t.isActive,l=t.location,h=t.sensitive,d=t.strict,v=t.style,y=t.to,g=t.innerRef,w=G(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return n.createElement(ht.Consumer,null,(function(t){t||m(!1);var r=l||t.location,i=_t(jt(y,r),r),b=i.pathname,x=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=x?Pt(r.pathname,{path:x,exact:s,sensitive:h,strict:d}):null,O=!!(f?f(P,r):P),C="function"==typeof u?u(O):u,E="function"==typeof v?v(O):v;O&&(C=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.filter((function(t){return t})).join(" ")}(C,a),E=p({},E,c));var S=p({"aria-current":O&&o||null,className:C,style:E,to:i},w);return Nt!==Bt?S.ref=e||g:S.innerRef=g,n.createElement(It,S)}))}));t.BrowserRouter=$t,t.HashRouter=Ut,t.Link=It,t.MemoryRouter=vt,t.NavLink=Dt,t.Prompt=function(t){var e=t.message,r=t.when,o=void 0===r||r;return n.createElement(ht.Consumer,null,(function(t){if(t||m(!1),!o||t.staticContext)return null;var r=t.history.block;return n.createElement(yt,{onMount:function(t){t.release=r(e)}
1,onUpdate:function(t,n){n.message!==e&&(t.release(),t.release=r(e))},onUnmount:function(t){t.release()},message:e})}))},t.Redirect=function(t){var e=t.computedMatch,r=t.to,o=t.push,i=void 0!==o&&o;return n.createElement(ht.Consumer,null,(function(t){t||m(!1);var o=t.history,a=t.staticContext,c=i?o.push:o.replace,u=O(e?"string"==typeof r?wt(r,e.params):p({},r,{pathname:wt(r.pathname,e.params)}):r);return a?(c(u),null):n.createElement(yt,{onMount:function(){c(u)},onUpdate:function(t,n){var e=O(n.to);C(e,p({},u,{key:e.key}))||c(u)},to:r})}))},t.Route=Ot,t.Router=dt,t.StaticRouter=Tt,t.Switch=kt,t.generatePath=wt,t.matchPath=Pt,t.useHistory=function(){return At(pt)},t.useLocation=Mt,t.useParams=function(){var t=At(ht).match;return t?t.params:{}},t.useRouteMatch=function(t){var n=Mt(),e=At(ht).match;return t?Pt(n.pathname,t):e},t.withRouter=function(t){function e(e){var r=e.wrappedComponentRef,o=G(e,["wrappedComponentRef"]);return n.createElement(ht.Consumer,null,(function(e){return e||m(!1),n.createElement(t,p({},o,e,{ref:r}))}))}var r="withRouter("+(t.displayName||t.name)+")";return e.displayName=r,e.WrappedComponent=t,ct(e,t)},Object.defineProperty(t,"__esModule",{value:!0})}));
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.