diff --git a/.gitignore b/.gitignore index 26b76485ee4..16437ed57a0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +coverage/ dist/ node_modules npm-debug.log diff --git a/README.md b/README.md index 3918210dc94..75d904cd175 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,13 @@ Install primer-react in your project with: ## Local Development -Run `primer-react` locally when adding or updating components. - -Clone this repo: `$ git clone https://github.com/primer/primer-react.git` - To run `primer-react` locally when adding or updating components: -1. Clone this repo: `$ git clone https://github.com/primer/primer-react.git` +1. Clone this repo: `git clone https://github.com/primer/primer-react` 1. Install dependencies: `npm install` -1. Run the dev app with: `npm start` +1. Run the dev app: `npm start` -Remember to build docs before publishing with: `npm run build` +Remember to build the documentation before publishing with `npm run build:docs` ### Code Style @@ -72,6 +68,11 @@ npm t -- --watch See [`src/__tests__/example.js`](src/__tests__/example.js) for an example of how we're testing our components. +#### Code coverage + +A code coverage report is included in the `npm test` output, and +test coverage data is generated in the `coverage/` directory. + ## Principles - Everything is a component. diff --git a/docs/bundle.js b/docs/bundle.js index 4fd06b644bf..75dc3ec3c6a 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/primer-react/",n(n.s=560)}([function(e,t,n){"use strict";e.exports=n(514)},function(e,t,n){e.exports=n(504)()},function(e,t,n){e.exports=n(497)()},function(e,t,n){e.exports=n(506)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(53);Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return M(r).default}});var i=n(100);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return M(i).default}});var a=n(162);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return M(a).default}});var o=n(494);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return M(o).default}});var s=n(44);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return M(s).default}});var u=n(493);Object.defineProperty(t,"ButtonDanger",{enumerable:!0,get:function(){return M(u).default}});var c=n(492);Object.defineProperty(t,"ButtonPrimary",{enumerable:!0,get:function(){return M(c).default}});var l=n(491);Object.defineProperty(t,"ButtonOutline",{enumerable:!0,get:function(){return M(l).default}});var f=n(490);Object.defineProperty(t,"ButtonLink",{enumerable:!0,get:function(){return M(f).default}});var h=n(99);Object.defineProperty(t,"Caret",{enumerable:!0,get:function(){return M(h).default}});var p=n(486);Object.defineProperty(t,"CaretBox",{enumerable:!0,get:function(){return M(p).default}});var d=n(485);Object.defineProperty(t,"CircleOcticon",{enumerable:!0,get:function(){return M(d).default}});var m=n(161);Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return M(m).default}});var g=n(482);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return M(g).default}});var y=n(481);Object.defineProperty(t,"DonutChart",{enumerable:!0,get:function(){return M(y).default}});var v=n(160);Object.defineProperty(t,"DonutSlice",{enumerable:!0,get:function(){return M(v).default}});var b=n(478);Object.defineProperty(t,"FlexContainer",{enumerable:!0,get:function(){return M(b).default}});var x=n(477);Object.defineProperty(t,"FlexItem",{enumerable:!0,get:function(){return M(x).default}});var w=n(476);Object.defineProperty(t,"TextInput",{enumerable:!0,get:function(){return M(w).default}});var E=n(475);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return M(E).default}});var k=n(474);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return M(k).default}});var _=n(473);Object.defineProperty(t,"BranchName",{enumerable:!0,get:function(){return M(_).default}});var S=n(472);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return M(S).default}});var C=n(471);Object.defineProperty(t,"MergeStatus",{enumerable:!0,get:function(){return M(C).default}});var A=n(159);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return M(A).default}});var D=n(470);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return M(D).default}});var T=n(469);Object.defineProperty(t,"CounterLabel",{enumerable:!0,get:function(){return M(T).default}});var O=n(468);Object.defineProperty(t,"Flash",{enumerable:!0,get:function(){return M(O).default}});var P=n(158);function M(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return M(P).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(166));t.default=r.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";var r=n(52),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];e.exports=function(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(t.styleAliases||null),-1===a.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r; +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/primer-react/",n(n.s=560)}([function(e,t,n){"use strict";e.exports=n(514)},function(e,t,n){e.exports=n(504)()},function(e,t,n){e.exports=n(500)()},function(e,t,n){e.exports=n(506)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38);Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return M(r).default}});var i=n(100);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return M(i).default}});var a=n(163);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return M(a).default}});var o=n(492);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return M(o).default}});var s=n(45);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return M(s).default}});var u=n(491);Object.defineProperty(t,"ButtonDanger",{enumerable:!0,get:function(){return M(u).default}});var c=n(490);Object.defineProperty(t,"ButtonPrimary",{enumerable:!0,get:function(){return M(c).default}});var l=n(489);Object.defineProperty(t,"ButtonOutline",{enumerable:!0,get:function(){return M(l).default}});var f=n(488);Object.defineProperty(t,"ButtonLink",{enumerable:!0,get:function(){return M(f).default}});var h=n(98);Object.defineProperty(t,"Caret",{enumerable:!0,get:function(){return M(h).default}});var p=n(484);Object.defineProperty(t,"CaretBox",{enumerable:!0,get:function(){return M(p).default}});var d=n(483);Object.defineProperty(t,"CircleOcticon",{enumerable:!0,get:function(){return M(d).default}});var m=n(162);Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return M(m).default}});var g=n(480);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return M(g).default}});var y=n(479);Object.defineProperty(t,"DonutChart",{enumerable:!0,get:function(){return M(y).default}});var v=n(161);Object.defineProperty(t,"DonutSlice",{enumerable:!0,get:function(){return M(v).default}});var b=n(478);Object.defineProperty(t,"FlexContainer",{enumerable:!0,get:function(){return M(b).default}});var x=n(477);Object.defineProperty(t,"FlexItem",{enumerable:!0,get:function(){return M(x).default}});var w=n(476);Object.defineProperty(t,"TextInput",{enumerable:!0,get:function(){return M(w).default}});var E=n(475);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return M(E).default}});var k=n(474);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return M(k).default}});var _=n(473);Object.defineProperty(t,"BranchName",{enumerable:!0,get:function(){return M(_).default}});var S=n(472);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return M(S).default}});var C=n(471);Object.defineProperty(t,"MergeStatus",{enumerable:!0,get:function(){return M(C).default}});var A=n(160);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return M(A).default}});var D=n(470);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return M(D).default}});var T=n(469);Object.defineProperty(t,"CounterLabel",{enumerable:!0,get:function(){return M(T).default}});var O=n(468);Object.defineProperty(t,"Flash",{enumerable:!0,get:function(){return M(O).default}});var P=n(159);function M(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return M(P).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(166));t.default=r.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";var r=n(53),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];e.exports=function(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(t.styleAliases||null),-1===a.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r; /*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see @@ -9,25 +9,25 @@ Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t1)for(var n=1;n=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){e.exports=function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,o=Object.getPrototypeOf,s=o&&o(Object);return function u(c,l,f){if("string"!=typeof l){if(s){var h=o(l);h&&h!==s&&u(c,h,f)}var p=r(l);i&&(p=p.concat(i(l)));for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&p(e),a=t&&p(t),o=i||a;if(e&&p(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var u=r[r.length-1];s="."===u||".."===u||""===u}else s=!1;for(var c=0,l=r.length;l>=0;l--){var f=r[l];"."===f?d(r,l):".."===f?(d(r,l),c++):c&&(d(r,l),c--)}if(!o)for(;c--;c)r.unshift("..");!o||""===r[0]||r[0]&&p(r[0])||r.unshift("");var h=r.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h},g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var y=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":g(t);if(r!==(void 0===n?"undefined":g(n)))return!1;if("object"===r){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var o=Object.keys(t),s=Object.keys(n);return o.length===s.length&&o.every(function(r){return e(t[r],n[r])})}return!1},v=function(e){return"/"===e.charAt(0)?e:"/"+e},b=function(e){return"/"===e.charAt(0)?e.substr(1):e},x=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},w=function(e,t){return x(e,t)?e.substr(t.length):e},E=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},k=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},_=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};h()(D,"Browser history needs a DOM");var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.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=e.forceRefresh,a=void 0!==i&&i,o=e.getUserConfirmation,s=void 0===o?P:o,u=e.keyLength,c=void 0===u?6:u,f=e.basename?E(v(e.basename)):"",p=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return l()(!f||x(a,f),'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 "'+f+'".'),f&&(a=w(a,f)),S(a,r,n)},d=function(){return Math.random().toString(36).substr(2,c)},m=A(),g=function(e){F(U,e),U.length=t.length,m.notifyListeners(U.location,U.action)},y=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||C(p(e.state))},b=function(){C(p(j()))},_=!1,C=function(e){_?(_=!1,g()):m.confirmTransitionTo(e,"POP",s,function(t){t?g({action:"POP",location:e}):L(e)})},L=function(e){var t=U.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(_=!0,I(i))},N=p(j()),R=[N.key],z=function(e){return f+k(e)},I=function(e){t.go(e)},B=0,H=function(e){1===(B+=e)?(T(window,"popstate",y),r&&T(window,"hashchange",b)):0===B&&(O(window,"popstate",y),r&&O(window,"hashchange",b))},V=!1,U={length:t.length,action:"POP",location:N,createHref:z,push:function(e,r){l()(!("object"===(void 0===e?"undefined":M(e))&&void 0!==e.state&&void 0!==r),"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=S(e,r,d(),U.location);m.confirmTransitionTo(i,"PUSH",s,function(e){if(e){var r=z(i),o=i.key,s=i.state;if(n)if(t.pushState({key:o,state:s},null,r),a)window.location.href=r;else{var u=R.indexOf(U.location.key),c=R.slice(0,-1===u?0:u+1);c.push(i.key),R=c,g({action:"PUSH",location:i})}else l()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,r){l()(!("object"===(void 0===e?"undefined":M(e))&&void 0!==e.state&&void 0!==r),"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=S(e,r,d(),U.location);m.confirmTransitionTo(i,"REPLACE",s,function(e){if(e){var r=z(i),o=i.key,s=i.state;if(n)if(t.replaceState({key:o,state:s},null,r),a)window.location.replace(r);else{var u=R.indexOf(U.location.key);-1!==u&&(R[u]=i.key),g({action:"REPLACE",location:i})}else l()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:I,goBack:function(){return I(-1)},goForward:function(){return I(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=m.setPrompt(e);return V||(H(1),V=!0),function(){return V&&(V=!1,H(-1)),t()}},listen:function(e){var t=m.appendListener(e);return H(1),function(){H(-1),t()}}};return U},N=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h()(D,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?P:r,a=e.hashType,o=void 0===a?"slash":a,s=e.basename?E(v(e.basename)):"",u=R[o],c=u.encodePath,f=u.decodePath,p=function(){var e=f(z());return l()(!s||x(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=w(e,s)),S(e)},d=A(),m=function(e){N(W,e),W.length=t.length,d.notifyListeners(W.location,W.action)},g=!1,y=null,b=function(){var e=z(),t=c(e);if(e!==t)I(t);else{var n=p(),r=W.location;if(!g&&C(r,n))return;if(y===k(n))return;y=null,_(n)}},_=function(e){g?(g=!1,m()):d.confirmTransitionTo(e,"POP",i,function(t){t?m({action:"POP",location:e}):M(e)})},M=function(e){var t=W.location,n=B.lastIndexOf(k(t));-1===n&&(n=0);var r=B.lastIndexOf(k(e));-1===r&&(r=0);var i=n-r;i&&(g=!0,H(i))},F=z(),j=c(F);F!==j&&I(j);var L=p(),B=[k(L)],H=function(e){l()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},V=0,U=function(e){1===(V+=e)?T(window,"hashchange",b):0===V&&O(window,"hashchange",b)},q=!1,W={length:t.length,action:"POP",location:L,createHref:function(e){return"#"+c(s+k(e))},push:function(e,t){l()(void 0===t,"Hash history cannot push state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=k(n),r=c(s+t);if(z()!==r){y=t,function(e){window.location.hash=e}(r);var i=B.lastIndexOf(k(W.location)),a=B.slice(0,-1===i?0:i+1);a.push(t),B=a,m({action:"PUSH",location:n})}else l()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),m()}})},replace:function(e,t){l()(void 0===t,"Hash history cannot replace state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=k(n),r=c(s+t);z()!==r&&(y=t,I(r));var i=B.indexOf(k(W.location));-1!==i&&(B[i]=t),m({action:"REPLACE",location:n})}})},go:H,goBack:function(){return H(-1)},goForward:function(){return H(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=d.setPrompt(e);return q||(U(1),q=!0),function(){return q&&(q=!1,U(-1)),t()}},listen:function(e){var t=d.appendListener(e);return U(1),function(){U(-1),t()}}};return W},H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,a=void 0===i?0:i,o=e.keyLength,s=void 0===o?6:o,u=A(),c=function(e){V(g,e),g.length=g.entries.length,u.notifyListeners(g.location,g.action)},f=function(){return Math.random().toString(36).substr(2,s)},h=U(a,0,r.length-1),p=r.map(function(e){return S(e,void 0,"string"==typeof e?f():e.key||f())}),d=k,m=function(e){var n=U(g.index+e,0,g.entries.length-1),r=g.entries[n];u.confirmTransitionTo(r,"POP",t,function(e){e?c({action:"POP",location:r,index:n}):c()})},g={length:p.length,action:"POP",location:p[h],index:h,entries:p,createHref:d,push:function(e,n){l()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.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 r=S(e,n,f(),g.location);u.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){l()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.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 r=S(e,n,f(),g.location);u.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(g.entries[g.index]=r,c({action:"REPLACE",location:r}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(e){var t=g.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return g},W=n(10),G=n.n(W),X=n(18),J=n.n(X),K=n(1),Y=n.n(K),$=Object.assign||function(e){for(var t=1;t may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){G()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?o.a.Children.only(e):null},t}(o.a.Component);Q.propTypes={history:Y.a.object.isRequired,children:Y.a.node},Q.contextTypes={router:Y.a.object},Q.childContextTypes={router:Y.a.object.isRequired};var ee=Q,te=ee;function ne(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var re=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(te,{history:this.history,children:this.props.children})},t}(o.a.Component);re.propTypes={basename:u.a.string,forceRefresh:u.a.bool,getUserConfirmation:u.a.func,keyLength:u.a.number,children:u.a.node};var ie=re;function ae(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var oe=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(te,{history:this.history,children:this.props.children})},t}(o.a.Component);oe.propTypes={basename:u.a.string,getUserConfirmation:u.a.func,hashType:u.a.oneOf(["hashbang","noslash","slash"]),children:u.a.node};var se=oe,ue=n(124),ce=n.n(ue),le=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);ce()(this.context.router,"You should not use outside a "),ce()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,a="string"==typeof t?S(t,null,null,i.location):t,s=i.createHref(a);return o.a.createElement("a",le({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(o.a.Component);pe.propTypes={onClick:u.a.func,target:u.a.string,replace:u.a.bool,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired,innerRef:u.a.oneOfType([u.a.string,u.a.func])},pe.defaultProps={replace:!1},pe.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired,createHref:u.a.func.isRequired}).isRequired}).isRequired};var de=pe;function me(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ge=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(ee,{history:this.history,children:this.props.children})},t}(o.a.Component);ge.propTypes={initialEntries:Y.a.array,initialIndex:Y.a.number,getUserConfirmation:Y.a.func,keyLength:Y.a.number,children:Y.a.node};var ye=ge,ve=n(77),be=n.n(ve),xe={},we=0,Ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,i=r.path,a=r.exact,o=void 0!==a&&a,s=r.strict,u=void 0!==s&&s,c=r.sensitive,l=void 0!==c&&c;if(null==i)return n;var f=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=xe[n]||(xe[n]={});if(r[e])return r[e];var i=[],a={re:be()(e,i,t),keys:i};return we<1e4&&(r[e]=a,we++),a}(i,{end:o,strict:u,sensitive:l}),h=f.re,p=f.keys,d=h.exec(e);if(!d)return null;var m=d[0],g=d.slice(1),y=e===m;return o&&!y?null:{path:i,url:"/"===i&&""===m?"/":m,isExact:y,params:p.reduce(function(e,t,n){return e[t.name]=g[n],e},{})}},ke=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var u=t.route,c=(r||u.location).pathname;return Ee(c,{path:i,strict:a,exact:o,sensitive:s},u.match)},t.prototype.componentWillMount=function(){G()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),G()(!(this.props.component&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored"),G()(!(this.props.render&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){G()(!(e.location&&!this.props.location),' 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.'),G()(!(!e.location&&this.props.location),' 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(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,i=t.render,a=this.context.router,s=a.history,u=a.route,c=a.staticContext,l={match:e,location:this.props.location||u.location,history:s,staticContext:c};return r?e?o.a.createElement(r,l):null:i?e?i(l):null:"function"==typeof n?n(l):n&&!Se(n)?o.a.Children.only(n):null},t}(o.a.Component);Ce.propTypes={computedMatch:Y.a.object,path:Y.a.string,exact:Y.a.bool,strict:Y.a.bool,sensitive:Y.a.bool,component:Y.a.func,render:Y.a.func,children:Y.a.oneOfType([Y.a.func,Y.a.node]),location:Y.a.object},Ce.contextTypes={router:Y.a.shape({history:Y.a.object.isRequired,route:Y.a.object.isRequired,staticContext:Y.a.object})},Ce.childContextTypes={router:Y.a.object.isRequired};var Ae=Ce,De=Ae,Te=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),p="object"===(void 0===t?"undefined":Oe(t))?t.pathname:t,d=p&&p.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return o.a.createElement(De,{path:d,exact:n,strict:r,location:i,children:function(e){var n=e.location,r=e.match,i=!!(l?l(r,n):r);return o.a.createElement(de,Te({to:t,className:i?[s,a].filter(function(e){return e}).join(" "):s,style:i?Te({},c,u):c,"aria-current":i&&f||null},h))}})};Pe.propTypes={to:de.propTypes.to,exact:u.a.bool,strict:u.a.bool,location:u.a.object,activeClassName:u.a.string,className:u.a.string,activeStyle:u.a.object,style:u.a.object,isActive:u.a.func,"aria-current":u.a.oneOf(["page","step","location","date","time","true"])},Pe.defaultProps={activeClassName:"active","aria-current":"page"};var Me=Pe;var Fe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(o.a.Component);Fe.propTypes={when:Y.a.bool,message:Y.a.oneOfType([Y.a.func,Y.a.string]).isRequired},Fe.defaultProps={when:!0},Fe.contextTypes={router:Y.a.shape({history:Y.a.shape({block:Y.a.func.isRequired}).isRequired}).isRequired};var je=Fe,Le={},Ne=0,Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=Le[t]||(Le[t]={});if(n[e])return n[e];var r=be.a.compile(e);return Ne<1e4&&(n[e]=r,Ne++),r}(e)(t,{pretty:!0})},ze=Object.assign||function(e){for(var t=1;t outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=S(e.to),n=S(this.props.to);C(t,n)?G()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Re(n,t.params):ze({},n,{pathname:Re(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(o.a.Component);Ie.propTypes={computedMatch:Y.a.object,push:Y.a.bool,from:Y.a.string,to:Y.a.oneOfType([Y.a.string,Y.a.object]).isRequired},Ie.defaultProps={push:!1},Ie.contextTypes={router:Y.a.shape({history:Y.a.shape({push:Y.a.func.isRequired,replace:Y.a.func.isRequired}).isRequired,staticContext:Y.a.object}).isRequired};var Be=Ie,He=Object.assign||function(e){for(var t=1;t",e)}},Xe=function(){},Je=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=Ue(e);return 0!==t.pathname.indexOf(n)?t:He({},t,{pathname:t.pathname.substr(n.length)})}(t,S(n)),push:this.handlePush,replace:this.handleReplace,go:Ge("go"),goBack:Ge("goBack"),goForward:Ge("goForward"),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(ee,He({},r,{history:i}))},t}(o.a.Component);Je.propTypes={basename:Y.a.string,context:Y.a.object.isRequired,location:Y.a.oneOfType([Y.a.string,Y.a.object])},Je.defaultProps={basename:"",location:"/"},Je.childContextTypes={router:Y.a.object.isRequired};var Ke=Je;var Ye=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){G()(!(e.location&&!this.props.location),' 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.'),G()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return o.a.Children.forEach(t,function(t){if(null==r&&o.a.isValidElement(t)){var a=t.props,s=a.path,u=a.exact,c=a.strict,l=a.sensitive,f=a.from,h=s||f;i=t,r=Ee(n.pathname,{path:h,exact:u,strict:c,sensitive:l},e.match)}}),r?o.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(o.a.Component);Ye.contextTypes={router:Y.a.shape({route:Y.a.object.isRequired}).isRequired},Ye.propTypes={children:Y.a.node,location:Y.a.object};var $e=Ye,Ze=Re,Qe=Ee,et=n(60),tt=n.n(et),nt=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return o.a.createElement(Ae,{children:function(t){return o.a.createElement(e,nt({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:Y.a.func},tt()(t,e)};n.d(t,"BrowserRouter",function(){return ie}),n.d(t,"HashRouter",function(){return se}),n.d(t,"Link",function(){return de}),n.d(t,"MemoryRouter",function(){return ye}),n.d(t,"NavLink",function(){return Me}),n.d(t,"Prompt",function(){return je}),n.d(t,"Redirect",function(){return Be}),n.d(t,"Route",function(){return De}),n.d(t,"Router",function(){return te}),n.d(t,"StaticRouter",function(){return Ke}),n.d(t,"Switch",function(){return $e}),n.d(t,"generatePath",function(){return Ze}),n.d(t,"matchPath",function(){return Qe}),n.d(t,"withRouter",function(){return rt})},function(e,t,n){"use strict";var r={};function i(e,t,n){var a,o,s,u,c,l="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&u<=57343){l+=encodeURIComponent(e[a]+e[a+1]),a++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[a]);return l}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict"; +!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t1)for(var n=1;n=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){e.exports=function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,o=Object.getPrototypeOf,s=o&&o(Object);return function u(c,l,f){if("string"!=typeof l){if(s){var h=o(l);h&&h!==s&&u(c,h,f)}var p=r(l);i&&(p=p.concat(i(l)));for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&p(e),a=t&&p(t),o=i||a;if(e&&p(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var u=r[r.length-1];s="."===u||".."===u||""===u}else s=!1;for(var c=0,l=r.length;l>=0;l--){var f=r[l];"."===f?d(r,l):".."===f?(d(r,l),c++):c&&(d(r,l),c--)}if(!o)for(;c--;c)r.unshift("..");!o||""===r[0]||r[0]&&p(r[0])||r.unshift("");var h=r.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h},g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var y=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":g(t);if(r!==(void 0===n?"undefined":g(n)))return!1;if("object"===r){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var o=Object.keys(t),s=Object.keys(n);return o.length===s.length&&o.every(function(r){return e(t[r],n[r])})}return!1},v=function(e){return"/"===e.charAt(0)?e:"/"+e},b=function(e){return"/"===e.charAt(0)?e.substr(1):e},x=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},w=function(e,t){return x(e,t)?e.substr(t.length):e},E=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},k=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},_=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};h()(D,"Browser history needs a DOM");var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.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=e.forceRefresh,a=void 0!==i&&i,o=e.getUserConfirmation,s=void 0===o?P:o,u=e.keyLength,c=void 0===u?6:u,f=e.basename?E(v(e.basename)):"",p=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return l()(!f||x(a,f),'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 "'+f+'".'),f&&(a=w(a,f)),S(a,r,n)},d=function(){return Math.random().toString(36).substr(2,c)},m=A(),g=function(e){F(U,e),U.length=t.length,m.notifyListeners(U.location,U.action)},y=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||C(p(e.state))},b=function(){C(p(j()))},_=!1,C=function(e){_?(_=!1,g()):m.confirmTransitionTo(e,"POP",s,function(t){t?g({action:"POP",location:e}):L(e)})},L=function(e){var t=U.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(_=!0,I(i))},N=p(j()),R=[N.key],z=function(e){return f+k(e)},I=function(e){t.go(e)},B=0,H=function(e){1===(B+=e)?(T(window,"popstate",y),r&&T(window,"hashchange",b)):0===B&&(O(window,"popstate",y),r&&O(window,"hashchange",b))},V=!1,U={length:t.length,action:"POP",location:N,createHref:z,push:function(e,r){l()(!("object"===(void 0===e?"undefined":M(e))&&void 0!==e.state&&void 0!==r),"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=S(e,r,d(),U.location);m.confirmTransitionTo(i,"PUSH",s,function(e){if(e){var r=z(i),o=i.key,s=i.state;if(n)if(t.pushState({key:o,state:s},null,r),a)window.location.href=r;else{var u=R.indexOf(U.location.key),c=R.slice(0,-1===u?0:u+1);c.push(i.key),R=c,g({action:"PUSH",location:i})}else l()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,r){l()(!("object"===(void 0===e?"undefined":M(e))&&void 0!==e.state&&void 0!==r),"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=S(e,r,d(),U.location);m.confirmTransitionTo(i,"REPLACE",s,function(e){if(e){var r=z(i),o=i.key,s=i.state;if(n)if(t.replaceState({key:o,state:s},null,r),a)window.location.replace(r);else{var u=R.indexOf(U.location.key);-1!==u&&(R[u]=i.key),g({action:"REPLACE",location:i})}else l()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:I,goBack:function(){return I(-1)},goForward:function(){return I(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=m.setPrompt(e);return V||(H(1),V=!0),function(){return V&&(V=!1,H(-1)),t()}},listen:function(e){var t=m.appendListener(e);return H(1),function(){H(-1),t()}}};return U},N=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h()(D,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?P:r,a=e.hashType,o=void 0===a?"slash":a,s=e.basename?E(v(e.basename)):"",u=R[o],c=u.encodePath,f=u.decodePath,p=function(){var e=f(z());return l()(!s||x(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=w(e,s)),S(e)},d=A(),m=function(e){N(W,e),W.length=t.length,d.notifyListeners(W.location,W.action)},g=!1,y=null,b=function(){var e=z(),t=c(e);if(e!==t)I(t);else{var n=p(),r=W.location;if(!g&&C(r,n))return;if(y===k(n))return;y=null,_(n)}},_=function(e){g?(g=!1,m()):d.confirmTransitionTo(e,"POP",i,function(t){t?m({action:"POP",location:e}):M(e)})},M=function(e){var t=W.location,n=B.lastIndexOf(k(t));-1===n&&(n=0);var r=B.lastIndexOf(k(e));-1===r&&(r=0);var i=n-r;i&&(g=!0,H(i))},F=z(),j=c(F);F!==j&&I(j);var L=p(),B=[k(L)],H=function(e){l()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},V=0,U=function(e){1===(V+=e)?T(window,"hashchange",b):0===V&&O(window,"hashchange",b)},q=!1,W={length:t.length,action:"POP",location:L,createHref:function(e){return"#"+c(s+k(e))},push:function(e,t){l()(void 0===t,"Hash history cannot push state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=k(n),r=c(s+t);if(z()!==r){y=t,function(e){window.location.hash=e}(r);var i=B.lastIndexOf(k(W.location)),a=B.slice(0,-1===i?0:i+1);a.push(t),B=a,m({action:"PUSH",location:n})}else l()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),m()}})},replace:function(e,t){l()(void 0===t,"Hash history cannot replace state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=k(n),r=c(s+t);z()!==r&&(y=t,I(r));var i=B.indexOf(k(W.location));-1!==i&&(B[i]=t),m({action:"REPLACE",location:n})}})},go:H,goBack:function(){return H(-1)},goForward:function(){return H(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=d.setPrompt(e);return q||(U(1),q=!0),function(){return q&&(q=!1,U(-1)),t()}},listen:function(e){var t=d.appendListener(e);return U(1),function(){U(-1),t()}}};return W},H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,a=void 0===i?0:i,o=e.keyLength,s=void 0===o?6:o,u=A(),c=function(e){V(g,e),g.length=g.entries.length,u.notifyListeners(g.location,g.action)},f=function(){return Math.random().toString(36).substr(2,s)},h=U(a,0,r.length-1),p=r.map(function(e){return S(e,void 0,"string"==typeof e?f():e.key||f())}),d=k,m=function(e){var n=U(g.index+e,0,g.entries.length-1),r=g.entries[n];u.confirmTransitionTo(r,"POP",t,function(e){e?c({action:"POP",location:r,index:n}):c()})},g={length:p.length,action:"POP",location:p[h],index:h,entries:p,createHref:d,push:function(e,n){l()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.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 r=S(e,n,f(),g.location);u.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){l()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.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 r=S(e,n,f(),g.location);u.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(g.entries[g.index]=r,c({action:"REPLACE",location:r}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(e){var t=g.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return g},W=n(10),G=n.n(W),X=n(18),J=n.n(X),K=n(1),Y=n.n(K),$=Object.assign||function(e){for(var t=1;t may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){G()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?o.a.Children.only(e):null},t}(o.a.Component);Q.propTypes={history:Y.a.object.isRequired,children:Y.a.node},Q.contextTypes={router:Y.a.object},Q.childContextTypes={router:Y.a.object.isRequired};var ee=Q,te=ee;function ne(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var re=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(te,{history:this.history,children:this.props.children})},t}(o.a.Component);re.propTypes={basename:u.a.string,forceRefresh:u.a.bool,getUserConfirmation:u.a.func,keyLength:u.a.number,children:u.a.node};var ie=re;function ae(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var oe=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(te,{history:this.history,children:this.props.children})},t}(o.a.Component);oe.propTypes={basename:u.a.string,getUserConfirmation:u.a.func,hashType:u.a.oneOf(["hashbang","noslash","slash"]),children:u.a.node};var se=oe,ue=n(124),ce=n.n(ue),le=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);ce()(this.context.router,"You should not use outside a "),ce()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,a="string"==typeof t?S(t,null,null,i.location):t,s=i.createHref(a);return o.a.createElement("a",le({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(o.a.Component);pe.propTypes={onClick:u.a.func,target:u.a.string,replace:u.a.bool,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired,innerRef:u.a.oneOfType([u.a.string,u.a.func])},pe.defaultProps={replace:!1},pe.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired,createHref:u.a.func.isRequired}).isRequired}).isRequired};var de=pe;function me(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ge=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(ee,{history:this.history,children:this.props.children})},t}(o.a.Component);ge.propTypes={initialEntries:Y.a.array,initialIndex:Y.a.number,getUserConfirmation:Y.a.func,keyLength:Y.a.number,children:Y.a.node};var ye=ge,ve=n(77),be=n.n(ve),xe={},we=0,Ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,i=r.path,a=r.exact,o=void 0!==a&&a,s=r.strict,u=void 0!==s&&s,c=r.sensitive,l=void 0!==c&&c;if(null==i)return n;var f=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=xe[n]||(xe[n]={});if(r[e])return r[e];var i=[],a={re:be()(e,i,t),keys:i};return we<1e4&&(r[e]=a,we++),a}(i,{end:o,strict:u,sensitive:l}),h=f.re,p=f.keys,d=h.exec(e);if(!d)return null;var m=d[0],g=d.slice(1),y=e===m;return o&&!y?null:{path:i,url:"/"===i&&""===m?"/":m,isExact:y,params:p.reduce(function(e,t,n){return e[t.name]=g[n],e},{})}},ke=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var u=t.route,c=(r||u.location).pathname;return Ee(c,{path:i,strict:a,exact:o,sensitive:s},u.match)},t.prototype.componentWillMount=function(){G()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),G()(!(this.props.component&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored"),G()(!(this.props.render&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){G()(!(e.location&&!this.props.location),' 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.'),G()(!(!e.location&&this.props.location),' 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(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,i=t.render,a=this.context.router,s=a.history,u=a.route,c=a.staticContext,l={match:e,location:this.props.location||u.location,history:s,staticContext:c};return r?e?o.a.createElement(r,l):null:i?e?i(l):null:"function"==typeof n?n(l):n&&!Se(n)?o.a.Children.only(n):null},t}(o.a.Component);Ce.propTypes={computedMatch:Y.a.object,path:Y.a.string,exact:Y.a.bool,strict:Y.a.bool,sensitive:Y.a.bool,component:Y.a.func,render:Y.a.func,children:Y.a.oneOfType([Y.a.func,Y.a.node]),location:Y.a.object},Ce.contextTypes={router:Y.a.shape({history:Y.a.object.isRequired,route:Y.a.object.isRequired,staticContext:Y.a.object})},Ce.childContextTypes={router:Y.a.object.isRequired};var Ae=Ce,De=Ae,Te=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),p="object"===(void 0===t?"undefined":Oe(t))?t.pathname:t,d=p&&p.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return o.a.createElement(De,{path:d,exact:n,strict:r,location:i,children:function(e){var n=e.location,r=e.match,i=!!(l?l(r,n):r);return o.a.createElement(de,Te({to:t,className:i?[s,a].filter(function(e){return e}).join(" "):s,style:i?Te({},c,u):c,"aria-current":i&&f||null},h))}})};Pe.propTypes={to:de.propTypes.to,exact:u.a.bool,strict:u.a.bool,location:u.a.object,activeClassName:u.a.string,className:u.a.string,activeStyle:u.a.object,style:u.a.object,isActive:u.a.func,"aria-current":u.a.oneOf(["page","step","location","date","time","true"])},Pe.defaultProps={activeClassName:"active","aria-current":"page"};var Me=Pe;var Fe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(o.a.Component);Fe.propTypes={when:Y.a.bool,message:Y.a.oneOfType([Y.a.func,Y.a.string]).isRequired},Fe.defaultProps={when:!0},Fe.contextTypes={router:Y.a.shape({history:Y.a.shape({block:Y.a.func.isRequired}).isRequired}).isRequired};var je=Fe,Le={},Ne=0,Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=Le[t]||(Le[t]={});if(n[e])return n[e];var r=be.a.compile(e);return Ne<1e4&&(n[e]=r,Ne++),r}(e)(t,{pretty:!0})},ze=Object.assign||function(e){for(var t=1;t outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=S(e.to),n=S(this.props.to);C(t,n)?G()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Re(n,t.params):ze({},n,{pathname:Re(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(o.a.Component);Ie.propTypes={computedMatch:Y.a.object,push:Y.a.bool,from:Y.a.string,to:Y.a.oneOfType([Y.a.string,Y.a.object]).isRequired},Ie.defaultProps={push:!1},Ie.contextTypes={router:Y.a.shape({history:Y.a.shape({push:Y.a.func.isRequired,replace:Y.a.func.isRequired}).isRequired,staticContext:Y.a.object}).isRequired};var Be=Ie,He=Object.assign||function(e){for(var t=1;t",e)}},Xe=function(){},Je=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=Ue(e);return 0!==t.pathname.indexOf(n)?t:He({},t,{pathname:t.pathname.substr(n.length)})}(t,S(n)),push:this.handlePush,replace:this.handleReplace,go:Ge("go"),goBack:Ge("goBack"),goForward:Ge("goForward"),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(ee,He({},r,{history:i}))},t}(o.a.Component);Je.propTypes={basename:Y.a.string,context:Y.a.object.isRequired,location:Y.a.oneOfType([Y.a.string,Y.a.object])},Je.defaultProps={basename:"",location:"/"},Je.childContextTypes={router:Y.a.object.isRequired};var Ke=Je;var Ye=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){G()(!(e.location&&!this.props.location),' 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.'),G()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return o.a.Children.forEach(t,function(t){if(null==r&&o.a.isValidElement(t)){var a=t.props,s=a.path,u=a.exact,c=a.strict,l=a.sensitive,f=a.from,h=s||f;i=t,r=Ee(n.pathname,{path:h,exact:u,strict:c,sensitive:l},e.match)}}),r?o.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(o.a.Component);Ye.contextTypes={router:Y.a.shape({route:Y.a.object.isRequired}).isRequired},Ye.propTypes={children:Y.a.node,location:Y.a.object};var $e=Ye,Ze=Re,Qe=Ee,et=n(60),tt=n.n(et),nt=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return o.a.createElement(Ae,{children:function(t){return o.a.createElement(e,nt({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:Y.a.func},tt()(t,e)};n.d(t,"BrowserRouter",function(){return ie}),n.d(t,"HashRouter",function(){return se}),n.d(t,"Link",function(){return de}),n.d(t,"MemoryRouter",function(){return ye}),n.d(t,"NavLink",function(){return Me}),n.d(t,"Prompt",function(){return je}),n.d(t,"Redirect",function(){return Be}),n.d(t,"Route",function(){return De}),n.d(t,"Router",function(){return te}),n.d(t,"StaticRouter",function(){return Ke}),n.d(t,"Switch",function(){return $e}),n.d(t,"generatePath",function(){return Ze}),n.d(t,"matchPath",function(){return Qe}),n.d(t,"withRouter",function(){return rt})},function(e,t,n){"use strict";var r={};function i(e,t,n){var a,o,s,u,c,l="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&u<=57343){l+=encodeURIComponent(e[a]+e[a+1]),a++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[a]);return l}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict"; /*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. - */var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=s;var r=n(138),i=!0,a="skip",o=!1;function s(e,t,n,s){function u(e,c,l){var f;return c=c||(l?0:null),t&&e.type!==t&&!r(t,e,c,l||null)||(f=n(e,c,l||null)),f===o?f:e.children&&f!==a&&function(e,t){var n,r,a=s?-1:1,c=(s?e.length:-1)+a;for(;c>-1&&c=48&&t<=57}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(42);e.exports=r.DEFAULT=new r({include:[n(51)],explicit:[n(421),n(420),n(419)]})},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";const r=n(155),i=n(91);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},function(e,t,n){"use strict"; + */var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=s;var r=n(139),i=!0,a="skip",o=!1;function s(e,t,n,s){function u(e,c,l){var f;return c=c||(l?0:null),t&&e.type!==t&&!r(t,e,c,l||null)||(f=n(e,c,l||null)),f===o?f:e.children&&f!==a&&function(e,t){var n,r,a=s?-1:1,c=(s?e.length:-1)+a;for(;c>-1&&c=48&&t<=57}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(43);e.exports=r.DEFAULT=new r({include:[n(52)],explicit:[n(421),n(420),n(419)]})},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";const r=n(156),i=n(90);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u65535&&(M+=l((D-=65536)>>>10|55296),D=56320|1023&D),D=M+l(D))):N!==p&&O(w,B)),D?(se(),z=ae(),Q=H-1,te+=H-L+1,ie.push(D),(I=ae()).offset++,W&&W.call(J,D,{start:z,end:I},e.slice(L-1,H)),z=I):(s=e.slice(L-1,H),re+=s,te+=s.length,Q=H-1)}return ie.join("");function ae(){return{line:ne,column:te,offset:Q+(Y.offset||0)}}function oe(t){return e.charAt(t)}function se(){re&&(ie.push(re),q&&q.call(X,re,{start:z,end:ae()}),re="")}}(e,s)};var c={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",d="hexadecimal",m="decimal",g={};g[d]=16,g[m]=10;var y={};y[p]=u,y[m]=o,y[d]=s;var v=1,b=2,x=3,w=4,E=5,k=6,_=7,S={};function C(e){return e>=55296&&e<=57343||e>1114111}function A(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}S[v]="Named character references must be terminated by a semicolon",S[b]="Numeric character references must be terminated by a semicolon",S[x]="Named character references cannot be empty",S[w]="Numeric character references cannot be empty",S[E]="Named character references must be known",S[k]="Numeric character references cannot be disallowed",S[_]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=t.cartesianProduct=t.extendDefaultProps=t.displayObj=t.toSrcPath=t.titleize=t.isIndex=t.introPage=t.log=void 0;var r=c(n(71)),i=c(n(98)),a=c(n(7)),o=c(n(166)),s=c(n(29)),u=n(198);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return e.join(".")},f=function(e){return"object"===(void 0===e?"undefined":(0,r.default)(e))&&!function(e){return Array.isArray(e)}(e)};t.log=function(t){return e.env.VERBOSE&&console.log(t)},t.introPage=function(e){return e[ROOT_LEVEL_FILE]&&e[ROOT_LEVEL_FILE].find(function(e){return"introduction"===e.name})},t.isIndex=function(e){return/index\.md/.test(e)},t.titleize=function(e){return e.replace(/(?:^|\s|-)\S/g,function(e){return e.toUpperCase()}).replace(/(-|_)/g," ")},t.toSrcPath=function(e,t){return t.replace(/\md$/,"js").replace(e,"src").replace("components/","")},t.displayObj=function(e){return(0,s.default)(e).map(function(t){return t+"="+e[t]}).join(",")},t.extendDefaultProps=function(e,t){e.defaultProps=(0,o.default)({},e.defaultProps||{},t)},t.cartesianProduct=function(e){e.theme;var t=(0,a.default)(e,["theme"]),n=(0,u.reduce)((0,u.pipe)(u.xprod,(0,u.map)(u.unnest)),[[]]),r=(0,s.default)(t).reduce(function(e,n){return e.concat([function(e){return Array.isArray(e)?e:[e]}(t[n]).map(function(e){return(0,i.default)({},n,e)})])},[]);return(0,u.map)(u.mergeAll,n(r))},t.flatten=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,s.default)(t).reduce(function(r,i){var a=t[i],s=n.concat([i]);return function(e){return"string"==typeof e}(a)?(r[l(s)]=a,r):f(a)?(0,o.default)(r,e(a,s)):(a.forEach(function(e,t){var n=l(s.concat([t]));r[n]=e}),r)},{})}}).call(this,n(54))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=!n(86)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){var n=Object.prototype.toString;function r(e){return e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return function(e,t){return"GeneratorFunction"===r(e)}(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(e,t,n){"use strict";(function(e){const r=n(416),i=n(90);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=(e=>"buffer"===i(e)),t.isObject=(e=>"object"===i(e)),t.toBuffer=function(t){return"string"==typeof t?e.from(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(92).Buffer)},function(e,t,n){"use strict";(function(e){ +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u65535&&(M+=l((D-=65536)>>>10|55296),D=56320|1023&D),D=M+l(D))):N!==p&&O(w,B)),D?(se(),z=ae(),Q=H-1,te+=H-L+1,ie.push(D),(I=ae()).offset++,W&&W.call(J,D,{start:z,end:I},e.slice(L-1,H)),z=I):(s=e.slice(L-1,H),re+=s,te+=s.length,Q=H-1)}return ie.join("");function ae(){return{line:ne,column:te,offset:Q+(Y.offset||0)}}function oe(t){return e.charAt(t)}function se(){re&&(ie.push(re),q&&q.call(X,re,{start:z,end:ae()}),re="")}}(e,s)};var c={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",d="hexadecimal",m="decimal",g={};g[d]=16,g[m]=10;var y={};y[p]=u,y[m]=o,y[d]=s;var v=1,b=2,x=3,w=4,E=5,k=6,_=7,S={};function C(e){return e>=55296&&e<=57343||e>1114111}function A(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}S[v]="Named character references must be terminated by a semicolon",S[b]="Numeric character references must be terminated by a semicolon",S[x]="Named character references cannot be empty",S[w]="Numeric character references cannot be empty",S[E]="Named character references must be known",S[k]="Numeric character references cannot be disallowed",S[_]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=t.cartesianProduct=t.extendDefaultProps=t.displayObj=t.toSrcPath=t.titleize=t.isIndex=t.introPage=t.log=void 0;var r=c(n(71)),i=c(n(97)),a=c(n(7)),o=c(n(166)),s=c(n(19)),u=n(198);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return e.join(".")},f=function(e){return"object"===(void 0===e?"undefined":(0,r.default)(e))&&!function(e){return Array.isArray(e)}(e)};t.log=function(t){return e.env.VERBOSE&&console.log(t)},t.introPage=function(e){return e[ROOT_LEVEL_FILE]&&e[ROOT_LEVEL_FILE].find(function(e){return"introduction"===e.name})},t.isIndex=function(e){return/index\.md/.test(e)},t.titleize=function(e){return e.replace(/(?:^|\s|-)\S/g,function(e){return e.toUpperCase()}).replace(/(-|_)/g," ")},t.toSrcPath=function(e,t){return t.replace(/\md$/,"js").replace(e,"src").replace("components/","")},t.displayObj=function(e){return(0,s.default)(e).map(function(t){return t+"="+e[t]}).join(",")},t.extendDefaultProps=function(e,t){e.defaultProps=(0,o.default)({},e.defaultProps||{},t)},t.cartesianProduct=function(e){e.theme;var t=(0,a.default)(e,["theme"]),n=(0,u.reduce)((0,u.pipe)(u.xprod,(0,u.map)(u.unnest)),[[]]),r=(0,s.default)(t).reduce(function(e,n){return e.concat([function(e){return Array.isArray(e)?e:[e]}(t[n]).map(function(e){return(0,i.default)({},n,e)})])},[]);return(0,u.map)(u.mergeAll,n(r))},t.flatten=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,s.default)(t).reduce(function(r,i){var a=t[i],s=n.concat([i]);return function(e){return"string"==typeof e}(a)?(r[l(s)]=a,r):f(a)?(0,o.default)(r,e(a,s)):(a.forEach(function(e,t){var n=l(s.concat([t]));r[n]=e}),r)},{})}}).call(this,n(54))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=!n(85)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){var n=Object.prototype.toString;function r(e){return e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return function(e,t){return"GeneratorFunction"===r(e)}(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(e,t,n){"use strict";(function(e){const r=n(416),i=n(89);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=(e=>"buffer"===i(e)),t.isObject=(e=>"object"===i(e)),t.toBuffer=function(t){return"string"==typeof t?e.from(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(91).Buffer)},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n(427),i=n(426),a=n(425);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;as&&(n=s-u),a=n;a>=0;a--){for(var f=!0,h=0;hi&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(l=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function F(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function L(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,a){return a||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):F(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):F(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):F(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):F(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(68))},function(e,t,n){"use strict";var r=n(42);e.exports=new r({explicit:[n(437),n(436),n(435)]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(23)),i=c(n(22)),a=c(n(21)),o=c(n(20)),s=c(n(19)),u=c(n(0));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){(0,i.default)(this,t);var e=(0,o.default)(this,(t.__proto__||(0,r.default)(t)).call(this));return e.state={},e}return(0,s.default)(t,e),(0,a.default)(t,[{key:"componentDidCatch",value:function(e){this.setState({err:e})}},{key:"componentWillReceiveProps",value:function(e){e.children!==this.props.children&&this.setState({err:null})}},{key:"render",value:function(){var e=this.state.err;return e?u.default.createElement("pre",null,e.toString()):this.props.children}}]),t}(u.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(n(23)),i=h(n(22)),a=h(n(21)),o=h(n(20)),s=h(n(19)),u=h(n(0)),c=h(n(35)),l=h(n(165)),f=n(453);h(n(28));function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){(0,i.default)(this,t);var e=(0,o.default)(this,(t.__proto__||(0,r.default)(t)).call(this));return e.doc=null,e.win=null,e.div=null,e.getSrc=function(){var t=e.props,n=t.zoom,r=void 0===n?1:n,i=t.css,a=void 0===i?"":i,o=t.head,s="";return o&&(s=(0,f.renderToStaticMarkup)(o)),""+s+"\n
"},e.onLoad=function(t){e.doc=e.root.contentDocument,e.win=e.root.contentWindow,e.update(e.props)},e.update=function(t){var n=t.render,r=t.children;if(e.doc){var i=e.doc.getElementById("app");"function"==typeof n?l.default.render(n({document:e.doc,window:e.win}),i):l.default.render(r,i)}},e}return(0,s.default)(t,e),(0,a.default)(t,[{key:"componentWillReceiveProps",value:function(e){e.children!==this.props.children&&this.update(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.height,i=t.zoom,a=t.children;return u.default.createElement("iframe",{ref:function(t){return e.root=t},style:{width:n,height:r,zoom:i,pointerEvents:"none",display:"block",margin:0,overflow:"scroll",backgroundColor:"#fff",opacity:a?1:.25,border:0},srcDoc:this.getSrc(),scrolling:"yes",onLoad:this.onLoad})}}]),t}(u.default.Component);p.propTypes={head:c.default.node,zoom:c.default.number,width:c.default.string,height:c.default.string,css:c.default.string},p.defaultProps={zoom:1,width:"100%",height:"100%",css:"body{font-family:system-ui,sans-serif;line-height:1.5}"},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.complexStyle=t.themeGet=t.pseudoStyle=t.responsiveStyle=t.style=t.getValue=t.merge=t.media=t.dec=t.breaks=t.fallbackTheme=t.mq=t.get=t.getWidth=t.arr=t.neg=t.px=t.num=t.is=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t1?p(e):100*e+"%"},t.get=function(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e)||n}),g=t.mq=function(e){return"@media screen and (min-width: "+p(e)+")"},y=t.fallbackTheme=function(e){return i({},s.default,m(e,"theme"))},v=t.breaks=function(e){return[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(a(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===o(e,-1);return(e=n(a(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,u=0;u0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(25),i=n(556),a=n(110),o=n(112)("IE_PROTO"),s=function(){},u=function(){var e,t=n(116)("iframe"),r=a.length;for(t.style.display="none",n(181).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" \ No newline at end of file + }
color
bg={color}
borderColor
white
white
gray
black
gray-light
white
gray
black
gray-light
gray
white
gray
black
gray
gray-dark
white
gray
black
gray-dark
purple
white
gray
black
purple
blue
white
gray
black
blue
green
white
gray
black
green
yellow
white
gray
black
yellow
red
white
gray
black
red
purple-light
white
gray
black
blue-light
white
gray
black
blue-light
green-light
white
gray
black
green-light
yellow-light
white
gray
black
red-light
white
gray
black
red-light
This is a box
This is a box with padding.
This is a box with shadow.
This is a box with a medium shadow.
This is a box with a large shadow.
This is a box with an extra-large shadow.
This is a box with a green border.
a_new_feature_branch
location='top'
location='top-left'
location='top-right'
location='right'
location='right-top'
location='right-bottom'
location='bottom'
location='bottom-left'
location='bottom-right'
location='left'
location='left-top'
location='left-bottom'

