1var e=`@@router/CALL_HISTORY_METHOD`,t=`@@router/LOCATION_CHANGE`,n=(e,n)=>({type:t,payload:{location:e,action:n}});function r(t){return(...n)=>({type:e,payload:{method:t,args:n}})}var i=r(`push`),a=r(`replace`),o=r(`go`),s=r(`goBack`),c=r(`goForward`),l=r(`back`),u=r(`forward`);function d(e,t){return typeof e==`string`&&!e.startsWith(t)?t+e:typeof e==`object`&&e.pathname&&!e.pathname.startsWith(t)?Object.assign(Object.assign({},e),{pathname:t+e.pathname}):e}var f=({history:e,showHistoryAction:t,basename:n})=>()=>r=>i=>{if(i.type!==`@@router/CALL_HISTORY_METHOD`)return r(i);let a=i.payload.method,o=i.payload.args;switch(a){case`push`:{let t=o;n&&o.length>0&&(t=[d(o[0],n),...o.slice(1)]),e.push(...t);break}case`replace`:{let t=o;n&&o.length>0&&(t=[d(o[0],n),...o.slice(1)]),e.replace(...t);break}case`go`:e.go(...o);break;case`back`:case`goBack`:e.goBack&&e.goBack(...o),e.back&&e.back(...o);break;case`forward`:case`goForward`:e.goForward&&e.goForward(...o),e.forward&&e.forward(...o);break}if(t)return r(i)},p=({savePreviousLocations:e=0,basename:t})=>{let n={location:null,action:null,basename:t},r=isNaN(e)?0:e;return r&&(n.previousLocations=[]),(e=n,{type:t,payload:i}={})=>{if(t===`@@router/LOCATION_CHANGE`){let{location:t,action:n}=i||{},a=r?[{location:t,action:n},...e.previousLocations.slice(0,r)]:void 0;return Object.assign(Object.assign({},e),{location:t,action:n,previousLocations:a})}return e}},m=({history:e,routerReducerKey:t=`router`,reduxTravelling:r=!1,showHistoryAction:d=!1,selectRouterState:m,savePreviousLocations:h=0,batch:g,reachGlobalHistory:_,basename:v})=>{let y=!1,b=(e,t,n)=>y?e({location:t,action:n}):e(t,n);typeof g!=`function`&&(g=e=>{e()}),typeof m!=`function`&&(m=e=>e[t]);let x=p({savePreviousLocations:h,basename:v}),S=f({history:e,showHistoryAction:d,basename:v}),C=!1,w=t=>{let n=(e,t)=>e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash;return t.subscribe(()=>{let r=m(t.getState()).location,i=e.location;r&&i&&!n(r,i)&&(C=!0,e.push({pathname:r.pathname,search:r.search,hash:r.hash}))})};return{routerReducer:x,routerMiddleware:S,createReduxHistory:t=>{let d=[];return t.dispatch(n(e.location,e.action)),r&&w(t),e.listen((e,r)=>{if(e.location&&(r=e.action,e=e.location,y=!0),C){C=!1;let e=m(t.getState());d.forEach(t=>b(t,e.location,e.action));return}g(()=>{t.dispatch(n(e,r));let i=m(t.getState());d.forEach(e=>b(e,i.location,i.action))})}),_&&_.listen(({location:e,action:r})=>{if(r!==`POP`){let i={pathname:e.pathname,search:e.search,hash:e.hash,key:e.key,state:e.state};g(()=>{t.dispatch(n(i,r));let e=m(t.getState());d.forEach(t=>b(t,e.location,e.action))})}}),{block:e.block,createHref:e.createHref,push:(...e)=>t.dispatch(i(...e)),replace:(...e)=>t.dispatch(a(...e)),go:(...e)=>t.dispatch(o(...e)),goBack:(...e)=>t.dispatch(s(...e)),goForward:(...e)=>t.dispatch(c(...e)),back:(...e)=>t.dispatch(l(...e)),forward:(...e)=>t.dispatch(u(...e)),listen:e=>(d.indexOf(e)<0&&d.push(e),()=>{d=d.filter(t=>t!==e)}),get location(){return m(t.getState()).location},get action(){return m(t.getState()).action},get length(){return e.length},get listenObject(){return y}}}}};export{i as a,s as i,e as n,a as o,t as r,m as t};
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.