Socket
Socket
Sign inDemoInstall

history

Package Overview
Dependencies
2
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0-beta.7 to 5.0.0-beta.8

8

browser.d.ts

@@ -1,5 +0,5 @@

import { History } from 'history';
declare const _default: History;
declare const _default: import("./history").BrowserHistory<object>;
/**
* Create a default instance for the current document.
*/
export default _default;

@@ -1,7 +0,7 @@

function p(){p=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var g=arguments[c],h;for(h in g)Object.prototype.hasOwnProperty.call(g,h)&&(a[h]=g[h])}return a};return p.apply(this,arguments)}var v="production"!==process.env.NODE_ENV?function(a){return Object.freeze(a)}:function(a){return a};function w(a,c){if(!a){"undefined"!==typeof console&&console.warn(c);try{throw Error(c);}catch(g){}}}function x(a){a.preventDefault();a.returnValue=""}
function B(){var a=[];return{get length(){return a.length},push:function(c){a.push(c);return function(){a=a.filter(function(a){return a!==c})}},call:function(c){a.forEach(function(a){return a&&a(c)})}}}
var C=function(a){function c(){var b=l.location,a=m.state||{};return[a.idx,v({pathname:b.pathname,search:b.search,hash:b.hash,state:a.usr||null,key:a.key||"default"})]}function g(b){if("string"===typeof b)var a=b;else{a=b.pathname;var c=b.search;b=b.hash;a=(void 0===a?"/":a)+(void 0===c?"":c)+(void 0===b?"":b)}return a}function h(b,a){void 0===a&&(a=null);var c=p,e=q;if("string"===typeof b){var f={};if(b){var d=b.indexOf("#");0<=d&&(f.hash=b.substr(d),b=b.substr(0,d));d=b.indexOf("?");0<=d&&(f.search=
b.substr(d),b=b.substr(0,d));b&&(f.pathname=b)}b=f}return v(c({},e,{},b,{state:a,key:Math.random().toString(36).substr(2,8)}))}function t(b){u=b;b=c();k=b[0];q=b[1];y.call({action:u,location:q})}function z(b,a){function c(){z(b,a)}var e=h(b,a);if(!d.length||(d.call({action:"PUSH",location:e,retry:c}),!1)){var f=[{usr:e.state,key:e.key,idx:k+1},g(e)];e=f[0];f=f[1];try{m.pushState(e,null,f)}catch(D){l.location.assign(f)}t("PUSH")}}function A(b,a){function c(){A(b,a)}var e=h(b,a);d.length&&(d.call({action:"REPLACE",
location:e,retry:c}),1)||(e=[{usr:e.state,key:e.key,idx:k},g(e)],m.replaceState(e[0],null,e[1]),t("REPLACE"))}function n(a){m.go(a)}a=(void 0===a?{}:a).window;var l=void 0===a?document.defaultView:a,m=l.history,r=null;l.addEventListener("popstate",function(){if(r)d.call(r),r=null;else{var a=c(),f=a[0];a=a[1];if(d.length)if(null!=f){var g=k-f;g&&(r={action:"POP",location:a,retry:function(){n(-1*g)}},n(g))}else"production"!==process.env.NODE_ENV?w(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):
void 0;else t("POP")}});var u="POP";a=c();var k=a[0],q=a[1],d=B(),y=B();null==k&&(k=0,m.replaceState(p({},m.state,{idx:k}),null));return{get action(){return u},get location(){return q},createHref:g,push:z,replace:A,go:n,back:function(){n(-1)},forward:function(){n(1)},listen:function(a){return y.push(a)},block:function(a){var b=d.push(a);1===d.length&&l.addEventListener("beforeunload",x);return function(){b();d.length||l.removeEventListener("beforeunload",x)}}}}();export default C;
var m,r=m||(m={});r.Pop="POP";r.Push="PUSH";r.Replace="REPLACE";var v="production"!==process.env.NODE_ENV?function(a){return Object.freeze(a)}:function(a){return a};function w(a,c){if(!a){"undefined"!==typeof console&&console.warn(c);try{throw Error(c);}catch(d){}}}function x(a){a.preventDefault();a.returnValue=""}
function C(){var a=[];return{get length(){return a.length},push:function(c){a.push(c);return function(){a=a.filter(function(a){return a!==c})}},call:function(c){a.forEach(function(a){return a&&a(c)})}}}function D(a){var c={};if(a){var d=a.indexOf("#");0<=d&&(c.hash=a.substr(d),a=a.substr(0,d));d=a.indexOf("?");0<=d&&(c.search=a.substr(d),a=a.substr(0,d));a&&(c.pathname=a)}return c}
var E=function(a){function c(){var a=g.location,b=n.state||{};return[b.idx,v({pathname:a.pathname,search:a.search,hash:a.hash,state:b.usr||null,key:b.key||"default"})]}function d(a){if("string"===typeof a)var b=a;else{b=a.pathname;var k=a.search;a=a.hash;b=(void 0===b?"/":b)+(void 0===k?"":k)+(void 0===a?"":a)}return b}function y(a,b){return v(Object.assign({},p,"string"===typeof a?D(a):a,{state:b,key:Math.random().toString(36).substr(2,8)}))}function t(a){u=a;a=c();l=a[0];p=a[1];z.call({action:u,
location:p})}function A(a,b){function c(){A(a,b)}var k=m.Push,e=y(a,b);if(!h.length||(h.call({action:k,location:e,retry:c}),!1)){var f=[{usr:e.state,key:e.key,idx:l+1},d(e)];e=f[0];f=f[1];try{n.pushState(e,"",f)}catch(F){g.location.assign(f)}t(k)}}function B(a,b){function c(){B(a,b)}var k=m.Replace,e=y(a,b);h.length&&(h.call({action:k,location:e,retry:c}),1)||(e=[{usr:e.state,key:e.key,idx:l},d(e)],n.replaceState(e[0],"",e[1]),t(k))}function f(a){n.go(a)}a=(void 0===a?{}:a).window;var g=void 0===
a?document.defaultView:a,n=g.history,q=null;g.addEventListener("popstate",function(){if(q)h.call(q),q=null;else{var a=m.Pop,b=c(),d=b[0];b=b[1];if(h.length)if(null!=d){var g=l-d;g&&(q={action:a,location:b,retry:function(){f(-1*g)}},f(g))}else"production"!==process.env.NODE_ENV?w(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):
void 0;else t(a)}});var u=m.Pop;a=c();var l=a[0],p=a[1],h=C(),z=C();null==l&&(l=0,n.replaceState(Object.assign({},n.state,{idx:l}),""));return{get action(){return u},get location(){return p},createHref:d,push:A,replace:B,go:f,back:function(){f(-1)},forward:function(){f(1)},listen:function(a){return z.push(a)},block:function(a){var b=h.push(a);1===h.length&&g.addEventListener("beforeunload",x);return function(){b();h.length||g.removeEventListener("beforeunload",x)}}}}();export default E;
//# sourceMappingURL=browser.js.map

@@ -1,5 +0,5 @@

import { History } from 'history';
declare const _default: History;
declare const _default: import("./history").HashHistory<object>;
/**
* Create a default instance for the current document.
*/
export default _default;

@@ -1,8 +0,8 @@

function p(){p=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],f;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(a[f]=c[f])}return a};return p.apply(this,arguments)}var r="production"!==process.env.NODE_ENV?function(a){return Object.freeze(a)}:function(a){return a};function t(a,b){if(!a){"undefined"!==typeof console&&console.warn(b);try{throw Error(b);}catch(c){}}}function x(a){a.preventDefault();a.returnValue=""}
function y(){var a=[];return{get length(){return a.length},push:function(b){a.push(b);return function(){a=a.filter(function(a){return a!==b})}},call:function(b){a.forEach(function(a){return a&&a(b)})}}}function z(a){var b=a.pathname,c=a.search;a=a.hash;return(void 0===b?"/":b)+(void 0===c?"":c)+(void 0===a?"":a)}function A(a){var b={};if(a){var c=a.indexOf("#");0<=c&&(b.hash=a.substr(c),a=a.substr(0,c));c=a.indexOf("?");0<=c&&(b.search=a.substr(c),a=a.substr(0,c));a&&(b.pathname=a)}return b}
var F=function(a){function b(){var a=A(g.location.hash.substr(1)),b=a.pathname,c=a.search;a=a.hash;var d=k.state||{};return[d.idx,r({pathname:void 0===b?"/":b,search:void 0===c?"":c,hash:void 0===a?"":a,state:d.usr||null,key:d.key||"default"})]}function c(){if(q)e.call(q),q=null;else{var a=b(),c=a[0];a=a[1];if(e.length)if(null!=c){var u=h-c;u&&(q={action:"POP",location:a,retry:function(){m(-1*u)}},m(u))}else"production"!==process.env.NODE_ENV?t(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):
void 0;else v("POP")}}function f(a){var b=document.querySelector("base"),c="";b&&b.getAttribute("href")&&(b=g.location.href,c=b.indexOf("#"),c=-1===c?b:b.slice(0,c));return c+"#"+("string"===typeof a?a:z(a))}function B(a,b){void 0===b&&(b=null);return r(p({},n,{},"string"===typeof a?A(a):a,{state:b,key:Math.random().toString(36).substr(2,8)}))}function v(a){w=a;a=b();h=a[0];n=a[1];C.call({action:w,location:n})}function D(a,b){function c(){D(a,b)}var d=B(a,b);"production"!==process.env.NODE_ENV?t("/"===
d.pathname.charAt(0),"Relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")"):void 0;if(!e.length||(e.call({action:"PUSH",location:d,retry:c}),!1)){var l=[{usr:d.state,key:d.key,idx:h+1},f(d)];d=l[0];l=l[1];try{k.pushState(d,null,l)}catch(G){g.location.assign(l)}v("PUSH")}}function E(a,b){function c(){E(a,b)}var d=B(a,b);"production"!==process.env.NODE_ENV?t("/"===d.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")"):
void 0;e.length&&(e.call({action:"REPLACE",location:d,retry:c}),1)||(d=[{usr:d.state,key:d.key,idx:h},f(d)],k.replaceState(d[0],null,d[1]),v("REPLACE"))}function m(a){k.go(a)}a=(void 0===a?{}:a).window;var g=void 0===a?document.defaultView:a,k=g.history,q=null;g.addEventListener("popstate",c);g.addEventListener("hashchange",function(){var a=b()[1];z(a)!==z(n)&&c()});var w="POP";a=b();var h=a[0],n=a[1],e=y(),C=y();null==h&&(h=0,k.replaceState(p({},k.state,{idx:h}),null));return{get action(){return w},
get location(){return n},createHref:f,push:D,replace:E,go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(a){return C.push(a)},block:function(a){var b=e.push(a);1===e.length&&g.addEventListener("beforeunload",x);return function(){b();e.length||g.removeEventListener("beforeunload",x)}}}}();export default F;
var l,r=l||(l={});r.Pop="POP";r.Push="PUSH";r.Replace="REPLACE";var t="production"!==process.env.NODE_ENV?function(a){return Object.freeze(a)}:function(a){return a};function u(a,b){if(!a){"undefined"!==typeof console&&console.warn(b);try{throw Error(b);}catch(c){}}}function z(a){a.preventDefault();a.returnValue=""}
function A(){var a=[];return{get length(){return a.length},push:function(b){a.push(b);return function(){a=a.filter(function(a){return a!==b})}},call:function(b){a.forEach(function(a){return a&&a(b)})}}}function B(a){var b=a.pathname,c=a.search;a=a.hash;return(void 0===b?"/":b)+(void 0===c?"":c)+(void 0===a?"":a)}function C(a){var b={};if(a){var c=a.indexOf("#");0<=c&&(b.hash=a.substr(c),a=a.substr(0,c));c=a.indexOf("?");0<=c&&(b.search=a.substr(c),a=a.substr(0,c));a&&(b.pathname=a)}return b}
var H=function(a){function b(){var a=C(h.location.hash.substr(1)),e=a.pathname,b=a.search;a=a.hash;var c=m.state||{};return[c.idx,t({pathname:void 0===e?"/":e,search:void 0===b?"":b,hash:void 0===a?"":a,state:c.usr||null,key:c.key||"default"})]}function c(){if(q)g.call(q),q=null;else{var a=l.Pop,e=b(),c=e[0];e=e[1];if(g.length)if(null!=c){var v=k-c;v&&(q={action:a,location:e,retry:function(){n(-1*v)}},n(v))}else"production"!==process.env.NODE_ENV?u(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):
void 0;else w(a)}}function x(a){var f=document.querySelector("base"),b="";f&&f.getAttribute("href")&&(f=h.location.href,b=f.indexOf("#"),b=-1===b?f:f.slice(0,b));return b+"#"+("string"===typeof a?a:B(a))}function D(a,b){return t(Object.assign({},p,"string"===typeof a?C(a):a,{state:b,key:Math.random().toString(36).substr(2,8)}))}function w(a){y=a;a=b();k=a[0];p=a[1];E.call({action:y,location:p})}function F(a,b){function c(){F(a,b)}var f=l.Push,d=D(a,b);"production"!==process.env.NODE_ENV?u("/"===d.pathname.charAt(0),
"Relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")"):void 0;if(!g.length||(g.call({action:f,location:d,retry:c}),!1)){var e=[{usr:d.state,key:d.key,idx:k+1},x(d)];d=e[0];e=e[1];try{m.pushState(d,"",e)}catch(I){h.location.assign(e)}w(f)}}function G(a,b){function c(){G(a,b)}var f=l.Replace,d=D(a,b);"production"!==process.env.NODE_ENV?u("/"===d.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")"):void 0;g.length&&(g.call({action:f,
location:d,retry:c}),1)||(d=[{usr:d.state,key:d.key,idx:k},x(d)],m.replaceState(d[0],"",d[1]),w(f))}function n(a){m.go(a)}a=(void 0===a?{}:a).window;var h=void 0===a?document.defaultView:a,m=h.history,q=null;h.addEventListener("popstate",c);h.addEventListener("hashchange",function(){var a=b()[1];B(a)!==B(p)&&c()});var y=l.Pop;a=b();var k=a[0],p=a[1],g=A(),E=A();null==k&&(k=0,m.replaceState(Object.assign({},m.state,{idx:k}),""));return{get action(){return y},get location(){return p},createHref:x,push:F,
replace:G,go:n,back:function(){n(-1)},forward:function(){n(1)},listen:function(a){return E.push(a)},block:function(a){var b=g.push(a);1===g.length&&h.addEventListener("beforeunload",z);return function(){b();g.length||h.removeEventListener("beforeunload",z)}}}}();export default H;
//# sourceMappingURL=hash.js.map