CaretBox

CaretBox

gray.0

#fafbfc

gray.1

#f6f8fa

gray.2

#e1e4e8

gray.3

#d1d5da

gray.4

#959da5

gray.5

#6a737d

gray.6

#586069

gray.7

#444d56

gray.8

#2f363d

gray.9

#24292e

blue.0

#f1f8ff

blue.1

#dbedff

blue.2

#c8e1ff

blue.3

#79b8ff

blue.4

#2188ff

blue.5

#0366d6

blue.6

#005cc5

blue.7

#044289

blue.8

#032f62

blue.9

#05264c

green.0

#f0fff4

green.1

#dcffe4

green.2

#bef5cb

green.3

#85e89d

green.4

#34d058

green.5

#28a745

green.6

#22863a

green.7

#176f2c

green.8

#165c26

green.9

#144620

purple.0

#f5f0ff

purple.1

#e6dcfd

purple.2

#d1bcf9

purple.3

#b392f0

purple.4

#8a63d2

purple.5

#6f42c1

purple.6

#5a32a3

purple.7

#4c2889

purple.8

#3a1d6e

purple.9

#29134e

yellow.0

#fffdef

yellow.1

#fffbdd

yellow.2

#fff5b1

yellow.3

#ffea7f

yellow.4

#ffdf5d

yellow.5

#ffd33d

yellow.6

#f9c513

yellow.7

#dbab09

yellow.8

#b08800

yellow.9

#735c0f

orange.0

#fff8f2

orange.1

#ffebda

orange.2

#ffd1ac

orange.3

#ffab70

orange.4

#fb8532

orange.5

#f66a0a

orange.6

#e36209

orange.7

#d15704

orange.8

#c24e00

orange.9

#a04100
121313

With static children

Click me

This should show and hide

With children as a function

Show

This should show and hide

With render prop

hi

Dropdown Primary

  • Item 1
  • Item 2
  • Item 3

Dropdown

  • Item 1
  • Item 2
  • Item 3

Dropdown with title

Options
  • Item 1
  • Item 2
  • Item 3

With data prop

With DonutSlice children

With custom fill colors

Flash
Flash yellow
Flash red
Flash green
Flash full

FlexContainer

Item 1
Item 2
Item 3
Item 4
Item 5

FlexContainer + FlexItems set to flexAuto

Item 1
Item 2
Item 3

FlexContainer + FlexItems with first item set to alignSelf='center'

Item 1
Item 2
Item 3

FlexContainer + FlexItems using tag prop set to "p"

Item 1

Item 2

Item 3

fontSize 5
fontSize 4
fontSize 3
fontSize 2
fontSize 1
fontSize 0

Input

Input Sizes

Block input

Default Heading

With fontSize=0

With fontSize=1

With fontSize=2

With fontSize=3

With fontSize=4

With fontSize=5

With fontSize=00-light

With fontSize=0-light

With fontSize=1-light

With fontSize=2-light

With fontSize=3-light

Default labelDarker gray labelOrange labelGreen label
Default outline labelGreen outline label
Open
Closed
Merged

By state (Octicons built in)

Unknown
Open
Closed
Merged
Reopened

By color

Invalid
Green
Red
Purple

Small, by state

UnknownOpenClosedMergedReopened

Small, by color

InvalidGreenRedPurpleCustom Octicon
Text
Text bold
Text green
Text lineHeight 'condensed'
Text fontSize 4
Text padding 4
Text with a tooltip

Directions

Tooltip direction=n
Tooltip direction=ne
Tooltip direction=e
Tooltip direction=se
Tooltip direction=s
Tooltip direction=sw
Tooltip direction=w
Tooltip direction=nw

Alignment

Tooltip align left

Word wrap

Word wrapping tooltip

No Delay

Text with a tooltip
\ No newline at end of file diff --git a/docs/demos/index.html b/docs/demos/index.html index f0c9acb1ea0..a7803e17326 100644 --- a/docs/demos/index.html +++ b/docs/demos/index.html @@ -9,4 +9,4 @@ margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; line-height: 1.5; - }
  • Create a merge commit

    All commits from this branch will be added to the base branch via a merge commit.

  • Squash and merge

    The from this branch will be combined into one commit in the base branch.

  • Rebase and merge

    The from this branch will be rebased and added to the base branch

<MergeButton scheme='primary'/>
\ No newline at end of file + }
  • Create a merge commit

    All commits from this branch will be added to the base branch via a merge commit.

  • Squash and merge

    The from this branch will be combined into one commit in the base branch.

  • Rebase and merge

    The from this branch will be rebased and added to the base branch

<MergeButton scheme='primary'/>
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 5fa36eebac4..96d5810e150 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,4 +9,4 @@ margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; line-height: 1.5; - }
bg='white'
white
gray
black
bg='gray-dark'
white
gray
black
bg='gray'
white
gray
black
bg='gray-light'
white
gray
black
bg='blue'
white
gray
black
bg='blue-light'
white
gray
black
bg='green'
white
gray
black
bg='green-light'
white
gray
black
bg='red'
white
gray
black
bg='red-light'
white
gray
black
bg='yellow'
white
gray
black
bg='yellow-light'
white
gray
black
bg='purple'
white
gray
black
bg='purple-light'
white
gray
black
This is a box
This is a box with padding.
This is a box with shadow.
This is a box with a medium shadow.
This is a box with a large shadow.
This is a box with an extra-large shadow.
This is a box with a green border.
a_new_feature_branch
location='top'
location='top-left'
location='top-right'
location='right'
location='right-top'
location='right-bottom'
location='bottom'
location='bottom-left'
location='bottom-right'
location='left'
location='left-top'
location='left-bottom'

CaretBox

CaretBox

gray.0

#fafbfc

gray.1

#f6f8fa

gray.2

#e1e4e8

gray.3

#d1d5da

gray.4

#959da5

gray.5

#6a737d

gray.6

#586069

gray.7

#444d56

gray.8

#2f363d

gray.9

#24292e

blue.0

#f1f8ff

blue.1

#dbedff

blue.2

#c8e1ff

blue.3

#79b8ff

blue.4

#2188ff

blue.5

#0366d6

blue.6

#005cc5

blue.7

#044289

blue.8

#032f62

blue.9

#05264c

green.0

#f0fff4

green.1

#dcffe4

green.2

#bef5cb

green.3

#85e89d

green.4

#34d058

green.5

#28a745

green.6

#22863a

green.7

#176f2c

green.8

#165c26

green.9

#144620

purple.0

#f5f0ff

purple.1

#e6dcfd

purple.2

#d1bcf9

purple.3

#b392f0

purple.4

#8a63d2

purple.5

#6f42c1

purple.6

#5a32a3

purple.7

#4c2889

purple.8

#3a1d6e

purple.9

#29134e

yellow.0

#fffdef

yellow.1

#fffbdd

yellow.2

#fff5b1

yellow.3

#ffea7f

yellow.4

#ffdf5d

yellow.5

#ffd33d

yellow.6

#f9c513

yellow.7

#dbab09

yellow.8

#b08800

yellow.9

#735c0f

orange.0

#fff8f2

orange.1

#ffebda

orange.2

#ffd1ac

orange.3

#ffab70

orange.4

#fb8532

orange.5

#f66a0a

orange.6

#e36209

orange.7

#d15704

orange.8

#c24e00

orange.9

#a04100
121313

With static children

Click me

This should show and hide

With children as a function

Show

This should show and hide

With render prop

hi

Dropdown Primary

  • Item 1
  • Item 2
  • Item 3

Dropdown

  • Item 1
  • Item 2
  • Item 3

Dropdown with title

Options
  • Item 1
  • Item 2
  • Item 3

With data prop

With DonutSlice children

With custom fill colors

Flash
Flash yellow
Flash red
Flash green
Flash full

FlexContainer

Item 1
Item 2
Item 3
Item 4
Item 5

FlexContainer + FlexItems set to flexAuto

Item 1
Item 2
Item 3

FlexContainer + FlexItems with first item set to alignSelf='center'

Item 1
Item 2
Item 3

FlexContainer + FlexItems using tag prop set to "p"

Item 1

Item 2

Item 3

fontSize 5
fontSize 4
fontSize 3
fontSize 2
fontSize 1
fontSize 0

Input

Input Sizes

Block input

Default Heading

With fontSize=0

With fontSize=1

With fontSize=2

With fontSize=3

With fontSize=4

With fontSize=5

With fontSize=00-light

With fontSize=0-light

With fontSize=1-light

With fontSize=2-light

With fontSize=3-light

Default labelDarker gray labelOrange labelGreen label
Default outline labelGreen outline label
Open
Closed
Merged

By state (Octicons built in)

Unknown
Open
Closed
Merged
Reopened

By color

Invalid
Green
Red
Purple

Small, by state

UnknownOpenClosedMergedReopened

Small, by color

InvalidGreenRedPurpleCustom Octicon
Text
Text bold
Text green
Text lineHeight 'condensed'
Text fontSize 4
Text padding 4
Text with a tooltip

Directions

Tooltip direction=n
Tooltip direction=ne
Tooltip direction=e
Tooltip direction=se
Tooltip direction=s
Tooltip direction=sw
Tooltip direction=w
Tooltip direction=nw

Alignment

Tooltip align left

Word wrap

Word wrapping tooltip

No Delay

Text with a tooltip
\ No newline at end of file + }
color
bg={color}
borderColor
white
white
gray
black
gray-light
white
gray
black
gray-light
gray
white
gray
black
gray
gray-dark
white
gray
black
gray-dark
purple
white
gray
black
purple
blue
white
gray
black
blue
green
white
gray
black
green
yellow
white
gray
black
yellow
red
white
gray
black
red
purple-light
white
gray
black
blue-light
white
gray
black
blue-light
green-light
white
gray
black
green-light
yellow-light
white
gray
black
red-light
white
gray
black
red-light
This is a box
This is a box with padding.
This is a box with shadow.
This is a box with a medium shadow.
This is a box with a large shadow.
This is a box with an extra-large shadow.
This is a box with a green border.
a_new_feature_branch
location='top'
location='top-left'
location='top-right'
location='right'
location='right-top'
location='right-bottom'
location='bottom'
location='bottom-left'
location='bottom-right'
location='left'
location='left-top'
location='left-bottom'

CaretBox

CaretBox

gray.0

#fafbfc

gray.1

#f6f8fa

gray.2

#e1e4e8

gray.3

#d1d5da

gray.4

#959da5

gray.5

#6a737d

gray.6

#586069

gray.7

#444d56

gray.8

#2f363d

gray.9

#24292e

blue.0

#f1f8ff

blue.1

#dbedff

blue.2

#c8e1ff

blue.3

#79b8ff

blue.4

#2188ff

blue.5

#0366d6

blue.6

#005cc5

blue.7

#044289

blue.8

#032f62

blue.9

#05264c

green.0

#f0fff4

green.1

#dcffe4

green.2

#bef5cb

green.3

#85e89d

green.4

#34d058

green.5

#28a745

green.6

#22863a

green.7

#176f2c

green.8

#165c26

green.9

#144620

purple.0

#f5f0ff

purple.1

#e6dcfd

purple.2

#d1bcf9

purple.3

#b392f0

purple.4

#8a63d2

purple.5

#6f42c1

purple.6

#5a32a3

purple.7

#4c2889

purple.8

#3a1d6e

purple.9

#29134e

yellow.0

#fffdef

yellow.1

#fffbdd

yellow.2

#fff5b1

yellow.3

#ffea7f

yellow.4

#ffdf5d

yellow.5

#ffd33d

yellow.6

#f9c513

yellow.7

#dbab09

yellow.8

#b08800

yellow.9

#735c0f

orange.0

#fff8f2

orange.1

#ffebda

orange.2

#ffd1ac

orange.3

#ffab70

orange.4

#fb8532

orange.5

#f66a0a

orange.6

#e36209

orange.7

#d15704

orange.8

#c24e00

orange.9

#a04100
121313

With static children

Click me

This should show and hide

With children as a function

Show

This should show and hide

With render prop

hi

Dropdown Primary

  • Item 1
  • Item 2
  • Item 3

Dropdown

  • Item 1
  • Item 2
  • Item 3

Dropdown with title

Options
  • Item 1
  • Item 2
  • Item 3

With data prop

With DonutSlice children

With custom fill colors

Flash
Flash yellow
Flash red
Flash green
Flash full

FlexContainer

Item 1
Item 2
Item 3
Item 4
Item 5

FlexContainer + FlexItems set to flexAuto

Item 1
Item 2
Item 3

FlexContainer + FlexItems with first item set to alignSelf='center'

Item 1
Item 2
Item 3

FlexContainer + FlexItems using tag prop set to "p"

Item 1

Item 2

Item 3

fontSize 5
fontSize 4
fontSize 3
fontSize 2
fontSize 1
fontSize 0

Input

Input Sizes

Block input

Default Heading

With fontSize=0

With fontSize=1

With fontSize=2

With fontSize=3

With fontSize=4

With fontSize=5

With fontSize=00-light

With fontSize=0-light

With fontSize=1-light

With fontSize=2-light

With fontSize=3-light

Default labelDarker gray labelOrange labelGreen label
Default outline labelGreen outline label
Open
Closed
Merged

By state (Octicons built in)

Unknown
Open
Closed
Merged
Reopened

By color

Invalid
Green
Red
Purple

Small, by state

UnknownOpenClosedMergedReopened

Small, by color

InvalidGreenRedPurpleCustom Octicon
Text
Text bold
Text green
Text lineHeight 'condensed'
Text fontSize 4
Text padding 4
Text with a tooltip

Directions

Tooltip direction=n
Tooltip direction=ne
Tooltip direction=e
Tooltip direction=se
Tooltip direction=s
Tooltip direction=sw
Tooltip direction=w
Tooltip direction=nw

Alignment

Tooltip align left

Word wrap

Word wrapping tooltip

No Delay

Text with a tooltip
\ No newline at end of file diff --git a/examples/_app.js b/examples/_app.js index c8e192f43a9..21f001143b3 100644 --- a/examples/_app.js +++ b/examples/_app.js @@ -1,16 +1,23 @@ import React from 'react' -import { NavLink } from 'react-router-dom' -import CSS from './doc-components/CSS' +import PropTypes from 'prop-types' +import {NavLink} from 'react-router-dom' +import Styles from './doc-components/Styles' -const Page = ({ render }) => ( +const Page = ({render}) => ( - -
-