import{dl as N,fM as Y,fN as Z,fO as x,r as ee}from"./index-CNnTZTc7.js";var te={};const re=N(Y),ne=N(Z),oe=N(x);(function(a){function H(e){return e&&typeof e=="object"&&"default"in e?e.default:e}Object.defineProperty(a,"__esModule",{value:!0});var i=re,f=H(ee),p=ne,S=H(oe);function v(){return(v=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function A(e,r){e.prototype=Object.create(r.prototype),M(e.prototype.constructor=e,r)}function M(e,r){return(M=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(e,r)}function O(e,r){if(e==null)return{};var t,n,u={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],0<=r.indexOf(t)||(u[t]=e[t]);return u}var F=function(e){function r(){for(var t,n=arguments.length,u=new Array(n),o=0;o<n;o++)u[o]=arguments[o];return(t=e.call.apply(e,[this].concat(u))||this).history=p.createBrowserHistory(t.props),t}return A(r,e),r.prototype.render=function(){return f.createElement(i.Router,{history:this.history,children:this.props.children})},r}(f.Component),G=function(e){function r(){for(var t,n=arguments.length,u=new Array(n),o=0;o<n;o++)u[o]=arguments[o];return(t=e.call.apply(e,[this].concat(u))||this).history=p.createHashHistory(t.props),t}return A(r,e),r.prototype.render=function(){return f.createElement(i.Router,{history:this.history,children:this.props.children})},r}(f.Component),j=function(e,r){return typeof e=="function"?e(r):e},w=function(e,r){return typeof e=="string"?p.createLocation(e,null,null,r):e},_=function(e){return e},y=f.forwardRef;function J(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}y===void 0&&(y=_);var Q=y(function(e,r){var t=e.innerRef,n=e.navigate,u=e.onClick,o=O(e,["innerRef","navigate","onClick"]),m=o.target,l=v({},o,{onClick:function(c){try{u&&u(c)}catch(s){throw c.preventDefault(),s}c.defaultPrevented||c.button!==0||m&&m!=="_self"||J(c)||(c.preventDefault(),n())}});return l.ref=_!==y&&r||t,f.createElement("a",l)}),D=y(function(e,r){var t=e.component,n=t===void 0?Q:t,u=e.replace,o=e.to,m=e.innerRef,l=O(e,["component","replace","to","innerRef"]);return f.createElement(i.__RouterContext.Consumer,null,function(c){c||S(!1);var s=c.history,R=w(j(o,c.location),c.location),C=R?s.createHref(R):"",d=v({},l,{href:C,navigate:function(){var h=j(o,c.location),L=p.createPath(c.location)===p.createPath(w(h));(u||L?s.replace:s.push)(h)}});return _!==y?d.ref=r||m:d.innerRef=m,f.createElement(n,d)})}),K=function(e){return e},g=f.forwardRef;function U(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter(function(n){return n}).join(" ")}g===void 0&&(g=K);var V=g(function(e,r){var t=e["aria-current"],n=t===void 0?"page":t,u=e.activeClassName,o=u===void 0?"active":u,m=e.activeStyle,l=e.className,c=e.exact,s=e.isActive,R=e.location,C=e.sensitive,d=e.strict,h=e.style,L=e.to,q=e.innerRef,X=O(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return f.createElement(i.__RouterContext.Consumer,null,function(B){B||S(!1);var b=R||B.location,T=w(j(L,b),b),z=T.pathname,I=z&&z.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),W=I?i.matchPath(b.pathname,{path:I,exact:c,sensitive:C,strict:d}):null,P=!!(s?s(W,b):W),$=typeof l=="function"?l(P):l,k=typeof h=="function"?h(P):h;P&&($=U($,o),k=v({},k,m));var E=v({"aria-current":P&&n||null,className:$,style:k,to:T},X);return K!==g?E.ref=r||q:E.innerRef=q,f.createElement(D,E)})});Object.defineProperty(a,"MemoryRouter",{enumerable:!0,get:function(){return i.MemoryRouter}}),Object.defineProperty(a,"Prompt",{enumerable:!0,get:function(){return i.Prompt}}),Object.defineProperty(a,"Redirect",{enumerable:!0,get:function(){return i.Redirect}}),Object.defineProperty(a,"Route",{enumerable:!0,get:function(){return i.Route}}),Object.defineProperty(a,"Router",{enumerable:!0,get:function(){return i.Router}}),Object.defineProperty(a,"StaticRouter",{enumerable:!0,get:function(){return i.StaticRouter}}),Object.defineProperty(a,"Switch",{enumerable:!0,get:function(){return i.Switch}}),Object.defineProperty(a,"generatePath",{enumerable:!0,get:function(){return i.generatePath}}),Object.defineProperty(a,"matchPath",{enumerable:!0,get:function(){return i.matchPath}}),Object.defineProperty(a,"useHistory",{enumerable:!0,get:function(){return i.useHistory}}),Object.defineProperty(a,"useLocation",{enumerable:!0,get:function(){return i.useLocation}}),Object.defineProperty(a,"useParams",{enumerable:!0,get:function(){return i.useParams}}),Object.defineProperty(a,"useRouteMatch",{enumerable:!0,get:function(){return i.useRouteMatch}}),Object.defineProperty(a,"withRouter",{enumerable:!0,get:function(){return i.withRouter}}),a.BrowserRouter=F,a.HashRouter=G,a.Link=D,a.NavLink=V})(te);export{te as r};
//# sourceMappingURL=react-router-dom.min-CueLcAwJ.js.map