@@ -1,62 +0,250 @@

export type Action = "POP" | "PUSH" | "REPLACE";
export type Path = string;
export type PathPieces = {
pathname?: string;
search?: string;
hash?: string;
/**
* A URL path including the pathname, search string, and hash. No URL
* protocol or domain information should be part of a path.
*/
export declare type Path = string;
/**
* The pieces of a URL path.
*/
export declare type PathPieces = {
/**
* The URL pathname, beginning with a /.
*/
pathname?: string;
/**
* The URL search string, beginning with a ?.
*/
search?: string;
/**
* The URL fragment identifier, beginning with a #.
*/
hash?: string;
};
export type State = object;
/**
* An object that is used to associate some arbitrary data with a
* location, but that does not appear in the URL path.
*/
export declare type State = object;
/**
* Actions represent the type of change to a location value.
*/
export declare enum Action {
Pop = "POP",
Push = "PUSH",
Replace = "REPLACE"
}
/**
* A location represents the current state in a history stack. It contains
* information about the URL path, as well as some state and a key. Analogous
* to the web's window.location API, but much smaller.
*
* @typeParam S - The type for the state object (optional)
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/location
*/
export interface Location<S extends State = State> extends PathPieces {
pathname: string;
search: string;
hash: string;
state?: S;
key?: string;
/**
* The URL pathname, beginning with a /.
*/
pathname: string;
/**
* The URL search string, beginning with a ?.
*/
search: string;
/**
* The URL fragment identifier, beginning with a #.
*/
hash: string;
/**
* Some state associated with this location.
*/
state?: S;
/**
* A unique string associated with this location. May be used to
* safely store and retrieve data in some other storage API, like
* `localStorage`. This value is always "default" on the initial
* location.
*/
key: string;
}
/**
* A change to the current location.
*
* @typeParam S - The type for the location's state object (optional)
*/
export interface Update<S extends State = State> {
action: Action;
location: Location<S>;
/**
* The action that triggered the change.
*/
action: Action;
/**
* The new location.
*/
location: Location<S>;
}
/**
* A function that receives notifications about location changes.
*
* @typeParam S - The type for the location's state object (optional)
*/
export interface Listener<S extends State = State> {
(update: Update<S>): void;
(update: Update<S>): void;
}
export type Unlistener = () => void;
export interface Transaction<S extends State = State> extends Update {
retry(): void;
/**
* A change to the current location that was blocked. May be retried
* after obtaining user confirmation.
*
* @typeParam S - The type for the location's state object (optional)
*/
export interface Transition<S extends State = State> extends Update<S> {
/**
* Retries the update to the current location.
*/
retry(): void;
}
/**
* A function that receives transitions when navigation is blocked.
*
* @typeParam S - The type for the location's state object (optional)
*/
export interface Blocker<S extends State = State> {
(tx: Transaction<S>): void;
(tx: Transition<S>): void;
}
export type Unblocker = () => void;
/**
* A `to` value is either a URL path or an object that contains the pieces
* of a URL path.
*/
export declare type To = Path | PathPieces;
/**
* A history is an interface to the navigation stack. The history serves
* as the source of truth for the current location, as well as provides a
* set of methods that may be used to change it.
*
* It is analogous to the web's window.history object, but with a smaller,
* more focused API.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/history
*/
export interface History<S extends State = State> {
action: Action;
location: Location<S>;
createHref(to: Path | PathPieces): string;
push(to: Path | PathPieces, state?: State): void;
replace(to: Path | PathPieces, state?: State): void;
go(n: number): void;
back(): void;
forward(): void;
listen(listener: Listener<S>): Unlistener;
block(blocker: Blocker<S>): Unblocker;
/**
* The last action that modified the current location. This will always
* be Action.Pop when a history instance is first created. This value is
* mutable.
*/
action: Action;
/**
* The current location. This value is mutable.
*/
location: Location<S>;
/**
* Returns a valid href for the given `to` value that may be used as
* the value of an <a href> attribute.
*
* @param to - The destination URL
*/
createHref(to: Path | PathPieces): string;
/**
* Pushes a new location onto the history stack, increasing its length
* by one. If there were any entries in the stack after the current one,
* they are lost.
*
* @param to - The new URL
* @param state - Data to associate with the new location
*/
push(to: To, state?: State): void;
/**
* Replaces the current location in the history stack with a new one.
* The location that was replaced will no longer be available.
*
* @param to - The new URL
* @param state - Data to associate with the new location
*/
replace(to: To, state?: State): void;
/**
* Navigates `n` entries backward/forward in the history stack relative
* to the current index. For example, a "back" navigation would use go(-1).
*
* @param n - The delta in the stack index
*/
go(n: number): void;
/**
* Navigates to the previous entry in the stack. Identical to go(-1).
*
* Warning: if the current location is the first location in the stack,
* this will unload the current document.
*/
back(): void;
/**
* Navigates to the next entry in the stack. Identical to go(1).
*/
forward(): void;
/**
* Sets up a listener that will be called whenever the current location
* changes.
*
* @returns unlisten - A function that may be used to stop listening
*/
listen(listener: Listener<S>): () => void;
/**
* Prevents the current location from changing and sets up a listener
* that will be called instead.
*
* @returns unblock - A function that may be used to stop blocking
*/
block(blocker: Blocker<S>): () => void;
}
/**
* A browser history stores the current location in regular URLs in a
* web browser environment. This is the standard for most web apps and
* provides the cleanest URLs the browser's address bar.
*/
export interface BrowserHistory<S extends State = State> extends History<S> {
}
/**
* A hash history stores the current location in the fragment identifier
* portion of the URL in a web browser environment.
*
* This is ideal for apps that do not control the server for some reason
* (because the fragment identifier is never sent to the server), including
* some shared hosting environments that do not provide fine-grained controls
* over which pages are served at which URLs.
*/
export interface HashHistory<S extends State = State> extends History<S> {
}
/**
* A memory history stores locations in memory. This is useful in stateful
* environments where there is no web browser, such as node tests or React
* Native.
*/
export interface MemoryHistory<S extends State = State> extends History<S> {
index: number;
index: number;
}
export function createBrowserHistory(options?: { window?: Window }): History;
export function createHashHistory(options?: { window?: Window }): History;
type InitialEntry = Path | PathPieces;
export function createMemoryHistory(options?: {
initialEntries?: InitialEntry[];
initialIndex?: number;
/**
* Browser history stores the location in regular URLs. This is the
* standard for most web apps, but it requires some configuration on
* the server to ensure you serve the same app at multiple URLs.
*/
export declare function createBrowserHistory({ window }?: {
window?: Window;
}): BrowserHistory;
/**
* Hash history stores the location in window.location.hash. This makes
* it ideal for situations where you don't want to send the location to
* the server for some reason, either because you do cannot configure it
* or the URL space is reserved for something else.
*/
export declare function createHashHistory({ window }?: {
window?: Window;
}): HashHistory;
declare type InitialEntry = Path | PathPieces;
/**
* Memory history stores the current location in memory. It is designed
* for use in stateful non-browser environments like headless tests (in
* node.js) and React Native.
*/
export declare function createMemoryHistory({ initialEntries, initialIndex }?: {
initialEntries?: InitialEntry[];
initialIndex?: number;
}): MemoryHistory;
export function createPath(pieces: PathPieces): Path;
export function parsePath(path: Path): PathPieces;
export declare function createPath({ pathname, search, hash }: PathPieces): string;
export declare function parsePath(path: Path): PathPieces;
export {};

@@ -1,15 +0,15 @@

function w(a,e){if(!a){"undefined"!==typeof console&&console.warn(e);try{throw Error(e);}catch(f){}}}function x(a){a.preventDefault();a.returnValue=""}function y(){let a=[];return{get length(){return a.length},push(e){a.push(e);return function(){a=a.filter(a=>a!==e)}},call(e){a.forEach(a=>a&&a(e))}}}function z(){return Math.random().toString(36).substr(2,8)}function A({pathname:a="/",search:e="",hash:f=""}){return a+e+f}
function B(a){let e={};if(a){var f=a.indexOf("#");0<=f&&(e.hash=a.substr(f),a=a.substr(0,f));f=a.indexOf("?");0<=f&&(e.search=a.substr(f),a=a.substr(0,f));a&&(e.pathname=a)}return e}
function createBrowserHistory({window:a=document.defaultView}={}){function e(){let {pathname:d,search:c,hash:b}=a.location,u=g.state||{};return[u.idx,Object.freeze({pathname:d,search:c,hash:b,state:u.usr||null,key:u.key||"default"})]}function f(a){return"string"===typeof a?a:A(a)}function q(a,c=null){return Object.freeze({...m,..."string"===typeof a?B(a):a,state:c,key:z()})}function r(a){p=a;[k,m]=e();b.call({action:p,location:m})}function t(b,c){function d(){t(b,c)}let u=q(b,c);if(!l.length||
(l.call({action:"PUSH",location:u,retry:d}),!1)){let [c,b]=[{usr:u.state,key:u.key,idx:k+1},f(u)];try{g.pushState(c,null,b)}catch(C){a.location.assign(b)}r("PUSH")}}function v(a,c){function b(){v(a,c)}let d=q(a,c);if(!l.length||(l.call({action:"REPLACE",location:d,retry:b}),!1)){let [a,c]=[{usr:d.state,key:d.key,idx:k},f(d)];g.replaceState(a,null,c);r("REPLACE")}}function n(a){g.go(a)}let g=a.history,h=null;a.addEventListener("popstate",function(){if(h)l.call(h),h=null;else{let [a,c]=e();if(l.length)if(null!=
a){let b=k-a;b&&(h={action:"POP",location:c,retry(){n(-1*b)}},n(b))}else w(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else r("POP")}});let p="POP",[k,m]=e(),l=y(),b=y();null==k&&(k=0,g.replaceState({...g.state,idx:k},null));return{get action(){return p},
get location(){return m},createHref:f,push:t,replace:v,go:n,back(){n(-1)},forward(){n(1)},listen(a){return b.push(a)},block(b){let c=l.push(b);1===l.length&&a.addEventListener("beforeunload",x);return function(){c();l.length||a.removeEventListener("beforeunload",x)}}}};
function createHashHistory({window:a=document.defaultView}={}){function e(){let {pathname:c="/",search:b="",hash:d=""}=B(a.location.hash.substr(1)),e=h.state||{};return[e.idx,Object.freeze({pathname:c,search:b,hash:d,state:e.usr||null,key:e.key||"default"})]}function f(){if(p)b.call(p),p=null;else{let [a,d]=e();if(b.length)if(null!=a){let b=m-a;b&&(p={action:"POP",location:d,retry(){g(-1*b)}},g(b))}else w(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");
else t("POP")}}function q(b){var c=document.querySelector("base");var d="";c&&c.getAttribute("href")&&(c=a.location.href,d=c.indexOf("#"),d=-1===d?c:c.slice(0,d));c=d;return c+"#"+("string"===typeof b?b:A(b))}function r(a,b=null){return Object.freeze({...l,..."string"===typeof a?B(a):a,state:b,key:z()})}function t(a){k=a;[m,l]=e();d.call({action:k,location:l})}function v(c,d){function e(){v(c,d)}let f=r(c,d);w("/"===f.pathname.charAt(0),`Relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`);
if(!b.length||(b.call({action:"PUSH",location:f,retry:e}),!1)){let [b,c]=[{usr:f.state,key:f.key,idx:m+1},q(f)];try{h.pushState(b,null,c)}catch(D){a.location.assign(c)}t("PUSH")}}function n(a,d){function c(){n(a,d)}let e=r(a,d);w("/"===e.pathname.charAt(0),`Relative pathnames are not supported in hash history.replace(${JSON.stringify(a)})`);if(!b.length||(b.call({action:"REPLACE",location:e,retry:c}),!1)){let [a,b]=[{usr:e.state,key:e.key,idx:m},q(e)];h.replaceState(a,null,b);t("REPLACE")}}function g(a){h.go(a)}
let h=a.history,p=null;a.addEventListener("popstate",f);a.addEventListener("hashchange",()=>{let [,a]=e();A(a)!==A(l)&&f()});let k="POP",[m,l]=e(),b=y(),d=y();null==m&&(m=0,h.replaceState({...h.state,idx:m},null));return{get action(){return k},get location(){return l},createHref:q,push:v,replace:n,go:g,back(){g(-1)},forward(){g(1)},listen(a){return d.push(a)},block(c){let d=b.push(c);1===b.length&&a.addEventListener("beforeunload",x);return function(){d();b.length||a.removeEventListener("beforeunload",
x)}}}};
function createMemoryHistory({initialEntries:a=["/"],initialIndex:e=0}={}){function f(a,d=null){return Object.freeze({...k,..."string"===typeof a?B(a):a,state:d,key:z()})}function q(a,d,c){return!m.length||(m.call({action:a,location:d,retry:c}),!1)}function r(a,d){p=a;k=d;l.call({action:p,location:k})}function t(a,d){let b=f(a,d);w("/"===k.pathname.charAt(0),`Relative pathnames are not supported in memory history.push(${JSON.stringify(a)})`);q("PUSH",b,function(){t(a,d)})&&(h+=1,g.splice(h,g.length,
b),r("PUSH",b))}function v(a,d){let b=f(a,d);w("/"===k.pathname.charAt(0),`Relative pathnames are not supported in memory history.replace(${JSON.stringify(a)})`);q("REPLACE",b,function(){v(a,d)})&&(g[h]=b,r("REPLACE",b))}function n(a){let b=Math.min(Math.max(h+a,0),g.length-1),c=g[b];q("POP",c,function(){n(a)})&&(h=b,r("POP",c))}let g=a.map(a=>{let b=Object.freeze({pathname:"/",search:"",hash:"",state:null,key:z(),..."string"===typeof a?B(a):a});w("/"===b.pathname.charAt(0),`Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: ${JSON.stringify(a)})`);
return b}),h=Math.min(Math.max(e,0),g.length-1),p="POP",k=g[h],m=y(),l=y();return{get index(){return h},get action(){return p},get location(){return k},createHref:function(a){return"string"===typeof a?a:A(a)},push:t,replace:v,go:n,back(){n(-1)},forward(){n(1)},listen(a){return l.push(a)},block(a){return m.push(a)}}};export{createBrowserHistory,createHashHistory,createMemoryHistory,A as createPath,B as parsePath}
var n,x=n||(n={});x.Pop="POP";x.Push="PUSH";x.Replace="REPLACE";function y(a,b){if(!a){"undefined"!==typeof console&&console.warn(b);try{throw Error(b);}catch(e){}}}function z(a){a.preventDefault();a.returnValue=""}function A(){let a=[];return{get length(){return a.length},push(b){a.push(b);return function(){a=a.filter(a=>a!==b)}},call(b){a.forEach(a=>a&&a(b))}}}function B(){return Math.random().toString(36).substr(2,8)}
function C({pathname:a="/",search:b="",hash:e=""}){return a+b+e}function D(a){let b={};if(a){var e=a.indexOf("#");0<=e&&(b.hash=a.substr(e),a=a.substr(0,e));e=a.indexOf("?");0<=e&&(b.search=a.substr(e),a=a.substr(0,e));a&&(b.pathname=a)}return b}
function createBrowserHistory({window:a=document.defaultView}={}){function b(){let {pathname:f,search:d,hash:c}=a.location,E=g.state||{};return[E.idx,Object.freeze({pathname:f,search:d,hash:c,state:E.usr||null,key:E.key||"default"})]}function e(a){return"string"===typeof a?a:C(a)}function t(a,d){return Object.freeze(Object.assign({},m,"string"===typeof a?D(a):a,{state:d,key:B()}))}function u(a){q=a;[k,m]=b();c.call({action:q,location:m})}function v(c,d){function r(){v(c,d)}let f=n.Push,b=t(c,
d);if(!l.length||(l.call({action:f,location:b,retry:r}),!1)){let [d,c]=[{usr:b.state,key:b.key,idx:k+1},e(b)];try{g.pushState(d,"",c)}catch(F){a.location.assign(c)}u(f)}}function w(a,d){function c(){w(a,d)}let f=n.Replace,b=t(a,d);if(!l.length||(l.call({action:f,location:b,retry:c}),!1)){let [a,d]=[{usr:b.state,key:b.key,idx:k},e(b)];g.replaceState(a,"",d);u(f)}}function p(a){g.go(a)}let g=a.history,h=null;a.addEventListener("popstate",function(){if(h)l.call(h),h=null;else{let a=n.Pop,[d,c]=b();if(l.length)if(null!=
d){let r=k-d;r&&(h={action:a,location:c,retry(){p(-1*r)}},p(r))}else y(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else u(a)}});let q=n.Pop,[k,m]=b(),l=A(),c=A();null==k&&(k=0,g.replaceState(Object.assign({},g.state,{idx:k}),""));return{get action(){return q},
get location(){return m},createHref:e,push:v,replace:w,go:p,back(){p(-1)},forward(){p(1)},listen(a){return c.push(a)},block(c){let d=l.push(c);1===l.length&&a.addEventListener("beforeunload",z);return function(){d();l.length||a.removeEventListener("beforeunload",z)}}}};
function createHashHistory({window:a=document.defaultView}={}){function b(){let {pathname:d="/",search:c="",hash:b=""}=D(a.location.hash.substr(1)),f=h.state||{};return[f.idx,Object.freeze({pathname:d,search:c,hash:b,state:f.usr||null,key:f.key||"default"})]}function e(){if(q)c.call(q),q=null;else{let a=n.Pop,[r,f]=b();if(c.length)if(null!=r){let c=m-r;c&&(q={action:a,location:f,retry(){g(-1*c)}},g(c))}else y(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");
else v(a)}}function t(c){var d=document.querySelector("base");var b="";d&&d.getAttribute("href")&&(d=a.location.href,b=d.indexOf("#"),b=-1===b?d:d.slice(0,b));d=b;return d+"#"+("string"===typeof c?c:C(c))}function u(a,c){return Object.freeze(Object.assign({},l,"string"===typeof a?D(a):a,{state:c,key:B()}))}function v(a){k=a;[m,l]=b();f.call({action:k,location:l})}function w(d,b){function f(){w(d,b)}let r=n.Push,e=u(d,b);y("/"===e.pathname.charAt(0),`Relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`);
if(!c.length||(c.call({action:r,location:e,retry:f}),!1)){let [c,d]=[{usr:e.state,key:e.key,idx:m+1},t(e)];try{h.pushState(c,"",d)}catch(G){a.location.assign(d)}v(r)}}function p(a,b){function d(){p(a,b)}let f=n.Replace,e=u(a,b);y("/"===e.pathname.charAt(0),`Relative pathnames are not supported in hash history.replace(${JSON.stringify(a)})`);if(!c.length||(c.call({action:f,location:e,retry:d}),!1)){let [a,c]=[{usr:e.state,key:e.key,idx:m},t(e)];h.replaceState(a,"",c);v(f)}}function g(a){h.go(a)}let h=
a.history,q=null;a.addEventListener("popstate",e);a.addEventListener("hashchange",()=>{let [,a]=b();C(a)!==C(l)&&e()});let k=n.Pop,[m,l]=b(),c=A(),f=A();null==m&&(m=0,h.replaceState(Object.assign({},h.state,{idx:m}),""));return{get action(){return k},get location(){return l},createHref:t,push:w,replace:p,go:g,back(){g(-1)},forward(){g(1)},listen(a){return f.push(a)},block(d){let b=c.push(d);1===c.length&&a.addEventListener("beforeunload",z);return function(){b();c.length||a.removeEventListener("beforeunload",
z)}}}};
function createMemoryHistory({initialEntries:a=["/"],initialIndex:b=0}={}){function e(a,b){return Object.freeze(Object.assign({},k,"string"===typeof a?D(a):a,{state:b,key:B()}))}function t(a,b,d){return!m.length||(m.call({action:a,location:b,retry:d}),!1)}function u(a,b){q=a;k=b;l.call({action:q,location:k})}function v(a,b){let c=n.Push,f=e(a,b);y("/"===k.pathname.charAt(0),`Relative pathnames are not supported in memory history.push(${JSON.stringify(a)})`);t(c,f,function(){v(a,b)})&&(h+=1,
g.splice(h,g.length,f),u(c,f))}function w(a,b){let c=n.Replace,f=e(a,b);y("/"===k.pathname.charAt(0),`Relative pathnames are not supported in memory history.replace(${JSON.stringify(a)})`);t(c,f,function(){w(a,b)})&&(g[h]=f,u(c,f))}function p(a){let b=Math.min(Math.max(h+a,0),g.length-1),c=n.Pop,e=g[b];t(c,e,function(){p(a)})&&(h=b,u(c,e))}let g=a.map(a=>{let b=Object.freeze(Object.assign({pathname:"/",search:"",hash:"",state:null,key:B()},"string"===typeof a?D(a):a));y("/"===b.pathname.charAt(0),
`Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: ${JSON.stringify(a)})`);return b}),h=Math.min(Math.max(b,0),g.length-1),q=n.Pop,k=g[h],m=A(),l=A();return{get index(){return h},get action(){return q},get location(){return k},createHref:function(a){return"string"===typeof a?a:C(a)},push:v,replace:w,go:p,back(){p(-1)},forward(){p(1)},listen(a){return l.push(a)},block(a){return m.push(a)}}};export{n as Action,createBrowserHistory,createHashHistory,createMemoryHistory,C as createPath,D as parsePath}
//# sourceMappingURL=history.development.js.map

@@ -1,16 +0,17 @@

import _extends from'@babel/runtime/helpers/esm/extends';var w="production"!==process.env.NODE_ENV?function(a){return Object.freeze(a)}:function(a){return a};function x(a,f){if(!a){"undefined"!==typeof console&&console.warn(f);try{throw Error(f);}catch(h){}}}function y(a){a.preventDefault();a.returnValue=""}function z(){var a=[];return{get length(){return a.length},push:function(f){a.push(f);return function(){a=a.filter(function(a){return a!==f})}},call:function(f){a.forEach(function(a){return a&&a(f)})}}}
function A(){return Math.random().toString(36).substr(2,8)}function C(a){var f=a.pathname,h=a.search;a=a.hash;return(void 0===f?"/":f)+(void 0===h?"":h)+(void 0===a?"":a)}function D(a){var f={};if(a){var h=a.indexOf("#");0<=h&&(f.hash=a.substr(h),a=a.substr(0,h));h=a.indexOf("?");0<=h&&(f.search=a.substr(h),a=a.substr(0,h));a&&(f.pathname=a)}return f}
function createBrowserHistory(a){function f(){var a=k.location,e=g.state||{};return[e.idx,w({pathname:a.pathname,search:a.search,hash:a.hash,state:e.usr||null,key:e.key||"default"})]}function h(a){return"string"===typeof a?a:C(a)}function r(a,e){void 0===e&&(e=null);return w(_extends({},m,{},"string"===typeof a?D(a):a,{state:e,key:A()}))}function u(a){n=a;a=f();p=a[0];m=a[1];c.call({action:n,location:m})}function v(a,e){function c(){v(a,e)}var B=r(a,e);if(!b.length||(b.call({action:"PUSH",
location:B,retry:c}),!1)){var d=[{usr:B.state,key:B.key,idx:p+1},h(B)];B=d[0];d=d[1];try{g.pushState(B,null,d)}catch(E){k.location.assign(d)}u("PUSH")}}function t(a,e){function c(){t(a,e)}var d=r(a,e);b.length&&(b.call({action:"REPLACE",location:d,retry:c}),1)||(d=[{usr:d.state,key:d.key,idx:p},h(d)],g.replaceState(d[0],null,d[1]),u("REPLACE"))}function l(a){g.go(a)}a=(void 0===a?{}:a).window;var k=void 0===a?document.defaultView:a,g=k.history,q=null;k.addEventListener("popstate",function(){if(q)b.call(q),
q=null;else{var a=f(),e=a[0];a=a[1];if(b.length)if(null!=e){var c=p-e;c&&(q={action:"POP",location:a,retry:function(){l(-1*c)}},l(c))}else"production"!==process.env.NODE_ENV?x(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):void 0;else u("POP")}});var n=
"POP";a=f();var p=a[0],m=a[1],b=z(),c=z();null==p&&(p=0,g.replaceState(_extends({},g.state,{idx:p}),null));return{get action(){return n},get location(){return m},createHref:h,push:v,replace:t,go:l,back:function(){l(-1)},forward:function(){l(1)},listen:function(a){return c.push(a)},block:function(a){var e=b.push(a);1===b.length&&k.addEventListener("beforeunload",y);return function(){e();b.length||k.removeEventListener("beforeunload",y)}}}};
function createHashHistory(a){function f(){var a=D(g.location.hash.substr(1)),b=a.pathname,c=a.search;a=a.hash;var d=q.state||{};return[d.idx,w({pathname:void 0===b?"/":b,search:void 0===c?"":c,hash:void 0===a?"":a,state:d.usr||null,key:d.key||"default"})]}function h(){if(n)c.call(n),n=null;else{var a=f(),b=a[0];a=a[1];if(c.length)if(null!=b){var d=m-b;d&&(n={action:"POP",location:a,retry:function(){k(-1*d)}},k(d))}else"production"!==process.env.NODE_ENV?x(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):
void 0;else v("POP")}}function r(a){var b=document.querySelector("base"),e="";b&&b.getAttribute("href")&&(b=g.location.href,e=b.indexOf("#"),e=-1===e?b:b.slice(0,e));return e+"#"+("string"===typeof a?a:C(a))}function u(a,c){void 0===c&&(c=null);return w(_extends({},b,{},"string"===typeof a?D(a):a,{state:c,key:A()}))}function v(a){p=a;a=f();m=a[0];b=a[1];d.call({action:p,location:b})}function t(a,b){function d(){t(a,b)}var e=u(a,b);"production"!==process.env.NODE_ENV?x("/"===e.pathname.charAt(0),"Relative pathnames are not supported in hash history.push("+
JSON.stringify(a)+")"):void 0;if(!c.length||(c.call({action:"PUSH",location:e,retry:d}),!1)){var f=[{usr:e.state,key:e.key,idx:m+1},r(e)];e=f[0];f=f[1];try{q.pushState(e,null,f)}catch(F){g.location.assign(f)}v("PUSH")}}function l(a,b){function e(){l(a,b)}var d=u(a,b);"production"!==process.env.NODE_ENV?x("/"===d.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")"):void 0;c.length&&(c.call({action:"REPLACE",location:d,retry:e}),1)||(d=[{usr:d.state,
key:d.key,idx:m},r(d)],q.replaceState(d[0],null,d[1]),v("REPLACE"))}function k(a){q.go(a)}a=(void 0===a?{}:a).window;var g=void 0===a?document.defaultView:a,q=g.history,n=null;g.addEventListener("popstate",h);g.addEventListener("hashchange",function(){var a=f()[1];C(a)!==C(b)&&h()});var p="POP";a=f();var m=a[0],b=a[1],c=z(),d=z();null==m&&(m=0,q.replaceState(_extends({},q.state,{idx:m}),null));return{get action(){return p},get location(){return b},createHref:r,push:t,replace:l,go:k,back:function(){k(-1)},
forward:function(){k(1)},listen:function(a){return d.push(a)},block:function(a){var b=c.push(a);1===c.length&&g.addEventListener("beforeunload",y);return function(){b();c.length||g.removeEventListener("beforeunload",y)}}}};
function createMemoryHistory(a){function f(a,c){void 0===c&&(c=null);return w(_extends({},n,{},"string"===typeof a?D(a):a,{state:c,key:A()}))}function h(a,c,d){return!p.length||(p.call({action:a,location:c,retry:d}),!1)}function r(a,c){q=a;n=c;m.call({action:q,location:n})}function u(a,c){var b=f(a,c);"production"!==process.env.NODE_ENV?x("/"===n.pathname.charAt(0),"Relative pathnames are not supported in memory history.push("+JSON.stringify(a)+")"):void 0;h("PUSH",b,function(){u(a,c)})&&(g+=
1,k.splice(g,k.length,b),r("PUSH",b))}function v(a,c){var b=f(a,c);"production"!==process.env.NODE_ENV?x("/"===n.pathname.charAt(0),"Relative pathnames are not supported in memory history.replace("+JSON.stringify(a)+")"):void 0;h("REPLACE",b,function(){v(a,c)})&&(k[g]=b,r("REPLACE",b))}function t(a){var b=Math.min(Math.max(g+a,0),k.length-1),d=k[b];h("POP",d,function(){t(a)})&&(g=b,r("POP",d))}var l=void 0===a?{}:a;a=l.initialEntries;l=l.initialIndex;l=void 0===l?0:l;var k=(void 0===a?["/"]:a).map(function(a){var b=
w(_extends({pathname:"/",search:"",hash:"",state:null,key:A()},"string"===typeof a?D(a):a));"production"!==process.env.NODE_ENV?x("/"===b.pathname.charAt(0),"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(a)+")"):void 0;return b}),g=Math.min(Math.max(l,0),k.length-1),q="POP",n=k[g],p=z(),m=z();return{get index(){return g},get action(){return q},get location(){return n},createHref:function(a){return"string"===typeof a?a:C(a)},push:u,
replace:v,go:t,back:function(){t(-1)},forward:function(){t(1)},listen:function(a){return m.push(a)},block:function(a){return p.push(a)}}};export{createBrowserHistory,createHashHistory,createMemoryHistory,C as createPath,D as parsePath}
import _extends from'@babel/runtime/helpers/esm/extends';var m,x=m||(m={});x.Pop="POP";x.Push="PUSH";x.Replace="REPLACE";var y="production"!==process.env.NODE_ENV?function(a){return Object.freeze(a)}:function(a){return a};function z(a,b){if(!a){"undefined"!==typeof console&&console.warn(b);try{throw Error(b);}catch(d){}}}function A(a){a.preventDefault();a.returnValue=""}
function B(){var a=[];return{get length(){return a.length},push:function(b){a.push(b);return function(){a=a.filter(function(a){return a!==b})}},call:function(b){a.forEach(function(a){return a&&a(b)})}}}function C(){return Math.random().toString(36).substr(2,8)}function D(a){var b=a.pathname,d=a.search;a=a.hash;return(void 0===b?"/":b)+(void 0===d?"":d)+(void 0===a?"":a)}
function E(a){var b={};if(a){var d=a.indexOf("#");0<=d&&(b.hash=a.substr(d),a=a.substr(0,d));d=a.indexOf("?");0<=d&&(b.search=a.substr(d),a=a.substr(0,d));a&&(b.pathname=a)}return b}
function createBrowserHistory(a){function b(){var a=h.location,e=g.state||{};return[e.idx,y({pathname:a.pathname,search:a.search,hash:a.hash,state:e.usr||null,key:e.key||"default"})]}function d(a){return"string"===typeof a?a:D(a)}function t(a,e){return y(_extends({},n,"string"===typeof a?E(a):a,{state:e,key:C()}))}function v(a){p=a;a=b();q=a[0];n=a[1];f.call({action:p,location:n})}function w(a,e){function G(){w(a,e)}var f=m.Push,k=t(a,e);if(!c.length||(c.call({action:f,location:k,retry:G}),
!1)){var b=[{usr:k.state,key:k.key,idx:q+1},d(k)];k=b[0];b=b[1];try{g.pushState(k,"",b)}catch(H){h.location.assign(b)}v(f)}}function u(a,e){function b(){u(a,e)}var f=m.Replace,k=t(a,e);c.length&&(c.call({action:f,location:k,retry:b}),1)||(k=[{usr:k.state,key:k.key,idx:q},d(k)],g.replaceState(k[0],"",k[1]),v(f))}function l(a){g.go(a)}a=(void 0===a?{}:a).window;var h=void 0===a?document.defaultView:a,g=h.history,r=null;h.addEventListener("popstate",function(){if(r)c.call(r),r=null;else{var a=m.Pop,
e=b(),f=e[0];e=e[1];if(c.length)if(null!=f){var g=q-f;g&&(r={action:a,location:e,retry:function(){l(-1*g)}},l(g))}else"production"!==process.env.NODE_ENV?z(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):void 0;else v(a)}});var p=m.Pop;a=b();var q=a[0],
n=a[1],c=B(),f=B();null==q&&(q=0,g.replaceState(_extends({},g.state,{idx:q}),""));return{get action(){return p},get location(){return n},createHref:d,push:w,replace:u,go:l,back:function(){l(-1)},forward:function(){l(1)},listen:function(a){return f.push(a)},block:function(a){var e=c.push(a);1===c.length&&h.addEventListener("beforeunload",A);return function(){e();c.length||h.removeEventListener("beforeunload",A)}}}};
function createHashHistory(a){function b(){var a=E(g.location.hash.substr(1)),c=a.pathname,f=a.search;a=a.hash;var b=r.state||{};return[b.idx,y({pathname:void 0===c?"/":c,search:void 0===f?"":f,hash:void 0===a?"":a,state:b.usr||null,key:b.key||"default"})]}function d(){if(p)f.call(p),p=null;else{var a=m.Pop,c=b(),g=c[0];c=c[1];if(f.length)if(null!=g){var k=n-g;k&&(p={action:a,location:c,retry:function(){h(-1*k)}},h(k))}else"production"!==process.env.NODE_ENV?z(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."):
void 0;else w(a)}}function t(a){var c=document.querySelector("base"),e="";c&&c.getAttribute("href")&&(c=g.location.href,e=c.indexOf("#"),e=-1===e?c:c.slice(0,e));return e+"#"+("string"===typeof a?a:D(a))}function v(a,f){return y(_extends({},c,"string"===typeof a?E(a):a,{state:f,key:C()}))}function w(a){q=a;a=b();n=a[0];c=a[1];F.call({action:q,location:c})}function u(a,c){function e(){u(a,c)}var b=m.Push,d=v(a,c);"production"!==process.env.NODE_ENV?z("/"===d.pathname.charAt(0),"Relative pathnames are not supported in hash history.push("+
JSON.stringify(a)+")"):void 0;if(!f.length||(f.call({action:b,location:d,retry:e}),!1)){var h=[{usr:d.state,key:d.key,idx:n+1},t(d)];d=h[0];h=h[1];try{r.pushState(d,"",h)}catch(I){g.location.assign(h)}w(b)}}function l(a,c){function e(){l(a,c)}var b=m.Replace,d=v(a,c);"production"!==process.env.NODE_ENV?z("/"===d.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")"):void 0;f.length&&(f.call({action:b,location:d,retry:e}),1)||(d=[{usr:d.state,key:d.key,
idx:n},t(d)],r.replaceState(d[0],"",d[1]),w(b))}function h(a){r.go(a)}a=(void 0===a?{}:a).window;var g=void 0===a?document.defaultView:a,r=g.history,p=null;g.addEventListener("popstate",d);g.addEventListener("hashchange",function(){var a=b()[1];D(a)!==D(c)&&d()});var q=m.Pop;a=b();var n=a[0],c=a[1],f=B(),F=B();null==n&&(n=0,r.replaceState(_extends({},r.state,{idx:n}),""));return{get action(){return q},get location(){return c},createHref:t,push:u,replace:l,go:h,back:function(){h(-1)},forward:function(){h(1)},
listen:function(a){return F.push(a)},block:function(a){var c=f.push(a);1===f.length&&g.addEventListener("beforeunload",A);return function(){c();f.length||g.removeEventListener("beforeunload",A)}}}};
function createMemoryHistory(a){function b(a,b){return y(_extends({},p,"string"===typeof a?E(a):a,{state:b,key:C()}))}function d(a,b,d){return!q.length||(q.call({action:a,location:b,retry:d}),!1)}function t(a,b){r=a;p=b;n.call({action:r,location:p})}function v(a,f){var c=m.Push,e=b(a,f);"production"!==process.env.NODE_ENV?z("/"===p.pathname.charAt(0),"Relative pathnames are not supported in memory history.push("+JSON.stringify(a)+")"):void 0;d(c,e,function(){v(a,f)})&&(g+=1,h.splice(g,h.length,
e),t(c,e))}function w(a,f){var c=m.Replace,e=b(a,f);"production"!==process.env.NODE_ENV?z("/"===p.pathname.charAt(0),"Relative pathnames are not supported in memory history.replace("+JSON.stringify(a)+")"):void 0;d(c,e,function(){w(a,f)})&&(h[g]=e,t(c,e))}function u(a){var c=Math.min(Math.max(g+a,0),h.length-1),b=m.Pop,e=h[c];d(b,e,function(){u(a)})&&(g=c,t(b,e))}var l=void 0===a?{}:a;a=l.initialEntries;l=l.initialIndex;l=void 0===l?0:l;var h=(void 0===a?["/"]:a).map(function(a){var c=y(_extends({pathname:"/",
search:"",hash:"",state:null,key:C()},"string"===typeof a?E(a):a));"production"!==process.env.NODE_ENV?z("/"===c.pathname.charAt(0),"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(a)+")"):void 0;return c}),g=Math.min(Math.max(l,0),h.length-1),r=m.Pop,p=h[g],q=B(),n=B();return{get index(){return g},get action(){return r},get location(){return p},createHref:function(a){return"string"===typeof a?a:D(a)},push:v,replace:w,go:u,back:function(){u(-1)},
forward:function(){u(1)},listen:function(a){return n.push(a)},block:function(a){return q.push(a)}}};export{m as Action,createBrowserHistory,createHashHistory,createMemoryHistory,D as createPath,E as parsePath}
//# sourceMappingURL=history.js.map

@@ -1,2 +0,2 @@

function t(t){t.preventDefault(),t.returnValue=""}function e(){let t=[];return{get length(){return t.length},push:e=>(t.push(e),function(){t=t.filter(t=>t!==e)}),call(e){t.forEach(t=>t&&t(e))}}}function n(){return Math.random().toString(36).substr(2,8)}function l({pathname:t="/",search:e="",hash:n=""}){return t+e+n}function a(t){let e={};if(t){var n=t.indexOf("#");0<=n&&(e.hash=t.substr(n),t=t.substr(0,n)),0<=(n=t.indexOf("?"))&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function r({window:r=document.defaultView}={}){function i(){let{pathname:t,search:e,hash:n}=r.location,l=f.state||{};return[l.idx,{pathname:t,search:e,hash:n,state:l.usr||null,key:l.key||"default"}]}function o(t){return"string"==typeof t?t:l(t)}function u(t,e=null){return{...d,..."string"==typeof t?a(t):t,state:e,key:n()}}function c(t){p=t,[g,d]=i(),P.call({action:p,location:d})}function s(t){f.go(t)}let f=r.history,h=null;r.addEventListener("popstate",(function(){if(h)y.call(h),h=null;else{let[t,e]=i();if(y.length){if(null!=t){let n=g-t;n&&(h={action:"POP",location:e,retry(){s(-1*n)}},s(n))}}else c("POP")}}));let p="POP",[g,d]=i(),y=e(),P=e();return null==g&&(g=0,f.replaceState({...f.state,idx:g},null)),{get action(){return p},get location(){return d},createHref:o,push:function t(e,n){let l=u(e,n);if(!y.length||(y.call({action:"PUSH",location:l,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:g+1},o(l)];try{f.pushState(t,null,e)}catch(a){r.location.assign(e)}c("PUSH")}},replace:function t(e,n){let l=u(e,n);if(!y.length||(y.call({action:"REPLACE",location:l,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:g},o(l)];f.replaceState(t,null,e),c("REPLACE")}},go:s,back(){s(-1)},forward(){s(1)},listen:t=>P.push(t),block(e){let n=y.push(e);return 1===y.length&&r.addEventListener("beforeunload",t),function(){n(),y.length||r.removeEventListener("beforeunload",t)}}}}function i({window:r=document.defaultView}={}){function i(){let{pathname:t="/",search:e="",hash:n=""}=a(r.location.hash.substr(1)),l=h.state||{};return[l.idx,{pathname:t,search:e,hash:n,state:l.usr||null,key:l.key||"default"}]}function o(){if(p)P.call(p),p=null;else{let[t,e]=i();if(P.length){if(null!=t){let n=d-t;n&&(p={action:"POP",location:e,retry(){f(-1*n)}},f(n))}}else s("POP")}}function u(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=-1===(n=(e=r.location.href).indexOf("#"))?e:e.slice(0,n)),(e=n)+"#"+("string"==typeof t?t:l(t))}function c(t,e=null){return{...y,..."string"==typeof t?a(t):t,state:e,key:n()}}function s(t){g=t,[d,y]=i(),k.call({action:g,location:y})}function f(t){h.go(t)}let h=r.history,p=null;r.addEventListener("popstate",o),r.addEventListener("hashchange",()=>{let[,t]=i();l(t)!==l(y)&&o()});let g="POP",[d,y]=i(),P=e(),k=e();return null==d&&(d=0,h.replaceState({...h.state,idx:d},null)),{get action(){return g},get location(){return y},createHref:u,push:function t(e,n){let l=c(e,n);if(!P.length||(P.call({action:"PUSH",location:l,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:d+1},u(l)];try{h.pushState(t,null,e)}catch(a){r.location.assign(e)}s("PUSH")}},replace:function t(e,n){let l=c(e,n);if(!P.length||(P.call({action:"REPLACE",location:l,retry:function(){t(e,n)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:d},u(l)];h.replaceState(t,null,e),s("REPLACE")}},go:f,back(){f(-1)},forward(){f(1)},listen:t=>k.push(t),block(e){let n=P.push(e);return 1===P.length&&r.addEventListener("beforeunload",t),function(){n(),P.length||r.removeEventListener("beforeunload",t)}}}}function o({initialEntries:t=["/"],initialIndex:r=0}={}){function i(t,e=null){return{...p,..."string"==typeof t?a(t):t,state:e,key:n()}}function o(t,e,n){return!g.length||(g.call({action:t,location:e,retry:n}),!1)}function u(t,e){h=t,p=e,d.call({action:h,location:p})}function c(t){let e=Math.min(Math.max(f+t,0),s.length-1),n=s[e];o("POP",n,(function(){c(t)}))&&(f=e,u("POP",n))}let s=t.map(t=>({pathname:"/",search:"",hash:"",state:null,key:n(),..."string"==typeof t?a(t):t})),f=Math.min(Math.max(r,0),s.length-1),h="POP",p=s[f],g=e(),d=e();return{get index(){return f},get action(){return h},get location(){return p},createHref:function(t){return"string"==typeof t?t:l(t)},push:function t(e,n){let l=i(e,n);o("PUSH",l,(function(){t(e,n)}))&&(f+=1,s.splice(f,s.length,l),u("PUSH",l))},replace:function t(e,n){let l=i(e,n);o("REPLACE",l,(function(){t(e,n)}))&&(s[f]=l,u("REPLACE",l))},go:c,back(){c(-1)},forward(){c(1)},listen:t=>d.push(t),block:t=>g.push(t)}}export{r as createBrowserHistory,i as createHashHistory,o as createMemoryHistory,l as createPath,a as parsePath};
var t,e=t||(t={});function n(t){t.preventDefault(),t.returnValue=""}function a(){let t=[];return{get length(){return t.length},push:e=>(t.push(e),function(){t=t.filter(t=>t!==e)}),call(e){t.forEach(t=>t&&t(e))}}}function r(){return Math.random().toString(36).substr(2,8)}function l({pathname:t="/",search:e="",hash:n=""}){return t+e+n}function i(t){let e={};if(t){var n=t.indexOf("#");0<=n&&(e.hash=t.substr(n),t=t.substr(0,n)),0<=(n=t.indexOf("?"))&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function o({window:e=document.defaultView}={}){function o(){let{pathname:t,search:n,hash:a}=e.location,r=h.state||{};return[r.idx,{pathname:t,search:n,hash:a,state:r.usr||null,key:r.key||"default"}]}function c(t){return"string"==typeof t?t:l(t)}function u(t,e){return Object.assign({},y,"string"==typeof t?i(t):t,{state:e,key:r()})}function s(t){g=t,[d,y]=o(),k.call({action:g,location:y})}function f(t){h.go(t)}let h=e.history,p=null;e.addEventListener("popstate",(function(){if(p)b.call(p),p=null;else{let e=t.Pop,[n,a]=o();if(b.length){if(null!=n){let t=d-n;t&&(p={action:e,location:a,retry(){f(-1*t)}},f(t))}}else s(e)}}));let g=t.Pop,[d,y]=o(),b=a(),k=a();return null==d&&(d=0,h.replaceState(Object.assign({},h.state,{idx:d}),"")),{get action(){return g},get location(){return y},createHref:c,push:function n(a,r){let l=t.Push,i=u(a,r);if(!b.length||(b.call({action:l,location:i,retry:function(){n(a,r)}}),0)){let[t,n]=[{usr:i.state,key:i.key,idx:d+1},c(i)];try{h.pushState(t,"",n)}catch(o){e.location.assign(n)}s(l)}},replace:function e(n,a){let r=t.Replace,l=u(n,a);if(!b.length||(b.call({action:r,location:l,retry:function(){e(n,a)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:d},c(l)];h.replaceState(t,"",e),s(r)}},go:f,back(){f(-1)},forward(){f(1)},listen:t=>k.push(t),block(t){let a=b.push(t);return 1===b.length&&e.addEventListener("beforeunload",n),function(){a(),b.length||e.removeEventListener("beforeunload",n)}}}}function c({window:e=document.defaultView}={}){function o(){let{pathname:t="/",search:n="",hash:a=""}=i(e.location.hash.substr(1)),r=p.state||{};return[r.idx,{pathname:t,search:n,hash:a,state:r.usr||null,key:r.key||"default"}]}function c(){if(g)k.call(g),g=null;else{let e=t.Pop,[n,a]=o();if(k.length){if(null!=n){let t=y-n;t&&(g={action:e,location:a,retry(){h(-1*t)}},h(t))}}else f(e)}}function u(t){var n=document.querySelector("base"),a="";return n&&n.getAttribute("href")&&(a=-1===(a=(n=e.location.href).indexOf("#"))?n:n.slice(0,a)),(n=a)+"#"+("string"==typeof t?t:l(t))}function s(t,e){return Object.assign({},b,"string"==typeof t?i(t):t,{state:e,key:r()})}function f(t){d=t,[y,b]=o(),m.call({action:d,location:b})}function h(t){p.go(t)}let p=e.history,g=null;e.addEventListener("popstate",c),e.addEventListener("hashchange",()=>{let[,t]=o();l(t)!==l(b)&&c()});let d=t.Pop,[y,b]=o(),k=a(),m=a();return null==y&&(y=0,p.replaceState(Object.assign({},p.state,{idx:y}),"")),{get action(){return d},get location(){return b},createHref:u,push:function n(a,r){let l=t.Push,i=s(a,r);if(!k.length||(k.call({action:l,location:i,retry:function(){n(a,r)}}),0)){let[t,n]=[{usr:i.state,key:i.key,idx:y+1},u(i)];try{p.pushState(t,"",n)}catch(o){e.location.assign(n)}f(l)}},replace:function e(n,a){let r=t.Replace,l=s(n,a);if(!k.length||(k.call({action:r,location:l,retry:function(){e(n,a)}}),0)){let[t,e]=[{usr:l.state,key:l.key,idx:y},u(l)];p.replaceState(t,"",e),f(r)}},go:h,back(){h(-1)},forward(){h(1)},listen:t=>m.push(t),block(t){let a=k.push(t);return 1===k.length&&e.addEventListener("beforeunload",n),function(){a(),k.length||e.removeEventListener("beforeunload",n)}}}}function u({initialEntries:e=["/"],initialIndex:n=0}={}){function o(t,e){return Object.assign({},g,"string"==typeof t?i(t):t,{state:e,key:r()})}function c(t,e,n){return!d.length||(d.call({action:t,location:e,retry:n}),!1)}function u(t,e){p=t,g=e,y.call({action:p,location:g})}function s(e){let n=Math.min(Math.max(h+e,0),f.length-1),a=t.Pop,r=f[n];c(a,r,(function(){s(e)}))&&(h=n,u(a,r))}let f=e.map(t=>Object.assign({pathname:"/",search:"",hash:"",state:null,key:r()},"string"==typeof t?i(t):t)),h=Math.min(Math.max(n,0),f.length-1),p=t.Pop,g=f[h],d=a(),y=a();return{get index(){return h},get action(){return p},get location(){return g},createHref:function(t){return"string"==typeof t?t:l(t)},push:function e(n,a){let r=t.Push,l=o(n,a);c(r,l,(function(){e(n,a)}))&&(h+=1,f.splice(h,f.length,l),u(r,l))},replace:function e(n,a){let r=t.Replace,l=o(n,a);c(r,l,(function(){e(n,a)}))&&(f[h]=l,u(r,l))},go:s,back(){s(-1)},forward(){s(1)},listen:t=>y.push(t),block:t=>d.push(t)}}e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE";export{t as Action,o as createBrowserHistory,c as createHashHistory,u as createMemoryHistory,l as createPath,i as parsePath};
//# sourceMappingURL=history.production.min.js.map
{
"name": "history",
"version": "5.0.0-beta.7",
"version": "5.0.0-beta.8",
"description": "Manage session history with JavaScript",

@@ -5,0 +5,0 @@ "repository": "ReactTraining/history",

@@ -1,15 +0,15 @@

'use strict';(function(h,r){"object"===typeof exports&&"undefined"!==typeof module?r(exports):"function"===typeof define&&define.amd?define(["exports"],r):(h=h||self,r(h.HistoryLibrary={}))})(this,function(h){function r(){r=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var e=arguments[c],t;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t])}return a};return r.apply(this,arguments)}function x(a,c){if(!a){"undefined"!==typeof console&&console.warn(c);try{throw Error(c);
}catch(e){}}}function y(a){a.preventDefault();a.returnValue=""}function z(){var a=[];return{get length(){return a.length},push:function(c){a.push(c);return function(){a=a.filter(function(a){return a!==c})}},call:function(c){a.forEach(function(a){return a&&a(c)})}}}function C(){return Math.random().toString(36).substr(2,8)}function A(a){var c=a.pathname,e=a.search;a=a.hash;return(void 0===c?"/":c)+(void 0===e?"":e)+(void 0===a?"":a)}function B(a){var c={};if(a){var e=a.indexOf("#");0<=e&&(c.hash=a.substr(e),
a=a.substr(0,e));e=a.indexOf("?");0<=e&&(c.search=a.substr(e),a=a.substr(0,e));a&&(c.pathname=a)}return c}h.createBrowserHistory=function(a){function c(){var a=k.location,f=g.state||{};return[f.idx,Object.freeze({pathname:a.pathname,search:a.search,hash:a.hash,state:f.usr||null,key:f.key||"default"})]}function e(a){return"string"===typeof a?a:A(a)}function t(a,f){void 0===f&&(f=null);return Object.freeze(r({},m,{},"string"===typeof a?B(a):a,{state:f,key:C()}))}function h(a){n=a;a=c();p=a[0];m=a[1];
b.call({action:n,location:m})}function v(a,f){function b(){v(a,f)}var c=t(a,f);if(!d.length||(d.call({action:"PUSH",location:c,retry:b}),!1)){var w=[{usr:c.state,key:c.key,idx:p+1},e(c)];c=w[0];w=w[1];try{g.pushState(c,null,w)}catch(D){k.location.assign(w)}h("PUSH")}}function u(a,f){function c(){u(a,f)}var b=t(a,f);d.length&&(d.call({action:"REPLACE",location:b,retry:c}),1)||(b=[{usr:b.state,key:b.key,idx:p},e(b)],g.replaceState(b[0],null,b[1]),h("REPLACE"))}function l(a){g.go(a)}a=(void 0===a?{}:
a).window;var k=void 0===a?document.defaultView:a,g=k.history,q=null;k.addEventListener("popstate",function(){if(q)d.call(q),q=null;else{var a=c(),f=a[0];a=a[1];if(d.length)if(null!=f){var b=p-f;b&&(q={action:"POP",location:a,retry:function(){l(-1*b)}},l(b))}else x(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");
else h("POP")}});var n="POP";a=c();var p=a[0],m=a[1],d=z(),b=z();null==p&&(p=0,g.replaceState(r({},g.state,{idx:p}),null));return{get action(){return n},get location(){return m},createHref:e,push:v,replace:u,go:l,back:function(){l(-1)},forward:function(){l(1)},listen:function(a){return b.push(a)},block:function(a){var f=d.push(a);1===d.length&&k.addEventListener("beforeunload",y);return function(){f();d.length||k.removeEventListener("beforeunload",y)}}}};h.createHashHistory=function(a){function c(){var a=
B(g.location.hash.substr(1)),d=a.pathname,b=a.search;a=a.hash;var c=q.state||{};return[c.idx,Object.freeze({pathname:void 0===d?"/":d,search:void 0===b?"":b,hash:void 0===a?"":a,state:c.usr||null,key:c.key||"default"})]}function e(){if(n)b.call(n),n=null;else{var a=c(),d=a[0];a=a[1];if(b.length)if(null!=d){var e=m-d;e&&(n={action:"POP",location:a,retry:function(){k(-1*e)}},k(e))}else x(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");
else v("POP")}}function t(a){var d=document.querySelector("base"),b="";d&&d.getAttribute("href")&&(d=g.location.href,b=d.indexOf("#"),b=-1===b?d:d.slice(0,b));return b+"#"+("string"===typeof a?a:A(a))}function h(a,b){void 0===b&&(b=null);return Object.freeze(r({},d,{},"string"===typeof a?B(a):a,{state:b,key:C()}))}function v(a){p=a;a=c();m=a[0];d=a[1];w.call({action:p,location:d})}function u(a,d){function c(){u(a,d)}var f=h(a,d);x("/"===f.pathname.charAt(0),"Relative pathnames are not supported in hash history.push("+
JSON.stringify(a)+")");if(!b.length||(b.call({action:"PUSH",location:f,retry:c}),!1)){var e=[{usr:f.state,key:f.key,idx:m+1},t(f)];f=e[0];e=e[1];try{q.pushState(f,null,e)}catch(E){g.location.assign(e)}v("PUSH")}}function l(a,d){function c(){l(a,d)}var e=h(a,d);x("/"===e.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")");b.length&&(b.call({action:"REPLACE",location:e,retry:c}),1)||(e=[{usr:e.state,key:e.key,idx:m},t(e)],q.replaceState(e[0],null,
e[1]),v("REPLACE"))}function k(a){q.go(a)}a=(void 0===a?{}:a).window;var g=void 0===a?document.defaultView:a,q=g.history,n=null;g.addEventListener("popstate",e);g.addEventListener("hashchange",function(a){a=c()[1];A(a)!==A(d)&&e()});var p="POP";a=c();var m=a[0],d=a[1],b=z(),w=z();null==m&&(m=0,q.replaceState(r({},q.state,{idx:m}),null));return{get action(){return p},get location(){return d},createHref:t,push:u,replace:l,go:k,back:function(){k(-1)},forward:function(){k(1)},listen:function(a){return w.push(a)},
block:function(a){var d=b.push(a);1===b.length&&g.addEventListener("beforeunload",y);return function(){d();b.length||g.removeEventListener("beforeunload",y)}}}};h.createMemoryHistory=function(a){function c(a,b){void 0===b&&(b=null);return Object.freeze(r({},n,{},"string"===typeof a?B(a):a,{state:b,key:C()}))}function e(a,b,c){return!p.length||(p.call({action:a,location:b,retry:c}),!1)}function h(a,b){q=a;n=b;m.call({action:q,location:n})}function y(a,b){var d=c(a,b);x("/"===n.pathname.charAt(0),"Relative pathnames are not supported in memory history.push("+
JSON.stringify(a)+")");e("PUSH",d,function(){y(a,b)})&&(g+=1,k.splice(g,k.length,d),h("PUSH",d))}function v(a,b){var d=c(a,b);x("/"===n.pathname.charAt(0),"Relative pathnames are not supported in memory history.replace("+JSON.stringify(a)+")");e("REPLACE",d,function(){v(a,b)})&&(k[g]=d,h("REPLACE",d))}function u(a){var b=Math.min(Math.max(g+a,0),k.length-1),d=k[b];e("POP",d,function(){u(a)})&&(g=b,h("POP",d))}var l=void 0===a?{}:a;a=l.initialEntries;l=l.initialIndex;l=void 0===l?0:l;var k=(void 0===
a?["/"]:a).map(function(a){var b=Object.freeze(r({pathname:"/",search:"",hash:"",state:null,key:C()},"string"===typeof a?B(a):a));x("/"===b.pathname.charAt(0),"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(a)+")");return b}),g=Math.min(Math.max(l,0),k.length-1),q="POP",n=k[g],p=z(),m=z();return{get index(){return g},get action(){return q},get location(){return n},createHref:function(a){return"string"===typeof a?a:A(a)},push:y,replace:v,
go:u,back:function(){u(-1)},forward:function(){u(1)},listen:function(a){return m.push(a)},block:function(a){return p.push(a)}}};h.createPath=A;h.parsePath=B;Object.defineProperty(h,"__esModule",{value:!0})});
'use strict';(function(d,t){"object"===typeof exports&&"undefined"!==typeof module?t(exports):"function"===typeof define&&define.amd?define(["exports"],t):(d=d||self,t(d.HistoryLibrary={}))})(this,function(d){function t(){t=Object.assign||function(a){for(var e=1;e<arguments.length;e++){var b=arguments[e],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d])}return a};return t.apply(this,arguments)}function y(a,e){if(!a){"undefined"!==typeof console&&console.warn(e);try{throw Error(e);
}catch(b){}}}function C(a){a.preventDefault();a.returnValue=""}function z(){var a=[];return{get length(){return a.length},push:function(e){a.push(e);return function(){a=a.filter(function(a){return a!==e})}},call:function(e){a.forEach(function(a){return a&&a(e)})}}}function D(){return Math.random().toString(36).substr(2,8)}function A(a){var e=a.pathname,d=a.search;a=a.hash;return(void 0===e?"/":e)+(void 0===d?"":d)+(void 0===a?"":a)}function B(a){var d={};if(a){var b=a.indexOf("#");0<=b&&(d.hash=a.substr(b),
a=a.substr(0,b));b=a.indexOf("?");0<=b&&(d.search=a.substr(b),a=a.substr(0,b));a&&(d.pathname=a)}return d}(function(a){a.Pop="POP";a.Push="PUSH";a.Replace="REPLACE"})(d.Action||(d.Action={}));d.createBrowserHistory=function(a){function e(){var a=h.location,f=k.state||{};return[f.idx,Object.freeze({pathname:a.pathname,search:a.search,hash:a.hash,state:f.usr||null,key:f.key||"default"})]}function b(a){return"string"===typeof a?a:A(a)}function u(a,f){return Object.freeze(t({},n,"string"===typeof a?B(a):
a,{state:f,key:D()}))}function w(a){p=a;a=e();q=a[0];n=a[1];g.call({action:p,location:n})}function x(a,f){function F(){x(a,f)}var g=d.Action.Push,l=u(a,f);if(!c.length||(c.call({action:g,location:l,retry:F}),!1)){var e=[{usr:l.state,key:l.key,idx:q+1},b(l)];l=e[0];e=e[1];try{k.pushState(l,"",e)}catch(G){h.location.assign(e)}w(g)}}function v(a,f){function g(){v(a,f)}var e=d.Action.Replace,l=u(a,f);c.length&&(c.call({action:e,location:l,retry:g}),1)||(l=[{usr:l.state,key:l.key,idx:q},b(l)],k.replaceState(l[0],
"",l[1]),w(e))}function m(a){k.go(a)}a=(void 0===a?{}:a).window;var h=void 0===a?document.defaultView:a,k=h.history,r=null;h.addEventListener("popstate",function(){if(r)c.call(r),r=null;else{var a=d.Action.Pop,f=e(),g=f[0];f=f[1];if(c.length)if(null!=g){var b=q-g;b&&(r={action:a,location:f,retry:function(){m(-1*b)}},m(b))}else y(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");
else w(a)}});var p=d.Action.Pop;a=e();var q=a[0],n=a[1],c=z(),g=z();null==q&&(q=0,k.replaceState(t({},k.state,{idx:q}),""));return{get action(){return p},get location(){return n},createHref:b,push:x,replace:v,go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(a){return g.push(a)},block:function(a){var f=c.push(a);1===c.length&&h.addEventListener("beforeunload",C);return function(){f();c.length||h.removeEventListener("beforeunload",C)}}}};d.createHashHistory=function(a){function e(){var a=
B(k.location.hash.substr(1)),c=a.pathname,g=a.search;a=a.hash;var d=r.state||{};return[d.idx,Object.freeze({pathname:void 0===c?"/":c,search:void 0===g?"":g,hash:void 0===a?"":a,state:d.usr||null,key:d.key||"default"})]}function b(){if(p)g.call(p),p=null;else{var a=d.Action.Pop,c=e(),b=c[0];c=c[1];if(g.length)if(null!=b){var l=n-b;l&&(p={action:a,location:c,retry:function(){h(-1*l)}},h(l))}else y(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");
else x(a)}}function u(a){var c=document.querySelector("base"),f="";c&&c.getAttribute("href")&&(c=k.location.href,f=c.indexOf("#"),f=-1===f?c:c.slice(0,f));return f+"#"+("string"===typeof a?a:A(a))}function w(a,d){return Object.freeze(t({},c,"string"===typeof a?B(a):a,{state:d,key:D()}))}function x(a){q=a;a=e();n=a[0];c=a[1];E.call({action:q,location:c})}function v(a,c){function f(){v(a,c)}var e=d.Action.Push,b=w(a,c);y("/"===b.pathname.charAt(0),"Relative pathnames are not supported in hash history.push("+
JSON.stringify(a)+")");if(!g.length||(g.call({action:e,location:b,retry:f}),!1)){var h=[{usr:b.state,key:b.key,idx:n+1},u(b)];b=h[0];h=h[1];try{r.pushState(b,"",h)}catch(H){k.location.assign(h)}x(e)}}function m(a,c){function f(){m(a,c)}var e=d.Action.Replace,b=w(a,c);y("/"===b.pathname.charAt(0),"Relative pathnames are not supported in hash history.replace("+JSON.stringify(a)+")");g.length&&(g.call({action:e,location:b,retry:f}),1)||(b=[{usr:b.state,key:b.key,idx:n},u(b)],r.replaceState(b[0],"",b[1]),
x(e))}function h(a){r.go(a)}a=(void 0===a?{}:a).window;var k=void 0===a?document.defaultView:a,r=k.history,p=null;k.addEventListener("popstate",b);k.addEventListener("hashchange",function(){var a=e()[1];A(a)!==A(c)&&b()});var q=d.Action.Pop;a=e();var n=a[0],c=a[1],g=z(),E=z();null==n&&(n=0,r.replaceState(t({},r.state,{idx:n}),""));return{get action(){return q},get location(){return c},createHref:u,push:v,replace:m,go:h,back:function(){h(-1)},forward:function(){h(1)},listen:function(a){return E.push(a)},
block:function(a){var c=g.push(a);1===g.length&&k.addEventListener("beforeunload",C);return function(){c();g.length||k.removeEventListener("beforeunload",C)}}}};d.createMemoryHistory=function(a){function e(a,b){return Object.freeze(t({},p,"string"===typeof a?B(a):a,{state:b,key:D()}))}function b(a,b,d){return!q.length||(q.call({action:a,location:b,retry:d}),!1)}function u(a,b){r=a;p=b;n.call({action:r,location:p})}function w(a,g){var c=d.Action.Push,f=e(a,g);y("/"===p.pathname.charAt(0),"Relative pathnames are not supported in memory history.push("+
JSON.stringify(a)+")");b(c,f,function(){w(a,g)})&&(k+=1,h.splice(k,h.length,f),u(c,f))}function x(a,g){var c=d.Action.Replace,f=e(a,g);y("/"===p.pathname.charAt(0),"Relative pathnames are not supported in memory history.replace("+JSON.stringify(a)+")");b(c,f,function(){x(a,g)})&&(h[k]=f,u(c,f))}function v(a){var c=Math.min(Math.max(k+a,0),h.length-1),e=d.Action.Pop,f=h[c];b(e,f,function(){v(a)})&&(k=c,u(e,f))}var m=void 0===a?{}:a;a=m.initialEntries;m=m.initialIndex;m=void 0===m?0:m;var h=(void 0===
a?["/"]:a).map(function(a){var c=Object.freeze(t({pathname:"/",search:"",hash:"",state:null,key:D()},"string"===typeof a?B(a):a));y("/"===c.pathname.charAt(0),"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(a)+")");return c}),k=Math.min(Math.max(m,0),h.length-1),r=d.Action.Pop,p=h[k],q=z(),n=z();return{get index(){return k},get action(){return r},get location(){return p},createHref:function(a){return"string"===typeof a?a:A(a)},push:w,
replace:x,go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(a){return n.push(a)},block:function(a){return q.push(a)}}};d.createPath=A;d.parsePath=B;Object.defineProperty(d,"__esModule",{value:!0})});
//# sourceMappingURL=history.development.js.map

@@ -1,2 +0,2 @@

"use strict";!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).HistoryLibrary={})}(this,(function(t){function n(){return(n=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}function e(t){t.preventDefault(),t.returnValue=""}function r(){var t=[];return{get length(){return t.length},push:function(n){return t.push(n),function(){t=t.filter((function(t){return t!==n}))}},call:function(n){t.forEach((function(t){return t&&t(n)}))}}}function o(){return Math.random().toString(36).substr(2,8)}function a(t){var n=t.pathname,e=t.search;return(void 0===n?"/":n)+(void 0===e?"":e)+(void 0===(t=t.hash)?"":t)}function i(t){var n={};if(t){var e=t.indexOf("#");0<=e&&(n.hash=t.substr(e),t=t.substr(0,e)),0<=(e=t.indexOf("?"))&&(n.search=t.substr(e),t=t.substr(0,e)),t&&(n.pathname=t)}return n}t.createBrowserHistory=function(t){function u(){var t=h.location,n=d.state||{};return[n.idx,{pathname:t.pathname,search:t.search,hash:t.hash,state:n.usr||null,key:n.key||"default"}]}function c(t){return"string"==typeof t?t:a(t)}function l(t,e){return void 0===e&&(e=null),n({},g,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function f(t){p=t,t=u(),y=t[0],g=t[1],b.call({action:p,location:g})}function s(t){d.go(t)}var h=void 0===(t=(void 0===t?{}:t).window)?document.defaultView:t,d=h.history,v=null;h.addEventListener("popstate",(function(){if(v)P.call(v),v=null;else{var t=u(),n=t[0];if(t=t[1],P.length){if(null!=n){var e=y-n;e&&(v={action:"POP",location:t,retry:function(){s(-1*e)}},s(e))}}else f("POP")}}));var p="POP",y=(t=u())[0],g=t[1],P=r(),b=r();return null==y&&(y=0,d.replaceState(n({},d.state,{idx:y}),null)),{get action(){return p},get location(){return g},createHref:c,push:function t(n,e){var r=l(n,e);if(!P.length||(P.call({action:"PUSH",location:r,retry:function(){t(n,e)}}),0)){var o=[{usr:r.state,key:r.key,idx:y+1},c(r)];r=o[0],o=o[1];try{d.pushState(r,null,o)}catch(t){h.location.assign(o)}f("PUSH")}},replace:function t(n,e){var r=l(n,e);P.length&&(P.call({action:"REPLACE",location:r,retry:function(){t(n,e)}}),1)||(r=[{usr:r.state,key:r.key,idx:y},c(r)],d.replaceState(r[0],null,r[1]),f("REPLACE"))},go:s,back:function(){s(-1)},forward:function(){s(1)},listen:function(t){return b.push(t)},block:function(t){var n=P.push(t);return 1===P.length&&h.addEventListener("beforeunload",e),function(){n(),P.length||h.removeEventListener("beforeunload",e)}}}},t.createHashHistory=function(t){function u(){var t=i(d.location.hash.substr(1)),n=t.pathname,e=t.search;t=t.hash;var r=v.state||{};return[r.idx,{pathname:void 0===n?"/":n,search:void 0===e?"":e,hash:void 0===t?"":t,state:r.usr||null,key:r.key||"default"}]}function c(){if(p)b.call(p),p=null;else{var t=u(),n=t[0];if(t=t[1],b.length){if(null!=n){var e=g-n;e&&(p={action:"POP",location:t,retry:function(){h(-1*e)}},h(e))}}else s("POP")}}function l(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=-1===(e=(n=d.location.href).indexOf("#"))?n:n.slice(0,e)),e+"#"+("string"==typeof t?t:a(t))}function f(t,e){return void 0===e&&(e=null),n({},P,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function s(t){y=t,t=u(),g=t[0],P=t[1],k.call({action:y,location:P})}function h(t){v.go(t)}var d=void 0===(t=(void 0===t?{}:t).window)?document.defaultView:t,v=d.history,p=null;d.addEventListener("popstate",c),d.addEventListener("hashchange",(function(t){a(u()[1])!==a(P)&&c()}));var y="POP",g=(t=u())[0],P=t[1],b=r(),k=r();return null==g&&(g=0,v.replaceState(n({},v.state,{idx:g}),null)),{get action(){return y},get location(){return P},createHref:l,push:function t(n,e){var r=f(n,e);if(!b.length||(b.call({action:"PUSH",location:r,retry:function(){t(n,e)}}),0)){var o=[{usr:r.state,key:r.key,idx:g+1},l(r)];r=o[0],o=o[1];try{v.pushState(r,null,o)}catch(t){d.location.assign(o)}s("PUSH")}},replace:function t(n,e){var r=f(n,e);b.length&&(b.call({action:"REPLACE",location:r,retry:function(){t(n,e)}}),1)||(r=[{usr:r.state,key:r.key,idx:g},l(r)],v.replaceState(r[0],null,r[1]),s("REPLACE"))},go:h,back:function(){h(-1)},forward:function(){h(1)},listen:function(t){return k.push(t)},block:function(t){var n=b.push(t);return 1===b.length&&d.addEventListener("beforeunload",e),function(){n(),b.length||d.removeEventListener("beforeunload",e)}}}},t.createMemoryHistory=function(t){function e(t,e){return void 0===e&&(e=null),n({},v,{},"string"==typeof t?i(t):t,{state:e,key:o()})}function u(t,n,e){return!p.length||(p.call({action:t,location:n,retry:e}),!1)}function c(t,n){d=t,v=n,y.call({action:d,location:v})}function l(t){var n=Math.min(Math.max(h+t,0),s.length-1),e=s[n];u("POP",e,(function(){l(t)}))&&(h=n,c("POP",e))}var f=void 0===t?{}:t;t=f.initialEntries,f=void 0===(f=f.initialIndex)?0:f;var s=(void 0===t?["/"]:t).map((function(t){return n({pathname:"/",search:"",hash:"",state:null,key:o()},"string"==typeof t?i(t):t)})),h=Math.min(Math.max(f,0),s.length-1),d="POP",v=s[h],p=r(),y=r();return{get index(){return h},get action(){return d},get location(){return v},createHref:function(t){return"string"==typeof t?t:a(t)},push:function t(n,r){var o=e(n,r);u("PUSH",o,(function(){t(n,r)}))&&(h+=1,s.splice(h,s.length,o),c("PUSH",o))},replace:function t(n,r){var o=e(n,r);u("REPLACE",o,(function(){t(n,r)}))&&(s[h]=o,c("REPLACE",o))},go:l,back:function(){l(-1)},forward:function(){l(1)},listen:function(t){return y.push(t)},block:function(t){return p.push(t)}}},t.createPath=a,t.parsePath=i,Object.defineProperty(t,"__esModule",{value:!0})}));
"use strict";!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).HistoryLibrary={})}(this,(function(t){function n(){return(n=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}).apply(this,arguments)}function e(t){t.preventDefault(),t.returnValue=""}function r(){var t=[];return{get length(){return t.length},push:function(n){return t.push(n),function(){t=t.filter((function(t){return t!==n}))}},call:function(n){t.forEach((function(t){return t&&t(n)}))}}}function o(){return Math.random().toString(36).substr(2,8)}function i(t){var n=t.pathname,e=t.search;return(void 0===n?"/":n)+(void 0===e?"":e)+(void 0===(t=t.hash)?"":t)}function a(t){var n={};if(t){var e=t.indexOf("#");0<=e&&(n.hash=t.substr(e),t=t.substr(0,e)),0<=(e=t.indexOf("?"))&&(n.search=t.substr(e),t=t.substr(0,e)),t&&(n.pathname=t)}return n}var c;(c=t.Action||(t.Action={})).Pop="POP",c.Push="PUSH",c.Replace="REPLACE",t.createBrowserHistory=function(c){function u(){var t=p.location,n=d.state||{};return[n.idx,{pathname:t.pathname,search:t.search,hash:t.hash,state:n.usr||null,key:n.key||"default"}]}function l(t){return"string"==typeof t?t:i(t)}function s(t,e){return n({},b,"string"==typeof t?a(t):t,{state:e,key:o()})}function f(t){y=t,t=u(),g=t[0],b=t[1],m.call({action:y,location:b})}function h(t){d.go(t)}var p=void 0===(c=(void 0===c?{}:c).window)?document.defaultView:c,d=p.history,v=null;p.addEventListener("popstate",(function(){if(v)k.call(v),v=null;else{var n=t.Action.Pop,e=u(),r=e[0];if(e=e[1],k.length){if(null!=r){var o=g-r;o&&(v={action:n,location:e,retry:function(){h(-1*o)}},h(o))}}else f(n)}}));var y=t.Action.Pop,g=(c=u())[0],b=c[1],k=r(),m=r();return null==g&&(g=0,d.replaceState(n({},d.state,{idx:g}),"")),{get action(){return y},get location(){return b},createHref:l,push:function n(e,r){var o=t.Action.Push,i=s(e,r);if(!k.length||(k.call({action:o,location:i,retry:function(){n(e,r)}}),0)){var a=[{usr:i.state,key:i.key,idx:g+1},l(i)];i=a[0],a=a[1];try{d.pushState(i,"",a)}catch(t){p.location.assign(a)}f(o)}},replace:function n(e,r){var o=t.Action.Replace,i=s(e,r);k.length&&(k.call({action:o,location:i,retry:function(){n(e,r)}}),1)||(i=[{usr:i.state,key:i.key,idx:g},l(i)],d.replaceState(i[0],"",i[1]),f(o))},go:h,back:function(){h(-1)},forward:function(){h(1)},listen:function(t){return m.push(t)},block:function(t){var n=k.push(t);return 1===k.length&&p.addEventListener("beforeunload",e),function(){n(),k.length||p.removeEventListener("beforeunload",e)}}}},t.createHashHistory=function(c){function u(){var t=a(d.location.hash.substr(1)),n=t.pathname,e=t.search;t=t.hash;var r=v.state||{};return[r.idx,{pathname:void 0===n?"/":n,search:void 0===e?"":e,hash:void 0===t?"":t,state:r.usr||null,key:r.key||"default"}]}function l(){if(y)m.call(y),y=null;else{var n=t.Action.Pop,e=u(),r=e[0];if(e=e[1],m.length){if(null!=r){var o=b-r;o&&(y={action:n,location:e,retry:function(){p(-1*o)}},p(o))}}else h(n)}}function s(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=-1===(e=(n=d.location.href).indexOf("#"))?n:n.slice(0,e)),e+"#"+("string"==typeof t?t:i(t))}function f(t,e){return n({},k,"string"==typeof t?a(t):t,{state:e,key:o()})}function h(t){g=t,t=u(),b=t[0],k=t[1],P.call({action:g,location:k})}function p(t){v.go(t)}var d=void 0===(c=(void 0===c?{}:c).window)?document.defaultView:c,v=d.history,y=null;d.addEventListener("popstate",l),d.addEventListener("hashchange",(function(){i(u()[1])!==i(k)&&l()}));var g=t.Action.Pop,b=(c=u())[0],k=c[1],m=r(),P=r();return null==b&&(b=0,v.replaceState(n({},v.state,{idx:b}),"")),{get action(){return g},get location(){return k},createHref:s,push:function n(e,r){var o=t.Action.Push,i=f(e,r);if(!m.length||(m.call({action:o,location:i,retry:function(){n(e,r)}}),0)){var a=[{usr:i.state,key:i.key,idx:b+1},s(i)];i=a[0],a=a[1];try{v.pushState(i,"",a)}catch(t){d.location.assign(a)}h(o)}},replace:function n(e,r){var o=t.Action.Replace,i=f(e,r);m.length&&(m.call({action:o,location:i,retry:function(){n(e,r)}}),1)||(i=[{usr:i.state,key:i.key,idx:b},s(i)],v.replaceState(i[0],"",i[1]),h(o))},go:p,back:function(){p(-1)},forward:function(){p(1)},listen:function(t){return P.push(t)},block:function(t){var n=m.push(t);return 1===m.length&&d.addEventListener("beforeunload",e),function(){n(),m.length||d.removeEventListener("beforeunload",e)}}}},t.createMemoryHistory=function(e){function c(t,e){return n({},v,"string"==typeof t?a(t):t,{state:e,key:o()})}function u(t,n,e){return!y.length||(y.call({action:t,location:n,retry:e}),!1)}function l(t,n){d=t,v=n,g.call({action:d,location:v})}function s(n){var e=Math.min(Math.max(p+n,0),h.length-1),r=t.Action.Pop,o=h[e];u(r,o,(function(){s(n)}))&&(p=e,l(r,o))}var f=void 0===e?{}:e;e=f.initialEntries,f=void 0===(f=f.initialIndex)?0:f;var h=(void 0===e?["/"]:e).map((function(t){return n({pathname:"/",search:"",hash:"",state:null,key:o()},"string"==typeof t?a(t):t)})),p=Math.min(Math.max(f,0),h.length-1),d=t.Action.Pop,v=h[p],y=r(),g=r();return{get index(){return p},get action(){return d},get location(){return v},createHref:function(t){return"string"==typeof t?t:i(t)},push:function n(e,r){var o=t.Action.Push,i=c(e,r);u(o,i,(function(){n(e,r)}))&&(p+=1,h.splice(p,h.length,i),l(o,i))},replace:function n(e,r){var o=t.Action.Replace,i=c(e,r);u(o,i,(function(){n(e,r)}))&&(h[p]=i,l(o,i))},go:s,back:function(){s(-1)},forward:function(){s(1)},listen:function(t){return g.push(t)},block:function(t){return y.push(t)}}},t.createPath=i,t.parsePath=a,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=history.production.min.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc