1(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[32],{ 2 3/***/ "Ty5D": 4/***/ (function(module, __webpack_exports__, __webpack_require__) { 5 6"use strict"; 7/* unused harmony export MemoryRouter */ 8/* unused harmony export Prompt */ 9/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Redirect; }); 10/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Route; }); 11/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Router; }); 12/* unused harmony export StaticRouter */ 13/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return Switch; }); 14/* unused harmony export __HistoryContext */ 15/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return context; }); 16/* unused harmony export generatePath */ 17/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return matchPath; }); 18/* unused harmony export useHistory */ 19/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return useLocation; }); 20/* unused harmony export useParams */ 21/* unused harmony export useRouteMatch */ 22/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return withRouter; }); 23/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dI71"); 24/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("q1tI"); 25/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); 26/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("17x9"); 27/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); 28/* harmony import */ var history__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("LhCv"); 29/* harmony import */ var mini_create_react_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("tEiQ"); 30/* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("9R94"); 31/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("wx14"); 32/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("vRGJ"); 33/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_7__); 34/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("TOwV"); 35/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_8__); 36/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("zLVn"); 37/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("2mql"); 38/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_10__); 39 40 41 42 43 44 45 46 47 48 49 50 51 52// TODO: Replace with React.createContext once we can assume React 16+ 53 54var createNamedContext = function createNamedContext(name) { 55 var context = Object(mini_create_react_context__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(); 56 context.displayName = name; 57 return context; 58}; 59 60var historyContext = 61/*#__PURE__*/ 62createNamedContext("Router-History"); 63 64// TODO: Replace with React.createContext once we can assume React 16+ 65 66var createNamedContext$1 = function createNamedContext(name) { 67 var context = Object(mini_create_react_context__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(); 68 context.displayName = name; 69 return context; 70}; 71 72var context = 73/*#__PURE__*/ 74createNamedContext$1("Router"); 75 76/** 77 * The public API for putting history on context. 78 */ 79 80var Router = 81/*#__PURE__*/ 82function (_React$Component) { 83 Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Router, _React$Component); 84 85 Router.computeRootMatch = function computeRootMatch(pathname) { 86 return { 87 path: "/", 88 url: "/", 89 params: {}, 90 isExact: pathname === "/" 91 }; 92 }; 93 94 function Router(props) { 95 var _this; 96 97 _this = _React$Component.call(this, props) || this; 98 _this.state = { 99 location: props.history.location 100 }; // This is a bit of a hack. We have to start listening for location 101 // changes here in the constructor in case there are any <Redirect>s 102 // on the initial render. If there are, they will replace/push when 103 // they mount and since cDM fires in children before parents, we may 104 // get a new location before the <Router> is mounted. 105 106 _this._isMounted = false;
107 _this._pendingLocation = null; 108 109 if (!props.staticContext) { 110 _this.unlisten = props.history.listen(function (location) { 111 if (_this._isMounted) { 112 _this.setState({ 113 location: location 114 }); 115 } else { 116 _this._pendingLocation = location; 117 } 118 }); 119 } 120 121 return _this; 122 } 123 124 var _proto = Router.prototype; 125 126 _proto.componentDidMount = function componentDidMount() { 127 this._isMounted = true; 128 129 if (this._pendingLocation) { 130 this.setState({ 131 location: this._pendingLocation 132 }); 133 } 134 }; 135 136 _proto.componentWillUnmount = function componentWillUnmount() { 137 if (this.unlisten) this.unlisten(); 138 }; 139 140 _proto.render = function render() { 141 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Provider, { 142 value: { 143 history: this.props.history, 144 location: this.state.location, 145 match: Router.computeRootMatch(this.state.location.pathname), 146 staticContext: this.props.staticContext 147 } 148 }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(historyContext.Provider, { 149 children: this.props.children || null, 150 value: this.props.history 151 })); 152 }; 153 154 return Router; 155}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); 156 157if (false) {} 158 159/** 160 * The public API for a <Router> that stores location in memory. 161 */ 162 163var MemoryRouter = 164/*#__PURE__*/ 165function (_React$Component) { 166 Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(MemoryRouter, _React$Component); 167 168 function MemoryRouter() { 169 var _this; 170 171 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 172 args[_key] = arguments[_key]; 173 } 174 175 _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; 176 _this.history = Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createMemoryHistory */ "d"])(_this.props); 177 return _this; 178 } 179 180 var _proto = MemoryRouter.prototype; 181 182 _proto.render = function render() { 183 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Router, { 184 history: this.history, 185 children: this.props.children 186 }); 187 }; 188 189 return MemoryRouter; 190}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); 191 192if (false) {} 193 194var Lifecycle = 195/*#__PURE__*/ 196function (_React$Component) { 197 Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Lifecycle, _React$Component); 198 199 function Lifecycle() { 200 return _React$Component.apply(this, arguments) || this; 201 } 202 203 var _proto = Lifecycle.prototype; 204 205 _proto.componentDidMount = function componentDidMount() { 206 if (this.props.onMount) this.props.onMount.call(this, this); 207 }; 208 209 _proto.componentDidUpdate = function componentDidUpdate(prevProps) { 210 if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps); 211 }; 212 213 _proto.componentWillUnmount = function componentWillUnmount() { 214 if (this.props.onUnmount) this.props.onUnmount.call(this, this); 215 }; 216 217 _proto.render = function render() { 218 return null; 219 }; 220 221 return Lifecycle; 222}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); 223 224/** 225 * The public API for prompting the user before navigating away from a screen. 226 */ 227 228function Prompt(_ref) { 229 var message = _ref.message, 230 _ref$when = _ref.when, 231 when = _ref$when === void 0 ? true : _ref$when; 232 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) { 233 !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0; 234 if (!when || context.staticContext) return null; 235 var method = context.history.block; 236 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Lifecycle, { 237 onMount: function onMount(self) { 238 self.release = method(message); 239 }, 240 onUpdate: function onUpdate(self, prevProps) { 241 if (prevProps.message !== message) { 242 self.release(); 243 self.release = method(message); 244 } 245 }, 246 onUnmount: function onUnmount(self) { 247 self.release(); 248 }, 249 message: message 250 }); 251 }); 252} 253 254if (false) { var messageType; } 255 256var cache = {}; 257var cacheLimit = 10000; 258var cacheCount = 0; 259 260function compilePath(path) { 261 if (cache[path]) return cache[path]; 262 var generator = path_to_regexp__WEBPACK_IMPORTED_MODULE_7___default.a.compile(path); 263 264 if (cacheCount < cacheLimit) { 265 cache[path] = generator; 266 cacheCount++; 267 } 268 269 return generator; 270} 271/** 272 * Public API for generating a URL pathname from a path and parameters. 273 */ 274 275 276function generatePath(path, params) { 277 if (path === void 0) { 278 path = "/"; 279 } 280 281 if (params === void 0) { 282 params = {}; 283 } 284 285 return path === "/" ? path : compilePath(path)(params, { 286 pretty: true 287 }); 288} 289 290/** 291 * The public API for navigating programmatically with a component. 292 */ 293 294function Redirect(_ref) { 295 var computedMatch = _ref.computedMatch, 296 to = _ref.to, 297 _ref$push = _ref.push, 298 push = _ref$push === void 0 ? false : _ref$push; 299 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) { 300 !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0; 301 var history = context.history, 302 staticContext = context.staticContext; 303 var method = push ? history.push : history.replace; 304 var location = Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, to, { 305 pathname: generatePath(to.pathname, computedMatch.params) 306 }) : to); // When rendering in a static context, 307 // set the new location immediately. 308 309 if (staticContext) { 310 method(location); 311 return null; 312 } 313 314 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Lifecycle, { 315 onMount: function onMount() { 316 method(location); 317 }, 318 onUpdate: function onUpdate(self, prevProps) { 319 var prevLocation = Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(prevProps.to); 320 321 if (!Object(history__WEBPACK_IMPORTED_MODULE_3__[/* locationsAreEqual */ "f"])(prevLocation, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, location, { 322 key: prevLocation.key 323 }))) { 324 method(location); 325 } 326 }, 327 to: to 328 }); 329 }); 330} 331 332if (false) {} 333 334var cache$1 = {}; 335var cacheLimit$1 = 10000; 336var cacheCount$1 = 0; 337 338function compilePath$1(path, options) { 339 var cacheKey = "" + options.end + options.strict + options.sensitive; 340 var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {}); 341 if (pathCache[path]) return pathCache[path]; 342 var keys = []; 343 var regexp = path_to_regexp__WEBPACK_IMPORTED_MODULE_7___default()(path, keys, options); 344 var result = { 345 regexp: regexp, 346 keys: keys 347 }; 348 349 if (cacheCount$1 < cacheLimit$1) { 350 pathCache[path] = result; 351 cacheCount$1++; 352 } 353 354 return result; 355} 356/** 357 * Public API for matching a URL pathname to a path. 358 */ 359 360 361function matchPath(pathname, options) { 362 if (options === void 0) { 363 options = {}; 364 } 365 366 if (typeof options === "string" || Array.isArray(options)) { 367 options = { 368 path: options 369 }; 370 } 371 372 var _options = options, 373 path = _options.path, 374 _options$exact = _options.exact, 375 exact = _options$exact === void 0 ? false : _options$exact, 376 _options$strict = _options.strict,
377 strict = _options$strict === void 0 ? false : _options$strict, 378 _options$sensitive = _options.sensitive, 379 sensitive = _options$sensitive === void 0 ? false : _options$sensitive; 380 var paths = [].concat(path); 381 return paths.reduce(function (matched, path) { 382 if (!path && path !== "") return null; 383 if (matched) return matched; 384 385 var _compilePath = compilePath$1(path, { 386 end: exact, 387 strict: strict, 388 sensitive: sensitive 389 }), 390 regexp = _compilePath.regexp, 391 keys = _compilePath.keys; 392 393 var match = regexp.exec(pathname); 394 if (!match) return null; 395 var url = match[0], 396 values = match.slice(1); 397 var isExact = pathname === url; 398 if (exact && !isExact) return null; 399 return { 400 path: path, 401 // the path used to match 402 url: path === "/" && url === "" ? "/" : url, 403 // the matched portion of the URL 404 isExact: isExact, 405 // whether or not we matched exactly 406 params: keys.reduce(function (memo, key, index) { 407 memo[key.name] = values[index]; 408 return memo; 409 }, {}) 410 }; 411 }, null); 412} 413 414function isEmptyChildren(children) { 415 return react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.count(children) === 0; 416} 417 418function evalChildrenDev(children, props, path) { 419 var value = children(props); 420 false ? undefined : void 0; 421 return value || null; 422} 423/** 424 * The public API for matching a single path and rendering. 425 */ 426 427 428var Route = 429/*#__PURE__*/ 430function (_React$Component) { 431 Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Route, _React$Component); 432 433 function Route() { 434 return _React$Component.apply(this, arguments) || this; 435 } 436 437 var _proto = Route.prototype; 438 439 _proto.render = function render() { 440 var _this = this; 441 442 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context$1) { 443 !context$1 ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0; 444 var location = _this.props.location || context$1.location; 445 var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us 446 : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match; 447 448 var props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, context$1, { 449 location: location, 450 match: match 451 }); 452 453 var _this$props = _this.props, 454 children = _this$props.children, 455 component = _this$props.component, 456 render = _this$props.render; // Preact uses an empty array as children by 457 // default, so use null if that's the case. 458 459 if (Array.isArray(children) && children.length === 0) { 460 children = null; 461 } 462 463 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Provider, { 464 value: props 465 }, props.match ? children ? typeof children === "function" ? false ? undefined : children(props) : children : component ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(component, props) : render ? render(props) : null : typeof children === "function" ? false ? undefined : children(props) : null); 466 }); 467 }; 468 469 return Route; 470}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); 471 472if (false) {} 473 474function addLeadingSlash(path) { 475 return path.charAt(0) === "/" ? path : "/" + path; 476} 477 478function addBasename(basename, location) { 479 if (!basename) return location; 480 return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, location, { 481 pathname: addLeadingSlash(basename) + location.pathname 482 }); 483} 484 485function stripBasename(basename, location) { 486 if (!basename) return location; 487 var base = addLeadingSlash(basename); 488 if (location.pathname.indexOf(base) !== 0) return location; 489 return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, location, { 490 pathname: location.pathname.substr(base.length) 491 }); 492} 493 494function createURL(location) { 495 return typeof location === "string" ? location : Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createPath */ "e"])(location); 496} 497 498function staticHandler(methodName) { 499 return function () { 500 false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) ; 501 }; 502} 503 504function noop() {} 505/** 506 * The public top-level API for a "static" <Router>, so-called because it 507 * can't actually change the current location. Instead, it just records 508 * location changes in a context object. Useful mainly in testing and 509 * server-rendering scenarios. 510 */ 511 512 513var StaticRouter = 514/*#__PURE__*/ 515function (_React$Component) { 516 Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(StaticRouter, _React$Component); 517 518 function StaticRouter() { 519 var _this; 520 521 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 522 args[_key] = arguments[_key]; 523 } 524 525 _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; 526 527 _this.handlePush = function (location) { 528 return _this.navigateTo(location, "PUSH"); 529 }; 530 531 _this.handleReplace = function (location) { 532 return _this.navigateTo(location, "REPLACE"); 533 }; 534 535 _this.handleListen = function () { 536 return noop; 537 }; 538 539 _this.handleBlock = function () { 540 return noop; 541 }; 542 543 return _this; 544 } 545 546 var _proto = StaticRouter.prototype; 547 548 _proto.navigateTo = function navigateTo(location, action) { 549 var _this$props = this.props, 550 _this$props$basename = _this$props.basename, 551 basename = _this$props$basename === void 0 ? "" : _this$props$basename, 552 _this$props$context = _this$props.context, 553 context = _this$props$context === void 0 ? {}
553 : _this$props$context; 554 context.action = action; 555 context.location = addBasename(basename, Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(location)); 556 context.url = createURL(context.location); 557 }; 558 559 _proto.render = function render() { 560 var _this$props2 = this.props, 561 _this$props2$basename = _this$props2.basename, 562 basename = _this$props2$basename === void 0 ? "" : _this$props2$basename, 563 _this$props2$context = _this$props2.context, 564 context = _this$props2$context === void 0 ? {} : _this$props2$context, 565 _this$props2$location = _this$props2.location, 566 location = _this$props2$location === void 0 ? "/" : _this$props2$location, 567 rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(_this$props2, ["basename", "context", "location"]); 568 569 var history = { 570 createHref: function createHref(path) { 571 return addLeadingSlash(basename + createURL(path)); 572 }, 573 action: "POP", 574 location: stripBasename(basename, Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(location)), 575 push: this.handlePush, 576 replace: this.handleReplace, 577 go: staticHandler("go"), 578 goBack: staticHandler("goBack"), 579 goForward: staticHandler("goForward"), 580 listen: this.handleListen, 581 block: this.handleBlock 582 }; 583 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Router, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, rest, { 584 history: history, 585 staticContext: context 586 })); 587 }; 588 589 return StaticRouter; 590}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); 591 592if (false) {} 593 594/** 595 * The public API for rendering the first <Route> that matches. 596 */ 597 598var Switch = 599/*#__PURE__*/ 600function (_React$Component) { 601 Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Switch, _React$Component); 602 603 function Switch() { 604 return _React$Component.apply(this, arguments) || this; 605 } 606 607 var _proto = Switch.prototype; 608 609 _proto.render = function render() { 610 var _this = this; 611 612 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) { 613 !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0; 614 var location = _this.props.location || context.location; 615 var element, match; // We use React.Children.forEach instead of React.Children.toArray().find() 616 // here because toArray adds keys to all child elements and we do not want 617 // to trigger an unmount/remount for two <Route>s that render the same 618 // component at different URLs. 619 620 react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.forEach(_this.props.children, function (child) { 621 if (match == null && react__WEBPACK_IMPORTED_MODULE_1___default.a.isValidElement(child)) { 622 element = child; 623 var path = child.props.path || child.props.from; 624 match = path ? matchPath(location.pathname, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, child.props, { 625 path: path 626 })) : context.match; 627 } 628 }); 629 return match ? react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(element, { 630 location: location, 631 computedMatch: match 632 }) : null; 633 }); 634 }; 635 636 return Switch; 637}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); 638 639if (false) {} 640 641/** 642 * A public higher-order component to access the imperative API 643 */ 644 645function withRouter(Component) { 646 var displayName = "withRouter(" + (Component.displayName || Component.name) + ")"; 647 648 var C = function C(props) { 649 var wrappedComponentRef = props.wrappedComponentRef, 650 remainingProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(props, ["wrappedComponentRef"]); 651 652 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) { 653 !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0; 654 return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, remainingProps, context, { 655 ref: wrappedComponentRef 656 })); 657 }); 658 }; 659 660 C.displayName = displayName; 661 C.WrappedComponent = Component; 662 663 if (false) {} 664 665 return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_10___default()(C, Component); 666} 667 668var useContext = react__WEBPACK_IMPORTED_MODULE_1___default.a.useContext; 669function useHistory() { 670 if (false) {} 671 672 return useContext(historyContext); 673} 674function useLocation() { 675 if (false) {} 676 677 return useContext(context).location; 678} 679function useParams() { 680 if (false) {} 681 682 var match = useContext(context).match; 683 return match ? match.params : {}; 684} 685function useRouteMatch(path) { 686 if (false) {} 687 688 var location = useLocation(); 689 var match = useContext(context).match; 690 return path ? matchPath(location.pathname, path) : match; 691} 692 693if (false) { var secondaryBuildName, initialBuildName, buildNames, key, global; } 694 695 696//# sourceMappingURL=react-router.js.map 697 698 699/***/ }) 700 701}]);
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.