Socket
Socket
Sign inDemoInstall

dva

Package Overview
Dependencies
13
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.3.1

2

dist/dva.dynamic.min.js

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):(t.dva=t.dva||{},t.dva.dynamic=n(t.React))}(this,function(t){"use strict";function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,n){return t(n={exports:{}},n.exports),n.exports}t=t&&t.hasOwnProperty("default")?t.default:t;var r={}.toString,o=function(t){return r.call(t).slice(8,-1)},i=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)},u=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},c=function(t){return i(u(t))},f={f:{}.propertyIsEnumerable},a=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},s=function(t){return"object"==typeof t?null!==t:"function"==typeof t},l=function(t,n){if(!s(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!s(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!s(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!s(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")},p={}.hasOwnProperty,v=function(t,n){return p.call(t,n)},h=function(t){try{return!!t()}catch(t){return!0}},y=!h(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),d=e(function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),m=d.document,b=s(m)&&s(m.createElement),g=function(t){return b?m.createElement(t):{}},_=!y&&!h(function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,w={f:y?O:function(t,n){if(t=c(t),n=l(n,!0),_)try{return O(t,n)}catch(t){}if(v(t,n))return a(!f.f.call(t,n),t[n])}},j=e(function(t){var n=t.exports={version:"2.5.4"};"number"==typeof __e&&(__e=n)}),S=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},P=function(t,n,e){if(S(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}},E=function(t){if(!s(t))throw TypeError(t+" is not an object!");return t},T=Object.defineProperty,A={f:y?Object.defineProperty:function(t,n,e){if(E(t),n=l(n,!0),E(e),_)try{return T(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},x=y?function(t,n,e){return A.f(t,n,a(1,e))}:function(t,n,e){return t[n]=e,t},L=function(t,n,e){var r,o,i,u=t&L.F,c=t&L.G,f=t&L.S,a=t&L.P,s=t&L.B,l=t&L.W,p=c?j:j[n]||(j[n]={}),h=p.prototype,y=c?d:f?d[n]:(d[n]||{}).prototype;for(r in c&&(e=n),e)(o=!u&&y&&void 0!==y[r])&&v(p,r)||(i=o?y[r]:e[r],p[r]=c&&"function"!=typeof y[r]?e[r]:s&&o?P(i,d):l&&y[r]==i?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(i):a&&"function"==typeof i?P(Function.call,i):i,a&&((p.virtual||(p.virtual={}))[r]=i,t&L.R&&h&&!h[r]&&x(h,r,i)))};L.F=1,L.G=2,L.S=4,L.P=8,L.B=16,L.W=32,L.U=64,L.R=128;var M=L,k=function(t,n){var e=(j.Object||{})[t]||Object[t],r={};r[t]=n(e),M(M.S+M.F*h(function(){e(1)}),"Object",r)},C=w.f;k("getOwnPropertyDescriptor",function(){return function(t,n){return C(c(t),n)}});var F=j.Object,N=function(t,n){return F.getOwnPropertyDescriptor(t,n)};M(M.S+M.F*!y,"Object",{defineProperty:A.f});var I=j.Object,R=function(t,n,e){return I.defineProperty(t,n,e)},D=e(function(t){t.exports=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=R&&N?N(t,e):{};r.get||r.set?R(n,e,r):n[e]=t[e]}return n.default=t,n}});n(D);var G=e(function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}}});n(G);var W,V=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);t.length>n;n++)e[n]=t[n];return e}},B=Math.ceil,H=Math.floor,K=function(t){return isNaN(t=+t)?0:(t>0?H:B)(t)},U=x,J={},q=Math.min,z=function(t){return t>0?q(K(t),9007199254740991):0},Y=Math.max,Q=Math.min,X=d["__core-js_shared__"]||(d["__core-js_shared__"]={}),Z=function(t){return X[t]||(X[t]={})},$=0,tt=Math.random(),nt=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++$+tt).toString(36))},et=Z("keys"),rt=function(t){return et[t]||(et[t]=nt(t))},ot=(W=!1,function(t,n,e){var r,o=c(t),i=z(o.length),u=function(t,n){return 0>(t=K(t))?Y(t+n,0):Q(t,n)}(e,i);if(W&&n!=n){for(;i>u;)if((r=o[u++])!=r)return!0}else for(;i>u;u++)if((W||u in o)&&o[u]===n)return W||u||0;return!W&&-1}),it=rt("IE_PROTO"),ut=function(t,n){var e,r=c(t),o=0,i=[];for(e in r)e!=it&&v(r,e)&&i.push(e);for(;n.length>o;)v(r,e=n[o++])&&(~ot(i,e)||i.push(e));return i},ct="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ft=Object.keys||function(t){return ut(t,ct)},at=y?Object.defineProperties:function(t,n){E(t);for(var e,r=ft(n),o=r.length,i=0;o>i;)A.f(t,e=r[i++],n[e]);return t},st=d.document,lt=st&&st.documentElement,pt=rt("IE_PROTO"),vt=function(){},ht=function(){var t,n=g("iframe"),e=ct.length;for(n.style.display="none",lt.appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),ht=t.F;e--;)delete ht.prototype[ct[e]];return ht()},yt=Object.create||function(t,n){var e;return null!==t?(vt.prototype=E(t),e=new vt,vt.prototype=null,e[pt]=t):e=ht(),void 0===n?e:at(e,n)},dt=e(function(t){var n=Z("wks"),e=d.Symbol,r="function"==typeof e;(t.exports=function(t){return n[t]||(n[t]=r&&e[t]||(r?e:nt)("Symbol."+t))}).store=n}),mt=A.f,bt=dt("toStringTag"),gt=function(t,n,e){t&&!v(t=e?t:t.prototype,bt)&&mt(t,bt,{configurable:!0,value:n})},_t={};x(_t,dt("iterator"),function(){return this});var Ot,wt=function(t,n,e){t.prototype=yt(_t,{next:a(1,e)}),gt(t,n+" Iterator")},jt=function(t){return Object(u(t))},St=rt("IE_PROTO"),Pt=Object.prototype,Et=Object.getPrototypeOf||function(t){return t=jt(t),v(t,St)?t[St]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Pt:null},Tt=dt("iterator"),At=!([].keys&&"next"in[].keys()),xt=function(){return this},Lt=function(t,n,e,r,o,i,u){wt(e,n,r);var c,f,a,s=function(t){if(!At&&t in h)return h[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},l=n+" Iterator",p="values"==o,v=!1,h=t.prototype,y=h[Tt]||h["@@iterator"]||o&&h[o],d=y||s(o),m=o?p?s("entries"):d:void 0,b="Array"==n&&h.entries||y;if(b&&(a=Et(b.call(new t)))!==Object.prototype&&a.next&&gt(a,l,!0),p&&y&&"values"!==y.name&&(v=!0,d=function(){return y.call(this)}),u&&(At||v||!h[Tt])&&x(h,Tt,d),J[n]=d,J[l]=xt,o)if(c={values:p?d:s("values"),keys:i?d:s("keys"),entries:m},u)for(f in c)f in h||U(h,f,c[f]);else M(M.P+M.F*(At||v),n,c);return c},Mt=(Ot=!0,function(t,n){var e,r,o=u(t)+"",i=K(n),c=o.length;return 0>i||i>=c?Ot?"":void 0:55296>(e=o.charCodeAt(i))||e>56319||i+1===c||56320>(r=o.charCodeAt(i+1))||r>57343?Ot?o.charAt(i):e:Ot?o.slice(i,i+2):r-56320+(e-55296<<10)+65536});Lt(String,"String",function(t){this._t=t+"",this._i=0},function(){var t,n=this._t,e=this._i;return n.length>e?(t=Mt(n,e),this._i+=t.length,{value:t,done:!1}):{value:void 0,done:!0}});var kt=function(t,n,e,r){try{return r?n(E(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&E(o.call(t)),n}},Ct=dt("iterator"),Ft=Array.prototype,Nt=function(t){return void 0!==t&&(J.Array===t||Ft[Ct]===t)},It=function(t,n,e){n in t?A.f(t,n,a(0,e)):t[n]=e},Rt=dt("toStringTag"),Dt="Arguments"==o(function(){return arguments}()),Gt=function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),Rt))?e:Dt?o(n):"Object"==(r=o(n))&&"function"==typeof n.callee?"Arguments":r},Wt=dt("iterator"),Vt=j.getIteratorMethod=function(t){if(void 0!=t)return t[Wt]||t["@@iterator"]||J[Gt(t)]},Bt=dt("iterator"),Ht=!1;try{[7][Bt]().return=function(){Ht=!0}}catch(t){}var Kt=function(t,n){if(!n&&!Ht)return!1;var e=!1;try{var r=[7],o=r[Bt]();o.next=function(){return{done:e=!0}},r[Bt]=function(){return o},t(r)}catch(t){}return e};M(M.S+M.F*!Kt(function(t){}),"Array",{from:function(t){var n,e,r,o,i=jt(t),u="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,a=void 0!==f,s=0,l=Vt(i);if(a&&(f=P(f,c>2?arguments[2]:void 0,2)),void 0==l||u==Array&&Nt(l))for(e=new u(n=z(i.length));n>s;s++)It(e,s,a?f(i[s],s):i[s]);else for(o=l.call(i),e=new u;!(r=o.next()).done;s++)It(e,s,a?kt(o,f,[r.value,s],!0):r.value);return e.length=s,e}});var Ut=j.Array.from,Jt=function(t,n){return{value:n,done:!!t}};Lt(Array,"Array",function(t,n){this._t=c(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return t&&t.length>e?Jt(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]]):(this._t=void 0,Jt(1))},"values");J.Arguments=J.Array;for(var qt=dt("toStringTag"),zt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Yt=0;zt.length>Yt;Yt++){var Qt=zt[Yt],Xt=d[Qt],Zt=Xt&&Xt.prototype;Zt&&!Zt[qt]&&x(Zt,qt,Qt),J[Qt]=J.Array}var $t=dt("iterator"),tn=j.isIterable=function(t){var n=Object(t);return void 0!==n[$t]||"@@iterator"in n||J.hasOwnProperty(Gt(n))};var nn=function(t){if(tn(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return Ut(t)};var en=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var rn,on,un,cn=function(t){return V(t)||nn(t)||en()},fn=e(function(t){var n={},e={},r=t.exports=function(t,r,o,i,u){var c,f,a,s,l=u?function(){return t}:Vt(t),p=P(o,i,r?2:1),v=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(Nt(l)){for(c=z(t.length);c>v;v++)if((s=r?p(E(f=t[v])[0],f[1]):p(t[v]))===n||s===e)return s}else for(a=l.call(t);!(f=a.next()).done;)if((s=kt(a,p,f.value,r))===n||s===e)return s};r.BREAK=n,r.RETURN=e}),an=dt("species"),sn=function(t,n){var e,r=E(t).constructor;return void 0===r||void 0==(e=E(r)[an])?n:S(e)},ln=d.process,pn=d.setImmediate,vn=d.clearImmediate,hn=d.MessageChannel,yn=d.Dispatch,dn=0,mn={},bn=function(){var t=+this;if(mn.hasOwnProperty(t)){var n=mn[t];delete mn[t],n()}},gn=function(t){bn.call(t.data)};pn&&vn||(pn=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return mn[++dn]=function(){!function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}t.apply(e,n)}("function"==typeof t?t:Function(t),n)},rn(dn),dn},vn=function(t){delete mn[t]},"process"==o(ln)?rn=function(t){ln.nextTick(P(bn,t,1))}:yn&&yn.now?rn=function(t){yn.now(P(bn,t,1))}:hn?(un=(on=new hn).port2,on.port1.onmessage=gn,rn=P(un.postMessage,un,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(rn=function(t){d.postMessage(t+"","*")},d.addEventListener("message",gn,!1)):rn="onreadystatechange"in g("script")?function(t){lt.appendChild(g("script")).onreadystatechange=function(){lt.removeChild(this),bn.call(t)}}:function(t){setTimeout(P(bn,t,1),0)});var _n={set:pn,clear:vn},On=_n.set,wn=d.MutationObserver||d.WebKitMutationObserver,jn=d.process,Sn=d.Promise,Pn="process"==o(jn);var En,Tn,An,xn,Ln,Mn,kn={f:function(t){return new function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=S(n),this.reject=S(e)}(t)}},Cn=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},Fn=function(t,n){if(E(t),s(n)&&n.constructor===t)return n;var e=kn.f(t);return(0,e.resolve)(n),e.promise},Nn=dt("species"),In=_n.set,Rn=function(){var t,n,e,r=function(){var r,o;for(Pn&&(r=jn.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(Pn)e=function(){jn.nextTick(r)};else if(!wn||d.navigator&&d.navigator.standalone)if(Sn&&Sn.resolve){var o=Sn.resolve();e=function(){o.then(r)}}else e=function(){On.call(d,r)};else{var i=!0,u=document.createTextNode("");new wn(r).observe(u,{characterData:!0}),e=function(){u.data=i=!i}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}(),Dn=d.TypeError,Gn=d.process,Wn=d.Promise,Vn="process"==Gt(Gn),Bn=function(){},Hn=Tn=kn.f,Kn=!!function(){try{var t=Wn.resolve(1),n=(t.constructor={})[dt("species")]=function(t){t(Bn,Bn)};return(Vn||"function"==typeof PromiseRejectionEvent)&&t.then(Bn)instanceof n}catch(t){}}(),Un=function(t){var n;return!(!s(t)||"function"!=typeof(n=t.then))&&n},Jn=function(t,n){if(!t._n){t._n=!0;var e=t._c;Rn(function(){for(var r=t._v,o=1==t._s,i=0,u=function(n){var e,i,u,c=o?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{c?(o||(2==t._h&&Yn(t),t._h=1),!0===c?e=r:(s&&s.enter(),e=c(r),s&&(s.exit(),u=!0)),e===n.promise?a(Dn("Promise-chain cycle")):(i=Un(e))?i.call(e,f,a):f(e)):a(r)}catch(t){s&&!u&&s.exit(),a(t)}};e.length>i;)u(e[i++]);t._c=[],t._n=!1,n&&!t._h&&qn(t)})}},qn=function(t){In.call(d,function(){var n,e,r,o=t._v,i=zn(t);if(i&&(n=Cn(function(){Vn?Gn.emit("unhandledRejection",o,t):(e=d.onunhandledrejection)?e({promise:t,reason:o}):(r=d.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=Vn||zn(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},zn=function(t){return 1!==t._h&&0===(t._a||t._c).length},Yn=function(t){In.call(d,function(){var n;Vn?Gn.emit("rejectionHandled",t):(n=d.onrejectionhandled)&&n({promise:t,reason:t._v})})},Qn=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),Jn(n,!0))},Xn=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw Dn("Promise can't be resolved itself");(n=Un(t))?Rn(function(){var r={_w:e,_d:!1};try{n.call(t,P(Xn,r,1),P(Qn,r,1))}catch(t){Qn.call(r,t)}}):(e._v=t,e._s=1,Jn(e,!1))}catch(t){Qn.call({_w:e,_d:!1},t)}}};Kn||(Wn=function(t){!function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!")}(this,Wn,"Promise","_h"),S(t),En.call(this);try{t(P(Xn,this,1),P(Qn,this,1))}catch(t){Qn.call(this,t)}},(En=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(t,n,e){for(var r in n)e&&t[r]?t[r]=n[r]:x(t,r,n[r]);return t}(Wn.prototype,{then:function(t,n){var e=Hn(sn(this,Wn));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=Vn?Gn.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&Jn(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),An=function(){var t=new En;this.promise=t,this.resolve=P(Xn,t,1),this.reject=P(Qn,t,1)},kn.f=Hn=function(t){return t===Wn||t===xn?new An(t):Tn(t)}),M(M.G+M.W+M.F*!Kn,{Promise:Wn}),gt(Wn,"Promise"),Mn="function"==typeof j[Ln="Promise"]?j[Ln]:d[Ln],y&&Mn&&!Mn[Nn]&&A.f(Mn,Nn,{configurable:!0,get:function(){return this}}),xn=j.Promise,M(M.S+M.F*!Kn,"Promise",{reject:function(t){var n=Hn(this);return(0,n.reject)(t),n.promise}}),M(M.S+!0*M.F,"Promise",{resolve:function(t){return Fn(this===xn?Wn:this,t)}}),M(M.S+M.F*!(Kn&&Kt(function(t){Wn.all(t).catch(Bn)})),"Promise",{all:function(t){var n=this,e=Hn(n),r=e.resolve,o=e.reject,i=Cn(function(){var e=[],i=0,u=1;fn(t,!1,function(t){var c=i++,f=!1;e.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,e[c]=t,--u||r(e))},o)}),--u||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=Hn(n),r=e.reject,o=Cn(function(){fn(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}}),M(M.P+M.R,"Promise",{finally:function(t){var n=sn(this,j.Promise||d.Promise),e="function"==typeof t;return this.then(e?function(e){return Fn(n,t()).then(function(){return e})}:t,e?function(e){return Fn(n,t()).then(function(){throw e})}:t)}}),M(M.S,"Promise",{try:function(t){var n=kn.f(this),e=Cn(t);return(e.e?n.reject:n.resolve)(e.v),n.promise}});var Zn=j.Promise,$n=e(function(t){var n=nt("meta"),e=A.f,r=0,o=Object.isExtensible||function(){return!0},i=!h(function(){return o(Object.preventExtensions({}))}),u=function(t){e(t,n,{value:{i:"O"+ ++r,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!v(t,n)){if(!o(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!v(t,n)){if(!o(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return i&&c.NEED&&o(t)&&!v(t,n)&&u(t),t}}}),te={f:dt},ne=A.f,ee=function(t){var n=j.Symbol||(j.Symbol={});"_"==t.charAt(0)||t in n||ne(n,t,{value:te.f(t)})},re={f:Object.getOwnPropertySymbols},oe=Array.isArray||function(t){return"Array"==o(t)},ie=ct.concat("length","prototype"),ue={f:Object.getOwnPropertyNames||function(t){return ut(t,ie)}},ce=ue.f,fe={}.toString,ae="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],se={f:function(t){return ae&&"[object Window]"==fe.call(t)?function(t){try{return ce(t)}catch(t){return ae.slice()}}(t):ce(c(t))}},le=$n.KEY,pe=w.f,ve=A.f,he=se.f,ye=d.Symbol,de=d.JSON,me=de&&de.stringify,be=dt("_hidden"),ge=dt("toPrimitive"),_e={}.propertyIsEnumerable,Oe=Z("symbol-registry"),we=Z("symbols"),je=Z("op-symbols"),Se=Object.prototype,Pe="function"==typeof ye,Ee=d.QObject,Te=!Ee||!Ee.prototype||!Ee.prototype.findChild,Ae=y&&h(function(){return 7!=yt(ve({},"a",{get:function(){return ve(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=pe(Se,n);r&&delete Se[n],ve(t,n,e),r&&t!==Se&&ve(Se,n,r)}:ve,xe=function(t){var n=we[t]=yt(ye.prototype);return n._k=t,n},Le=Pe&&"symbol"==typeof ye.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof ye},Me=function(t,n,e){return t===Se&&Me(je,n,e),E(t),n=l(n,!0),E(e),v(we,n)?(e.enumerable?(v(t,be)&&t[be][n]&&(t[be][n]=!1),e=yt(e,{enumerable:a(0,!1)})):(v(t,be)||ve(t,be,a(1,{})),t[be][n]=!0),Ae(t,n,e)):ve(t,n,e)},ke=function(t,n){E(t);for(var e,r=function(t){var n=ft(t),e=re.f;if(e)for(var r,o=e(t),i=f.f,u=0;o.length>u;)i.call(t,r=o[u++])&&n.push(r);return n}(n=c(n)),o=0,i=r.length;i>o;)Me(t,e=r[o++],n[e]);return t},Ce=function(t){var n=_e.call(this,t=l(t,!0));return!(this===Se&&v(we,t)&&!v(je,t))&&(!(n||!v(this,t)||!v(we,t)||v(this,be)&&this[be][t])||n)},Fe=function(t,n){if(t=c(t),n=l(n,!0),t!==Se||!v(we,n)||v(je,n)){var e=pe(t,n);return!e||!v(we,n)||v(t,be)&&t[be][n]||(e.enumerable=!0),e}},Ne=function(t){for(var n,e=he(c(t)),r=[],o=0;e.length>o;)v(we,n=e[o++])||n==be||n==le||r.push(n);return r},Ie=function(t){for(var n,e=t===Se,r=he(e?je:c(t)),o=[],i=0;r.length>i;)!v(we,n=r[i++])||e&&!v(Se,n)||o.push(we[n]);return o};Pe||(U((ye=function(){if(this instanceof ye)throw TypeError("Symbol is not a constructor!");var t=nt(arguments.length>0?arguments[0]:void 0),n=function(e){this===Se&&n.call(je,e),v(this,be)&&v(this[be],t)&&(this[be][t]=!1),Ae(this,t,a(1,e))};return y&&Te&&Ae(Se,t,{configurable:!0,set:n}),xe(t)}).prototype,"toString",function(){return this._k}),w.f=Fe,A.f=Me,ue.f=se.f=Ne,f.f=Ce,re.f=Ie,te.f=function(t){return xe(dt(t))}),M(M.G+M.W+M.F*!Pe,{Symbol:ye});for(var Re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),De=0;Re.length>De;)dt(Re[De++]);for(var Ge=ft(dt.store),We=0;Ge.length>We;)ee(Ge[We++]);M(M.S+M.F*!Pe,"Symbol",{for:function(t){return v(Oe,t+="")?Oe[t]:Oe[t]=ye(t)},keyFor:function(t){if(!Le(t))throw TypeError(t+" is not a symbol!");for(var n in Oe)if(Oe[n]===t)return n},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),M(M.S+M.F*!Pe,"Object",{create:function(t,n){return void 0===n?yt(t):ke(yt(t),n)},defineProperty:Me,defineProperties:ke,getOwnPropertyDescriptor:Fe,getOwnPropertyNames:Ne,getOwnPropertySymbols:Ie}),de&&M(M.S+M.F*(!Pe||h(function(){var t=ye();return"[null]"!=me([t])||"{}"!=me({a:t})||"{}"!=me(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(s(n)||void 0!==t)&&!Le(t))return oe(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!Le(n))return n}),r[1]=n,me.apply(de,r)}}),ye.prototype[ge]||x(ye.prototype,ge,ye.prototype.valueOf),gt(ye,"Symbol"),gt(Math,"Math",!0),gt(d.JSON,"JSON",!0);var Ve=j.Object.getOwnPropertySymbols;k("keys",function(){return function(t){return ft(jt(t))}});var Be=j.Object.keys;var He=function(t,n,e){return n in t?R(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t};var Ke=function(t){for(var n=1;arguments.length>n;n++){var e=null!=arguments[n]?arguments[n]:{},r=Be(e);"function"==typeof Ve&&(r=r.concat(Ve(e).filter(function(t){return N(e,t).enumerable}))),r.forEach(function(n){He(t,n,e[n])})}return t};k("getPrototypeOf",function(){return function(t){return Et(jt(t))}});var Ue=j.Object.getPrototypeOf;var Je=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")};function qe(t,n){for(var e=0;n.length>e;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),R(t,r.key,r)}}var ze=function(t,n,e){return n&&qe(t.prototype,n),e&&qe(t,e),t},Ye=te.f("iterator");ee("asyncIterator"),ee("observable");var Qe=j.Symbol,Xe=e(function(t){function n(t){return(n="function"==typeof Qe&&"symbol"==typeof Ye?function(t){return typeof t}:function(t){return t&&"function"==typeof Qe&&t.constructor===Qe&&t!==Qe.prototype?"symbol":typeof t})(t)}function e(r){return t.exports=e="function"==typeof Qe&&"symbol"===n(Ye)?function(t){return n(t)}:function(t){return t&&"function"==typeof Qe&&t.constructor===Qe&&t!==Qe.prototype?"symbol":n(t)},e(r)}t.exports=e});var Ze=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var $e=function(t,n){return!n||"object"!==Xe(n)&&"function"!=typeof n?Ze(t):n},tr=function(t,n){if(E(t),!s(n)&&null!==n)throw TypeError(n+": can't set as prototype!")},nr={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=P(Function.call,w.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return tr(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:tr};M(M.S,"Object",{setPrototypeOf:nr.set});var er=j.Object.setPrototypeOf;M(M.S,"Object",{create:yt});var rr=j.Object,or=function(t,n){return rr.create(t,n)};var ir=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=or(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(er?er(t,n):t.__proto__=n)},ur=e(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var r=G(cn),o=G(Zn),i=G(Ke),u=G(Ue),c=G(Je),f=G(ze),a=G($e),s=G(ir),l=D(t),p={};var v=function(){return null};function h(t){var n=t.app,e=t.models,h=t.component;return function(t){var n=t.resolve;return function(e){function r(){var n,e;(0,c.default)(this,r);for(var o=arguments.length,i=Array(o),f=0;o>f;f++)i[f]=arguments[f];return(e=(0,a.default)(this,(n=r.__proto__||(0,u.default)(r)).call.apply(n,[this].concat(i)))).LoadingComponent=t.LoadingComponent||v,e.state={AsyncComponent:null},e.load(),e}return(0,s.default)(r,l.Component),(0,f.default)(r,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"load",value:function(){var t=this;n().then(function(n){var e=n.default||n;t.mounted?t.setState({AsyncComponent:e}):t.state.AsyncComponent=e})}},{key:"render",value:function(){var t=this.state.AsyncComponent;return l.default.createElement(t||this.LoadingComponent,this.props)}}]),r}()}((0,i.default)({resolve:t.resolve||function(){var t="function"==typeof e?e():[],i=h();return new o.default(function(e){o.default.all((0,r.default)(t).concat([i])).then(function(r){if(!t||!t.length)return e(r[0]);var o=t.length;r.slice(0,o).forEach(function(t){Array.isArray(t=t.default||t)||(t=[t]),t.map(function(t){return function(t,n){p[(n=n.default||n).namespace]||(t.model(n),p[n.namespace]=1)}(n,t)})}),e(r[o])})})}},t))}h.setDefaultLoadingComponent=function(t){v=t}});return n(ur),ur});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):(t.dva=t.dva||{},t.dva.dynamic=n(t.React))}(this,function(t){"use strict";function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,n){return t(n={exports:{}},n.exports),n.exports}t=t&&t.hasOwnProperty("default")?t.default:t;var r={}.toString,o=function(t){return r.call(t).slice(8,-1)},i=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)},u=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},c=function(t){return i(u(t))},f={f:{}.propertyIsEnumerable},a=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},s=function(t){return"object"==typeof t?null!==t:"function"==typeof t},l=function(t,n){if(!s(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!s(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!s(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!s(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")},p={}.hasOwnProperty,v=function(t,n){return p.call(t,n)},h=function(t){try{return!!t()}catch(t){return!0}},y=!h(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),d=e(function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),m=d.document,b=s(m)&&s(m.createElement),g=function(t){return b?m.createElement(t):{}},_=!y&&!h(function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,w={f:y?O:function(t,n){if(t=c(t),n=l(n,!0),_)try{return O(t,n)}catch(t){}if(v(t,n))return a(!f.f.call(t,n),t[n])}},j=e(function(t){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)}),S=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},P=function(t,n,e){if(S(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}},E=function(t){if(!s(t))throw TypeError(t+" is not an object!");return t},x=Object.defineProperty,T={f:y?Object.defineProperty:function(t,n,e){if(E(t),n=l(n,!0),E(e),_)try{return x(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},A=y?function(t,n,e){return T.f(t,n,a(1,e))}:function(t,n,e){return t[n]=e,t},L=function(t,n,e){var r,o,i,u=t&L.F,c=t&L.G,f=t&L.S,a=t&L.P,s=t&L.B,l=t&L.W,p=c?j:j[n]||(j[n]={}),h=p.prototype,y=c?d:f?d[n]:(d[n]||{}).prototype;for(r in c&&(e=n),e)(o=!u&&y&&void 0!==y[r])&&v(p,r)||(i=o?y[r]:e[r],p[r]=c&&"function"!=typeof y[r]?e[r]:s&&o?P(i,d):l&&y[r]==i?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(i):a&&"function"==typeof i?P(Function.call,i):i,a&&((p.virtual||(p.virtual={}))[r]=i,t&L.R&&h&&!h[r]&&A(h,r,i)))};L.F=1,L.G=2,L.S=4,L.P=8,L.B=16,L.W=32,L.U=64,L.R=128;var M=L,k=function(t,n){var e=(j.Object||{})[t]||Object[t],r={};r[t]=n(e),M(M.S+M.F*h(function(){e(1)}),"Object",r)},C=w.f;k("getOwnPropertyDescriptor",function(){return function(t,n){return C(c(t),n)}});var F=j.Object,N=function(t,n){return F.getOwnPropertyDescriptor(t,n)};M(M.S+M.F*!y,"Object",{defineProperty:T.f});var I=j.Object,R=function(t,n,e){return I.defineProperty(t,n,e)},D=e(function(t){t.exports=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=R&&N?N(t,e):{};r.get||r.set?R(n,e,r):n[e]=t[e]}return n.default=t,n}});n(D);var G=e(function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}}});n(G);var W,V=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);t.length>n;n++)e[n]=t[n];return e}},B=Math.ceil,H=Math.floor,K=function(t){return isNaN(t=+t)?0:(t>0?H:B)(t)},U=A,J={},z=Math.min,q=function(t){return t>0?z(K(t),9007199254740991):0},Y=Math.max,Q=Math.min,X=e(function(t){var n=d["__core-js_shared__"]||(d["__core-js_shared__"]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:j.version,mode:"pure",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),Z=0,$=Math.random(),tt=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++Z+$).toString(36))},nt=X("keys"),et=function(t){return nt[t]||(nt[t]=tt(t))},rt=(W=!1,function(t,n,e){var r,o=c(t),i=q(o.length),u=function(t,n){return 0>(t=K(t))?Y(t+n,0):Q(t,n)}(e,i);if(W&&n!=n){for(;i>u;)if((r=o[u++])!=r)return!0}else for(;i>u;u++)if((W||u in o)&&o[u]===n)return W||u||0;return!W&&-1}),ot=et("IE_PROTO"),it=function(t,n){var e,r=c(t),o=0,i=[];for(e in r)e!=ot&&v(r,e)&&i.push(e);for(;n.length>o;)v(r,e=n[o++])&&(~rt(i,e)||i.push(e));return i},ut="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ct=Object.keys||function(t){return it(t,ut)},ft=y?Object.defineProperties:function(t,n){E(t);for(var e,r=ct(n),o=r.length,i=0;o>i;)T.f(t,e=r[i++],n[e]);return t},at=d.document,st=at&&at.documentElement,lt=et("IE_PROTO"),pt=function(){},vt=function(){var t,n=g("iframe"),e=ut.length;for(n.style.display="none",st.appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),vt=t.F;e--;)delete vt.prototype[ut[e]];return vt()},ht=Object.create||function(t,n){var e;return null!==t?(pt.prototype=E(t),e=new pt,pt.prototype=null,e[lt]=t):e=vt(),void 0===n?e:ft(e,n)},yt=e(function(t){var n=X("wks"),e=d.Symbol,r="function"==typeof e;(t.exports=function(t){return n[t]||(n[t]=r&&e[t]||(r?e:tt)("Symbol."+t))}).store=n}),dt=T.f,mt=yt("toStringTag"),bt=function(t,n,e){t&&!v(t=e?t:t.prototype,mt)&&dt(t,mt,{configurable:!0,value:n})},gt={};A(gt,yt("iterator"),function(){return this});var _t,Ot=function(t,n,e){t.prototype=ht(gt,{next:a(1,e)}),bt(t,n+" Iterator")},wt=function(t){return Object(u(t))},jt=et("IE_PROTO"),St=Object.prototype,Pt=Object.getPrototypeOf||function(t){return t=wt(t),v(t,jt)?t[jt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?St:null},Et=yt("iterator"),xt=!([].keys&&"next"in[].keys()),Tt=function(){return this},At=function(t,n,e,r,o,i,u){Ot(e,n,r);var c,f,a,s=function(t){if(!xt&&t in h)return h[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},l=n+" Iterator",p="values"==o,v=!1,h=t.prototype,y=h[Et]||h["@@iterator"]||o&&h[o],d=y||s(o),m=o?p?s("entries"):d:void 0,b="Array"==n&&h.entries||y;if(b&&(a=Pt(b.call(new t)))!==Object.prototype&&a.next&&bt(a,l,!0),p&&y&&"values"!==y.name&&(v=!0,d=function(){return y.call(this)}),u&&(xt||v||!h[Et])&&A(h,Et,d),J[n]=d,J[l]=Tt,o)if(c={values:p?d:s("values"),keys:i?d:s("keys"),entries:m},u)for(f in c)f in h||U(h,f,c[f]);else M(M.P+M.F*(xt||v),n,c);return c},Lt=(_t=!0,function(t,n){var e,r,o=u(t)+"",i=K(n),c=o.length;return 0>i||i>=c?_t?"":void 0:55296>(e=o.charCodeAt(i))||e>56319||i+1===c||56320>(r=o.charCodeAt(i+1))||r>57343?_t?o.charAt(i):e:_t?o.slice(i,i+2):r-56320+(e-55296<<10)+65536});At(String,"String",function(t){this._t=t+"",this._i=0},function(){var t,n=this._t,e=this._i;return n.length>e?(t=Lt(n,e),this._i+=t.length,{value:t,done:!1}):{value:void 0,done:!0}});var Mt=function(t,n,e,r){try{return r?n(E(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&E(o.call(t)),n}},kt=yt("iterator"),Ct=Array.prototype,Ft=function(t){return void 0!==t&&(J.Array===t||Ct[kt]===t)},Nt=function(t,n,e){n in t?T.f(t,n,a(0,e)):t[n]=e},It=yt("toStringTag"),Rt="Arguments"==o(function(){return arguments}()),Dt=function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),It))?e:Rt?o(n):"Object"==(r=o(n))&&"function"==typeof n.callee?"Arguments":r},Gt=yt("iterator"),Wt=j.getIteratorMethod=function(t){if(void 0!=t)return t[Gt]||t["@@iterator"]||J[Dt(t)]},Vt=yt("iterator"),Bt=!1;try{[7][Vt]().return=function(){Bt=!0}}catch(t){}var Ht=function(t,n){if(!n&&!Bt)return!1;var e=!1;try{var r=[7],o=r[Vt]();o.next=function(){return{done:e=!0}},r[Vt]=function(){return o},t(r)}catch(t){}return e};M(M.S+M.F*!Ht(function(t){}),"Array",{from:function(t){var n,e,r,o,i=wt(t),u="function"==typeof this?this:Array,c=arguments.length,f=c>1?arguments[1]:void 0,a=void 0!==f,s=0,l=Wt(i);if(a&&(f=P(f,c>2?arguments[2]:void 0,2)),void 0==l||u==Array&&Ft(l))for(e=new u(n=q(i.length));n>s;s++)Nt(e,s,a?f(i[s],s):i[s]);else for(o=l.call(i),e=new u;!(r=o.next()).done;s++)Nt(e,s,a?Mt(o,f,[r.value,s],!0):r.value);return e.length=s,e}});var Kt=j.Array.from,Ut=function(t,n){return{value:n,done:!!t}};At(Array,"Array",function(t,n){this._t=c(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return t&&t.length>e?Ut(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]]):(this._t=void 0,Ut(1))},"values");J.Arguments=J.Array;for(var Jt=yt("toStringTag"),zt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),qt=0;zt.length>qt;qt++){var Yt=zt[qt],Qt=d[Yt],Xt=Qt&&Qt.prototype;Xt&&!Xt[Jt]&&A(Xt,Jt,Yt),J[Yt]=J.Array}var Zt=yt("iterator"),$t=j.isIterable=function(t){var n=Object(t);return void 0!==n[Zt]||"@@iterator"in n||J.hasOwnProperty(Dt(n))};var tn=function(t){if($t(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return Kt(t)};var nn=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var en,rn,on,un=function(t){return V(t)||tn(t)||nn()},cn=e(function(t){var n={},e={},r=t.exports=function(t,r,o,i,u){var c,f,a,s,l=u?function(){return t}:Wt(t),p=P(o,i,r?2:1),v=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(Ft(l)){for(c=q(t.length);c>v;v++)if((s=r?p(E(f=t[v])[0],f[1]):p(t[v]))===n||s===e)return s}else for(a=l.call(t);!(f=a.next()).done;)if((s=Mt(a,p,f.value,r))===n||s===e)return s};r.BREAK=n,r.RETURN=e}),fn=yt("species"),an=function(t,n){var e,r=E(t).constructor;return void 0===r||void 0==(e=E(r)[fn])?n:S(e)},sn=d.process,ln=d.setImmediate,pn=d.clearImmediate,vn=d.MessageChannel,hn=d.Dispatch,yn=0,dn={},mn=function(){var t=+this;if(dn.hasOwnProperty(t)){var n=dn[t];delete dn[t],n()}},bn=function(t){mn.call(t.data)};ln&&pn||(ln=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return dn[++yn]=function(){!function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}t.apply(e,n)}("function"==typeof t?t:Function(t),n)},en(yn),yn},pn=function(t){delete dn[t]},"process"==o(sn)?en=function(t){sn.nextTick(P(mn,t,1))}:hn&&hn.now?en=function(t){hn.now(P(mn,t,1))}:vn?(on=(rn=new vn).port2,rn.port1.onmessage=bn,en=P(on.postMessage,on,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(en=function(t){d.postMessage(t+"","*")},d.addEventListener("message",bn,!1)):en="onreadystatechange"in g("script")?function(t){st.appendChild(g("script")).onreadystatechange=function(){st.removeChild(this),mn.call(t)}}:function(t){setTimeout(P(mn,t,1),0)});var gn={set:ln,clear:pn},_n=gn.set,On=d.MutationObserver||d.WebKitMutationObserver,wn=d.process,jn=d.Promise,Sn="process"==o(wn);var Pn,En,xn,Tn,An,Ln,Mn={f:function(t){return new function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=S(n),this.reject=S(e)}(t)}},kn=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},Cn=d.navigator,Fn=Cn&&Cn.userAgent||"",Nn=function(t,n){if(E(t),s(n)&&n.constructor===t)return n;var e=Mn.f(t);return(0,e.resolve)(n),e.promise},In=yt("species"),Rn=gn.set,Dn=function(){var t,n,e,r=function(){var r,o;for(Sn&&(r=wn.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(Sn)e=function(){wn.nextTick(r)};else if(!On||d.navigator&&d.navigator.standalone)if(jn&&jn.resolve){var o=jn.resolve(void 0);e=function(){o.then(r)}}else e=function(){_n.call(d,r)};else{var i=!0,u=document.createTextNode("");new On(r).observe(u,{characterData:!0}),e=function(){u.data=i=!i}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}(),Gn=d.TypeError,Wn=d.process,Vn=Wn&&Wn.versions,Bn=Vn&&Vn.v8||"",Hn=d.Promise,Kn="process"==Dt(Wn),Un=function(){},Jn=En=Mn.f,zn=!!function(){try{var t=Hn.resolve(1),n=(t.constructor={})[yt("species")]=function(t){t(Un,Un)};return(Kn||"function"==typeof PromiseRejectionEvent)&&t.then(Un)instanceof n&&0!==Bn.indexOf("6.6")&&-1===Fn.indexOf("Chrome/66")}catch(t){}}(),qn=function(t){var n;return!(!s(t)||"function"!=typeof(n=t.then))&&n},Yn=function(t,n){if(!t._n){t._n=!0;var e=t._c;Dn(function(){for(var r=t._v,o=1==t._s,i=0,u=function(n){var e,i,u,c=o?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{c?(o||(2==t._h&&Zn(t),t._h=1),!0===c?e=r:(s&&s.enter(),e=c(r),s&&(s.exit(),u=!0)),e===n.promise?a(Gn("Promise-chain cycle")):(i=qn(e))?i.call(e,f,a):f(e)):a(r)}catch(t){s&&!u&&s.exit(),a(t)}};e.length>i;)u(e[i++]);t._c=[],t._n=!1,n&&!t._h&&Qn(t)})}},Qn=function(t){Rn.call(d,function(){var n,e,r,o=t._v,i=Xn(t);if(i&&(n=kn(function(){Kn?Wn.emit("unhandledRejection",o,t):(e=d.onunhandledrejection)?e({promise:t,reason:o}):(r=d.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=Kn||Xn(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},Xn=function(t){return 1!==t._h&&0===(t._a||t._c).length},Zn=function(t){Rn.call(d,function(){var n;Kn?Wn.emit("rejectionHandled",t):(n=d.onrejectionhandled)&&n({promise:t,reason:t._v})})},$n=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),Yn(n,!0))},te=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw Gn("Promise can't be resolved itself");(n=qn(t))?Dn(function(){var r={_w:e,_d:!1};try{n.call(t,P(te,r,1),P($n,r,1))}catch(t){$n.call(r,t)}}):(e._v=t,e._s=1,Yn(e,!1))}catch(t){$n.call({_w:e,_d:!1},t)}}};zn||(Hn=function(t){!function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!")}(this,Hn,"Promise","_h"),S(t),Pn.call(this);try{t(P(te,this,1),P($n,this,1))}catch(t){$n.call(this,t)}},(Pn=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(t,n,e){for(var r in n)e&&t[r]?t[r]=n[r]:A(t,r,n[r]);return t}(Hn.prototype,{then:function(t,n){var e=Jn(an(this,Hn));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=Kn?Wn.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&Yn(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),xn=function(){var t=new Pn;this.promise=t,this.resolve=P(te,t,1),this.reject=P($n,t,1)},Mn.f=Jn=function(t){return t===Hn||t===Tn?new xn(t):En(t)}),M(M.G+M.W+M.F*!zn,{Promise:Hn}),bt(Hn,"Promise"),Ln="function"==typeof j[An="Promise"]?j[An]:d[An],y&&Ln&&!Ln[In]&&T.f(Ln,In,{configurable:!0,get:function(){return this}}),Tn=j.Promise,M(M.S+M.F*!zn,"Promise",{reject:function(t){var n=Jn(this);return(0,n.reject)(t),n.promise}}),M(M.S+!0*M.F,"Promise",{resolve:function(t){return Nn(this===Tn?Hn:this,t)}}),M(M.S+M.F*!(zn&&Ht(function(t){Hn.all(t).catch(Un)})),"Promise",{all:function(t){var n=this,e=Jn(n),r=e.resolve,o=e.reject,i=kn(function(){var e=[],i=0,u=1;cn(t,!1,function(t){var c=i++,f=!1;e.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,e[c]=t,--u||r(e))},o)}),--u||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=Jn(n),r=e.reject,o=kn(function(){cn(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}}),M(M.P+M.R,"Promise",{finally:function(t){var n=an(this,j.Promise||d.Promise),e="function"==typeof t;return this.then(e?function(e){return Nn(n,t()).then(function(){return e})}:t,e?function(e){return Nn(n,t()).then(function(){throw e})}:t)}}),M(M.S,"Promise",{try:function(t){var n=Mn.f(this),e=kn(t);return(e.e?n.reject:n.resolve)(e.v),n.promise}});var ne=j.Promise,ee=e(function(t){var n=tt("meta"),e=T.f,r=0,o=Object.isExtensible||function(){return!0},i=!h(function(){return o(Object.preventExtensions({}))}),u=function(t){e(t,n,{value:{i:"O"+ ++r,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!v(t,n)){if(!o(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!v(t,n)){if(!o(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return i&&c.NEED&&o(t)&&!v(t,n)&&u(t),t}}}),re={f:yt},oe=T.f,ie=function(t){var n=j.Symbol||(j.Symbol={});"_"==t.charAt(0)||t in n||oe(n,t,{value:re.f(t)})},ue={f:Object.getOwnPropertySymbols},ce=Array.isArray||function(t){return"Array"==o(t)},fe=ut.concat("length","prototype"),ae={f:Object.getOwnPropertyNames||function(t){return it(t,fe)}},se=ae.f,le={}.toString,pe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ve={f:function(t){return pe&&"[object Window]"==le.call(t)?function(t){try{return se(t)}catch(t){return pe.slice()}}(t):se(c(t))}},he=ee.KEY,ye=w.f,de=T.f,me=ve.f,be=d.Symbol,ge=d.JSON,_e=ge&&ge.stringify,Oe=yt("_hidden"),we=yt("toPrimitive"),je={}.propertyIsEnumerable,Se=X("symbol-registry"),Pe=X("symbols"),Ee=X("op-symbols"),xe=Object.prototype,Te="function"==typeof be,Ae=d.QObject,Le=!Ae||!Ae.prototype||!Ae.prototype.findChild,Me=y&&h(function(){return 7!=ht(de({},"a",{get:function(){return de(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=ye(xe,n);r&&delete xe[n],de(t,n,e),r&&t!==xe&&de(xe,n,r)}:de,ke=function(t){var n=Pe[t]=ht(be.prototype);return n._k=t,n},Ce=Te&&"symbol"==typeof be.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof be},Fe=function(t,n,e){return t===xe&&Fe(Ee,n,e),E(t),n=l(n,!0),E(e),v(Pe,n)?(e.enumerable?(v(t,Oe)&&t[Oe][n]&&(t[Oe][n]=!1),e=ht(e,{enumerable:a(0,!1)})):(v(t,Oe)||de(t,Oe,a(1,{})),t[Oe][n]=!0),Me(t,n,e)):de(t,n,e)},Ne=function(t,n){E(t);for(var e,r=function(t){var n=ct(t),e=ue.f;if(e)for(var r,o=e(t),i=f.f,u=0;o.length>u;)i.call(t,r=o[u++])&&n.push(r);return n}(n=c(n)),o=0,i=r.length;i>o;)Fe(t,e=r[o++],n[e]);return t},Ie=function(t){var n=je.call(this,t=l(t,!0));return!(this===xe&&v(Pe,t)&&!v(Ee,t))&&(!(n||!v(this,t)||!v(Pe,t)||v(this,Oe)&&this[Oe][t])||n)},Re=function(t,n){if(t=c(t),n=l(n,!0),t!==xe||!v(Pe,n)||v(Ee,n)){var e=ye(t,n);return!e||!v(Pe,n)||v(t,Oe)&&t[Oe][n]||(e.enumerable=!0),e}},De=function(t){for(var n,e=me(c(t)),r=[],o=0;e.length>o;)v(Pe,n=e[o++])||n==Oe||n==he||r.push(n);return r},Ge=function(t){for(var n,e=t===xe,r=me(e?Ee:c(t)),o=[],i=0;r.length>i;)!v(Pe,n=r[i++])||e&&!v(xe,n)||o.push(Pe[n]);return o};Te||(U((be=function(){if(this instanceof be)throw TypeError("Symbol is not a constructor!");var t=tt(arguments.length>0?arguments[0]:void 0),n=function(e){this===xe&&n.call(Ee,e),v(this,Oe)&&v(this[Oe],t)&&(this[Oe][t]=!1),Me(this,t,a(1,e))};return y&&Le&&Me(xe,t,{configurable:!0,set:n}),ke(t)}).prototype,"toString",function(){return this._k}),w.f=Re,T.f=Fe,ae.f=ve.f=De,f.f=Ie,ue.f=Ge,re.f=function(t){return ke(yt(t))}),M(M.G+M.W+M.F*!Te,{Symbol:be});for(var We="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ve=0;We.length>Ve;)yt(We[Ve++]);for(var Be=ct(yt.store),He=0;Be.length>He;)ie(Be[He++]);M(M.S+M.F*!Te,"Symbol",{for:function(t){return v(Se,t+="")?Se[t]:Se[t]=be(t)},keyFor:function(t){if(!Ce(t))throw TypeError(t+" is not a symbol!");for(var n in Se)if(Se[n]===t)return n},useSetter:function(){Le=!0},useSimple:function(){Le=!1}}),M(M.S+M.F*!Te,"Object",{create:function(t,n){return void 0===n?ht(t):Ne(ht(t),n)},defineProperty:Fe,defineProperties:Ne,getOwnPropertyDescriptor:Re,getOwnPropertyNames:De,getOwnPropertySymbols:Ge}),ge&&M(M.S+M.F*(!Te||h(function(){var t=be();return"[null]"!=_e([t])||"{}"!=_e({a:t})||"{}"!=_e(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(s(n)||void 0!==t)&&!Ce(t))return ce(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!Ce(n))return n}),r[1]=n,_e.apply(ge,r)}}),be.prototype[we]||A(be.prototype,we,be.prototype.valueOf),bt(be,"Symbol"),bt(Math,"Math",!0),bt(d.JSON,"JSON",!0);var Ke=j.Object.getOwnPropertySymbols;k("keys",function(){return function(t){return ct(wt(t))}});var Ue=j.Object.keys;var Je=function(t,n,e){return n in t?R(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t};var ze=function(t){for(var n=1;arguments.length>n;n++){var e=null!=arguments[n]?arguments[n]:{},r=Ue(e);"function"==typeof Ke&&(r=r.concat(Ke(e).filter(function(t){return N(e,t).enumerable}))),r.forEach(function(n){Je(t,n,e[n])})}return t};var qe=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")};function Ye(t,n){for(var e=0;n.length>e;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),R(t,r.key,r)}}var Qe=function(t,n,e){return n&&Ye(t.prototype,n),e&&Ye(t,e),t},Xe=re.f("iterator");ie("asyncIterator"),ie("observable");var Ze=j.Symbol,$e=e(function(t){function n(t){return(n="function"==typeof Ze&&"symbol"==typeof Xe?function(t){return typeof t}:function(t){return t&&"function"==typeof Ze&&t.constructor===Ze&&t!==Ze.prototype?"symbol":typeof t})(t)}function e(r){return t.exports=e="function"==typeof Ze&&"symbol"===n(Xe)?function(t){return n(t)}:function(t){return t&&"function"==typeof Ze&&t.constructor===Ze&&t!==Ze.prototype?"symbol":n(t)},e(r)}t.exports=e});var tr=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var nr=function(t,n){return!n||"object"!==$e(n)&&"function"!=typeof n?tr(t):n};k("getPrototypeOf",function(){return function(t){return Pt(wt(t))}});var er=j.Object.getPrototypeOf,rr=function(t,n){if(E(t),!s(n)&&null!==n)throw TypeError(n+": can't set as prototype!")},or={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=P(Function.call,w.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return rr(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:rr};M(M.S,"Object",{setPrototypeOf:or.set});var ir=j.Object.setPrototypeOf,ur=e(function(t){function n(e){return t.exports=n=ir?er:function(t){return t.__proto__||er(t)},n(e)}t.exports=n});M(M.S,"Object",{create:ht});var cr=j.Object,fr=function(t,n){return cr.create(t,n)},ar=e(function(t){function n(e,r){return t.exports=n=ir||function(t,n){return t.__proto__=n,t},n(e,r)}t.exports=n});var sr=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=fr(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&ar(t,n)},lr=e(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var r=G(un),o=G(ne),i=G(ze),u=G(qe),c=G(Qe),f=G(nr),a=G(ur),s=G(sr),l=D(t),p={};var v=function(){return null};function h(t){var n=t.app,e=t.models,h=t.component;return function(t){var n=t.resolve;return function(e){function r(){var n,e;(0,u.default)(this,r);for(var o=arguments.length,i=Array(o),c=0;o>c;c++)i[c]=arguments[c];return(e=(0,f.default)(this,(n=(0,a.default)(r)).call.apply(n,[this].concat(i)))).LoadingComponent=t.LoadingComponent||v,e.state={AsyncComponent:null},e.load(),e}return(0,s.default)(r,l.Component),(0,c.default)(r,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"load",value:function(){var t=this;n().then(function(n){var e=n.default||n;t.mounted?t.setState({AsyncComponent:e}):t.state.AsyncComponent=e})}},{key:"render",value:function(){var t=this.state.AsyncComponent;return l.default.createElement(t||this.LoadingComponent,this.props)}}]),r}()}((0,i.default)({resolve:t.resolve||function(){var t="function"==typeof e?e():[],i=h();return new o.default(function(e){o.default.all((0,r.default)(t).concat([i])).then(function(r){if(!t||!t.length)return e(r[0]);var o=t.length;r.slice(0,o).forEach(function(t){Array.isArray(t=t.default||t)||(t=[t]),t.map(function(t){return function(t,n){p[(n=n.default||n).namespace]||(t.model(n),p[n.namespace]=1)}(n,t)})}),e(r[o])})})}},t))}h.setDefaultLoadingComponent=function(t){v=t}});return n(lr),lr});

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):(t.dva=t.dva||{},t.dva.router=e(t.React))}(this,function(t){"use strict";var e="default"in t?t.default:t,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;var i=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;10>n;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,a,c=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;arguments.length>s;s++){for(var u in i=Object(arguments[s]))o.call(i,u)&&(c[u]=i[u]);if(n){a=n(i);for(var p=0;a.length>p;p++)r.call(i,a[p])&&(c[a[p]]=i[a[p]])}}return c},a=function(){};var c=a;"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t,e){return t(e={exports:{}},e.exports),e.exports}function p(t){return function(){return t}}var l=function(){};l.thatReturns=p,l.thatReturnsFalse=p(!1),l.thatReturnsTrue=p(!0),l.thatReturnsNull=p(null),l.thatReturnsThis=function(){return this},l.thatReturnsArgument=function(t){return t};var f=l;var h=function(t,e,n,o,r,i,a,c){if(!t){var s;if(void 0===e)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,a,c],p=0;(s=Error(e.replace(/%s/g,function(){return u[p++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}},d="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=u(function(t){t.exports=function(){function t(t,e,n,o,r,i){i!==d&&h(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=f,n.PropTypes=n,n}()}),v=function(t,e,n,o,r,i,a,c){if(!t){var s;if(void 0===e)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,a,c],p=0;(s=Error(e.replace(/%s/g,function(){return u[p++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}};function m(t){return"/"===t.charAt(0)}function b(t,e){for(var n=e,o=n+1,r=t.length;r>o;n+=1,o+=1)t[n]=t[o];t.pop()}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],r=t&&m(t),i=e&&m(e),a=r||i;if(t&&m(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var s=o[o.length-1];c="."===s||".."===s||""===s}else c=!1;for(var u=0,p=o.length;p>=0;p--){var l=o[p];"."===l?b(o,p):".."===l?(b(o,p),u++):u&&(b(o,p),u--)}if(!a)for(;u--;u)o.unshift("..");!a||""===o[0]||o[0]&&m(o[0])||o.unshift("");var f=o.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}var w=Object.freeze({default:g}),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function P(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return P(t,e[n])});var n=void 0===t?"undefined":O(t);if(n!==(void 0===e?"undefined":O(e)))return!1;if("object"===n){var o=t.valueOf(),r=e.valueOf();if(o!==t||r!==e)return P(o,r);var i=Object.keys(t);return i.length===Object.keys(e).length&&i.every(function(n){return P(t[n],e[n])})}return!1}var j=Object.freeze({default:P}),R=u(function(t,e){e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t};var n=e.hasBasename=function(t,e){return RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)};e.stripBasename=function(t,e){return n(t,e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",o="",r=e.indexOf("#");-1!==r&&(o=e.substr(r),e=e.substr(0,r));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===o?"":o}},e.createPath=function(t){var e=t.search,n=t.hash,o=t.pathname||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o}});s(R);var x=R.addLeadingSlash,E=R.parsePath,T=R.createPath,C=w&&g||w,S=j&&P||j,_=u(function(t,e){e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var n=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},o=i(C),r=i(S);function i(t){return t&&t.__esModule?t:{default:t}}e.createLocation=function(t,e,r,i){var a=void 0;"string"==typeof t?(a=(0,R.parsePath)(t)).state=e:(void 0===(a=n({},t)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==e&&void 0===a.state&&(a.state=e));try{a.pathname=decodeURI(a.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return r&&(a.key=r),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,o.default)(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,r.default)(t.state,e.state)}});s(_);var k=u(function(t,e){e.__esModule=!0;var n,o=(n=c)&&n.__esModule?n:{default:n};e.default=function(){var t=null,e=[];return{setPrompt:function(e){return(0,o.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,i):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(t){var n=!0,o=function(){n&&t.apply(void 0,arguments)};return e.push(o),function(){n=!1,e=e.filter(function(t){return t!==o})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];e.forEach(function(t){return t.apply(void 0,n)})}}}});s(k);var L=u(function(t,e){e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},e.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}});s(L);var A=s(u(function(t,e){e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=s(c),i=s(v),a=s(k);function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){try{return window.history.state||{}}catch(t){return{}}};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(L.canUseDOM,"Browser history needs a DOM");var e=window.history,c=(0,L.supportsHistory)(),s=!(0,L.supportsPopStateOnHashChange)(),p=t.forceRefresh,l=void 0!==p&&p,f=t.getUserConfirmation,h=void 0===f?L.getConfirmation:f,d=t.keyLength,y=void 0===d?6:d,v=t.basename?(0,R.stripTrailingSlash)((0,R.addLeadingSlash)(t.basename)):"",m=function(t){var e=t||{},n=e.key,o=e.state,i=window.location,a=i.pathname+i.search+i.hash;return(0,r.default)(!v||(0,R.hasBasename)(a,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+v+'".'),v&&(a=(0,R.stripBasename)(a,v)),(0,_.createLocation)(a,o,n)},b=function(){return Math.random().toString(36).substr(2,y)},g=(0,a.default)(),w=function(t){o(U,t),U.length=e.length,g.notifyListeners(U.location,U.action)},O=function(t){(0,L.isExtraneousPopstateEvent)(t)||x(m(t.state))},P=function(){x(m(u()))},j=!1,x=function(t){j?(j=!1,w()):g.confirmTransitionTo(t,"POP",h,function(e){e?w({action:"POP",location:t}):E(t)})},E=function(t){var e=C.indexOf(U.location.key);-1===e&&(e=0);var n=C.indexOf(t.key);-1===n&&(n=0);var o=e-n;o&&(j=!0,k(o))},T=m(u()),C=[T.key],S=function(t){return v+(0,R.createPath)(t)},k=function(t){e.go(t)},A=0,M=function(t){1===(A+=t)?((0,L.addEventListener)(window,"popstate",O),s&&(0,L.addEventListener)(window,"hashchange",P)):0===A&&((0,L.removeEventListener)(window,"popstate",O),s&&(0,L.removeEventListener)(window,"hashchange",P))},H=!1,U={length:e.length,action:"POP",location:T,createHref:S,push:function(t,o){(0,r.default)(!("object"===(void 0===t?"undefined":n(t))&&void 0!==t.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,_.createLocation)(t,o,b(),U.location);g.confirmTransitionTo(i,"PUSH",h,function(t){if(t){var n=S(i),o=i.state;if(c)if(e.pushState({key:i.key,state:o},null,n),l)window.location.href=n;else{var a=C.indexOf(U.location.key),s=C.slice(0,-1===a?0:a+1);s.push(i.key),C=s,w({action:"PUSH",location:i})}else(0,r.default)(void 0===o,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=n}})},replace:function(t,o){(0,r.default)(!("object"===(void 0===t?"undefined":n(t))&&void 0!==t.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,_.createLocation)(t,o,b(),U.location);g.confirmTransitionTo(i,"REPLACE",h,function(t){if(t){var n=S(i),o=i.state;if(c)if(e.replaceState({key:i.key,state:o},null,n),l)window.location.replace(n);else{var a=C.indexOf(U.location.key);-1!==a&&(C[a]=i.key),w({action:"REPLACE",location:i})}else(0,r.default)(void 0===o,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(n)}})},go:k,goBack:function(){return k(-1)},goForward:function(){return k(1)},block:function(){var t=g.setPrompt(arguments.length>0&&void 0!==arguments[0]&&arguments[0]);return H||(M(1),H=!0),function(){return H&&(H=!1,M(-1)),t()}},listen:function(t){var e=g.appendListener(t);return M(1),function(){M(-1),e()}}};return U}})),M=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function H(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var U=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=H(this,t.call.apply(t,[this].concat(i))),o.state={match:o.computeMatch(o.props.history.location.pathname)},H(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.getChildContext=function(){return{router:M({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},n.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},n.prototype.componentWillMount=function(){var t=this,n=this.props,o=n.children,r=n.history;v(null==o||1===e.Children.count(o),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},n.prototype.componentWillReceiveProps=function(t){c(this.props.history===t.history,"You cannot change <Router history>")},n.prototype.componentWillUnmount=function(){this.unlisten()},n.prototype.render=function(){var t=this.props.children;return t?e.Children.only(t):null},n}(e.Component);function q(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}U.propTypes={history:y.object.isRequired,children:y.node},U.contextTypes={router:y.object},U.childContextTypes={router:y.object.isRequired};var I=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=q(this,t.call.apply(t,[this].concat(i))),o.history=A(o.props),q(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){c(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},n.prototype.render=function(){return e.createElement(U,{history:this.history,children:this.props.children})},n}(e.Component);I.propTypes={basename:y.string,forceRefresh:y.bool,getUserConfirmation:y.func,keyLength:y.number,children:y.node};var Y=s(u(function(t,e){e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},o=a(c),r=a(v),i=a(k);function a(t){return t&&t.__esModule?t:{default:t}}var s={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,R.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:R.stripLeadingSlash,decodePath:R.addLeadingSlash},slash:{encodePath:R.addLeadingSlash,decodePath:R.addLeadingSlash}},u=function(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},p=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0>e?0:e)+"#"+t)};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,r.default)(L.canUseDOM,"Hash history needs a DOM");var e=window.history,a=(0,L.supportsGoWithoutReloadUsingHash)(),c=t.getUserConfirmation,l=void 0===c?L.getConfirmation:c,f=t.hashType,h=void 0===f?"slash":f,d=t.basename?(0,R.stripTrailingSlash)((0,R.addLeadingSlash)(t.basename)):"",y=s[h],v=y.encodePath,m=y.decodePath,b=function(){var t=m(u());return(0,o.default)(!d||(0,R.hasBasename)(t,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+d+'".'),d&&(t=(0,R.stripBasename)(t,d)),(0,_.createLocation)(t)},g=(0,i.default)(),w=function(t){n(q,t),q.length=e.length,g.notifyListeners(q.location,q.action)},O=!1,P=null,j=function(){var t=u(),e=v(t);if(t!==e)p(e);else{var n=b();if(!O&&(0,_.locationsAreEqual)(q.location,n))return;if(P===(0,R.createPath)(n))return;P=null,x(n)}},x=function(t){O?(O=!1,w()):g.confirmTransitionTo(t,"POP",l,function(e){e?w({action:"POP",location:t}):E(t)})},E=function(t){var e=k.lastIndexOf((0,R.createPath)(q.location));-1===e&&(e=0);var n=k.lastIndexOf((0,R.createPath)(t));-1===n&&(n=0);var o=e-n;o&&(O=!0,A(o))},T=u(),C=v(T);T!==C&&p(C);var S=b(),k=[(0,R.createPath)(S)],A=function(t){(0,o.default)(a,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},M=0,H=function(t){1===(M+=t)?(0,L.addEventListener)(window,"hashchange",j):0===M&&(0,L.removeEventListener)(window,"hashchange",j)},U=!1,q={length:e.length,action:"POP",location:S,createHref:function(t){return"#"+v(d+(0,R.createPath)(t))},push:function(t,e){(0,o.default)(void 0===e,"Hash history cannot push state; it is ignored");var n=(0,_.createLocation)(t,void 0,void 0,q.location);g.confirmTransitionTo(n,"PUSH",l,function(t){if(t){var e=(0,R.createPath)(n),r=v(d+e);if(u()!==r){P=e,function(t){window.location.hash=t}(r);var i=k.lastIndexOf((0,R.createPath)(q.location)),a=k.slice(0,-1===i?0:i+1);a.push(e),k=a,w({action:"PUSH",location:n})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),w()}})},replace:function(t,e){(0,o.default)(void 0===e,"Hash history cannot replace state; it is ignored");var n=(0,_.createLocation)(t,void 0,void 0,q.location);g.confirmTransitionTo(n,"REPLACE",l,function(t){if(t){var e=(0,R.createPath)(n),o=v(d+e);u()!==o&&(P=e,p(o));var r=k.indexOf((0,R.createPath)(q.location));-1!==r&&(k[r]=e),w({action:"REPLACE",location:n})}})},go:A,goBack:function(){return A(-1)},goForward:function(){return A(1)},block:function(){var t=g.setPrompt(arguments.length>0&&void 0!==arguments[0]&&arguments[0]);return U||(H(1),U=!0),function(){return U&&(U=!1,H(-1)),t()}},listen:function(t){var e=g.appendListener(t);return H(1),function(){H(-1),e()}}};return q}}));function B(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var N=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=B(this,t.call.apply(t,[this].concat(i))),o.history=Y(o.props),B(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){c(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},n.prototype.render=function(){return e.createElement(U,{history:this.history,children:this.props.children})},n}(e.Component);N.propTypes={basename:y.string,getUserConfirmation:y.func,hashType:y.oneOf(["hashbang","noslash","slash"]),children:y.node};var W=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function F(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var D=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},$=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=F(this,t.call.apply(t,[this].concat(i))),o.handleClick=function(t){if(o.props.onClick&&o.props.onClick(t),!t.defaultPrevented&&0===t.button&&!o.props.target&&!D(t)){t.preventDefault();var e=o.context.router.history,n=o.props,r=n.to;n.replace?e.replace(r):e.push(r)}},F(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.render=function(){var t=this.props,n=t.to,o=t.innerRef,r=function(t,e){var n={};for(var o in t)0>e.indexOf(o)&&Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["replace","to","innerRef"]);v(this.context.router,"You should not use <Link> outside a <Router>");var i=this.context.router.history.createHref("string"==typeof n?{pathname:n}:n);return e.createElement("a",W({},r,{onClick:this.handleClick,href:i,ref:o}))},n}(e.Component);$.propTypes={onClick:y.func,target:y.string,replace:y.bool,to:y.oneOfType([y.string,y.object]).isRequired,innerRef:y.oneOfType([y.string,y.func])},$.defaultProps={replace:!1},$.contextTypes={router:y.shape({history:y.shape({push:y.func.isRequired,replace:y.func.isRequired,createHref:y.func.isRequired}).isRequired}).isRequired};var G=s(u(function(t,e){e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=a(c),i=a(k);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t,e,n){return Math.min(Math.max(t,e),n)};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,a=t.initialEntries,c=void 0===a?["/"]:a,u=t.initialIndex,p=void 0===u?0:u,l=t.keyLength,f=void 0===l?6:l,h=(0,i.default)(),d=function(t){o(g,t),g.length=g.entries.length,h.notifyListeners(g.location,g.action)},y=function(){return Math.random().toString(36).substr(2,f)},v=s(p,0,c.length-1),m=c.map(function(t){return(0,_.createLocation)(t,void 0,"string"==typeof t?y():t.key||y())}),b=function(t){var n=s(g.index+t,0,g.entries.length-1),o=g.entries[n];h.confirmTransitionTo(o,"POP",e,function(t){t?d({action:"POP",location:o,index:n}):d()})},g={length:m.length,action:"POP",location:m[v],index:v,entries:m,createHref:R.createPath,push:function(t,o){(0,r.default)(!("object"===(void 0===t?"undefined":n(t))&&void 0!==t.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,_.createLocation)(t,o,y(),g.location);h.confirmTransitionTo(i,"PUSH",e,function(t){if(t){var e=g.index+1,n=g.entries.slice(0);n.length>e?n.splice(e,n.length-e,i):n.push(i),d({action:"PUSH",location:i,index:e,entries:n})}})},replace:function(t,o){(0,r.default)(!("object"===(void 0===t?"undefined":n(t))&&void 0!==t.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,_.createLocation)(t,o,y(),g.location);h.confirmTransitionTo(i,"REPLACE",e,function(t){t&&(g.entries[g.index]=i,d({action:"REPLACE",location:i}))})},go:b,goBack:function(){return b(-1)},goForward:function(){return b(1)},canGo:function(t){var e=g.index+t;return e>=0&&g.entries.length>e},block:function(){return h.setPrompt(arguments.length>0&&void 0!==arguments[0]&&arguments[0])},listen:function(t){return h.appendListener(t)}};return g}}));function z(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var K=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=z(this,t.call.apply(t,[this].concat(i))),o.history=G(o.props),z(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){c(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},n.prototype.render=function(){return e.createElement(U,{history:this.history,children:this.props.children})},n}(e.Component);K.propTypes={initialEntries:y.array,initialIndex:y.number,getUserConfirmation:y.func,keyLength:y.number,children:y.node};var V=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},J=ut,Q=function(t,e){return ot(et(t,e))},X=ot,Z=st,tt=/(\\.)|([\/.])?(?:(?:\:(\w+)(?:\(((?:\\.|[^\\()])+)\))?|\(((?:\\.|[^\\()])+)\))([+*?])?|(\*))/g;function et(t,e){for(var n,o=[],r=0,i=0,a="",c=e&&e.delimiter||"/";null!=(n=tt.exec(t));){var s=n[0],u=n[1],p=n.index;if(a+=t.slice(i,p),i=p+s.length,u)a+=u[1];else{var l=t[i],f=n[2],h=n[3],d=n[4],y=n[5],v=n[6],m=n[7];a&&(o.push(a),a="");var b=n[2]||c,g=d||y;o.push({name:h||r++,prefix:f||"",delimiter:b,optional:"?"===v||"*"===v,repeat:"+"===v||"*"===v,partial:null!=f&&null!=l&&l!==f,asterisk:!!m,pattern:g?it(g):m?".*":"[^"+rt(b)+"]+?"})}}return t.length>i&&(a+=t.substr(i)),a&&o.push(a),o}function nt(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function ot(t){for(var e=Array(t.length),n=0;t.length>n;n++)"object"==typeof t[n]&&(e[n]=RegExp("^(?:"+t[n].pattern+")$"));return function(n,o){for(var r="",i=n||{},a=(o||{}).pretty?nt:encodeURIComponent,c=0;t.length>c;c++){var s=t[c];if("string"!=typeof s){var u,p=i[s.name];if(null==p){if(s.optional){s.partial&&(r+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(V(p)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var l=0;p.length>l;l++){if(u=a(p[l]),!e[c].test(u))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===l?s.prefix:s.delimiter)+u}}else{if(u=s.asterisk?encodeURI(p).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):a(p),!e[c].test(u))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+u+'"');r+=s.prefix+u}}else r+=s}return r}}function rt(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function it(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function at(t,e){return t.keys=e,t}function ct(t){return t.sensitive?"":"i"}function st(t,e,n){V(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,r=!1!==n.end,i="",a=0;t.length>a;a++){var c=t[a];if("string"==typeof c)i+=rt(c);else{var s=rt(c.prefix),u="(?:"+c.pattern+")";e.push(c),c.repeat&&(u+="(?:"+s+u+")*"),i+=u=c.optional?c.partial?s+"("+u+")?":"(?:"+s+"("+u+"))?":s+"("+u+")"}}var p=rt(n.delimiter||"/"),l=i.slice(-p.length)===p;return o||(i=(l?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),at(RegExp("^"+(i+=r?"$":o&&l?"":"(?="+p+"|$)"),ct(n)),e)}function ut(t,e,n){return V(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var o=0;n.length>o;o++)e.push({name:o,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return at(t,e)}(t,e):V(t)?function(t,e,n){for(var o=[],r=0;t.length>r;r++)o.push(ut(t[r],e,n).source);return at(RegExp("(?:"+o.join("|")+")",ct(n)),e)}(t,e,n):function(t,e,n){return st(et(t,n),e,n)}(t,e,n)}J.parse=et,J.compile=Q,J.tokensToFunction=X,J.tokensToRegExp=Z;var pt={},lt=0,ft=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e.path,o=void 0===n?"/":n,r=e.exact,i=void 0!==r&&r,a=e.strict,c=e.sensitive,s=function(t,e){var n=""+e.end+e.strict+e.sensitive,o=pt[n]||(pt[n]={});if(o[t])return o[t];var r=[],i={re:J(t,r,e),keys:r};return 1e4>lt&&(o[t]=i,lt++),i}(o,{end:i,strict:void 0!==a&&a,sensitive:void 0!==c&&c}),u=s.keys,p=s.re.exec(t);if(!p)return null;var l=p[0],f=p.slice(1),h=t===l;return i&&!h?null:{path:o,url:"/"===o&&""===l?"/":l,isExact:h,params:u.reduce(function(t,e,n){return t[e.name]=f[n],t},{})}},ht=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function dt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var yt=function(t){return 0===e.Children.count(t)},vt=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=dt(this,t.call.apply(t,[this].concat(i))),o.state={match:o.computeMatch(o.props,o.context.router)},dt(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.getChildContext=function(){return{router:ht({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},n.prototype.computeMatch=function(t,e){var n=t.computedMatch,o=t.location,r=t.path,i=t.strict,a=t.exact,c=t.sensitive;if(n)return n;v(e,"You should not use <Route> or withRouter() outside a <Router>");var s=e.route;return r?ft((o||s.location).pathname,{path:r,strict:i,exact:a,sensitive:c}):s.match},n.prototype.componentWillMount=function(){c(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),c(!(this.props.component&&this.props.children&&!yt(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),c(!(this.props.render&&this.props.children&&!yt(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},n.prototype.componentWillReceiveProps=function(t,e){c(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),c(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},n.prototype.render=function(){var t=this.state.match,n=this.props,o=n.children,r=n.component,i=n.render,a=this.context.router,c={match:t,location:this.props.location||a.route.location,history:a.history,staticContext:a.staticContext};return r?t?e.createElement(r,c):null:i?t?i(c):null:o?"function"==typeof o?o(c):yt(o)?null:e.Children.only(o):null},n}(e.Component);vt.propTypes={computedMatch:y.object,path:y.string,exact:y.bool,strict:y.bool,sensitive:y.bool,component:y.func,render:y.func,children:y.oneOfType([y.func,y.node]),location:y.object},vt.contextTypes={router:y.shape({history:y.object.isRequired,route:y.object.isRequired,staticContext:y.object})},vt.childContextTypes={router:y.object.isRequired};var mt=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var gt=function(t){var n=t.to,o=t.exact,r=t.strict,i=t.location,a=t.activeClassName,c=t.className,s=t.activeStyle,u=t.style,p=t.isActive,l=t.ariaCurrent,f=function(t,e){var n={};for(var o in t)0>e.indexOf(o)&&Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return e.createElement(vt,{path:"object"===(void 0===n?"undefined":bt(n))?n.pathname:n,exact:o,strict:r,location:i,children:function(t){var o=t.match,r=!!(p?p(o,t.location):o);return e.createElement($,mt({to:n,className:r?[c,a].filter(function(t){return t}).join(" "):c,style:r?mt({},u,s):u,"aria-current":r&&l},f))}})};gt.propTypes={to:$.propTypes.to,exact:y.bool,strict:y.bool,location:y.object,activeClassName:y.string,className:y.string,activeStyle:y.object,style:y.object,isActive:y.func,ariaCurrent:y.oneOf(["page","step","location","true"])},gt.defaultProps={activeClassName:"active",ariaCurrent:"true"};var wt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){v(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(e.Component);wt.propTypes={when:y.bool,message:y.oneOfType([y.func,y.string]).isRequired},wt.defaultProps={when:!0},wt.contextTypes={router:y.shape({history:y.shape({block:y.func.isRequired}).isRequired}).isRequired};var Ot=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Pt=function(t,e,n,o){var r=void 0;"string"==typeof t?(r=function(t){var e=t||"/",n="",o="",r=e.indexOf("#");-1!==r&&(o=e.substr(r),e=e.substr(0,r));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===o?"":o}}(t)).state=e:(void 0===(r=Ot({},t)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=g(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r};"undefined"==typeof window||!window.document||window;var jt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){v(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e,n,o=Pt(t.to),r=Pt(this.props.to);(e=o).pathname===(n=r).pathname&&e.search===n.search&&e.hash===n.hash&&e.key===n.key&&P(e.state,n.state)?c(!1,"You tried to redirect to the same route you're currently on: \""+r.pathname+r.search+'"'):this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.to;e.push?t.push(n):t.replace(n)},e.prototype.render=function(){return null},e}(e.Component);jt.propTypes={push:y.bool,from:y.string,to:y.oneOfType([y.string,y.object]).isRequired},jt.defaultProps={push:!1},jt.contextTypes={router:y.shape({history:y.shape({push:y.func.isRequired,replace:y.func.isRequired}).isRequired,staticContext:y.object}).isRequired};var Rt=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function xt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Et=function(t,e){return t?Rt({},e,{pathname:x(t)+e.pathname}):e},Tt=function(t){return"string"==typeof t?E(t):(n=(e=t).pathname,r=void 0===(o=e.search)?"":o,a=void 0===(i=e.hash)?"":i,{pathname:void 0===n?"/":n,search:"?"===r?"":r,hash:"#"===a?"":a});var e,n,o,r,i,a},Ct=function(t){return"string"==typeof t?t:T(t)},St=function(t){return function(){v(!1,"You cannot %s with <StaticRouter>",t)}},_t=function(){},kt=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=xt(this,t.call.apply(t,[this].concat(i))),o.createHref=function(t){return x(o.props.basename+Ct(t))},o.handlePush=function(t){var e=o.props,n=e.basename,r=e.context;r.action="PUSH",r.location=Et(n,Tt(t)),r.url=Ct(r.location)},o.handleReplace=function(t){var e=o.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=Et(n,Tt(t)),r.url=Ct(r.location)},o.handleListen=function(){return _t},o.handleBlock=function(){return _t},xt(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},n.prototype.componentWillMount=function(){c(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},n.prototype.render=function(){var t=this.props,n=t.basename,o=t.location,r=function(t,e){var n={};for(var o in t)0>e.indexOf(o)&&Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=x(t);return 0!==e.pathname.indexOf(n)?e:Rt({},e,{pathname:e.pathname.substr(n.length)})}(n,Tt(o)),push:this.handlePush,replace:this.handleReplace,go:St("go"),goBack:St("goBack"),goForward:St("goForward"),listen:this.handleListen,block:this.handleBlock};return e.createElement(U,Rt({},r,{history:i}))},n}(e.Component);kt.propTypes={basename:y.string,context:y.object.isRequired,location:y.oneOfType([y.string,y.object])},kt.defaultProps={basename:"",location:"/"},kt.childContextTypes={router:y.object.isRequired};var Lt=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){v(this.context.router,"You should not use <Switch> outside a <Router>")},n.prototype.componentWillReceiveProps=function(t){c(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),c(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},n.prototype.render=function(){var t=this.context.router.route,n=this.props.location||t.location,o=void 0,r=void 0;return e.Children.forEach(this.props.children,function(i){if(e.isValidElement(i)){var a=i.props,c=a.path||a.from;null==o&&(r=i,o=c?ft(n.pathname,{path:c,exact:a.exact,strict:a.strict,sensitive:a.sensitive}):t.match)}}),o?e.cloneElement(r,{location:n,computedMatch:o}):null},n}(e.Component);Lt.contextTypes={router:y.shape({route:y.object.isRequired}).isRequired},Lt.propTypes={children:y.node,location:y.object};var At=u(function(t,e){var n,o,r,i,a,c,s,u;t.exports=(n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=(s=Object.getPrototypeOf)&&s(Object),function t(e,p,l){if("string"!=typeof p){if(u){var f=s(p);f&&f!==u&&t(e,f,l)}var h=i(p);a&&(h=h.concat(a(p)));for(var d=0;h.length>d;++d){var y=h[d];if(!(n[y]||o[y]||l&&l[y])){var v=c(p,y);try{r(e,y,v)}catch(t){}}}return e}return e})}),Mt=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};var Ht=Object.freeze({BrowserRouter:I,HashRouter:N,Link:$,MemoryRouter:K,NavLink:gt,Prompt:wt,Redirect:jt,Route:vt,Router:U,StaticRouter:kt,Switch:Lt,matchPath:ft,withRouter:function(t){var n=function(n){var o=n.wrappedComponentRef,r=function(t,e){var n={};for(var o in t)0>e.indexOf(o)&&Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(n,["wrappedComponentRef"]);return e.createElement(vt,{render:function(n){return e.createElement(t,Mt({},r,n,{ref:o}))}})};return n.displayName="withRouter("+(t.displayName||t.name)+")",n.WrappedComponent=t,n.propTypes={wrappedComponentRef:y.func},At(n,t)}}),Ut=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},qt="@@router/LOCATION_CHANGE",It={location:null};function Yt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Bt=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=Yt(this,t.call.apply(t,[this].concat(i))),o.handleLocationChange=function(t){o.store.dispatch({type:qt,payload:t})},Yt(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){var t=this.props,e=t.history,n=t.isSSR;this.store=t.store||this.context.store,this.handleLocationChange(e.location),n||(this.unsubscribeFromHistory=e.listen(this.handleLocationChange))},n.prototype.componentWillUnmount=function(){this.unsubscribeFromHistory&&this.unsubscribeFromHistory()},n.prototype.render=function(){return e.createElement(U,this.props)},n}(t.Component);Bt.propTypes={store:y.object,history:y.object.isRequired,children:y.node,isSSR:y.bool},Bt.contextTypes={store:y.object};var Nt=function(t){return t.router.location},Wt="@@router/CALL_HISTORY_METHOD";function Ft(t){return function(){for(var e=arguments.length,n=Array(e),o=0;e>o;o++)n[o]=arguments[o];return{type:Wt,payload:{method:t,args:n}}}}var Dt=Ft("push"),$t=Ft("replace"),Gt=Ft("go"),zt=Ft("goBack"),Kt=Ft("goForward");return i({},Ht,{routerRedux:Object.freeze({ConnectedRouter:Bt,routerMiddleware:function(t){return function(){return function(e){return function(n){if(n.type!==Wt)return e(n);var o=n.payload;t[o.method].apply(t,o.args)}}}},getLocation:Nt,createMatchSelector:function(t){var e=null,n=null;return function(o){var r=(Nt(o)||{}).pathname;if(r===e)return n;e=r;var i=ft(r,t);return i&&n&&i.url===n.url||(n=i),n}},LOCATION_CHANGE:qt,routerReducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:It,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.type===qt?Ut({},t,{location:e.payload}):t},CALL_HISTORY_METHOD:Wt,push:Dt,replace:$t,go:Gt,goBack:zt,goForward:Kt,routerActions:{push:Dt,replace:$t,go:Gt,goBack:zt,goForward:Kt}})})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):(t.dva=t.dva||{},t.dva.router=e(t.React))}(this,function(t){"use strict";var e="default"in t?t.default:t,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;var i=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;10>n;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,a,c=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;arguments.length>s;s++){for(var u in i=Object(arguments[s]))o.call(i,u)&&(c[u]=i[u]);if(n){a=n(i);for(var p=0;a.length>p;p++)r.call(i,a[p])&&(c[a[p]]=i[a[p]])}}return c},a=function(){},c=a;"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function s(t,e){return t(e={exports:{}},e.exports),e.exports}function u(t){return function(){return t}}var p=function(){};p.thatReturns=u,p.thatReturnsFalse=u(!1),p.thatReturnsTrue=u(!0),p.thatReturnsNull=u(null),p.thatReturnsThis=function(){return this},p.thatReturnsArgument=function(t){return t};var l=p;var f=function(t,e,n,o,r,i,a,c){if(!t){var s;if(void 0===e)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,a,c],p=0;(s=Error(e.replace(/%s/g,function(){return u[p++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}},h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",d=s(function(t){t.exports=function(){function t(t,e,n,o,r,i){i!==h&&f(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=l,n.PropTypes=n,n}()}),y=function(){};var v=y,m=function(t,e,n,o,r,i,a,c){if(!t){var s;if(void 0===e)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,a,c],p=0;(s=Error(e.replace(/%s/g,function(){return u[p++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}};function b(t){return"/"===t.charAt(0)}function g(t,e){for(var n=e,o=n+1,r=t.length;r>o;n+=1,o+=1)t[n]=t[o];t.pop()}var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var O=function(t){return"/"===t.charAt(0)?t:"/"+t},j=function(t){return"/"===t.charAt(0)?t.substr(1):t},R=function(t,e){return RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},x=function(t,e){return R(t,e)?t.substr(e.length):t},P=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},T=function(t){var e=t.search,n=t.hash,o=t.pathname||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o},E=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},C=function(t,e,n,o){var r=void 0;"string"==typeof t?(r=function(t){var e=t||"/",n="",o="",r=e.indexOf("#");-1!==r&&(o=e.substr(r),e=e.substr(0,r));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===o?"":o}}(t)).state=e:(void 0===(r=E({},t)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],r=t&&b(t),i=e&&b(e),a=r||i;if(t&&b(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var s=o[o.length-1];c="."===s||".."===s||""===s}else c=!1;for(var u=0,p=o.length;p>=0;p--){var l=o[p];"."===l?g(o,p):".."===l?(g(o,p),u++):u&&(g(o,p),u--)}if(!a)for(;u--;u)o.unshift("..");!a||""===o[0]||o[0]&&b(o[0])||o.unshift("");var f=o.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r},S=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every(function(e,o){return t(e,n[o])});var o=void 0===e?"undefined":w(e);if(o!==(void 0===n?"undefined":w(n)))return!1;if("object"===o){var r=e.valueOf(),i=n.valueOf();if(r!==e||i!==n)return t(r,i);var a=Object.keys(e);return a.length===Object.keys(n).length&&a.every(function(o){return t(e[o],n[o])})}return!1}(t.state,e.state)},k=function(){var t=null,e=[];return{setPrompt:function(e){return v(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,o,r){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof o?o(i,r):(v(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==i)}else r(!0)},appendListener:function(t){var n=!0,o=function(){n&&t.apply(void 0,arguments)};return e.push(o),function(){n=!1,e=e.filter(function(t){return t!==o})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];e.forEach(function(t){return t.apply(void 0,n)})}}},A=!("undefined"==typeof window||!window.document||!window.document.createElement),_=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},L=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},M=function(t,e){return e(window.confirm(t))},H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},U=function(){try{return window.history.state||{}}catch(t){return{}}},Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(A,"Browser history needs a DOM");var e,n=window.history,o=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t.forceRefresh,a=void 0!==i&&i,c=t.getUserConfirmation,s=void 0===c?M:c,u=t.keyLength,p=void 0===u?6:u,l=t.basename?P(O(t.basename)):"",f=function(t){var e=t||{},n=e.key,o=e.state,r=window.location,i=r.pathname+r.search+r.hash;return v(!l||R(i,l),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+l+'".'),l&&(i=x(i,l)),C(i,o,n)},h=function(){return Math.random().toString(36).substr(2,p)},d=k(),y=function(t){q(D,t),D.length=n.length,d.notifyListeners(D.location,D.action)},b=function(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||j(f(t.state))},g=function(){j(f(U()))},w=!1,j=function(t){if(w)w=!1,y();else{d.confirmTransitionTo(t,"POP",s,function(e){e?y({action:"POP",location:t}):E(t)})}},E=function(t){var e=Y.indexOf(D.location.key);-1===e&&(e=0);var n=Y.indexOf(t.key);-1===n&&(n=0);var o=e-n;o&&(w=!0,I(o))},S=f(U()),Y=[S.key],N=function(t){return l+T(t)},I=function(t){n.go(t)},W=0,B=function(t){1===(W+=t)?(_(window,"popstate",b),r&&_(window,"hashchange",g)):0===W&&(L(window,"popstate",b),r&&L(window,"hashchange",g))},F=!1,D={length:n.length,action:"POP",location:S,createHref:N,push:function(t,e){v(!("object"===(void 0===t?"undefined":H(t))&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=C(t,e,h(),D.location);d.confirmTransitionTo(r,"PUSH",s,function(t){if(t){var e=N(r),i=r.state;if(o)if(n.pushState({key:r.key,state:i},null,e),a)window.location.href=e;else{var c=Y.indexOf(D.location.key),s=Y.slice(0,-1===c?0:c+1);s.push(r.key),Y=s,y({action:"PUSH",location:r})}else v(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=e}})},replace:function(t,e){v(!("object"===(void 0===t?"undefined":H(t))&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=C(t,e,h(),D.location);d.confirmTransitionTo(r,"REPLACE",s,function(t){if(t){var e=N(r),i=r.state;if(o)if(n.replaceState({key:r.key,state:i},null,e),a)window.location.replace(e);else{var c=Y.indexOf(D.location.key);-1!==c&&(Y[c]=r.key),y({action:"REPLACE",location:r})}else v(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(e)}})},go:I,goBack:function(){return I(-1)},goForward:function(){return I(1)},block:function(){var t=d.setPrompt(arguments.length>0&&void 0!==arguments[0]&&arguments[0]);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),t()}},listen:function(t){var e=d.appendListener(t);return B(1),function(){B(-1),e()}}};return D},N=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},I={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+j(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:j,decodePath:O},slash:{encodePath:O,decodePath:O}},W=function(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},B=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0>e?0:e)+"#"+t)},F=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(A,"Hash history needs a DOM");var e=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),o=t.getUserConfirmation,r=void 0===o?M:o,i=t.hashType,a=void 0===i?"slash":i,c=t.basename?P(O(t.basename)):"",s=I[a],u=s.encodePath,p=s.decodePath,l=function(){var t=p(W());return v(!c||R(t,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+c+'".'),c&&(t=x(t,c)),C(t)},f=k(),h=function(t){N($,t),$.length=e.length,f.notifyListeners($.location,$.action)},d=!1,y=null,b=function(){var t=W(),e=u(t);if(t!==e)B(e);else{var n=l();if(!d&&S($.location,n))return;if(y===T(n))return;y=null,g(n)}},g=function(t){if(d)d=!1,h();else{f.confirmTransitionTo(t,"POP",r,function(e){e?h({action:"POP",location:t}):w(t)})}},w=function(t){var e=q.lastIndexOf(T($.location));-1===e&&(e=0);var n=q.lastIndexOf(T(t));-1===n&&(n=0);var o=e-n;o&&(d=!0,U(o))},j=W(),E=u(j);j!==E&&B(E);var H=l(),q=[T(H)],U=function(t){v(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},Y=0,F=function(t){1===(Y+=t)?_(window,"hashchange",b):0===Y&&L(window,"hashchange",b)},D=!1,$={length:e.length,action:"POP",location:H,createHref:function(t){return"#"+u(c+T(t))},push:function(t,e){v(void 0===e,"Hash history cannot push state; it is ignored");var n=C(t,void 0,void 0,$.location);f.confirmTransitionTo(n,"PUSH",r,function(t){if(t){var e=T(n),o=u(c+e);if(W()!==o){y=e,function(t){window.location.hash=t}(o);var r=q.lastIndexOf(T($.location)),i=q.slice(0,-1===r?0:r+1);i.push(e),q=i,h({action:"PUSH",location:n})}else v(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),h()}})},replace:function(t,e){v(void 0===e,"Hash history cannot replace state; it is ignored");var n=C(t,void 0,void 0,$.location);f.confirmTransitionTo(n,"REPLACE",r,function(t){if(t){var e=T(n),o=u(c+e);W()!==o&&(y=e,B(o));var r=q.indexOf(T($.location));-1!==r&&(q[r]=e),h({action:"REPLACE",location:n})}})},go:U,goBack:function(){return U(-1)},goForward:function(){return U(1)},block:function(){var t=f.setPrompt(arguments.length>0&&void 0!==arguments[0]&&arguments[0]);return D||(F(1),D=!0),function(){return D&&(D=!1,F(-1)),t()}},listen:function(t){var e=f.appendListener(t);return F(1),function(){F(-1),e()}}};return $},D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},K=function(t,e,n){return Math.min(Math.max(t,e),n)},G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,o=void 0===n?["/"]:n,r=t.initialIndex,i=void 0===r?0:r,a=t.keyLength,c=void 0===a?6:a,s=k(),u=function(t){$(d,t),d.length=d.entries.length,s.notifyListeners(d.location,d.action)},p=function(){return Math.random().toString(36).substr(2,c)},l=K(i,0,o.length-1),f=o.map(function(t){return C(t,void 0,"string"==typeof t?p():t.key||p())}),h=function(t){var n=K(d.index+t,0,d.entries.length-1),o=d.entries[n];s.confirmTransitionTo(o,"POP",e,function(t){t?u({action:"POP",location:o,index:n}):u()})},d={length:f.length,action:"POP",location:f[l],index:l,entries:f,createHref:T,push:function(t,n){v(!("object"===(void 0===t?"undefined":D(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=C(t,n,p(),d.location);s.confirmTransitionTo(o,"PUSH",e,function(t){if(t){var e=d.index+1,n=d.entries.slice(0);n.length>e?n.splice(e,n.length-e,o):n.push(o),u({action:"PUSH",location:o,index:e,entries:n})}})},replace:function(t,n){v(!("object"===(void 0===t?"undefined":D(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=C(t,n,p(),d.location);s.confirmTransitionTo(o,"REPLACE",e,function(t){t&&(d.entries[d.index]=o,u({action:"REPLACE",location:o}))})},go:h,goBack:function(){return h(-1)},goForward:function(){return h(1)},canGo:function(t){var e=d.index+t;return e>=0&&d.entries.length>e},block:function(){return s.setPrompt(arguments.length>0&&void 0!==arguments[0]&&arguments[0])},listen:function(t){return s.appendListener(t)}};return d},V=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function z(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var J=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=z(this,t.call.apply(t,[this].concat(i))),o.state={match:o.computeMatch(o.props.history.location.pathname)},z(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.getChildContext=function(){return{router:V({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},n.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},n.prototype.componentWillMount=function(){var t=this,n=this.props,o=n.children,r=n.history;m(null==o||1===e.Children.count(o),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},n.prototype.componentWillReceiveProps=function(t){c(this.props.history===t.history,"You cannot change <Router history>")},n.prototype.componentWillUnmount=function(){this.unlisten()},n.prototype.render=function(){var t=this.props.children;return t?e.Children.only(t):null},n}(e.Component);function Q(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}J.propTypes={history:d.object.isRequired,children:d.node},J.contextTypes={router:d.object},J.childContextTypes={router:d.object.isRequired};var X=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=Q(this,t.call.apply(t,[this].concat(i))),o.history=Y(o.props),Q(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){c(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},n.prototype.render=function(){return e.createElement(J,{history:this.history,children:this.props.children})},n}(e.Component);function Z(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}X.propTypes={basename:d.string,forceRefresh:d.bool,getUserConfirmation:d.func,keyLength:d.number,children:d.node};var tt=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=Z(this,t.call.apply(t,[this].concat(i))),o.history=F(o.props),Z(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){c(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},n.prototype.render=function(){return e.createElement(J,{history:this.history,children:this.props.children})},n}(e.Component);tt.propTypes={basename:d.string,getUserConfirmation:d.func,hashType:d.oneOf(["hashbang","noslash","slash"]),children:d.node};var et=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function nt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var ot=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},rt=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=nt(this,t.call.apply(t,[this].concat(i))),o.handleClick=function(t){if(o.props.onClick&&o.props.onClick(t),!t.defaultPrevented&&0===t.button&&!o.props.target&&!ot(t)){t.preventDefault();var e=o.context.router.history,n=o.props,r=n.to;n.replace?e.replace(r):e.push(r)}},nt(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.render=function(){var t=this.props,n=t.to,o=t.innerRef,r=function(t,e){var n={};for(var o in t)0>e.indexOf(o)&&Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["replace","to","innerRef"]);m(this.context.router,"You should not use <Link> outside a <Router>"),m(void 0!==n,'You must specify the "to" property');var i=this.context.router.history,a="string"==typeof n?C(n,null,null,i.location):n,c=i.createHref(a);return e.createElement("a",et({},r,{onClick:this.handleClick,href:c,ref:o}))},n}(e.Component);function it(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}rt.propTypes={onClick:d.func,target:d.string,replace:d.bool,to:d.oneOfType([d.string,d.object]).isRequired,innerRef:d.oneOfType([d.string,d.func])},rt.defaultProps={replace:!1},rt.contextTypes={router:d.shape({history:d.shape({push:d.func.isRequired,replace:d.func.isRequired,createHref:d.func.isRequired}).isRequired}).isRequired};var at=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=it(this,t.call.apply(t,[this].concat(i))),o.history=G(o.props),it(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){c(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},n.prototype.render=function(){return e.createElement(J,{history:this.history,children:this.props.children})},n}(e.Component);at.propTypes={initialEntries:d.array,initialIndex:d.number,getUserConfirmation:d.func,keyLength:d.number,children:d.node};var ct=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},st=Ot,ut=function(t,e){return yt(ht(t,e))},pt=yt,lt=wt,ft=/(\\.)|([\/.])?(?:(?:\:(\w+)(?:\(((?:\\.|[^\\()])+)\))?|\(((?:\\.|[^\\()])+)\))([+*?])?|(\*))/g;function ht(t,e){for(var n,o=[],r=0,i=0,a="",c=e&&e.delimiter||"/";null!=(n=ft.exec(t));){var s=n[0],u=n[1],p=n.index;if(a+=t.slice(i,p),i=p+s.length,u)a+=u[1];else{var l=t[i],f=n[2],h=n[3],d=n[4],y=n[5],v=n[6],m=n[7];a&&(o.push(a),a="");var b=n[2]||c,g=d||y;o.push({name:h||r++,prefix:f||"",delimiter:b,optional:"?"===v||"*"===v,repeat:"+"===v||"*"===v,partial:null!=f&&null!=l&&l!==f,asterisk:!!m,pattern:g?mt(g):m?".*":"[^"+vt(b)+"]+?"})}}return t.length>i&&(a+=t.substr(i)),a&&o.push(a),o}function dt(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function yt(t){for(var e=Array(t.length),n=0;t.length>n;n++)"object"==typeof t[n]&&(e[n]=RegExp("^(?:"+t[n].pattern+")$"));return function(n,o){for(var r="",i=n||{},a=(o||{}).pretty?dt:encodeURIComponent,c=0;t.length>c;c++){var s=t[c];if("string"!=typeof s){var u,p=i[s.name];if(null==p){if(s.optional){s.partial&&(r+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(ct(p)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var l=0;p.length>l;l++){if(u=a(p[l]),!e[c].test(u))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===l?s.prefix:s.delimiter)+u}}else{if(u=s.asterisk?encodeURI(p).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):a(p),!e[c].test(u))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+u+'"');r+=s.prefix+u}}else r+=s}return r}}function vt(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function mt(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function bt(t,e){return t.keys=e,t}function gt(t){return t.sensitive?"":"i"}function wt(t,e,n){ct(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,r=!1!==n.end,i="",a=0;t.length>a;a++){var c=t[a];if("string"==typeof c)i+=vt(c);else{var s=vt(c.prefix),u="(?:"+c.pattern+")";e.push(c),c.repeat&&(u+="(?:"+s+u+")*"),i+=u=c.optional?c.partial?s+"("+u+")?":"(?:"+s+"("+u+"))?":s+"("+u+")"}}var p=vt(n.delimiter||"/"),l=i.slice(-p.length)===p;return o||(i=(l?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),bt(RegExp("^"+(i+=r?"$":o&&l?"":"(?="+p+"|$)"),gt(n)),e)}function Ot(t,e,n){return ct(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var o=0;n.length>o;o++)e.push({name:o,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return bt(t,e)}(t,e):ct(t)?function(t,e,n){for(var o=[],r=0;t.length>r;r++)o.push(Ot(t[r],e,n).source);return bt(RegExp("(?:"+o.join("|")+")",gt(n)),e)}(t,e,n):function(t,e,n){return wt(ht(t,n),e,n)}(t,e,n)}st.parse=ht,st.compile=ut,st.tokensToFunction=pt,st.tokensToRegExp=lt;var jt={},Rt=0,xt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e.path,o=e.exact,r=void 0!==o&&o,i=e.strict,a=void 0!==i&&i,c=e.sensitive,s=void 0!==c&&c;if(null==n)return arguments[2];var u=function(t,e){var n=""+e.end+e.strict+e.sensitive,o=jt[n]||(jt[n]={});if(o[t])return o[t];var r=[],i={re:st(t,r,e),keys:r};return 1e4>Rt&&(o[t]=i,Rt++),i}(n,{end:r,strict:a,sensitive:s}),p=u.keys,l=u.re.exec(t);if(!l)return null;var f=l[0],h=l.slice(1),d=t===f;return r&&!d?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:d,params:p.reduce(function(t,e,n){return t[e.name]=h[n],t},{})}},Pt=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function Tt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Et=function(t){return 0===e.Children.count(t)},Ct=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=Tt(this,t.call.apply(t,[this].concat(i))),o.state={match:o.computeMatch(o.props,o.context.router)},Tt(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.getChildContext=function(){return{router:Pt({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},n.prototype.computeMatch=function(t,e){var n=t.computedMatch,o=t.location,r=t.path,i=t.strict,a=t.exact,c=t.sensitive;if(n)return n;m(e,"You should not use <Route> or withRouter() outside a <Router>");var s=e.route;return xt((o||s.location).pathname,{path:r,strict:i,exact:a,sensitive:c},s.match)},n.prototype.componentWillMount=function(){c(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),c(!(this.props.component&&this.props.children&&!Et(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),c(!(this.props.render&&this.props.children&&!Et(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},n.prototype.componentWillReceiveProps=function(t,e){c(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),c(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},n.prototype.render=function(){var t=this.state.match,n=this.props,o=n.children,r=n.component,i=n.render,a=this.context.router,c={match:t,location:this.props.location||a.route.location,history:a.history,staticContext:a.staticContext};return r?t?e.createElement(r,c):null:i?t?i(c):null:"function"==typeof o?o(c):o&&!Et(o)?e.Children.only(o):null},n}(e.Component);Ct.propTypes={computedMatch:d.object,path:d.string,exact:d.bool,strict:d.bool,sensitive:d.bool,component:d.func,render:d.func,children:d.oneOfType([d.func,d.node]),location:d.object},Ct.contextTypes={router:d.shape({history:d.object.isRequired,route:d.object.isRequired,staticContext:d.object})},Ct.childContextTypes={router:d.object.isRequired};var St=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var At=function(t){var n=t.to,o=t.exact,r=t.strict,i=t.location,a=t.activeClassName,c=t.className,s=t.activeStyle,u=t.style,p=t.isActive,l=t["aria-current"],f=function(t,e){var n={};for(var o in t)0>e.indexOf(o)&&Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),h="object"===(void 0===n?"undefined":kt(n))?n.pathname:n,d=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return e.createElement(Ct,{path:d,exact:o,strict:r,location:i,children:function(t){var o=t.match,r=!!(p?p(o,t.location):o);return e.createElement(rt,St({to:n,className:r?[c,a].filter(function(t){return t}).join(" "):c,style:r?St({},u,s):u,"aria-current":r&&l||null},f))}})};At.propTypes={to:rt.propTypes.to,exact:d.bool,strict:d.bool,location:d.object,activeClassName:d.string,className:d.string,activeStyle:d.object,style:d.object,isActive:d.func,"aria-current":d.oneOf(["page","step","location","date","time","true"])},At.defaultProps={activeClassName:"active","aria-current":"page"};var _t=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){m(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(e.Component);_t.propTypes={when:d.bool,message:d.oneOfType([d.func,d.string]).isRequired},_t.defaultProps={when:!0},_t.contextTypes={router:d.shape({history:d.shape({block:d.func.isRequired}).isRequired}).isRequired};var Lt={},Mt=0,Ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:function(t){var e=Lt[t]||(Lt[t]={});if(e[t])return e[t];var n=st.compile(t);return 1e4>Mt&&(e[t]=n,Mt++),n}(t)(e,{pretty:!0})},qt=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};var Ut=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){m(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=C(t.to),n=C(this.props.to);S(e,n)?c(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},e.prototype.computeTo=function(t){var e=t.computedMatch,n=t.to;return e?"string"==typeof n?Ht(n,e.params):qt({},n,{pathname:Ht(n.pathname,e.params)}):n},e.prototype.perform=function(){var t=this.context.router.history,e=this.props.push,n=this.computeTo(this.props);e?t.push(n):t.replace(n)},e.prototype.render=function(){return null},e}(e.Component);Ut.propTypes={computedMatch:d.object,push:d.bool,from:d.string,to:d.oneOfType([d.string,d.object]).isRequired},Ut.defaultProps={push:!1},Ut.contextTypes={router:d.shape({history:d.shape({push:d.func.isRequired,replace:d.func.isRequired}).isRequired,staticContext:d.object}).isRequired};var Yt=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function Nt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var It=function(t){return"/"===t.charAt(0)?t:"/"+t},Wt=function(t,e){return t?Yt({},e,{pathname:It(t)+e.pathname}):e},Bt=function(t){return"string"==typeof t?t:T(t)},Ft=function(t){return function(){m(!1,"You cannot %s with <StaticRouter>",t)}},Dt=function(){},$t=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=Nt(this,t.call.apply(t,[this].concat(i))),o.createHref=function(t){return It(o.props.basename+Bt(t))},o.handlePush=function(t){var e=o.props,n=e.basename,r=e.context;r.action="PUSH",r.location=Wt(n,C(t)),r.url=Bt(r.location)},o.handleReplace=function(t){var e=o.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=Wt(n,C(t)),r.url=Bt(r.location)},o.handleListen=function(){return Dt},o.handleBlock=function(){return Dt},Nt(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},n.prototype.componentWillMount=function(){c(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},n.prototype.render=function(){var t=this.props,n=t.basename,o=t.location,r=function(t,e){var n={};for(var o in t)0>e.indexOf(o)&&Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=It(t);return 0!==e.pathname.indexOf(n)?e:Yt({},e,{pathname:e.pathname.substr(n.length)})}(n,C(o)),push:this.handlePush,replace:this.handleReplace,go:Ft("go"),goBack:Ft("goBack"),goForward:Ft("goForward"),listen:this.handleListen,block:this.handleBlock};return e.createElement(J,Yt({},r,{history:i}))},n}(e.Component);$t.propTypes={basename:d.string,context:d.object.isRequired,location:d.oneOfType([d.string,d.object])},$t.defaultProps={basename:"",location:"/"},$t.childContextTypes={router:d.object.isRequired};var Kt=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){m(this.context.router,"You should not use <Switch> outside a <Router>")},n.prototype.componentWillReceiveProps=function(t){c(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),c(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},n.prototype.render=function(){var t=this.context.router.route,n=this.props.location||t.location,o=void 0,r=void 0;return e.Children.forEach(this.props.children,function(i){if(null==o&&e.isValidElement(i)){var a=i.props;r=i,o=xt(n.pathname,{path:a.path||a.from,exact:a.exact,strict:a.strict,sensitive:a.sensitive},t.match)}}),o?e.cloneElement(r,{location:n,computedMatch:o}):null},n}(e.Component);Kt.contextTypes={router:d.shape({route:d.object.isRequired}).isRequired},Kt.propTypes={children:d.node,location:d.object};var Gt=s(function(t,e){var n,o,r,i,a,c,s,u;t.exports=(n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=(s=Object.getPrototypeOf)&&s(Object),function t(e,p,l){if("string"!=typeof p){if(u){var f=s(p);f&&f!==u&&t(e,f,l)}var h=i(p);a&&(h=h.concat(a(p)));for(var d=0;h.length>d;++d){var y=h[d];if(!(n[y]||o[y]||l&&l[y])){var v=c(p,y);try{r(e,y,v)}catch(t){}}}return e}return e})}),Vt=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};var zt=Object.freeze({BrowserRouter:X,HashRouter:tt,Link:rt,MemoryRouter:at,NavLink:At,Prompt:_t,Redirect:Ut,Route:Ct,Router:J,StaticRouter:$t,Switch:Kt,generatePath:Ht,matchPath:xt,withRouter:function(t){var n=function(n){var o=n.wrappedComponentRef,r=function(t,e){var n={};for(var o in t)0>e.indexOf(o)&&Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(n,["wrappedComponentRef"]);return e.createElement(Ct,{children:function(n){return e.createElement(t,Vt({},r,n,{ref:o}))}})};return n.displayName="withRouter("+(t.displayName||t.name)+")",n.WrappedComponent=t,n.propTypes={wrappedComponentRef:d.func},Gt(n,t)}}),Jt=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qt="@@router/LOCATION_CHANGE",Xt={location:null};function Zt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var te=function(t){function n(){var e,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=Array(r),a=0;r>a;a++)i[a]=arguments[a];return e=o=Zt(this,t.call.apply(t,[this].concat(i))),o.handleLocationChange=function(t){o.store.dispatch({type:Qt,payload:t})},Zt(o,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),n.prototype.componentWillMount=function(){var t=this.props,e=t.history,n=t.isSSR;this.store=t.store||this.context.store,this.handleLocationChange(e.location),n||(this.unsubscribeFromHistory=e.listen(this.handleLocationChange))},n.prototype.componentWillUnmount=function(){this.unsubscribeFromHistory&&this.unsubscribeFromHistory()},n.prototype.render=function(){return e.createElement(J,this.props)},n}(t.Component);te.propTypes={store:d.object,history:d.object.isRequired,children:d.node,isSSR:d.bool},te.contextTypes={store:d.object};var ee=function(t){return t.router.location},ne="@@router/CALL_HISTORY_METHOD";function oe(t){return function(){for(var e=arguments.length,n=Array(e),o=0;e>o;o++)n[o]=arguments[o];return{type:ne,payload:{method:t,args:n}}}}var re=oe("push"),ie=oe("replace"),ae=oe("go"),ce=oe("goBack"),se=oe("goForward");return i({},zt,{routerRedux:Object.freeze({ConnectedRouter:te,routerMiddleware:function(t){return function(){return function(e){return function(n){if(n.type!==ne)return e(n);var o=n.payload;t[o.method].apply(t,o.args)}}}},getLocation:ee,createMatchSelector:function(t){var e=null,n=null;return function(o){var r=(ee(o)||{}).pathname;if(r===e)return n;e=r;var i=xt(r,t);return i&&n&&i.url===n.url||(n=i),n}},LOCATION_CHANGE:Qt,routerReducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xt,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.type===Qt?Jt({},t,{location:e.payload}):t},CALL_HISTORY_METHOD:ne,push:re,replace:ie,go:ae,goBack:ce,goForward:se,routerActions:{push:re,replace:ie,go:ae,goBack:ce,goForward:se}})})});

@@ -18,4 +18,2 @@ "use strict";

var _getPrototypeOf = _interopRequireDefault(require("@babel/runtime/core-js/object/get-prototype-of"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

@@ -27,2 +25,4 @@

var _getPrototypeOf3 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

@@ -55,3 +55,3 @@

function DynamicComponent() {
var _ref;
var _getPrototypeOf2;

@@ -66,3 +66,3 @@ var _this;

_this = (0, _possibleConstructorReturn2.default)(this, (_ref = DynamicComponent.__proto__ || (0, _getPrototypeOf.default)(DynamicComponent)).call.apply(_ref, [this].concat(args)));
_this = (0, _possibleConstructorReturn2.default)(this, (_getPrototypeOf2 = (0, _getPrototypeOf3.default)(DynamicComponent)).call.apply(_getPrototypeOf2, [this].concat(args)));
_this.LoadingComponent = config.LoadingComponent || defaultLoadingComponent;

@@ -69,0 +69,0 @@ _this.state = {

{
"name": "dva",
"version": "2.3.0",
"version": "2.3.1",
"description": "React and redux based, lightweight and elm-style framework.",

@@ -31,3 +31,3 @@ "repository": {

"@types/isomorphic-fetch": "^0.0.34",
"@types/react-router": "^4.0.23",
"@types/react-router-dom": "^4.2.7",
"@types/react-router-redux": "^5.0.13",

@@ -34,0 +34,0 @@ "dva-core": "^1.3.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc