diff --git a/docs/bundle.js b/docs/bundle.js index 2c27be08f99..434bbd85b61 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=567)}([function(e,t,n){"use strict";e.exports=n(521)},function(e,t,n){e.exports=n(507)()},function(e,t,n){e.exports=n(511)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34);Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return N(r).default}});var i=n(101);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return N(i).default}});var a=n(165);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return N(a).default}});var o=n(499);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return N(o).default}});var s=n(47);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return N(s).default}});var u=n(498);Object.defineProperty(t,"ButtonDanger",{enumerable:!0,get:function(){return N(u).default}});var c=n(497);Object.defineProperty(t,"ButtonPrimary",{enumerable:!0,get:function(){return N(c).default}});var l=n(496);Object.defineProperty(t,"ButtonOutline",{enumerable:!0,get:function(){return N(l).default}});var f=n(495);Object.defineProperty(t,"ButtonLink",{enumerable:!0,get:function(){return N(f).default}});var h=n(494);Object.defineProperty(t,"OcticonButton",{enumerable:!0,get:function(){return N(h).default}});var p=n(100);Object.defineProperty(t,"Caret",{enumerable:!0,get:function(){return N(p).default}});var d=n(488);Object.defineProperty(t,"CaretBox",{enumerable:!0,get:function(){return N(d).default}});var m=n(487);Object.defineProperty(t,"CircleOcticon",{enumerable:!0,get:function(){return N(m).default}});var g=n(486);Object.defineProperty(t,"CircleBadge",{enumerable:!0,get:function(){return N(g).default}});var y=n(164);Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return N(y).default}});var v=n(485);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return N(v).default}});var b=n(484);Object.defineProperty(t,"DonutChart",{enumerable:!0,get:function(){return N(b).default}});var x=n(163);Object.defineProperty(t,"DonutSlice",{enumerable:!0,get:function(){return N(x).default}});var w=n(483);Object.defineProperty(t,"FlexContainer",{enumerable:!0,get:function(){return N(w).default}});var E=n(482);Object.defineProperty(t,"FlexItem",{enumerable:!0,get:function(){return N(E).default}});var k=n(481);Object.defineProperty(t,"TextInput",{enumerable:!0,get:function(){return N(k).default}});var _=n(480);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return N(_).default}});var S=n(479);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return N(S).default}});var C=n(478);Object.defineProperty(t,"BranchName",{enumerable:!0,get:function(){return N(C).default}});var A=n(477);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return N(A).default}});var D=n(476);Object.defineProperty(t,"MergeStatus",{enumerable:!0,get:function(){return N(D).default}});var T=n(162);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return N(T).default}});var O=n(475);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return N(O).default}});var P=n(474);Object.defineProperty(t,"CounterLabel",{enumerable:!0,get:function(){return N(P).default}});var M=n(473);Object.defineProperty(t,"Flash",{enumerable:!0,get:function(){return N(M).default}});var F=n(161);Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return N(F).default}});var j=n(160);Object.defineProperty(t,"UnderlineNav",{enumerable:!0,get:function(){return N(j).default}});var L=n(472);function N(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"UnderlineNavLink",{enumerable:!0,get:function(){return N(L).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(72));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";Object.defineProperty(t,"__esModule",{value:!0}),t.mapWhitespaceProps=t.paddingProps=t.marginProps=t.createMapperWithPropTypes=t.oneOrMoreNumbers=t.oneOrMoreOf=t.breakpoints=void 0;var r=o(n(4));t.stylizer=function(e){return function(t){var n=(0,r.default)({},t);return n.style=e.reduce(function(e,r){return r in t&&(e[r]=t[r],delete n[r]),e},t.style||{}),n}};var i=o(n(1)),a=o(n(500));function o(e){return e&&e.__esModule?e:{default:e}}var s=t.breakpoints=[null,"sm","md","lg","xl"],u=t.oneOrMoreOf=function(e){return i.default.oneOfType([e,i.default.arrayOf(e)])},c=t.oneOrMoreNumbers=u(i.default.number),l=t.createMapperWithPropTypes=function(e){var t=(0,a.default)({breakpoints:s,props:e,getter:function(e){var t=e.breakpoint,n=e.prop,r=e.value;return t?[n,t,r].join("-"):[n,r].join("-")}});return t.propTypes=e.reduce(function(e,t){return e[t]=c,e},{}),t},f=t.marginProps=["m","mt","mr","mb","ml","mx","my"],h=t.paddingProps=["p","pt","pr","pb","pl","px","py"];t.mapWhitespaceProps=l(f.concat(h))},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=567)}([function(e,t,n){"use strict";e.exports=n(521)},function(e,t,n){e.exports=n(507)()},function(e,t,n){e.exports=n(511)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34);Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return N(r).default}});var i=n(101);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return N(i).default}});var a=n(165);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return N(a).default}});var o=n(499);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return N(o).default}});var s=n(47);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return N(s).default}});var u=n(498);Object.defineProperty(t,"ButtonDanger",{enumerable:!0,get:function(){return N(u).default}});var c=n(497);Object.defineProperty(t,"ButtonPrimary",{enumerable:!0,get:function(){return N(c).default}});var l=n(496);Object.defineProperty(t,"ButtonOutline",{enumerable:!0,get:function(){return N(l).default}});var f=n(495);Object.defineProperty(t,"ButtonLink",{enumerable:!0,get:function(){return N(f).default}});var h=n(494);Object.defineProperty(t,"OcticonButton",{enumerable:!0,get:function(){return N(h).default}});var p=n(100);Object.defineProperty(t,"Caret",{enumerable:!0,get:function(){return N(p).default}});var d=n(488);Object.defineProperty(t,"CaretBox",{enumerable:!0,get:function(){return N(d).default}});var m=n(487);Object.defineProperty(t,"CircleOcticon",{enumerable:!0,get:function(){return N(m).default}});var g=n(486);Object.defineProperty(t,"CircleBadge",{enumerable:!0,get:function(){return N(g).default}});var y=n(164);Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return N(y).default}});var v=n(485);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return N(v).default}});var b=n(484);Object.defineProperty(t,"DonutChart",{enumerable:!0,get:function(){return N(b).default}});var x=n(163);Object.defineProperty(t,"DonutSlice",{enumerable:!0,get:function(){return N(x).default}});var w=n(483);Object.defineProperty(t,"FlexContainer",{enumerable:!0,get:function(){return N(w).default}});var E=n(482);Object.defineProperty(t,"FlexItem",{enumerable:!0,get:function(){return N(E).default}});var k=n(481);Object.defineProperty(t,"TextInput",{enumerable:!0,get:function(){return N(k).default}});var _=n(480);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return N(_).default}});var S=n(479);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return N(S).default}});var C=n(478);Object.defineProperty(t,"BranchName",{enumerable:!0,get:function(){return N(C).default}});var A=n(477);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return N(A).default}});var D=n(476);Object.defineProperty(t,"MergeStatus",{enumerable:!0,get:function(){return N(D).default}});var T=n(162);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return N(T).default}});var O=n(475);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return N(O).default}});var P=n(474);Object.defineProperty(t,"CounterLabel",{enumerable:!0,get:function(){return N(P).default}});var M=n(473);Object.defineProperty(t,"Flash",{enumerable:!0,get:function(){return N(M).default}});var F=n(161);Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return N(F).default}});var j=n(160);Object.defineProperty(t,"UnderlineNav",{enumerable:!0,get:function(){return N(j).default}});var L=n(472);function N(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"UnderlineNavLink",{enumerable:!0,get:function(){return N(L).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(72));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";Object.defineProperty(t,"__esModule",{value:!0}),t.mapAllProps=t.mapDisplayProps=t.mapFlexProps=t.mapWhitespaceProps=t.flexProps=t.paddingProps=t.marginProps=t.createMapperWithPropTypes=t.oneOrMoreNumbers=t.oneOrMoreOf=t.breakpoints=void 0;var r=o(n(4));t.stylizer=function(e){return function(t){var n=(0,r.default)({},t);return n.style=e.reduce(function(e,r){return r in t&&(e[r]=t[r],delete n[r]),e},t.style||{}),n}};var i=o(n(1)),a=o(n(500));function o(e){return e&&e.__esModule?e:{default:e}}var s=t.breakpoints=[null,"sm","md","lg","xl"],u=t.oneOrMoreOf=function(e){return i.default.oneOfType([e,i.default.arrayOf(e)])},c=t.oneOrMoreNumbers=u(i.default.number),l={justifyContent:"justify",alignItems:"items",alignContent:"content"},f=t.createMapperWithPropTypes=function(e,t){var n=(0,a.default)({breakpoints:s,props:e,getter:function(e){return function(e,t,n,r){var i="";switch(r){case"flex":i=["flex",e,l[t],n].join("-");break;case"display":i=["d",e,n].join("-");break;default:i=[t,e,n].join("-")}return i.replace(/\-\-+/g,"-")}(e.breakpoint,e.prop,e.value,t)}});return n.propTypes=e.reduce(function(e,t){return e[t]=c,e},{}),n},h=t.marginProps=["m","mt","mr","mb","ml","mx","my"],p=t.paddingProps=["p","pt","pr","pb","pl","px","py"],d=t.flexProps=["wrap","direction","justifyContent","alignItems","alignContent"],m=t.mapWhitespaceProps=f(h.concat(p)),g=t.mapFlexProps=f(d,"flex"),y=t.mapDisplayProps=f(["display"],"display");t.mapAllProps=function(e){return m(y(g(e)))}},function(e,t,n){var r; /*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see @@ -41,7 +41,7 @@ var r=n(430),i=n(429),a=n(428);function o(){return u.TYPED_ARRAY_SUPPORT?2147483 * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var r=n(414);function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],l=0;(u=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(4)),i=s(n(0)),a=s(n(1)),o=n(3);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.numCommits,n=e.onClick,a={content:"",border:"4px solid",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent",width:"0",height:"0"},s={borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},u={};e.primary&&(u.scheme="primary");var c=1===t?"1 commit":t+" commits";return i.default.createElement("div",{className:"BtnGroup"},i.default.createElement(o.Button,(0,r.default)({},u,{grouped:!0,onClick:n,style:{borderRight:0}}),"Merge Pull Request"),i.default.createElement(o.Details,{className:"details-reset d-flex float-right"},function(e){var t=e.toggle;return i.default.createElement(i.default.Fragment,null,i.default.createElement(o.Button,(0,r.default)({tag:"summary"},u,{onClick:t,style:s}),i.default.createElement("div",{className:"d-inline-block v-align-middle",style:a})),i.default.createElement(o.Block,{position:"absolute",width:300,mt:1,style:{zIndex:99999}},i.default.createElement(o.CaretBox,{caret:"top-left"},i.default.createElement("ul",{className:"list-style-none p-0 m-0"},i.default.createElement("li",{className:"border-bottom py-2 pl-4 pr-2"},i.default.createElement(o.Text,{tag:"p",m:0,fontSize:1,fontWeight:"bold"},"Create a merge commit"),i.default.createElement(o.Text,{tag:"p",m:0,fontSize:0},"All commits from this branch will be added to the base branch via a merge commit.")),i.default.createElement("li",{className:"border-bottom py-2 pl-4 pr-2"},i.default.createElement(o.Text,{tag:"p",m:0,fontSize:1,fontWeight:"bold"},"Squash and merge"),i.default.createElement(o.Text,{tag:"p",m:0,fontSize:0},"The ",c," from this branch will be combined into one commit in the base branch.")),i.default.createElement("li",{className:"py-2 pl-4 pr-2"},i.default.createElement(o.Text,{tag:"p",m:0,fontSize:1,fontWeight:"bold"},"Rebase and merge"),i.default.createElement(o.Text,{tag:"p",fontSize:0,m:0},"The ",c," from this branch will be rebased and added to the base branch"))))))}))};u.defaultProps={numCommits:0},u.propTypes={numCommits:a.default.number.isRequired,onClick:a.default.func.isRequired,primary:a.default.bool},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(1)),a=n(43),o=n(3);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.title,n=e.examples;return r.default.createElement(o.Block,{mr:3},r.default.createElement("nav",{className:"menu"},r.default.createElement(a.NavLink,{to:"/",className:"menu-heading no-underline link-gray-dark"},t),n.map(function(e){return r.default.createElement(a.NavLink,{className:"menu-item no-underline link-gray-dark",activeClassName:"selected",to:"/"+e.name,key:e.name},e.name)})))};u.propTypes={examples:i.default.arrayOf(i.default.shape({name:i.default.string})),title:i.default.node},t.default=u},function(e,t,n){e.exports={default:n(265),__esModule:!0}},function(e,t,n){"use strict";e.exports=function(e,t,n){var a=t.referenceType;if("collapsed"!==a&&"full"!==a&&!n)return"imageReference"===t.type?r("text","!["+t.alt+"]"):[r("text","[")].concat(i(e,t),r("text","]"))};var r=n(17),i=n(13)},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[r("text",n)])])};var r=n(17)},function(e,t,n){"use strict";e.exports=function(e,t){var n={},a=t.ordered?"ol":"ul";"number"==typeof t.start&&1!==t.start&&(n.start=t.start);return e(t,a,n,r(i(e,t),!0))};var r=n(44),i=n(13)},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"hr")}},function(e,t,n){"use strict";e.exports=function(e,t,n){var o=t&&t.type,s=a.call(e.handlers,o)?e.handlers[o]:null;if(!o)throw new Error("Expected node, got `"+t+"`");return("function"==typeof s?s:function(e,t){if(function(e){var t=e.data||{};if(a.call(t,"hName")||a.call(t,"hProperties")||a.call(t,"hChildren"))return!1;return"value"in e}(t))return e.augment(t,r("text",t.value));return e(t,"div",i(e,t))})(e,t,n)};var r=n(17),i=n(13),a={}.hasOwnProperty},function(e,t,n){"use strict";var r=t;function i(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}r.start=i("start"),r.end=i("end")},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);if(-1===r)return n;return n`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),t.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(e,t,n){"use strict";e.exports=function(e){var t,n=0,i=0,a=e.charAt(n),o={};for(;a in r;)t=r[a],i+=t,t>1&&(i=Math.floor(i/t)*t),o[i]=n,a=e.charAt(++n);return{indent:i,stops:o}};var r={" ":1,"\t":4}},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null===e||void 0===e)return i;if("object"==typeof e)return("length"in e?function(e){var t=function(e){var t=[],n=e.length,i=-1;for(;++i=97&&t<=122||t>=65&&t<=90}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(375));t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(392);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(146),i=n(145);e.exports=function(e){return r(i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(404),i=n(399);e.exports=n(88)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",function(){return j}),n.d(t,"LiveProvider",function(){return W}),n.d(t,"LiveEditor",function(){return G}),n.d(t,"LiveError",function(){return X}),n.d(t,"LivePreview",function(){return J}),n.d(t,"withLive",function(){return K}),n.d(t,"generateElement",function(){return B}),n.d(t,"renderElementAsync",function(){return H});var r=n(122),i=(n(412),n(411),n(410),n(409),n(195)),a=n.n(i),o=n(194),s=n.n(o),u=n(0),c=n.n(u),l=n(121),f=n(190),h=n.n(f),p=n(1),d=n.n(p),m=function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"jsx";return Object(r.highlight)(e,r.languages[t])},y=/^((\t| )+)/gm,v=/\t/g,b=function(e){return e.replace(y,function(e,t){return t.replace(v," ")})},x=function(e){return e.replace("\n","
")},w=function(e){return a()(e.replace(/
/gm,"\n").replace(/<\/?[^>]*>/gm,""))};function E(e,t){var n=window.getSelection();if(1==arguments.length){if(!n.rangeCount)return;var r={},i=(l=n.getRangeAt(0)).cloneRange();return i.selectNodeContents(e),i.setEnd(l.endContainer,l.endOffset),r.end=i.toString().length,i.setStart(l.startContainer,l.startOffset),r.start=r.end-i.toString().length,r.atStart=0===i.startOffset,r.commonAncestorContainer=i.commonAncestorContainer,r.endContainer=i.endContainer,r.startContainer=i.startContainer,r}for(var a,o,u=t.end&&t.end!==t.start,c=0,l=document.createRange(),f=s()(e).select(Node.TEXT_NODE).revisit(!1),h=t.start>e.textContent.length?e.textContent.length:t.start,p=t.end>e.textContent.length?e.textContent.length:t.end,d=t.atStart;a=f.next();){var m=c;if(c+=a.textContent.length,!o&&(d?c>h:c>=h)&&(o=!0,l.setStart(a,h-m),!u)){l.collapse(!0),k(e,l);break}if(u&&c>=p){l.setEnd(a,p-m),k(e,l);break}}}function k(e,t){var n=window.getSelection();e.focus(),n.removeAllRanges(),n.addRange(t)}var _=function(e,t){var n=e.slice(0,t),r=n.lastIndexOf("\n")+1;return n.slice(r)},S=/^\s+/,C=function(e,t){var n=_(e,t).match(S);return null===n?"":n[0]||""},A=/^(\t| )* $/,D=function(e,t){var n=_(e,t);return A.test(n)?2:0},T=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},F=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},j=function(e){function t(){var n,r;T(this,t);for(var i=arguments.length,a=Array(i),o=0;o0&&(r.undoStack=r.undoStack.slice(0,-r.undoOffset),r.undoOffset=0);var n=Date.now(),i={plain:e,selection:t};n-r.undoTimestamp<3e3?r.undoStack[r.undoStack.length-1]=i:(r.undoStack.push(i),r.undoStack.length>50&&r.undoStack.shift()),r.undoTimestamp=n}},r.updateContent=function(e){r.compositing||(r.setState({html:g(e,r.props.language)}),r.props.onChange&&r.props.onChange(e))},r.restoreStackState=function(e){var t=r.undoStack[r.undoStack.length-1-e],n=t.plain,i=t.selection;r.selection=i,r.undoOffset=e,r.updateContent(n)},r.undo=function(){var e=r.undoOffset+1;e>=r.undoStack.length||r.restoreStackState(e)},r.redo=function(){var e=r.undoOffset-1;e<0||r.restoreStackState(e)},r.onKeyDown=function(e){if(r.props.onKeyDown&&r.props.onKeyDown(e),9!==e.keyCode||r.props.ignoreTabKey)if(8===e.keyCode){var t=E(r.ref),n=t.start;if(n!==t.end)return;var i=D(r.getPlain(),n);if(i<=0)return;for(var a=0;a25?39:97))},M=function(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=P(n%52)+t;return P(n%52)+t},F=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},j="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},L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},N=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},B=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},H=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r"+e()+""}},ie=function(e,t){return function(){var n,r=((n={})[V]=$(t),n),i=X();return i&&(r.nonce=i),f.a.createElement("style",R({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},ae=function(e){return function(){return Object.keys(e)}},oe=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,a=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},o=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=te(t)+n)}return e};return{styleTag:null,getIds:ae(i),hasNameForId:Y(r),insertMarker:a,insertRules:function(e,t,n){a(e)[0]+=t.join(" "),J(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",K(r,e))},css:o,toHTML:re(o,r),toElement:ie(o,r),clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=R({},e[n]);return t}(r),n=Object.create(null);for(var a in i)n[a]=[i[a][0]];return e(t,n)}}},se=function(e,t,n,r,i){if(q&&!n){var a=function(e,t,n){var r=document.createElement("style");r.setAttribute(V,"");var i=X();if(i&&r.setAttribute("nonce",i),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new Error("");t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,r);return function(e,t){var n=Object.create(null),r=Object.create(null),i=[],a=void 0!==t,o=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),K(n,e),r[e])},u=function(){var t=Z(e).cssRules,n="";for(var a in r){n+=te(a);for(var o=r[a],s=ne(i,o),u=s-i[o];u0&&(o=!0,t().insertRules(r+"-import",d)),i[l]+=p,J(n,r,c)},removeRules:function(s){var u=r[s];if(void 0!==u){var c=i[u];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}(Z(e),ne(i,u),c),i[u]=0,K(n,s),a&&o&&t().removeRules(s+"-import")}},css:u,toHTML:re(u,n),toElement:ie(u,n),clone:ee}}(a,i)}return oe()},ue=void 0;ue=q?1e3:-1;var ce,le=0,fe=void 0,he=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=se(t.target,n?n.styleTag:null,t.forceServer,!0)},le+=1,this.id=le,this.sealed=!1,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!q||this.forceServer)return this;var e=[],t=[],n=[],r=!1,i=document.querySelectorAll("style["+V+"]"),a=i.length;if(0===a)return this;for(var o=0;o0&&void 0!==arguments[0]&&arguments[0];fe=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),i=0;i<+~=|^:(),"'`-]+/g,ye=/(^-|-$)/g;function ve(e){return e.replace(ge,"-").replace(ye,"")}function be(e){return e.displayName||e.name||"Component"}function xe(e){return"string"==typeof e}var we=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|onPointerOu|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|unicodeRange|mathematical|vAlphabetic|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|autoPlay|o(?:verflow|pen)|f(?:o(?:ntSize|rm)|il(?:ter|l))|r(?:e(?:quired|sult|f))?|divisor|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|i(?:temRef|n2|s)|t(?:arget[XY]|o)|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|prefix|typeof|itemID|s(?:t(?:roke|art)|hape|cope|rc)|t(?:arget|ype)|(?:stri|la)ng|a(?:ccept|s)|m(?:edia|a(?:sk|x)|in)|x(?:mlns)?|width|value|size|href|k(?:ey)?|end|low|by|i[dn]|y[12]|g[12]|x[12]|f[xy]|[yz])$/,Ee=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));var ke,_e,Se="__styled-components__",Ce=Se+"next__",Ae=p.a.shape({getTheme:p.a.func,subscribe:p.a.func,unsubscribe:p.a.func});var De=function(e){function t(){L(this,t);var n=B(this,e.call(this));return n.unsubscribeToOuterId=-1,n.getTheme=n.getTheme.bind(n),n}return z(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[Ce];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=function(e){var t={},n=0,r=e;return{publish:function(e){for(var n in r=e,t){var i=t[n];void 0!==i&&i(r)}},subscribe:function(e){var i=n;return t[i]=e,n+=1,e(r),i},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return R({},this.context,((e={})[Ce]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[Se]=function(e){var n=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(n)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[Ce].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(function(e){return"function"==typeof e}(t))return t(this.outerTheme);if(null===t||Array.isArray(t)||"object"!==(void 0===t?"undefined":j(t)))throw new Error("");return R({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?f.a.Children.only(this.props.children):null},t}(l.Component);De.childContextTypes=((ke={})[Se]=p.a.func,ke[Ce]=Ae,ke),De.contextTypes=((_e={})[Ce]=Ae,_e);var Te={};function Oe(e){for(var t,n=0|e.length,r=0|n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}var Pe=q,Me=function e(t,n){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(g.isValidElementType)(r))throw new Error("");var a=function(){return n(r,i,e.apply(void 0,arguments))};return a.withConfig=function(e){return t(n,r,R({},i,e))},a.attrs=function(e){return t(n,r,R({},i,{attrs:R({},i.attrs||{},e)}))},a}}(H),Ie=function(e,t){var n={},r=function(e){function t(){var n,r;L(this,t);for(var i=arguments.length,a=Array(i),o=0;on;)t.push(arguments[n++]);return y[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete y[e]},"process"==n(59)(f)?r=function(e){f.nextTick(o(v,e,1))}:m&&m.now?r=function(e){m.now(o(v,e,1))}:d?(a=(i=new d).port2,i.port1.onmessage=b,r=o(a.postMessage,a,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(o(v,e,1),0)}),e.exports={set:h,clear:p}},function(e,t,n){var r=n(29),i=n(77),a=n(15)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},function(e,t,n){var r=n(51),i=n(15)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){var r=n(29);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(41),i=n(58),a=n(113)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(16).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(59);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(41),i=n(40),a=n(562)(!1),o=n(113)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){e.exports=n(42)},function(e,t,n){e.exports=!n(35)&&!n(52)(function(){return 7!=Object.defineProperty(n(117)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(78),i=n(19),a=n(185),o=n(42),s=n(41),u=n(51),c=n(564),l=n(75),f=n(181),h=n(15)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,m,g,y,v){c(n,t,m);var b,x,w,E=function(e){if(!p&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",_="values"==g,S=!1,C=e.prototype,A=C[h]||C["@@iterator"]||g&&C[g],D=!p&&A||E(g),T=g?_?E("entries"):D:void 0,O="Array"==t&&C.entries||A;if(O&&(w=f(O.call(new e)))!==Object.prototype&&w.next&&(l(w,k,!0),r||s(w,h)||o(w,h,d)),_&&A&&"values"!==A.name&&(S=!0,D=function(){return A.call(this)}),r&&!v||!p&&!S&&C[h]||o(C,h,D),u[t]=D,u[k]=d,g)if(b={values:_?D:E("values"),keys:y?D:E("keys"),entries:T},v)for(x in b)x in C||a(C,x,b[x]);else i(i.P+i.F*(p||S),t,b);return b}},function(e,t){},function(e,t,n){e.exports={default:n(566),__esModule:!0}},function(e,t,n){n(406),e.exports=n(90).Object.assign},function(e,t,n){"use strict";n.r(t),n.d(t,"version",function(){return ge}),n.d(t,"parse",function(){return ye}),n.d(t,"parseExpressionAt",function(){return ve}),n.d(t,"tokenizer",function(){return be}),n.d(t,"parse_dammit",function(){return pe}),n.d(t,"LooseParser",function(){return de}),n.d(t,"pluginsLoose",function(){return me}),n.d(t,"addLooseExports",function(){return xe}),n.d(t,"Parser",function(){return B}),n.d(t,"plugins",function(){return z}),n.d(t,"defaultOptions",function(){return N}),n.d(t,"Position",function(){return F}),n.d(t,"SourceLocation",function(){return j}),n.d(t,"getLineInfo",function(){return L}),n.d(t,"Node",function(){return ee}),n.d(t,"TokenType",function(){return g}),n.d(t,"tokTypes",function(){return E}),n.d(t,"keywordTypes",function(){return x}),n.d(t,"TokContext",function(){return re}),n.d(t,"tokContexts",function(){return ie}),n.d(t,"isIdentifierChar",function(){return m}),n.d(t,"isIdentifierStart",function(){return d}),n.d(t,"Token",function(){return oe}),n.d(t,"isNewLine",function(){return S}),n.d(t,"lineBreak",function(){return k}),n.d(t,"lineBreakG",function(){return _}),n.d(t,"nonASCIIwhitespace",function(){return C});var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",a={5:i,6:i+" const class extends export import super"},o=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",c=new RegExp("["+s+"]"),l=new RegExp("["+s+u+"]");s=u=null;var f=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,10591,541],h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function p(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,f)))}function m(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&(p(e,f)||p(e,h)))))}var g=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function y(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},b={startsExpr:!0},x={};function w(e,t){return void 0===t&&(t={}),t.keyword=e,x[e]=new g(e,t)}var E={num:new g("num",b),regexp:new g("regexp",b),string:new g("string",b),name:new g("name",b),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",v),semi:new g(";",v),colon:new g(":",v),dot:new g("."),question:new g("?",v),arrow:new g("=>",v),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",v),backQuote:new g("`",b),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),_break:w("break"),_case:w("case",v),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",v),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",v),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",b),_if:w("if"),_return:w("return",v),_switch:w("switch"),_throw:w("throw",v),_try:w("try"),_var:w("var"),_const:w("const"),_while:w("while",{isLoop:!0}),_with:w("with"),_new:w("new",{beforeExpr:!0,startsExpr:!0}),_this:w("this",b),_super:w("super",b),_class:w("class",b),_extends:w("extends",v),_export:w("export"),_import:w("import"),_null:w("null",b),_true:w("true",b),_false:w("false",b),_in:w("in",{beforeExpr:!0,binop:7}),_instanceof:w("instanceof",{beforeExpr:!0,binop:7}),_typeof:w("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},k=/\r\n?|\n|\u2028|\u2029/,_=new RegExp(k.source,"g");function S(e){return 10===e||13===e||8232===e||8233===e}var C=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,A=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,T=D.hasOwnProperty,O=D.toString;function P(e,t){return T.call(e,t)}var M=Array.isArray||function(e){return"[object Array]"===O.call(e)},F=function(e,t){this.line=e,this.column=t};F.prototype.offset=function(e){return new F(this.line,this.column+e)};var j=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function L(e,t){for(var n=1,r=0;;){_.lastIndex=r;var i=_.exec(e);if(!(i&&i.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),M(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return M(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,o,s){var u={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(u.loc=new j(this,o,s)),e.ranges&&(u.range=[i,a]),t.push(u)}}(t,t.onComment)),t}var z={};function I(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var B=function(e,t,n){this.options=e=R(e),this.sourceFile=e.sourceFile,this.keywords=I(a[e.ecmaVersion>=6?6:5]);var i="";if(!e.allowReserved){for(var o=e.ecmaVersion;!(i=r[o]);o--);"module"==e.sourceType&&(i+=" await")}this.reservedWords=I(i);var s=(i?i+" ":"")+r.strict;this.reservedWordsStrict=I(s),this.reservedWordsStrictBind=I(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,this.loadPlugins(e.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(k).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=E.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope()};B.prototype.isKeyword=function(e){return this.keywords.test(e)},B.prototype.isReservedWord=function(e){return this.reservedWords.test(e)},B.prototype.extend=function(e,t){this[e]=t(this[e])},B.prototype.loadPlugins=function(e){for(var t in e){var n=z[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},B.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var H=B.prototype,V=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function U(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}H.strictDirective=function(e){for(;;){A.lastIndex=e,e+=A.exec(this.input)[0].length;var t=V.exec(this.input.slice(e));if(!t)return!1;if("use strict"==(t[1]||t[2]))return!0;e+=t[0].length}},H.eat=function(e){return this.type===e&&(this.next(),!0)},H.isContextual=function(e){return this.type===E.name&&this.value===e&&!this.containsEsc},H.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},H.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},H.canInsertSemicolon=function(){return this.type===E.eof||this.type===E.braceR||k.test(this.input.slice(this.lastTokEnd,this.start))},H.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},H.semicolon=function(){this.eat(E.semi)||this.insertSemicolon()||this.unexpected()},H.afterTrailingComma=function(e,t){if(this.type==e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},H.expect=function(e){this.eat(e)||this.unexpected()},H.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},H.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},H.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},H.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var W={kind:"loop"},G={kind:"switch"};q.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;A.lastIndex=this.pos;var e=A.exec(this.input),t=this.pos+e[0].length,n=this.input.charCodeAt(t);if(91===n||123==n)return!0;if(d(n,!0)){for(var r=t+1;m(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(t,r);if(!o.test(i))return!0}return!1},q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;A.lastIndex=this.pos;var e=A.exec(this.input),t=this.pos+e[0].length;return!(k.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!=this.input.length&&m(this.input.charAt(t+8)))},q.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet()&&(i=E._var,r="let"),i){case E._break:case E._continue:return this.parseBreakContinueStatement(a,i.keyword);case E._debugger:return this.parseDebuggerStatement(a);case E._do:return this.parseDoStatement(a);case E._for:return this.parseForStatement(a);case E._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1);case E._class:return e||this.unexpected(),this.parseClass(a,!0);case E._if:return this.parseIfStatement(a);case E._return:return this.parseReturnStatement(a);case E._switch:return this.parseSwitchStatement(a);case E._throw:return this.parseThrowStatement(a);case E._try:return this.parseTryStatement(a);case E._const:case E._var:return r=r||this.value,e||"var"==r||this.unexpected(),this.parseVarStatement(a,r);case E._while:return this.parseWhileStatement(a);case E._with:return this.parseWithStatement(a);case E.braceL:return this.parseBlock();case E.semi:return this.parseEmptyStatement(a);case E._export:case E._import:return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===E._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e||this.unexpected(),this.next(),this.parseFunctionStatement(a,!0);var o=this.value,s=this.parseExpression();return i===E.name&&"Identifier"===s.type&&this.eat(E.colon)?this.parseLabeledStatement(a,o,s):this.parseExpressionStatement(a,s)}},q.parseBreakContinueStatement=function(e,t){var n="break"==t;this.next(),this.eat(E.semi)||this.insertSemicolon()?e.label=null:this.type!==E.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(E.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.inAsync&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterLexicalScope(),this.expect(E.parenL),this.type===E.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===E._var||this.type===E._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(t>-1&&this.unexpected(t),this.parseFor(e,r)):(this.options.ecmaVersion>=9&&(this.type===E._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var a=new U,o=this.parseExpression(!0,a);return this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===E._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},q.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},q.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.type==E._function),e.alternate=this.eat(E._else)?this.parseStatement(!this.strict&&this.type==E._function):null,this.finishNode(e,"IfStatement")},q.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(E.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},q.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(E.braceL),this.labels.push(G),this.enterLexicalScope();for(var n=!1;this.type!=E.braceR;)if(this.type===E._case||this.type===E._default){var r=this.type===E._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(E.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},q.parseThrowStatement=function(e){return this.next(),k.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var X=[];q.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===E._catch){var t=this.startNode();this.next(),this.expect(E.parenL),t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(E.parenR),t.body=this.parseBlock(!1),this.exitLexicalScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(E._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},q.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},q.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(W),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},q.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},q.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},q.parseLabeledStatement=function(e,t,n){for(var r=0,i=this.labels;r=0;o--){var s=this.labels[o];if(s.statementStart!=e.start)break;s.statementStart=this.start,s.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&"var"!=e.body.kind||"FunctionDeclaration"==e.body.type&&(this.strict||e.body.generator))&&this.raiseRecoverable(e.body.start,"Invalid labeled declaration"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},q.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},q.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(E.braceL),e&&this.enterLexicalScope();!this.eat(E.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},q.parseFor=function(e,t){return e.init=t,this.expect(E.semi),e.test=this.type===E.semi?null:this.parseExpression(),this.expect(E.semi),e.update=this.type===E.parenR?null:this.parseExpression(),this.expect(E.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},q.parseForIn=function(e,t){var n=this.type===E._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"==n&&("AssignmentPattern"===t.type||"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(this.strict||"Identifier"!==t.declarations[0].id.type))&&this.raise(t.start,"Invalid assignment in for-in loop head"),e.left=t,e.right="ForInStatement"==n?this.parseExpression():this.parseMaybeAssign(),this.expect(E.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},q.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(E.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==r.id.type||t&&(this.type===E._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(E.comma))break}return e},q.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},q.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(e.generator=this.eat(E.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&&(e.id="nullableID"===t&&this.type!=E.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,"var"));var i=this.inGenerator,a=this.inAsync,o=this.yieldPos,s=this.awaitPos,u=this.inFunction;return this.inGenerator=e.generator,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),t||(e.id=this.type==E.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=i,this.inAsync=a,this.yieldPos=o,this.awaitPos=s,this.inFunction=u,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},q.parseFunctionParams=function(e){this.expect(E.parenL),e.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),r=!1;for(n.body=[],this.expect(E.braceL);!this.eat(E.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},q.parseClassMember=function(e){var t=this;if(this.eat(E.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,a=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===E.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,a),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(E.star),a=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(E.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),a&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(e,n,i,a),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},q.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},q.parseClassId=function(e,t){e.id=this.type===E.name?this.parseIdent():!0===t?this.unexpected():null},q.parseClassSuper=function(e){e.superClass=this.eat(E._extends)?this.parseExprSubscripts():null},q.parseExport=function(e,t){if(this.next(),this.eat(E.star))return this.expectContextual("from"),this.type!==E.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(E._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===E._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===E._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==E.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];if(o)("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=t[r]={init:!1,get:!1,set:!1};o[a]=!0}}},K.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===E.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(E.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},K.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new U,r=!0);var o=this.start,s=this.startLoc;this.type!=E.parenL&&this.type!=E.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,o,s)),this.type.isAssign){var c=this.startNodeAt(o,s);return c.operator=this.value,c.left=this.type===E.eq?this.toAssignable(u,!1,t):u,r||U.call(t),t.shorthandAssign=-1,this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),u},K.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(E.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(E.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},K.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:i.start==n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},K.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==E._in)&&a>r){var o=this.type===E.logicalOR||this.type===E.logicalAND,s=this.value;this.next();var u=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),u,c,a,i),f=this.buildBinary(t,n,e,l,s,o);return this.parseExprOp(f,t,n,r,i)}return e},K.buildBinary=function(e,t,n,r,i,a){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},K.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.inAsync&&this.isContextual("await"))n=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===E.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(a,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(E.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},K.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return r;var a=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1)),a},K.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd==e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end),a=void 0;;)if((a=this.eat(E.bracketL))||this.eat(E.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=a?this.parseExpression():this.parseIdent(!0),o.computed=!!a,a&&this.expect(E.bracketR),e=this.finishNode(o,"MemberExpression")}else if(!r&&this.eat(E.parenL)){var s=new U,u=this.yieldPos,c=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var l=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1,s);if(i&&!this.canInsertSemicolon()&&this.eat(E.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=c,this.parseArrowExpression(this.startNodeAt(t,n),l,!0);this.checkExpressionErrors(s,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=c||this.awaitPos;var f=this.startNodeAt(t,n);f.callee=e,f.arguments=l,e=this.finishNode(f,"CallExpression")}else{if(this.type!==E.backQuote)return e;var h=this.startNodeAt(t,n);h.tag=e,h.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(h,"TaggedTemplateExpression")}},K.parseExprAtom=function(e){var t,n=this.potentialArrowAt==this.start;switch(this.type){case E._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.type!==E.dot&&this.type!==E.bracketL&&this.type!==E.parenL&&this.unexpected(),this.finishNode(t,"Super");case E._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case E.name:var r=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(this.type!==E.name);if(this.options.ecmaVersion>=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(E._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(E.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===E.name&&!a)return o=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(E.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case E.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case E.num:case E.string:return this.parseLiteral(this.value);case E._null:case E._true:case E._false:return(t=this.startNode()).value=this.type===E._null?null:this.type===E._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case E.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case E.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(E.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case E.braceL:return this.parseObj(!1,e);case E._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case E._class:return this.parseClass(this.startNode(),!1);case E._new:return this.parseNew();case E.backQuote:return this.parseTemplate();default:this.unexpected()}},K.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},K.parseParenExpression=function(){this.expect(E.parenL);var e=this.parseExpression();return this.expect(E.parenR),e},K.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,s=this.startLoc,u=[],c=!0,l=!1,f=new U,h=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==E.parenR;){if(c?c=!1:this.expect(E.comma),i&&this.afterTrailingComma(E.parenR,!0)){l=!0;break}if(this.type===E.ellipsis){a=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var d=this.start,m=this.startLoc;if(this.expect(E.parenR),e&&!this.canInsertSemicolon()&&this.eat(E.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(n,r,u);u.length&&!l||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(f,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,u.length>1?((t=this.startNodeAt(o,s)).expressions=u,this.finishNodeAt(t,"SequenceExpression",d,m)):t=u[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},K.parseParenItem=function(e){return e},K.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Y=[];K.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(E.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(E.parenL)?e.arguments=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Y,this.finishNode(e,"NewExpression")},K.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===E.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===E.backQuote,this.finishNode(n,"TemplateElement")},K.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.expect(E.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(E.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},K.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===E.name||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===E.star)&&!k.test(this.input.slice(this.lastTokEnd,this.start))},K.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(E.braceR);){if(r)r=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},K.parseProperty=function(e,t){var n,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(E.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===E.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===E.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(E.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(E.star),this.parsePropertyName(o,t)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,"Property")},K.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===E.colon&&this.unexpected(),this.eat(E.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===E.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type==E.comma||this.type==E.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?(this.checkUnreserved(e.key),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,e.key):this.type===E.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},K.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(E.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(E.bracketR),e.key;e.computed=!1}return e.key=this.type===E.num||this.type===E.string?this.parseExprAtom():this.parseIdent(!0)},K.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},K.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,a=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(E.parenL),n.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=a,this.awaitPos=o,this.inFunction=s,this.finishNode(n,"FunctionExpression")},K.parseArrowExpression=function(e,t,n){var r=this.inGenerator,i=this.inAsync,a=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inGenerator=!1,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=a,this.awaitPos=o,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},K.parseFunctionBody=function(e,t){var n=t&&this.type!==E.braceL,r=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!a||(i=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!r&&!i&&!t&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=o}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=r},K.isSimpleParamList=function(e){for(var t=0,n=e;t0;)t[n]=arguments[n+1];for(var r=0,i=t;r=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ae.updateContext=function(e){var t,n=this.type;n.keyword&&e==E.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},E.parenR.updateContext=E.braceR.updateContext=function(){if(1!=this.context.length){var e=this.context.pop();e===ie.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},E.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ie.b_stat:ie.b_expr),this.exprAllowed=!0},E.dollarBraceL.updateContext=function(){this.context.push(ie.b_tmpl),this.exprAllowed=!0},E.parenL.updateContext=function(e){var t=e===E._if||e===E._for||e===E._with||e===E._while;this.context.push(t?ie.p_stat:ie.p_expr),this.exprAllowed=!0},E.incDec.updateContext=function(){},E._function.updateContext=E._class.updateContext=function(e){e.beforeExpr&&e!==E.semi&&e!==E._else&&(e!==E.colon&&e!==E.braceL||this.curContext()!==ie.b_stat)?this.context.push(ie.f_expr):this.context.push(ie.f_stat),this.exprAllowed=!1},E.backQuote.updateContext=function(){this.curContext()===ie.q_tmpl?this.context.pop():this.context.push(ie.q_tmpl),this.exprAllowed=!1},E.star.updateContext=function(e){if(e==E._function){var t=this.context.length-1;this.context[t]===ie.f_expr?this.context[t]=ie.f_expr_gen:this.context[t]=ie.f_gen}this.exprAllowed=!0},E.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&("of"==this.value&&!this.exprAllowed||"yield"==this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var oe=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new j(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},se=B.prototype,ue="object"==typeof Packages&&"[object JavaPackage]"==Object.prototype.toString.call(Packages);function ce(e,t,n,r){try{return new RegExp(e,t)}catch(e){if(void 0!==n)throw e instanceof SyntaxError&&r.raise(n,"Error parsing regular expression: "+e.message),e}}se.next=function(){this.options.onToken&&this.options.onToken(new oe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},se.getToken=function(){return this.next(),new oe(this)},"undefined"!=typeof Symbol&&(se[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===E.eof,value:t}}}}),se.curContext=function(){return this.context[this.context.length-1]},se.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(E.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},se.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},se.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},se.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(_.lastIndex=n;(e=_.exec(this.input))&&e.index8&&e<14||e>=5760&&C.test(String.fromCharCode(e))))break e;++this.pos}}},se.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},se.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(E.ellipsis)):(++this.pos,this.finishToken(E.dot))},se.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(E.assign,2):this.finishOp(E.slash,1)},se.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?E.star:E.modulo;return this.options.ecmaVersion>=7&&42==e&&42===t&&(++n,r=E.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(E.assign,n+1):this.finishOp(r,n)},se.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?E.logicalOR:E.logicalAND,2):61===t?this.finishOp(E.assign,2):this.finishOp(124===e?E.bitwiseOR:E.bitwiseAND,1)},se.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(E.assign,2):this.finishOp(E.bitwiseXOR,1)},se.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!=t||this.inModule||62!=this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!k.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(E.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(E.assign,2):this.finishOp(E.plusMin,1)},se.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(E.assign,n+1):this.finishOp(E.bitShift,n)):33!=t||60!=e||this.inModule||45!=this.input.charCodeAt(this.pos+2)||45!=this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(E.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},se.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(E.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(E.arrow)):this.finishOp(61===e?E.eq:E.prefix,1)},se.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(E.parenL);case 41:return++this.pos,this.finishToken(E.parenR);case 59:return++this.pos,this.finishToken(E.semi);case 44:return++this.pos,this.finishToken(E.comma);case 91:return++this.pos,this.finishToken(E.bracketL);case 93:return++this.pos,this.finishToken(E.bracketR);case 123:return++this.pos,this.finishToken(E.braceL);case 125:return++this.pos,this.finishToken(E.braceR);case 58:return++this.pos,this.finishToken(E.colon);case 63:return++this.pos,this.finishToken(E.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(E.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(E.prefix,1)}this.raise(this.pos,"Unexpected character '"+fe(e)+"'")},se.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};var le=!!ce("￿","u");function fe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}se.readRegexp=function(){for(var e,t,n=this,r=this.pos;;){n.pos>=n.input.length&&n.raise(r,"Unterminated regular expression");var i=n.input.charAt(n.pos);if(k.test(i)&&n.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++n.pos}var a=this.input.slice(r,this.pos);++this.pos;var o=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(o);var u=a,c="";if(s){var l="gim";this.options.ecmaVersion>=6&&(l+="uy"),this.options.ecmaVersion>=9&&(l+="s");for(var f=0;f-1&&n.raise(r,"Duplicate regular expression flag")}s.indexOf("u")>=0&&(le?c="u":(u=(u=u.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,t,i){return(t=Number("0x"+t))>1114111&&n.raise(r+i+3,"Code point out of bounds"),"x"})).replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"),c=c.replace("u","")))}var p=null;return ue||(ce(u,c,r,this),p=ce(a,s)),this.finishToken(E.regexp,{pattern:a,flags:s,value:p})},se.readInt=function(e,t){for(var n=this.pos,r=0,i=0,a=null==t?1/0:t;i=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.pos,r=r*e+s}return this.pos===n||null!=t&&this.pos-n!==t?null:r},se.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,t)},se.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number"),n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(t,this.pos),a=n?parseInt(i,8):parseFloat(i);return this.finishToken(E.num,a)},se.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},se.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(S(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(E.string,t)};var he={};se.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==he)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},se.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw he;this.raise(e,t)},se.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==E.template&&this.type!==E.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(E.template,e)):36===n?(this.pos+=2,this.finishToken(E.dollarBraceL)):(++this.pos,this.finishToken(E.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(S(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},se.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!=t&&57!=t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(t)}},se.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},se.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos>=5)>0&&(n|=32),t+=i[n]}while(e>0);return t}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){r[e]=t,i[t]=e})},function(e,t,n){"use strict";(function(e,r){var i=n(192);function a(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}a.prototype={appendLeft:function(e){this.outro+=e},appendRight:function(e){this.intro=this.intro+e},clone:function(){var e=new a(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},contains:function(e){return this.start=t.end?1:-1;t;){if(i(t,e))return a(t,e);t=n[r+=o]}}}function h(e){var t=this,n={generatedCodeColumn:0,sourceIndex:0,sourceCodeLine:0,sourceCodeColumn:0,sourceCodeName:0},r=0,a=0;this.raw=[];var o=this.raw[r]=[],s=null;this.addEdit=function(e,n,r,i,u){n.length?o.push([a,e,i.line,i.column,u]):s&&o.push(s),t.advance(n),s=null},this.addUneditedChunk=function(n,i,u,c,l){for(var f=i.start,h=!0;f=r.length)return"\t";var i=r.reduce(function(e,t){var n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return new Array(i+1).join(" ")}(e)}}),this.byStart[0]=n,this.byEnd[e.length]=n}m.prototype={addSourcemapLocation:function(e){this.sourcemapLocations[e]=!0},append:function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},appendLeft:function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this},appendRight:function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this},clone:function(){for(var e=new m(this.original,{filename:this.filename}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;var r=t.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),t=r}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),Object.keys(this.sourcemapLocations).forEach(function(t){e.sourcemapLocations[t]=!0}),e},generateMap:function(e){var t=this;e=e||{};var n=Object.keys(this.storedNames),r=new h(e.hires),i=f(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext(function(e){var a=i(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,e.original,a,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&r.advance(e.outro)}),new s({file:e.file?e.file.split(/[\/\\]/).pop():null,sources:[e.source?u(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:n,mappings:r.encode()})},getIndentString:function(){return null===this.indentStr?"\t":this.indentStr},indent:function(e,t){var n=/^[^\r\n]/gm;if(l(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var r={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach(function(e){for(var t=e[0];t=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var r=this.byStart[e],i=this.byEnd[t],a=r.previous,o=i.next,s=this.byStart[n];if(!s&&i===this.lastChunk)return this;var u=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),u&&(u.next=r),s&&(s.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=u,i.next=s||null,u||(this.firstChunk=r),s||(this.lastChunk=i),this},overwrite:function(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(d.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),d.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,o=void 0!==r&&r.contentOnly;if(i){var s=this.original.slice(e,t);this.storedNames[s]=!0}var u=this.byStart[e],c=this.byEnd[t];if(u){if(t>u.end&&u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");if(u.edit(n,i,o),u!==c){for(var l=u.next;l!==c;)l.edit("",!1),l=l.next;l.edit("",!1)}}else{var f=new a(e,t,"").edit(n,i);c.next=f,f.previous=c}return this},prepend:function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},prependLeft:function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this},prependRight:function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this},remove:function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this},slice:function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>e||r.end<=e);){if(r.start=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==e||(n+=r.intro);var a=r.start=t;if(a&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===r?e-r.start:0,s=a?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,s),!r.outro||a&&r.end!==t||(n+=r.outro),a)break;r=r.next}return n},snip:function(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n},_split:function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,n=e>t.end;;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}},_splitChunk:function(e,t){if(e.edited&&e.content.length){var n=f(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0},toString:function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},trimLines:function(){return this.trim("[\\r\\n]")},trim:function(e){return this.trimStart(e).trimEnd(e)},trimEnd:function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return this;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(t);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return this;n=n.previous}while(n);return this},trimStart:function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return this;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(t);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return this;n=n.next}while(n);return this}};var g=Object.prototype.hasOwnProperty;function y(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}y.prototype={addSource:function(e){if(e instanceof m)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!l(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(t){g.call(e,t)||(e[t]=e.content[t])}),void 0===e.separator&&(e.separator=this.separator),e.filename)if(g.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},append:function(e,t){return this.addSource({content:new m(e),separator:t&&t.separator||""}),this},clone:function(){var e=new y({intro:this.intro,separator:this.separator});return this.sources.forEach(function(t){e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})}),e},generateMap:function(e){var t=this;void 0===e&&(e={});var n=[];this.sources.forEach(function(e){Object.keys(e.content.storedNames).forEach(function(e){~n.indexOf(e)||n.push(e)})});var r=new h(e.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(function(e,i){i>0&&r.advance(t.separator);var a=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,o=e.content,s=f(o.original);o.intro&&r.advance(o.intro),o.firstChunk.eachNext(function(t){var i=s(t.start);t.intro.length&&r.advance(t.intro),e.filename?t.edited?r.addEdit(a,t.content,t.original,i,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(a,t,o.original,i,o.sourcemapLocations):r.advance(t.content),t.outro.length&&r.advance(t.outro)}),o.outro&&r.advance(o.outro)}),new s({file:e.file?e.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(t){return e.file?u(e.file,t.filename):t.filename}),sourcesContent:this.uniqueSources.map(function(t){return e.includeContent?t.content:null}),names:n,mappings:r.encode()})},getIndentString:function(){var e={};return this.sources.forEach(function(t){var n=t.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)}),Object.keys(e).sort(function(t,n){return e[t]-e[n]})[0]||"\t"},indent:function(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(r,i){var a=void 0!==r.separator?r.separator:t.separator,o=n||i>0&&/\r?\n$/.test(a);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:o}),n="\n"===r.content.toString().slice(0,-1)}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,function(t,n){return n>0?e+t:t})),this},prepend:function(e){return this.intro=e+this.intro,this},toString:function(){var e=this,t=this.sources.map(function(t,n){var r=void 0!==t.separator?t.separator:e.separator;return(n>0?r:"")+t.content.toString()}).join("");return this.intro+t},trimLines:function(){return this.trim("[\\r\\n]")},trim:function(e){return this.trimStart(e).trimEnd(e)},trimStart:function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r]))break;n.content.trimStart(e),r+=1}while(""===n.content.toString())}return this},trimEnd:function(e){var t,n=new RegExp((e||"\\s")+"+$"),r=this.sources.length-1;do{if(!(t=this.sources[r])){this.intro=this.intro.replace(n,"");break}t.content.trimEnd(e),r-=1}while(""===t.content.toString());return this}},t.a=m}).call(this,n(93).Buffer,n(56))},function(e,t,n){var r=n(408),i=n(407);function a(e,t){if(!(this instanceof a))return new a(e,t);if(this.node=this.start=this.peeked=e,this.root=t,this.closingTag=!1,this._revisit=!0,this._selects=[],this._rejects=[],e&&this.higher(e))throw new Error("root must be a parent or ancestor to node")}function o(e,t){var n="nextSibling"==e;return function(i,a,o){i=this.compile(i),a=a&&a>0?a:1;for(var s=this.node,u=this.closingTag,c=this._revisit;s;){if(r(n,u)&&s[t])s=s[t],u=!n;else if(1==s.nodeType&&!s[t]&&r(n,u)){if(u=n,!c)continue}else if(s[e])s=s[e],u=!n;else if(s=s.parentNode,u=n,!c)continue;if(!s||this.higher(s,this.root))break;if(i(s)&&this.selects(s,o)&&this.rejects(s,o)){if(--a)continue;return o||(this.node=s),this.closingTag=u,s}}return null}}e.exports=a,a.prototype.reset=function(e){return this.node=e||this.start,this},a.prototype.revisit=function(e){return this._revisit=void 0==e||e,this},a.prototype.opening=function(){return 1==this.node.nodeType&&(this.closingTag=!1),this},a.prototype.atOpening=function(){return!this.closingTag},a.prototype.closing=function(){return 1==this.node.nodeType&&(this.closingTag=!0),this},a.prototype.atClosing=function(){return this.closingTag},a.prototype.next=o("nextSibling","firstChild"),a.prototype.previous=a.prototype.prev=o("previousSibling","lastChild"),a.prototype.select=function(e){return e=this.compile(e),this._selects.push(e),this},a.prototype.selects=function(e,t){var n=this._selects,r=n.length;if(!r)return!0;for(var i=0;i0?this.next(e,t,!0):this.prev(e,Math.abs(t),!0):this.node},a.prototype.use=function(e){return e(this),this}},function(e,t,n){"use strict";var r,i=(e.exports=function(e){if(null==e)return"";var t=r||(r=new RegExp("("+Object.keys(i).join("|")+")","g"));return String(e).replace(t,function(e){return i[e]})}).chars={"'":"'","'":"'","&":"&",">":">","<":"<",""":'"'}},function(e,t,n){"use strict";e.exports=n(413)},function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,u,c,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},function(e,t,n){"use strict";n.r(t);var r=Math.PI,i=2*r,a=i-1e-6;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new o}o.prototype=s.prototype={constructor:o,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(e,t,n,i,a){e=+e,t=+t,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,u=n-e,c=i-t,l=o-e,f=s-t,h=l*l+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>1e-6)if(Math.abs(f*u-c*l)>1e-6&&a){var p=n-o,d=i-s,m=u*u+c*c,g=p*p+d*d,y=Math.sqrt(m),v=Math.sqrt(h),b=a*Math.tan((r-Math.acos((m+h-g)/(2*y*v)))/2),x=b/v,w=b/y;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*l)+","+(t+x*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>l*d)+","+(this._x1=e+w*u)+","+(this._y1=t+w*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,o,s,u){e=+e,t=+t;var c=(n=+n)*Math.cos(o),l=n*Math.sin(o),f=e+c,h=t+l,p=1^u,d=u?o-s:s-o;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(d<0&&(d=d%i+i),d>a?this._+="A"+n+","+n+",0,1,"+p+","+(e-c)+","+(t-l)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=r)+","+p+","+(this._x1=e+n*Math.cos(s))+","+(this._y1=t+n*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var u=s,c=function(e){return function(){return e}},l=Math.abs,f=Math.atan2,h=Math.cos,p=Math.max,d=Math.min,m=Math.sin,g=Math.sqrt,y=1e-12,v=Math.PI,b=v/2,x=2*v;function w(e){return e>=1?b:e<=-1?-b:Math.asin(e)}function E(e){return e.innerRadius}function k(e){return e.outerRadius}function _(e){return e.startAngle}function S(e){return e.endAngle}function C(e){return e&&e.padAngle}function A(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/g(s*s+u*u),l=c*u,f=-c*s,h=e+l,d=t+f,m=n+l,y=r+f,v=(h+m)/2,b=(d+y)/2,x=m-h,w=y-d,E=x*x+w*w,k=i-a,_=h*y-m*d,S=(w<0?-1:1)*g(p(0,k*k*E-_*_)),C=(_*w-x*S)/E,A=(-_*x-w*S)/E,D=(_*w+x*S)/E,T=(-_*x+w*S)/E,O=C-v,P=A-b,M=D-v,F=T-b;return O*O+P*P>M*M+F*F&&(C=D,A=T),{cx:C,cy:A,x01:-l,y01:-f,x11:C*(i/k-1),y11:A*(i/k-1)}}var D=function(){var e=E,t=k,n=c(0),r=null,i=_,a=S,o=C,s=null;function p(){var c,p,E=+e.apply(this,arguments),k=+t.apply(this,arguments),_=i.apply(this,arguments)-b,S=a.apply(this,arguments)-b,C=l(S-_),D=S>_;if(s||(s=c=u()),ky)if(C>x-y)s.moveTo(k*h(_),k*m(_)),s.arc(0,0,k,_,S,!D),E>y&&(s.moveTo(E*h(S),E*m(S)),s.arc(0,0,E,S,_,D));else{var T,O,P=_,M=S,F=_,j=S,L=C,N=C,R=o.apply(this,arguments)/2,z=R>y&&(r?+r.apply(this,arguments):g(E*E+k*k)),I=d(l(k-E)/2,+n.apply(this,arguments)),B=I,H=I;if(z>y){var V=w(z/E*m(R)),U=w(z/k*m(R));(L-=2*V)>y?(F+=V*=D?1:-1,j-=V):(L=0,F=j=(_+S)/2),(N-=2*U)>y?(P+=U*=D?1:-1,M-=U):(N=0,P=M=(_+S)/2)}var q=k*h(P),W=k*m(P),G=E*h(j),X=E*m(j);if(I>y){var J=k*h(M),K=k*m(M),Y=E*h(F),$=E*m(F);if(Cy?function(e,t,n,r,i,a,o,s){var u=n-e,c=r-t,l=o-i,f=s-a,h=(l*(t-a)-f*(e-i))/(f*u-l*c);return[e+h*u,t+h*c]}(q,W,Y,$,J,K,G,X):[G,X],Q=q-Z[0],ee=W-Z[1],te=J-Z[0],ne=K-Z[1],re=1/m(function(e){return e>1?0:e<-1?v:Math.acos(e)}((Q*te+ee*ne)/(g(Q*Q+ee*ee)*g(te*te+ne*ne)))/2),ie=g(Z[0]*Z[0]+Z[1]*Z[1]);B=d(I,(E-ie)/(re-1)),H=d(I,(k-ie)/(re+1))}}N>y?H>y?(T=A(Y,$,q,W,k,H,D),O=A(J,K,G,X,k,H,D),s.moveTo(T.cx+T.x01,T.cy+T.y01),Hy&&L>y?B>y?(T=A(G,X,J,K,E,-B,D),O=A(q,W,Y,$,E,-B,D),s.lineTo(T.cx+T.x01,T.cy+T.y01),B=f;--h)s.point(y[h],v[h]);s.lineEnd(),s.areaEnd()}g&&(y[l]=+e(p,l,c),v[l]=+n(p,l,c),s.point(t?+t(p,l,c):y[l],r?+r(p,l,c):v[l]))}if(d)return s=null,d+""||null}function f(){return F().defined(i).curve(o).context(a)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:c(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:c(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:c(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:c(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:c(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:c(+e),l):r},l.lineX0=l.lineY0=function(){return f().x(e).y(n)},l.lineY1=function(){return f().x(e).y(r)},l.lineX1=function(){return f().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:c(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,null!=a&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(null==e?a=s=null:s=o(a=e),l):a},l},L=function(e,t){return te?1:t>=e?0:NaN},N=function(e){return e},R=function(){var e=N,t=L,n=null,r=c(0),i=c(x),a=c(0);function o(o){var s,u,c,l,f,h=o.length,p=0,d=new Array(h),m=new Array(h),g=+r.apply(this,arguments),y=Math.min(x,Math.max(-x,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/h,a.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s0&&(p+=f);for(null!=t?d.sort(function(e,n){return t(m[e],m[n])}):null!=n&&d.sort(function(e,t){return n(o[e],o[t])}),s=0,c=p?(y-h*b)/p:0;s0?f*c:0)+b,m[u]={data:o[u],index:s,value:f,startAngle:g,endAngle:l,padAngle:v};return m}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:c(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:c(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:c(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:c(+e),o):a},o},z=B(O);function I(e){this._curve=e}function B(e){function t(t){return new I(e(t))}return t._curve=e,t}function H(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(B(e)):t()._curve},e}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var V=function(){return H(F().curve(z))},U=function(){var e=j().curve(z),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return H(n())},delete e.lineX0,e.lineEndAngle=function(){return H(r())},delete e.lineX1,e.lineInnerRadius=function(){return H(i())},delete e.lineY0,e.lineOuterRadius=function(){return H(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t(B(e)):t()._curve},e},q=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},W=Array.prototype.slice;function G(e){return e.source}function X(e){return e.target}function J(e){var t=G,n=X,r=P,i=M,a=null;function o(){var o,s=W.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||(a=o=u()),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r="function"==typeof e?e:c(+e),o):r},o.y=function(e){return arguments.length?(i="function"==typeof e?e:c(+e),o):i},o.context=function(e){return arguments.length?(a=null==e?null:e,o):a},o}function K(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Y(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function $(e,t,n,r,i){var a=q(t,n),o=q(t,n=(n+i)/2),s=q(r,n),u=q(r,i);e.moveTo(a[0],a[1]),e.bezierCurveTo(o[0],o[1],s[0],s[1],u[0],u[1])}function Z(){return J(K)}function Q(){return J(Y)}function ee(){var e=J($);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var te={draw:function(e,t){var n=Math.sqrt(t/v);e.moveTo(n,0),e.arc(0,0,n,0,x)}},ne={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},re=Math.sqrt(1/3),ie=2*re,ae={draw:function(e,t){var n=Math.sqrt(t/ie),r=n*re;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},oe=Math.sin(v/10)/Math.sin(7*v/10),se=Math.sin(x/10)*oe,ue=-Math.cos(x/10)*oe,ce={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=se*n,i=ue*n;e.moveTo(0,-n),e.lineTo(r,i);for(var a=1;a<5;++a){var o=x*a/5,s=Math.cos(o),u=Math.sin(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},le={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},fe=Math.sqrt(3),he={draw:function(e,t){var n=-Math.sqrt(t/(3*fe));e.moveTo(0,2*n),e.lineTo(-fe*n,-n),e.lineTo(fe*n,-n),e.closePath()}},pe=Math.sqrt(3)/2,de=1/Math.sqrt(12),me=3*(de/2+1),ge={draw:function(e,t){var n=Math.sqrt(t/me),r=n/2,i=n*de,a=r,o=n*de+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(-.5*r-pe*i,pe*r+-.5*i),e.lineTo(-.5*a-pe*o,pe*a+-.5*o),e.lineTo(-.5*s-pe*u,pe*s+-.5*u),e.lineTo(-.5*r+pe*i,-.5*i-pe*r),e.lineTo(-.5*a+pe*o,-.5*o-pe*a),e.lineTo(-.5*s+pe*u,-.5*u-pe*s),e.closePath()}},ye=[te,ne,ae,le,ce,he,ge],ve=function(){var e=c(te),t=c(64),n=null;function r(){var r;if(n||(n=r=u()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:c(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:c(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},be=function(){};function xe(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function we(e){this._context=e}we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xe(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ee=function(e){return new we(e)};function ke(e){this._context=e}ke.prototype={areaStart:be,areaEnd:be,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var _e=function(e){return new ke(e)};function Se(e){this._context=e}Se.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ce=function(e){return new Se(e)};function Ae(e,t){this._basis=new we(e),this._beta=t}Ae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*o),this._beta*t[u]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var De=function e(t){function n(e){return 1===t?new we(e):new Ae(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Te(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Oe(e,t){this._context=e,this._k=(1-t)/6}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Te(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Te(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Pe=function e(t){function n(e){return new Oe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Me(e,t){this._context=e,this._k=(1-t)/6}Me.prototype={areaStart:be,areaEnd:be,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Te(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Fe=function e(t){function n(e){return new Me(e,t)}return n.tension=function(t){return e(+t)},n}(0);function je(e,t){this._context=e,this._k=(1-t)/6}je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Te(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Le=function e(t){function n(e){return new je(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ne(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>y){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>y){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Re(e,t){this._context=e,this._alpha=t}Re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ne(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ze=function e(t){function n(e){return t?new Re(e,t):new Oe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ie(e,t){this._context=e,this._alpha=t}Ie.prototype={areaStart:be,areaEnd:be,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ne(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Be=function e(t){function n(e){return t?new Ie(e,t):new Me(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function He(e,t){this._context=e,this._alpha=t}He.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ne(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ve=function e(t){function n(e){return t?new He(e,t):new je(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ue(e){this._context=e}Ue.prototype={areaStart:be,areaEnd:be,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var qe=function(e){return new Ue(e)};function We(e){return e<0?-1:1}function Ge(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(We(a)+We(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Xe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Je(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Ke(e){this._context=e}function Ye(e){this._context=new $e(e)}function $e(e){this._context=e}function Ze(e){return new Ke(e)}function Qe(e){return new Ye(e)}function et(e){this._context=e}function tt(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var it=function(e){return new rt(e,.5)};function at(e){return new rt(e,0)}function ot(e){return new rt(e,1)}var st=function(e,t){if((i=e.length)>1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a=0;)n[t]=t;return n};function ct(e,t){return e[t]}var lt=function(){var e=c([]),t=ut,n=st,r=ct;function i(i){var a,o,s=e.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(a=0;a0){for(var n,r,i,a=0,o=e[0].length;a1)for(var n,r,i,a,o,s,u=0,c=e[t[0]].length;u=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a},pt=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],a=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,a=0,o=1;o=arguments.length)?u=t[s]:(u=arguments[a],a+=1),i[s]=u,r(u)||(o-=1),s+=1}return o<=0?n.apply(this,i):h(o,p(e,i,n))}}var d=c(function(e,t){return 1===e?i(t):h(e,p(e,[],t))}),m=i(function(e){return d(e.length,function(){var t=0,n=arguments[0],r=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=n.apply(this,f(arguments,[t,r]));return t+=1,e},e.apply(this,i)})});function g(e){return function t(n,a,o){switch(arguments.length){case 0:return t;case 1:return r(n)?t:c(function(t,r){return e(n,t,r)});case 2:return r(n)&&r(a)?t:r(n)?c(function(t,n){return e(t,a,n)}):r(a)?c(function(t,r){return e(n,t,r)}):i(function(t){return e(n,a,t)});default:return r(n)&&r(a)&&r(o)?t:r(n)&&r(a)?c(function(t,n){return e(t,n,o)}):r(n)&&r(o)?c(function(t,n){return e(t,a,n)}):r(a)&&r(o)?c(function(t,r){return e(n,t,r)}):r(n)?i(function(t){return e(t,a,o)}):r(a)?i(function(t){return e(n,t,o)}):r(o)?i(function(t){return e(n,a,t)}):e(n,a,o)}}}var y=g(function(e,t,n){if(t>=n.length||t<-n.length)return n;var r=(t<0?n.length:0)+t,i=f(n);return i[r]=e(n[r]),i}),v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function b(e){return"function"==typeof e["@@transducer/step"]}function x(e,t,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!v(i)){for(var a=0;ae?t:e});function C(e,t){for(var n=0,r=t.length,i=Array(r);n0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}),T=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function O(e){return new T(e)}var P=c(function(e,t){return h(e.length,function(){return e.apply(t,arguments)})});function M(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function F(e,t,n,r){return e["@@transducer/result"](n[r](P(e["@@transducer/step"],e),t))}var j="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function L(e,t,n){if("function"==typeof e&&(e=O(e)),D(n))return function(e,t,n){for(var r=0,i=n.length;r=0;)z(t=V[n],e)&&!q(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:Object.keys(e)}),G=c(x(["fantasy-land/map","map"],R,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return d(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return L(function(n,r){return n[r]=e(t[r]),n},{},W(t));default:return C(e,t)}})),X=c(function(e,t){for(var n=t,r=0;r=0?r:0);ni?1:0}),he=g(function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r}),pe=Number.isInteger||function(e){return e<<0===e},de=i(function(e){return null==e}),me=g(function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var a=!de(r)&&z(i,r)?r[i]:pe(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,a)}if(pe(i)&&v(r)){var o=[].concat(r);return o[i]=n,o}return he(i,n,r)}),ge=c(function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,i){return t.call(this,e,n,r,i)};case 5:return function(e,n,r,i,a){return t.call(this,e,n,r,i,a)};case 6:return function(e,n,r,i,a,o){return t.call(this,e,n,r,i,a,o)};case 7:return function(e,n,r,i,a,o,s){return t.call(this,e,n,r,i,a,o,s)};case 8:return function(e,n,r,i,a,o,s,u){return t.call(this,e,n,r,i,a,o,s,u)};case 9:return function(e,n,r,i,a,o,s,u,c){return t.call(this,e,n,r,i,a,o,s,u,c)};case 10:return function(e,n,r,i,a,o,s,u,c,l){return t.call(this,e,n,r,i,a,o,s,u,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),ye=i(function(e){return ge(2,e)});function ve(e){return"[object Function]"===Object.prototype.toString.call(e)}var be=c(function(e,t){var n=d(e,t);return d(e,function(){return L(re,G(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),xe=i(function(e){return be(e.length,e)}),we=c(function(e,t){return ve(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:xe(Z)(e,t)}),Ee=i(function(e){return d(e.length,e)}),ke=Ee(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))});function _e(e){return function t(n){for(var r,i,a,o=[],s=0,u=n.length;st)throw new Error("min must not be greater than max in clamp(min, max, value)");return nt?t:n});function De(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var Te=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Oe(e,t,n,r){var i=function(i){for(var a=t.length,o=0;o=0;){if(n[a]===e)return r[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&Ke(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Ke(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=W(e);if(o.length!==W(t).length)return!1;var s=n.concat([e]),u=r.concat([t]);for(a=o.length-1;a>=0;){var c=o[a];if(!z(c,t)||!Ye(t[c],e[c],s,u))return!1;a-=1}return!0}var $e=c(function(e,t){return Ye(e,t,[],[])});function Ze(e,t,n){var r,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n=0}function et(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var tt=function(e){return(e<10?"0":"")+e},nt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+tt(e.getUTCMonth()+1)+"-"+tt(e.getUTCDate())+"T"+tt(e.getUTCHours())+":"+tt(e.getUTCMinutes())+":"+tt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function rt(e){return function(){return!e.apply(this,arguments)}}function it(e,t){for(var n=0,r=t.length,i=[];n":e(r,i)},i=function(e,t){return C(function(t){return et(t)+": "+r(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+C(r,t).join(", ")+"))";case"[object Array]":return"["+C(r,t).concat(i(t,ut(function(e){return/^\d+$/.test(e)},W(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):et(nt(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":et(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var a=t.toString();if("[object Object]"!==a)return a}return"{"+i(t,W(t)).join(", ")+"}"}}(e,[])}),lt=c(function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(ct(t)+" is not an array")}if(A(e)){if(A(t))return e+t;throw new TypeError(ct(t)+" is not a string")}if(null!=e&&ve(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&ve(e.concat))return e.concat(t);throw new TypeError(ct(e)+' does not have a method named "concat" or "fantasy-land/concat"')}),ft=i(function(e){return h(Y(S,0,G(function(e){return e[0].length},e)),function(){for(var t=0;t10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:Ee(ge(e,function(e,n,r,i,a,o,s,u,c,l){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,i);case 5:return new t(e,n,r,i,a);case 6:return new t(e,n,r,i,a,o);case 7:return new t(e,n,r,i,a,o,s);case 8:return new t(e,n,r,i,a,o,s,u);case 9:return new t(e,n,r,i,a,o,s,u,c);case 10:return new t(e,n,r,i,a,o,s,u,c,l)}}))}),pt=i(function(e){return ht(e.length,e)}),dt=c(Qe),mt=c(function(e,t){return d(Y(S,0,K("length",t)),function(){var n=arguments,r=this;return e.apply(r,C(function(e){return e.apply(r,n)},t))})}),gt=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(z(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),yt=p(4,[],x([],p(4,[],function(e,t,n,r){return new gt(e,t,n,r)}),function(e,t,n,r){return L(function(r,i){var a=n(i);return r[a]=e(z(a,r)?r[a]:t,i),r},{},r)})),vt=yt(function(e,t){return e+1},0),bt=l(-1),xt=c(function(e,t){return null==t||t!=t?e:t}),wt=g(function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}(),Ot=c(x(["drop"],c(function(e,t){return new Tt(e,t)}),function(e,t){return Re(Math.max(0,e),1/0,t)})),Pt=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=E.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?w(n):n},e}(),Mt=c(x(["take"],c(function(e,t){return new Pt(e,t)}),function(e,t){return Re(0,e<0?1/0:e,t)}));var Ft=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}(),jt=c(x([],c(function(e,t){return new Ft(e,t)}),function(e,t){return Mt(e=0&&e(t[n]);)n-=1;return Re(0,n+1,t)})),Rt=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=E.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}(),zt=c(function(e,t){return new Rt(e,t)}),It=c(function(e,t){var n=e<0?t.length+e:e;return A(t)?t.charAt(n):t[n]}),Bt=It(-1),Ht=c(x([],zt,function(e,t){var n=[],r=1,i=t.length;if(0!==i)for(n[0]=t[0];r=0?t.length-e:0,t)}),Kt=c(function(e,t){return $e(Jt(e.length,t),e)}),Yt=g(function(e,t,n){return $e(e(t),e(n))}),$t=g(function(e,t,n){return $e(t[e],n[e])}),Zt=c(function e(t,n){var r,i,a,o={};for(i in n)a=typeof(r=t[i]),o[i]="function"===a?r(n[i]):r&&"object"===a?e(r,n[i]):n[i];return o}),Qt=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=w(this.xf["@@transducer/step"](e,t))),e},e}(),en=c(x(["find"],c(function(e,t){return new Qt(e,t)}),function(e,t){for(var n=0,r=t.length;n=0;){if(e(t[n]))return t[n];n-=1}})),on=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}(),sn=c(x([],c(function(e,t){return new on(e,t)}),function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1})),un=i(_e(!0)),cn=i(function(e){return d(e.length,function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)})}),ln=c(Ne("forEach",function(e,t){for(var n=t.length,r=0;rt}),gn=c(function(e,t){return e>=t}),yn=c(z),vn=c(function(e,t){return e in t}),bn=It(0);function xn(e){return e}var wn=i(xn),En=g(function(e,t,n){return d(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})}),kn=l(1),_n=yt(function(e,t){return t},null),Sn=c(function(e,t){return"function"!=typeof t.indexOf||v(t)?Ze(t,e,0):t.indexOf(e)}),Cn=Re(0,-1),An=g(function(e,t,n){return it(function(t){return Xe(e,t,n)},t)}),Dn=g(function(e,t,n){e=e=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r}),Tn=g(function(e,t,n){return e=e=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))});function On(e,t,n){var r,i=typeof e;switch(i){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):i in n._items?e in n._items[i]||(t&&(n._items[i][e]=!0),!1):(t&&(n._items[i]={},n._items[i][e]=!0),!1);case"boolean":if(i in n._items){var a=e?1:0;return!!n._items[i][a]||(t&&(n._items[i][a]=!0),!1)}return t&&(n._items[i]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):i in n._items?!!Qe(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1);case"undefined":return!!n._items[i]||(t&&(n._items[i]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in n._items?!!Qe(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1)}}var Pn=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!On(e,!0,this)},e.prototype.has=function(e){return On(e,!1,this)},e}(),Mn=c(function(e,t){for(var n,r,i=new Pn,a=[],o=0;ot.length?(n=e,r=t):(n=t,r=e),Fn(it(cn(Qe)(n),r))}),Ln=c(Ne("intersperse",function(e,t){for(var n=[],r=0,i=t.length;r=0;){if($e(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)});function $n(e){return"[object Number]"===Object.prototype.toString.call(e)}var Zn=i(function(e){return null!=e&&$n(e.length)?e.length:NaN}),Qn=c(function(e,t){return function(n){return function(r){return G(function(e){return t(e,r)},n(e(r)))}}}),er=i(function(e){return Qn(It(e),Ct(e))}),tr=i(function(e){return Qn(X(e),me(e))}),nr=i(function(e){return Qn(J(e),he(e))}),rr=c(function(e,t){return e=0;)a=e(n[r],a[0]),i[r]=a[1],r-=1;return[i,a[0]]}),sr=c(function(e,t){return L(function(n,r){return n[r]=e(t[r],r,t),n},{},W(t))}),ur=c(function(e,t){return t.match(e)||[]}),cr=c(function(e,t){return pe(e)?!pe(t)||t<1?NaN:(e%t+t)%t:NaN}),lr=g(function(e,t,n){return e(n)>e(t)?n:t}),fr=Y(l,0),hr=i(function(e){return fr(e)/e.length}),pr=i(function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return hr(Array.prototype.slice.call(e,0).sort(function(e,t){return et?1:0}).slice(r,r+n))}),dr=c(function(e,t){var n={};return h(t.length,function(){var r=e.apply(this,arguments);return z(r,n)||(n[r]=t.apply(this,arguments)),n[r]})}),mr=dr(function(){return ct(arguments)}),gr=c(function(e,t){return Nn({},e,t)}),yr=i(function(e){return Nn.apply(null,[{}].concat(e))}),vr=g(function(e,t,n){var r,i={};for(r in t)z(r,t)&&(i[r]=z(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)z(r,n)&&!z(r,i)&&(i[r]=n[r]);return i}),br=g(function e(t,n,r){return vr(function(n,r,i){return at(r)&&at(i)?e(t,r,i):t(n,r,i)},n,r)}),xr=c(function(e,t){return br(function(e,t,n){return t},e,t)}),wr=c(function(e,t){return br(function(e,t,n){return n},e,t)}),Er=g(function(e,t,n){return br(function(t,n,r){return e(n,r)},t,n)}),kr=g(function(e,t,n){return vr(function(t,n,r){return e(n,r)},t,n)}),_r=c(function(e,t){return t0&&e(X(t,n))}),Wr=c(function(e,t){for(var n={},r=0;r=0;)t=e(n[r],t),r-=1;return t}),oi=p(4,[],function(e,t,n,r){return L(function(n,r){return e(n,r)?t(n,r):w(n)},n,r)}),si=i(w),ui=c(function(e,t){var n,r=Number(t),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);ii?1:0})}),gi=c(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var r=0,i=0;0===r&&i=0&&e(t[n]);)n-=1;return Re(n+1,1/0,t)}),Ci=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=E.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):w(e)},e}(),Ai=c(x(["takeWhile"],c(function(e,t){return new Ci(e,t)}),function(e,t){for(var n=0,r=t.length;n\n Hello World!\n \n All of the primer-react components are available in this sandbox!\n \n \n This is a box with some mono text.\n \n",scope:s})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=a(n(159));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return r.default.createElement(i.default,null)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(1)),a=n(3),o=s(n(126));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.numCommits,n=e.onClick,i=e.desktopUrl,s=e.state;return r.default.createElement(a.Block,{py:3,px:4,bg:"gray-light",style:{borderBottomLeftRadius:"3px",borderBottomRightRadius:"3px"}},r.default.createElement(o.default,{primary:"ready"===s,numCommits:t,onClick:n}),r.default.createElement(a.Text,{ml:2},"You can also "),r.default.createElement(a.Link,{nounderline:!0,href:i},"open this in Github Desktop"),r.default.createElement(a.Text,null," or view "),r.default.createElement(a.ButtonLink,null,"command line instructions."))};u.propTypes={desktopUrl:i.default.string.isRequired,numCommits:o.default.propTypes.numCommits,onClick:i.default.func.isRequired,state:i.default.string.isRequired},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(14)),i=u(n(0)),a=u(n(1)),o=n(22),s=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var c={ready:"green",invalid:"invalid",merged:"purple",pending:"yellow"},l=function(e){var t=e.state;return i.default.createElement("div",{className:"p-2 d-flex border-bottom"},i.default.createElement(s.Block,{mt:2},i.default.createElement(s.CircleOcticon,{icon:o.Check,size:32,bg:c[t],color:"white"})),i.default.createElement(s.Block,{p:2,display:"inline"},i.default.createElement(s.Text,{tag:"p",p:0,m:0,fontSize:2,fontWeight:"bold"},"This branch has no conflicts with the base branch"),i.default.createElement(s.Text,{tag:"p",pt:1,m:0,fontSize:0},"Merging can be performed automatically")))};l.propTypes={state:a.default.oneOf((0,r.default)(c)).isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),i=u(n(1)),a=n(3),o=u(n(203)),s=u(n(202));function u(e){return e&&e.__esModule?e:{default:e}}var c={ready:"green",invalid:"invalid",merged:"purple",pending:"yellow"};var l=function(e){var t=e.state,n=e.repoUrl,i=e.branchName,u=e.numCommits,l=e.onMerge;return r.default.createElement("div",{className:"d-flex flex-items-start"},r.default.createElement(a.MergeStatus,{state:t}),r.default.createElement(a.CaretBox,{ml:3,borderColor:c[t],caret:"left-top"},r.default.createElement(o.default,{state:t}),r.default.createElement(s.default,{state:t,numCommits:u,desktopUrl:function(e,t){return"x-github-client://openRepo/"+e+"?branch="+t}(n,i),onClick:l})))};l.propTypes={branchName:i.default.string.isRequired,numCommits:i.default.number.isRequired,onMerge:i.default.func.isRequired,repoUrl:i.default.string.isRequired,state:i.default.oneOf(["ready","invalid","merged","pending"]).isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),i=n(33),a=c(n(127)),o=c(n(204)),s=c(n(126)),u=n(3);function c(e){return e&&e.__esModule?e:{default:e}}var l=[{name:"MergeBox",element:r.default.createElement(u.Block,{p:4},r.default.createElement(i.LiveEditor,{code:" alert('merge!')}\n/>",scope:{MergeBox:o.default}}))},{name:"MergeButton",element:r.default.createElement(u.Block,{p:4},r.default.createElement(i.LiveEditor,{code:" alert('merge!')}\n/>",scope:{MergeButton:s.default}}))}];t.default=function(){return r.default.createElement(i.Library,{basename:"/primer-react/demo",title:"Demo Library",examples:l,renderSideNav:function(e){var t=e.title,n=e.examples;return r.default.createElement(a.default,{title:t,examples:n})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(21)),a=n(3),o=n(43);function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"UnderlineNav",element:r.default.createElement("div",null,r.default.createElement(a.Block,{mb:4},r.default.createElement(i.default,null,"Using ",r.default.createElement(a.Text,{mono:!0},"")),r.default.createElement(a.UnderlineNav,null,r.default.createElement(a.UnderlineNavLink,{href:"#foo",selected:!0},"Selected"),r.default.createElement(a.UnderlineNavLink,{href:"#bar"},"Bar"),r.default.createElement(a.UnderlineNavLink,{href:"#baz"},"Baz"))),r.default.createElement(a.Block,{mb:4},r.default.createElement(i.default,null,"Using ",r.default.createElement(a.Text,{mono:!0},"")," tags"),r.default.createElement(a.UnderlineNav,null,r.default.createElement("a",{href:"#foo"},"Foo"),r.default.createElement("a",{href:"#bar",selected:!0},"Selected"),r.default.createElement("a",{href:"#baz"},"Baz"))),r.default.createElement(a.Block,{mb:4},r.default.createElement(i.default,null,"Using ",r.default.createElement(a.Text,{mono:!0},"")," from react-router"),r.default.createElement(a.UnderlineNav,null,r.default.createElement(o.NavLink,{to:"#foo"},"Foo"),r.default.createElement(o.NavLink,{to:"#bar"},"Two"),r.default.createElement(o.NavLink,{to:"/"},"Selected"))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Tooltip",element:r.default.createElement("div",null,r.default.createElement(i.Box,{p:3},r.default.createElement(i.Tooltip,{text:"Hello, Tooltip!"},"Text with a tooltip")),r.default.createElement(i.Block,{p:2,my:2},r.default.createElement(a.default,{mt:3},"Directions"),i.Tooltip.directions.map(function(e){return r.default.createElement(i.Box,{p:3,my:2,key:e},r.default.createElement(i.Tooltip,{text:"Hello, Tooltip!",direction:e},"Tooltip direction=",e))}),r.default.createElement(a.default,{mt:3},"Alignment"),i.Tooltip.alignments.map(function(e){return r.default.createElement(i.Box,{p:3,my:2,key:e},r.default.createElement(i.Tooltip,{text:"Hello, Tooltip!",direction:"ne",align:e},"Tooltip align=",e))}),r.default.createElement(a.default,{mt:3},"Word wrap"),r.default.createElement(i.Box,{p:3,my:2},r.default.createElement(i.Tooltip,{text:"Hello, Tooltip! This tooltip has a sentence that will wrap to a newline.",wrap:!0,direction:"ne",align:"left"},"Word wrapping tooltip")),r.default.createElement(a.default,{mt:3},"No Delay"),r.default.createElement(i.Box,{p:3,my:2},r.default.createElement(i.Tooltip,{noDelay:!0,text:"Hello, Tooltip!"},"Text with a tooltip"))))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Text",element:r.default.createElement("div",null,r.default.createElement(i.Text,{tag:"div"},"Text"),r.default.createElement(i.Text,{tag:"div",fontWeight:"bold"},"Text bold"),r.default.createElement(i.Text,{tag:"div",color:"green"},"Text green"),r.default.createElement(i.Text,{tag:"div",lineHeight:"condensed"},"Text lineHeight 'condensed'"),r.default.createElement(i.Text,{tag:"div",fontSize:4},"Text fontSize 4"),r.default.createElement(i.Text,{tag:"div",p:4},"Text padding 4"))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),i=n(22),a=u(i),o=n(3),s=u(n(21));function u(e){return e&&e.__esModule?e:{default:e}}var c={name:"StateLabel",element:r.default.createElement("div",null,r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"open"},"Open")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"closed"},"Closed")),r.default.createElement(o.Block,{mb:4},r.default.createElement(o.StateLabel,{state:"merged"},"Merged")),r.default.createElement(o.Block,{mb:4},r.default.createElement(s.default,null,"By state (Octicons built in)"),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,null,"Unknown")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"open"},"Open")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"closed"},"Closed")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"merged"},"Merged")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"reopened"},"Reopened"))),r.default.createElement(o.Block,{mb:4},r.default.createElement(s.default,null,"By color"),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{scheme:"invalid"},"Invalid")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{scheme:"green"},"Green")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{scheme:"red"},"Red")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{scheme:"purple"},"Purple"))),r.default.createElement(o.Block,{mb:4},r.default.createElement(s.default,null,"Small, by state"),r.default.createElement(o.Block,{mb:2},r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0},"Unknown")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,state:"open"},"Open")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,state:"closed"},"Closed")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,state:"merged"},"Merged")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,state:"reopened"},"Reopened")))),r.default.createElement(o.Block,{mb:4},r.default.createElement(s.default,null,"Small, by color"),r.default.createElement(o.Block,{mb:2},r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"invalid"},"Invalid")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"green"},"Green")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"red"},"Red")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"purple"},"Purple")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"green",icon:r.default.createElement(a.default,{icon:i.GitBranch})},"Custom Octicon")))))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"MergeStatus",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:2},r.default.createElement(i.MergeStatus,{state:"pending"})),r.default.createElement(i.Block,{mb:2},r.default.createElement(i.MergeStatus,{state:"invalid"})),r.default.createElement(i.Block,{mb:2},r.default.createElement(i.MergeStatus,{state:"merged"})),r.default.createElement(i.Block,{mb:2},r.default.createElement(i.MergeStatus,{state:"ready"})))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Link",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:1},r.default.createElement(i.Link,{href:"https://github.com"},"Link")),r.default.createElement(i.Block,{mb:1},r.default.createElement(i.Link,{muted:!0,href:"https://github.com"},"Link muted")),r.default.createElement(i.Block,{mb:1},r.default.createElement(i.Link,{scheme:"gray",href:"https://github.com"},"Link gray")),r.default.createElement(i.Block,{mb:1},r.default.createElement(i.Link,{scheme:"gray-dark",href:"https://github.com"},"Link gray-dark")))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Label",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Label,null,"Default label"),r.default.createElement(i.Label,{scheme:"gray-darker"},"Darker gray label"),r.default.createElement(i.Label,{scheme:"orange"},"Orange label"),r.default.createElement(i.Label,{scheme:"green"},"Green label")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Label,{outline:!0},"Default outline label"),r.default.createElement(i.Label,{outline:!0,scheme:"green"},"Green outline label")))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Heading",element:r.default.createElement("div",null,r.default.createElement(i.Heading,{mb:2},"Default Heading"),[0,1,2,3,4,5,"00-light","0-light","1-light","2-light","3-light"].map(function(e){return r.default.createElement(i.Heading,{key:e,fontSize:e,mb:2},"With fontSize=",e)}))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Form elements",element:r.default.createElement("div",null,r.default.createElement(a.default,null,"Input"),r.default.createElement(i.TextInput,{name:"zipcode"}),r.default.createElement(a.default,null,"Input Sizes"),r.default.createElement(i.Box,null,r.default.createElement(i.TextInput,{name:"zipcode",size:"small",placeholder:"Small input"})),r.default.createElement(i.Box,null,r.default.createElement(i.TextInput,{name:"zipcode",size:"large",placeholder:"Large input"})),r.default.createElement(a.default,null,"Block input"),r.default.createElement(i.TextInput,{block:!0,placeholder:"Full width block input"}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Font sizes",element:r.default.createElement("div",null,[5,4,3,2,1,0].map(function(e){return r.default.createElement(i.Text,{tag:"div",key:e,fontSize:e},"fontSize ",e)}))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(14)),i=u(n(0)),a=n(33),o=n(3),s=u(n(21));function u(e){return e&&e.__esModule?e:{default:e}}var c={wrap:["wrap","nowrap"],direction:["row","row-reverse","column"],justifyContent:["start","end","center","between","around"],alignItems:["start","end","center","baseline","stretch"],alignContent:["start","end","center","between","around","stretch"]},l={name:"Flex",element:i.default.createElement("div",null,i.default.createElement(s.default,null,"FlexContainer"),i.default.createElement(a.PropsForm,null,i.default.createElement(o.FlexContainer,{wrap:"wrap",direction:"row",justifyContent:"start",alignItems:"start",alignContent:"start",flexAuto:!0,alignSelf:"start",width:300,height:300,border:!0},i.default.createElement(o.Block,{p:3,bg:"blue"},"Item 1"),i.default.createElement(o.Block,{p:3,bg:"green"},"Item 2"),i.default.createElement(o.Block,{p:3,bg:"yellow"},"Item 3"),i.default.createElement(o.Block,{p:3,bg:"red"},"Item 4"),i.default.createElement(o.Block,{p:3,bg:"purple"},"Item 5")),(0,r.default)(c).map(function(e){return i.default.createElement(a.PropsForm.Select,{key:e,name:e},c[e].map(function(e){return i.default.createElement("option",{key:e},e)}))})),i.default.createElement(s.default,{mt:3},"FlexContainer + FlexItems set to flexAuto"),i.default.createElement(o.FlexContainer,{wrap:"nowrap",width:300,height:300,border:!0},i.default.createElement(o.FlexItem,{flexAuto:!0},i.default.createElement(o.Block,{p:3,bg:"blue"},"Item 1")),i.default.createElement(o.FlexItem,{flexAuto:!0},i.default.createElement(o.Block,{p:3,bg:"green"},"Item 2")),i.default.createElement(o.FlexItem,{flexAuto:!0},i.default.createElement(o.Block,{p:3,bg:"yellow"},"Item 3"))),i.default.createElement(s.default,{mt:2},"FlexContainer + FlexItems with first item set to alignSelf='center'"),i.default.createElement(o.FlexContainer,{wrap:"nowrap",width:300,height:300,border:!0},i.default.createElement(o.FlexItem,{alignSelf:"center"},i.default.createElement(o.Block,{p:3,bg:"blue"},"Item 1")),i.default.createElement(o.FlexItem,null,i.default.createElement(o.Block,{p:3,bg:"green"},"Item 2")),i.default.createElement(o.FlexItem,null,i.default.createElement(o.Block,{p:3,bg:"yellow"},"Item 3"))),i.default.createElement(s.default,{mt:2},'FlexContainer + FlexItems using tag prop set to "p"'),i.default.createElement(o.FlexContainer,{wrap:"nowrap",width:300,height:300,border:!0},i.default.createElement(o.FlexItem,{tag:"p"},i.default.createElement(o.Block,{p:3,bg:"blue"},"Item 1")),i.default.createElement(o.FlexItem,{tag:"p"},i.default.createElement(o.Block,{p:3,bg:"green"},"Item 2")),i.default.createElement(o.FlexItem,{tag:"p"},i.default.createElement(o.Block,{p:3,bg:"yellow"},"Item 3"))))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Flash",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,null," Flash ")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,{scheme:"yellow"}," Flash yellow ")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,{scheme:"red"}," Flash red ")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,{scheme:"green"}," Flash green ")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,{full:!0}," Flash full ")))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"DonutChart",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,null,"With ",r.default.createElement(i.Text,{mono:!0},"data")," prop"),r.default.createElement(i.DonutChart,{data:{error:2,pending:3,success:5}})," ",r.default.createElement(i.DonutChart,{data:{error:1,pending:4,success:2}})," ",r.default.createElement(i.DonutChart,{data:{pending:2,success:6}})," ",r.default.createElement(i.DonutChart,{data:{pending:0,success:1}})," ",r.default.createElement(i.DonutChart,{data:{pending:1,queued:1}})," ",r.default.createElement(i.DonutChart,{data:{unknown:1}})),r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,null,"With ",r.default.createElement(i.Text,{mono:!0},"DonutSlice")," children"),r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,state:"pending"}),r.default.createElement(i.DonutSlice,{value:1,state:"success"}),r.default.createElement(i.DonutSlice,{value:1,state:"error"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,state:"error"}),r.default.createElement(i.DonutSlice,{value:4,state:"pending"}),r.default.createElement(i.DonutSlice,{value:2,state:"success"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:2,state:"pending"}),r.default.createElement(i.DonutSlice,{value:6,state:"success"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:0,state:"pending"}),r.default.createElement(i.DonutSlice,{value:1,state:"success"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,state:"pending"}),r.default.createElement(i.DonutSlice,{value:1,state:"queued"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,state:"queued"}))),r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,null,"With custom ",r.default.createElement(i.Text,{mono:!0},"fill")," colors"),r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[0]}),r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[1]}),r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[2]}),r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[3]}),r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[4]}))))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Dropdown",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:4},r.default.createElement(a.default,null,"Dropdown Primary"),r.default.createElement(i.Dropdown,{scheme:"primary"},r.default.createElement("ul",null,r.default.createElement("li",null,"Item 1"),r.default.createElement("li",null,"Item 2"),r.default.createElement("li",null,"Item 3")))),r.default.createElement(i.Block,{my:4},r.default.createElement(a.default,null,"Dropdown"),r.default.createElement(i.Dropdown,null,r.default.createElement("ul",null,r.default.createElement("li",null,"Item 1"),r.default.createElement("li",null,"Item 2"),r.default.createElement("li",null,"Item 3")))),r.default.createElement(i.Block,{my:4},r.default.createElement(a.default,null,"Dropdown with title"),r.default.createElement(i.Dropdown,{title:"Options"},r.default.createElement("ul",null,r.default.createElement("li",null,"Item 1"),r.default.createElement("li",null,"Item 2"),r.default.createElement("li",null,"Item 3")))))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Details",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:4},r.default.createElement(a.default,null,"With static children"),r.default.createElement(i.Details,null,r.default.createElement("summary",{className:"btn"},"Click me"),r.default.createElement("p",null,"This should show and hide"))),r.default.createElement(i.Block,{my:4},r.default.createElement(a.default,null,"With children as a function"),r.default.createElement(i.Details,null,function(e){var t=e.open,n=e.toggle;return r.default.createElement(r.default.Fragment,null,r.default.createElement("summary",{className:"btn",onClick:n},t?"Hide":"Show"),r.default.createElement("p",null,"This should show and hide"))})),r.default.createElement(i.Block,{my:4},r.default.createElement(a.default,null,"With render prop"),r.default.createElement(i.Details,{render:function(){return"hi"}})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"CounterLabel",element:r.default.createElement("div",null,r.default.createElement(i.CounterLabel,null,"12"),r.default.createElement(i.CounterLabel,{theme:"gray"},"13"),r.default.createElement(i.CounterLabel,{theme:"gray-light"},"13"))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(n(0)),i=o(n(1)),a=n(3);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.name,n=e.index,i=e.color;return r.default.createElement("div",null,r.default.createElement("div",{className:"m-1 mt-3 p-6",style:{background:i}}),r.default.createElement(a.Heading,{tag:"h3",fontSize:2,px:1},t,".",n),r.default.createElement(a.Text,{px:1},i))}s.propTypes={color:i.default.string,index:i.default.number,name:i.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(222));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Colors",element:r.default.createElement("div",null,["gray","blue","green","purple","yellow","orange"].map(function(e){return r.default.createElement("div",{className:"d-flex",key:e},i.theme.colors[e].map(function(t,n){return r.default.createElement(a.default,{name:e,index:n,key:t,color:t})}))}),r.default.createElement("div",{className:"d-flex"},r.default.createElement(i.Block,{bg:"blue",p:4,m:1}),r.default.createElement(i.Block,{bg:"green",p:4,m:1}),r.default.createElement(i.Block,{bg:"purple",p:4,m:1}),r.default.createElement(i.Block,{bg:"yellow",p:4,m:1}),r.default.createElement(i.Block,{bg:"red",p:4,m:1}),r.default.createElement(i.Block,{bg:"white",p:4,m:1,border:!0}),r.default.createElement(i.Block,{bg:"gray",p:4,m:1}),r.default.createElement(i.Block,{bg:"gray-light",p:4,m:1}),r.default.createElement(i.Block,{bg:"blue-light",p:4,m:1}),r.default.createElement(i.Block,{bg:"purple-light",p:4,m:1}),r.default.createElement(i.Block,{bg:"red-light",p:4,m:1})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),i=n(22),a=u(i),o=n(33),s=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var c={name:"CircleBadge",element:r.default.createElement("div",null,r.default.createElement(s.Block,{mb:2,pt:2},r.default.createElement(s.Heading,{fontSize:3},"Small, medium & large"),r.default.createElement(o.LiveEditor,{code:'\n\n',scope:{CircleBadge:s.CircleBadge,Octicon:a.default,Zap:i.Zap}})),r.default.createElement(s.Block,{mb:2},r.default.createElement(s.Heading,{fontSize:3},"With Octicon as child"),r.default.createElement(o.LiveEditor,{code:'\n \n',scope:{CircleBadge:s.CircleBadge,Octicon:a.default,Zap:i.Zap}})),r.default.createElement(s.Block,{mb:2,pt:2},r.default.createElement(s.Heading,{fontSize:3},"With as a child & bg prop"),r.default.createElement(o.LiveEditor,{code:'\n',scope:{CircleBadge:s.CircleBadge,Octicon:a.default,Zap:i.Zap}})))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(22),a=n(3);var o={name:"CircleOcticon",element:r.default.createElement("div",{className:"d-flex"},r.default.createElement(a.CircleOcticon,{icon:i.Check,size:32,bg:"green",color:"white"}))};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(14)),i=u(n(0)),a=n(33),o=n(3),s=u(n(21));function u(e){return e&&e.__esModule?e:{default:e}}var c={name:"CaretBox",element:i.default.createElement("div",null,i.default.createElement(s.default,{mt:2},"CaretBox"),i.default.createElement(a.PropsForm,null,i.default.createElement(o.CaretBox,{my:4,p:2,minHeight:100,borderColor:"purple"},"CaretBox"),i.default.createElement(a.PropsForm.Select,{name:"caret"},o.Caret.locations.map(function(e){return i.default.createElement("option",{key:e},e)})),i.default.createElement(a.PropsForm.Select,{name:"borderColor"},(0,r.default)(o.theme.colors.border).map(function(e){return i.default.createElement("option",{key:e},e)})),i.default.createElement(a.PropsForm.Select,{name:"bg"},(0,r.default)(o.theme.colors.bg).map(function(e){return i.default.createElement("option",{key:e},e)}))))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Caret",element:r.default.createElement("div",null,i.Caret.locations.map(function(e){return r.default.createElement(i.Box,{p:2,mb:4,position:"relative",maxWidth:300,minHeight:96,shadow:"small",key:e},r.default.createElement(i.Text,{fontSize:1,mono:!0},"location='",e,"'"),r.default.createElement(i.Caret,{location:e}))}))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(21)),a=n(3),o=n(22);function s(e){return e&&e.__esModule?e:{default:e}}var u={name:"Buttons",element:r.default.createElement("div",null,r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,null," Button ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,{size:"sm"}," Button small ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,{size:"large"}," Button large ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.ButtonDanger,null," ButtonDanger ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.ButtonPrimary,null," ButtonPrimary ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.ButtonOutline,null," ButtonOutline ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,{block:!0}," Button block ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,{linkStyle:!0}," Button linkStyle ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.ButtonLink,{href:"https://www.goatslive.com/"},"This is an ",""," styled as a button")),r.default.createElement(a.Block,{mb:2},r.default.createElement(i.default,null,"Octicon Buttons"),r.default.createElement(a.OcticonButton,{icon:o.Pencil,label:"Edit",onClick:function(){return alert("edit")},mr:3}),r.default.createElement(a.Text,{color:"red"},r.default.createElement(a.OcticonButton,{icon:o.X,label:"Close",onClick:function(){return alert("close")},mr:3})),r.default.createElement(a.Block,null,r.default.createElement(a.OcticonButton,{icon:o.Hubot,size:"large",label:"ROBOT",onClick:function(){return alert("beep boop")}}))))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),i=n(22),a=c(i),o=n(33),s=c(n(21)),u=n(3);function c(e){return e&&e.__esModule?e:{default:e}}var l={name:"BranchName",element:r.default.createElement("div",null,r.default.createElement(u.BranchName,null,"a_new_feature_branch"),r.default.createElement(o.Detail,null,r.default.createElement(s.default,{mt:3},"Linked BranchName"),r.default.createElement(u.BranchName,{tag:"a",href:"/"},"a_new_feature_branch"),r.default.createElement(s.default,{mt:3},"BranchName with Octicon"),r.default.createElement(u.BranchName,null,r.default.createElement(a.default,{icon:i.GitBranch})," a_new_feature_branch")))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Box",element:r.default.createElement("div",null,r.default.createElement(i.Box,{m:2},"This is a box"),r.default.createElement(i.Box,{p:2,m:2},"This is a box with padding."),r.default.createElement(i.Box,{shadow:"small",p:2,m:2},"This is a box with shadow."),r.default.createElement(i.Box,{shadow:"medium",p:2,m:2},"This is a box with a medium shadow."),r.default.createElement(i.Box,{shadow:"large",p:2,m:2},"This is a box with a large shadow."),r.default.createElement(i.Box,{shadow:"extra-large",p:2,m:2},"This is a box with an extra-large shadow."),r.default.createElement(i.Box,{borderColor:"green",p:2,m:2},"This is a box with a green border."))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(14)),i=s(n(0)),a=s(n(34)),o=n(3);function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,r.default)(a.default.colors.bg),c=["white","gray","black"],l={name:"Block",element:i.default.createElement("div",null,i.default.createElement("table",null,i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",{className:"text-left"},i.default.createElement(o.Text,{tag:"div",pb:4,mono:!0},"color")),i.default.createElement("th",{colSpan:c.length},i.default.createElement(o.Text,{tag:"div",pb:4,mono:!0},"bg=","{color}")),i.default.createElement("th",null,i.default.createElement(o.Text,{tag:"div",pb:4,mono:!0},"borderColor")))),i.default.createElement("tbody",null,u.map(function(e){return i.default.createElement("tr",{key:e},i.default.createElement("td",null,i.default.createElement(o.Text,{mono:!0,nowrap:!0,mr:3},e)),c.map(function(t){return i.default.createElement("td",{key:t},i.default.createElement(o.Block,{p:3,mb:2,bg:e,fg:t,border:"white"===e},i.default.createElement(o.Text,{mono:!0},t)))}),i.default.createElement("td",null,e in a.default.colors.border?i.default.createElement(o.Block,{p:3,mb:2,ml:3,borderColor:e},i.default.createElement(o.Text,{mono:!0},e)):null))}))))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(4)),i=u(n(6));t.default=c;var a=u(n(0)),o=u(n(1)),s=n(3);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.username,n=e.size,o=(0,i.default)(e,["username","size"]);return a.default.createElement(s.Avatar,(0,r.default)({src:"https://avatars.githubusercontent.com/"+t+"?v=3&s="+2*n,size:n},o))}c.defaultProps={size:20},c.propTypes=(0,r.default)({username:o.default.string},s.Avatar.propTypes),delete c.propTypes.src},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(232));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Avatar",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,{username:"primer",size:128})),r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,{username:"github",size:64})),r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,{username:"reactjs",size:32})," ",r.default.createElement(a.default,{username:"npm"})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(233);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return T(r).default}});var i=n(231);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return T(i).default}});var a=n(230);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return T(a).default}});var o=n(229);Object.defineProperty(t,"BranchName",{enumerable:!0,get:function(){return T(o).default}});var s=n(228);Object.defineProperty(t,"Buttons",{enumerable:!0,get:function(){return T(s).default}});var u=n(227);Object.defineProperty(t,"Caret",{enumerable:!0,get:function(){return T(u).default}});var c=n(226);Object.defineProperty(t,"CaretBox",{enumerable:!0,get:function(){return T(c).default}});var l=n(225);Object.defineProperty(t,"CircleOcticon",{enumerable:!0,get:function(){return T(l).default}});var f=n(224);Object.defineProperty(t,"CircleBadge",{enumerable:!0,get:function(){return T(f).default}});var h=n(223);Object.defineProperty(t,"Colors",{enumerable:!0,get:function(){return T(h).default}});var p=n(221);Object.defineProperty(t,"CounterLabel",{enumerable:!0,get:function(){return T(p).default}});var d=n(220);Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return T(d).default}});var m=n(219);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return T(m).default}});var g=n(218);Object.defineProperty(t,"DonutChart",{enumerable:!0,get:function(){return T(g).default}});var y=n(217);Object.defineProperty(t,"Flash",{enumerable:!0,get:function(){return T(y).default}});var v=n(216);Object.defineProperty(t,"Flex",{enumerable:!0,get:function(){return T(v).default}});var b=n(215);Object.defineProperty(t,"FontSizes",{enumerable:!0,get:function(){return T(b).default}});var x=n(214);Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return T(x).default}});var w=n(213);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return T(w).default}});var E=n(212);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return T(E).default}});var k=n(211);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return T(k).default}});var _=n(210);Object.defineProperty(t,"MergeStatus",{enumerable:!0,get:function(){return T(_).default}});var S=n(209);Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return T(S).default}});var C=n(208);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return T(C).default}});var A=n(207);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return T(A).default}});var D=n(206);function T(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"UnderlineNav",{enumerable:!0,get:function(){return T(D).default}})},function(e,t){!function(e){"use strict";if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(e){return e&&DataView.prototype.isPrototypeOf(e)},i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};l.prototype.append=function(e,t){e=s(e),t=u(t);var n=this.map[e];this.map[e]=n?n+","+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),c(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),c(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var a=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var o=[301,302,303,307,308];v.redirect=function(e,t){if(-1===o.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=g,e.Response=v,e.fetch=function(e,n){return new Promise(function(r,i){var a=new g(e,n),o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:function(e){var t=new l;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;r(new v(t,e))},o.onerror=function(){i(new TypeError("Network request failed"))},o.ontimeout=function(){i(new TypeError("Network request failed"))},o.open(a.method,a.url,!0),"include"===a.credentials&&(o.withCredentials=!0),"responseType"in o&&t.blob&&(o.responseType="blob"),a.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!i(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=d(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){n(235),e.exports=self.fetch.bind(self)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(4)),i=y(n(173)),a=y(n(172)),o=y(n(27)),s=y(n(26)),u=y(n(25)),c=y(n(24)),l=y(n(23)),f=y(n(128)),h=n(0),p=y(h),d=n(151),m=y(n(236)),g=n(28);function y(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){var e=this;(0,s.default)(this,t);var n=(0,c.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return n.fetchData=(0,a.default)(i.default.mark(function t(){var r,a,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.props.url,e.prev=1,e.next=4,(0,m.default)(r);case 4:return a=e.sent,e.next=7,a.json();case 7:o=e.sent,n.setState({fetchState:"fetched",code:(0,f.default)(o,null,2),data:o}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.setState({error:e.t0,fetchState:"error"});case 14:n.setState({loading:!1,fetching:!1,fetched:!0});case 15:case"end":return e.stop()}},t,e,[[1,11]])})),n.handleDataChange=function(e){if(!n.state.fetching)try{var t=JSON.parse(e);n.setState({data:t})}catch(t){n.setState({code:e})}},n.handleFetchStateChange=function(e){if(!n.state.fetching){var t=e.target.value;n.setState({fetchState:t,loading:"loading"===t,error:"error"===t})}},n.render=function(){return p.default.createElement(h.Fragment,null,n.props.children(n.state),n.props.renderEditor((0,r.default)({onDataChange:n.handleDataChange,onFetchStateChange:n.handleFetchStateChange},n.state)))},n.state={fetchState:"loading",data:null,error:null,loading:!0,fetching:!0,fetched:!1},n}return(0,l.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=(0,a.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.fetchData();case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()}]),t}(h.Component);v.defaultProps={renderEditor:function(e){var t=e.onDataChange,n=e.onFetchStateChange,r=e.fetchState,i=e.data,a=void 0===i?{}:i,o=(0,f.default)(a,null,2);return p.default.createElement(h.Fragment,null,p.default.createElement(g.Divider,null),p.default.createElement(g.Box,{p:3},p.default.createElement(g.Label,null,"Fetch State"),p.default.createElement(g.Select,{mt:1,value:r,onChange:n,children:["loading","fetched","error"].map(function(e){return p.default.createElement("option",{key:e,value:e,children:e})})})),p.default.createElement(g.Divider,null),p.default.createElement(d.Editor,{code:o,onChange:t,lang:"jsx"}))}},t.default=v},function(e){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(238);function i(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3})$/);if(i){i=i[1];for(var a=0;a.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function c(e){var t=u(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function l(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,u=e[2]/100;if(0==s)return[a=255*u,a,a];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var c=0;c<3;c++)(r=o+1/3*-(c-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*a;return i}function f(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),u=255*r*(1-n*(1-a));r*=255;switch(i){case 0:return[r,u,o];case 1:return[s,r,o];case 2:return[o,r,u];case 3:return[o,s,r];case 4:return[u,o,r];case 5:return[r,o,s]}}function h(e){var t,n,i,a,o=e[0]/360,s=e[1]/100,u=e[2]/100,c=s+u;switch(c>1&&(s/=c,u/=c),n=1-u,i=6*o-(t=Math.floor(6*o)),0!=(1&t)&&(i=1-i),a=s+i*(n-s),t){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]}function d(e){var t,n,r,i=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*i+1.8758*a+.0415*o,r=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function y(e){var t,n,r,i,a=e[0],o=e[1],s=e[2];return a<=8?i=(n=100*a/903.3)/100*7.787+16/116:(n=100*Math.pow((a+16)/116,3),i=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(o/500+i-16/116)/7.787:95.047*Math.pow(o/500+i,3),n,r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3)]}function v(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]}function x(e){return d(y(e))}function w(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function E(e){return k[e]}e.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:u,rgb2lab:c,rgb2lch:function(e){return v(c(e))},hsl2rgb:l,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;if(0===r)return[0,0,0];return[t,100*(2*(n*=(r*=2)<=1?r:2-r)/(r+n)),100*((r+n)/2)]},hsl2hwb:function(e){return a(l(e))},hsl2cmyk:function(e){return o(l(e))},hsl2keyword:function(e){return s(l(e))},hsv2rgb:f,hsv2hsl:function(e){var t,n,r=e[0],i=e[1]/100,a=e[2]/100;return t=i*a,[r,100*(t=(t/=(n=(2-i)*a)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return a(f(e))},hsv2cmyk:function(e){return o(f(e))},hsv2keyword:function(e){return s(f(e))},hwb2rgb:h,hwb2hsl:function(e){return n(h(e))},hwb2hsv:function(e){return i(h(e))},hwb2cmyk:function(e){return o(h(e))},hwb2keyword:function(e){return s(h(e))},cmyk2rgb:p,cmyk2hsl:function(e){return n(p(e))},cmyk2hsv:function(e){return i(p(e))},cmyk2hwb:function(e){return a(p(e))},cmyk2keyword:function(e){return s(p(e))},keyword2rgb:E,keyword2hsl:function(e){return n(E(e))},keyword2hsv:function(e){return i(E(e))},keyword2hwb:function(e){return a(E(e))},keyword2cmyk:function(e){return o(E(e))},keyword2lab:function(e){return c(E(e))},keyword2xyz:function(e){return u(E(e))},xyz2rgb:d,xyz2lab:m,xyz2lch:function(e){return v(m(e))},lab2xyz:y,lab2rgb:x,lab2lch:v,lch2lab:w,lch2xyz:function(e){return y(w(e))},lch2rgb:function(e){return x(w(e))}};var k={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},_={};for(var S in k)_[JSON.stringify(k[S])]=S},function(e,t,n){var r=n(240),i=function(){return new c};for(var a in r){i[a+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(a);var o=/(\w+)2(\w+)/.exec(a),s=o[1],u=o[2];(i[s]=i[s]||{})[u]=i[a]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=r[e](t);if("string"==typeof n||void 0===n)return n;for(var i=0;in?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t=(t+e)%360)<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){for(var n=2*(t=1-(null==t?.5:t))-1,r=this.alpha()-e.alpha(),i=((n*r==-1?n:(n+r)/(1+n*r))+1)/2,a=1-i,o=this.rgbArray(),s=e.rgbArray(),u=0;u`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),t.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(e,t,n){"use strict";e.exports=function(e){var t,n=0,i=0,a=e.charAt(n),o={};for(;a in r;)t=r[a],i+=t,t>1&&(i=Math.floor(i/t)*t),o[i]=n,a=e.charAt(++n);return{indent:i,stops:o}};var r={" ":1,"\t":4}},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null===e||void 0===e)return i;if("object"==typeof e)return("length"in e?function(e){var t=function(e){var t=[],n=e.length,i=-1;for(;++i=97&&t<=122||t>=65&&t<=90}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(375));t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(392);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(146),i=n(145);e.exports=function(e){return r(i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(404),i=n(399);e.exports=n(88)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",function(){return j}),n.d(t,"LiveProvider",function(){return W}),n.d(t,"LiveEditor",function(){return G}),n.d(t,"LiveError",function(){return X}),n.d(t,"LivePreview",function(){return J}),n.d(t,"withLive",function(){return K}),n.d(t,"generateElement",function(){return B}),n.d(t,"renderElementAsync",function(){return H});var r=n(122),i=(n(412),n(411),n(410),n(409),n(195)),a=n.n(i),o=n(194),s=n.n(o),u=n(0),c=n.n(u),l=n(121),f=n(190),h=n.n(f),p=n(1),d=n.n(p),m=function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"jsx";return Object(r.highlight)(e,r.languages[t])},y=/^((\t| )+)/gm,v=/\t/g,b=function(e){return e.replace(y,function(e,t){return t.replace(v," ")})},x=function(e){return e.replace("\n","
")},w=function(e){return a()(e.replace(/
/gm,"\n").replace(/<\/?[^>]*>/gm,""))};function E(e,t){var n=window.getSelection();if(1==arguments.length){if(!n.rangeCount)return;var r={},i=(l=n.getRangeAt(0)).cloneRange();return i.selectNodeContents(e),i.setEnd(l.endContainer,l.endOffset),r.end=i.toString().length,i.setStart(l.startContainer,l.startOffset),r.start=r.end-i.toString().length,r.atStart=0===i.startOffset,r.commonAncestorContainer=i.commonAncestorContainer,r.endContainer=i.endContainer,r.startContainer=i.startContainer,r}for(var a,o,u=t.end&&t.end!==t.start,c=0,l=document.createRange(),f=s()(e).select(Node.TEXT_NODE).revisit(!1),h=t.start>e.textContent.length?e.textContent.length:t.start,p=t.end>e.textContent.length?e.textContent.length:t.end,d=t.atStart;a=f.next();){var m=c;if(c+=a.textContent.length,!o&&(d?c>h:c>=h)&&(o=!0,l.setStart(a,h-m),!u)){l.collapse(!0),k(e,l);break}if(u&&c>=p){l.setEnd(a,p-m),k(e,l);break}}}function k(e,t){var n=window.getSelection();e.focus(),n.removeAllRanges(),n.addRange(t)}var _=function(e,t){var n=e.slice(0,t),r=n.lastIndexOf("\n")+1;return n.slice(r)},S=/^\s+/,C=function(e,t){var n=_(e,t).match(S);return null===n?"":n[0]||""},A=/^(\t| )* $/,D=function(e,t){var n=_(e,t);return A.test(n)?2:0},T=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},F=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},j=function(e){function t(){var n,r;T(this,t);for(var i=arguments.length,a=Array(i),o=0;o0&&(r.undoStack=r.undoStack.slice(0,-r.undoOffset),r.undoOffset=0);var n=Date.now(),i={plain:e,selection:t};n-r.undoTimestamp<3e3?r.undoStack[r.undoStack.length-1]=i:(r.undoStack.push(i),r.undoStack.length>50&&r.undoStack.shift()),r.undoTimestamp=n}},r.updateContent=function(e){r.compositing||(r.setState({html:g(e,r.props.language)}),r.props.onChange&&r.props.onChange(e))},r.restoreStackState=function(e){var t=r.undoStack[r.undoStack.length-1-e],n=t.plain,i=t.selection;r.selection=i,r.undoOffset=e,r.updateContent(n)},r.undo=function(){var e=r.undoOffset+1;e>=r.undoStack.length||r.restoreStackState(e)},r.redo=function(){var e=r.undoOffset-1;e<0||r.restoreStackState(e)},r.onKeyDown=function(e){if(r.props.onKeyDown&&r.props.onKeyDown(e),9!==e.keyCode||r.props.ignoreTabKey)if(8===e.keyCode){var t=E(r.ref),n=t.start;if(n!==t.end)return;var i=D(r.getPlain(),n);if(i<=0)return;for(var a=0;a25?39:97))},M=function(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=P(n%52)+t;return P(n%52)+t},F=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},j="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},L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},N=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},B=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},H=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r"+e()+""}},ie=function(e,t){return function(){var n,r=((n={})[V]=$(t),n),i=X();return i&&(r.nonce=i),f.a.createElement("style",R({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},ae=function(e){return function(){return Object.keys(e)}},oe=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,a=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},o=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=te(t)+n)}return e};return{styleTag:null,getIds:ae(i),hasNameForId:Y(r),insertMarker:a,insertRules:function(e,t,n){a(e)[0]+=t.join(" "),J(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",K(r,e))},css:o,toHTML:re(o,r),toElement:ie(o,r),clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=R({},e[n]);return t}(r),n=Object.create(null);for(var a in i)n[a]=[i[a][0]];return e(t,n)}}},se=function(e,t,n,r,i){if(q&&!n){var a=function(e,t,n){var r=document.createElement("style");r.setAttribute(V,"");var i=X();if(i&&r.setAttribute("nonce",i),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new Error("");t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,r);return function(e,t){var n=Object.create(null),r=Object.create(null),i=[],a=void 0!==t,o=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),K(n,e),r[e])},u=function(){var t=Z(e).cssRules,n="";for(var a in r){n+=te(a);for(var o=r[a],s=ne(i,o),u=s-i[o];u0&&(o=!0,t().insertRules(r+"-import",d)),i[l]+=p,J(n,r,c)},removeRules:function(s){var u=r[s];if(void 0!==u){var c=i[u];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}(Z(e),ne(i,u),c),i[u]=0,K(n,s),a&&o&&t().removeRules(s+"-import")}},css:u,toHTML:re(u,n),toElement:ie(u,n),clone:ee}}(a,i)}return oe()},ue=void 0;ue=q?1e3:-1;var ce,le=0,fe=void 0,he=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=se(t.target,n?n.styleTag:null,t.forceServer,!0)},le+=1,this.id=le,this.sealed=!1,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!q||this.forceServer)return this;var e=[],t=[],n=[],r=!1,i=document.querySelectorAll("style["+V+"]"),a=i.length;if(0===a)return this;for(var o=0;o0&&void 0!==arguments[0]&&arguments[0];fe=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),i=0;i<+~=|^:(),"'`-]+/g,ye=/(^-|-$)/g;function ve(e){return e.replace(ge,"-").replace(ye,"")}function be(e){return e.displayName||e.name||"Component"}function xe(e){return"string"==typeof e}var we=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|onPointerOu|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|unicodeRange|mathematical|vAlphabetic|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|autoPlay|o(?:verflow|pen)|f(?:o(?:ntSize|rm)|il(?:ter|l))|r(?:e(?:quired|sult|f))?|divisor|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|i(?:temRef|n2|s)|t(?:arget[XY]|o)|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|prefix|typeof|itemID|s(?:t(?:roke|art)|hape|cope|rc)|t(?:arget|ype)|(?:stri|la)ng|a(?:ccept|s)|m(?:edia|a(?:sk|x)|in)|x(?:mlns)?|width|value|size|href|k(?:ey)?|end|low|by|i[dn]|y[12]|g[12]|x[12]|f[xy]|[yz])$/,Ee=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));var ke,_e,Se="__styled-components__",Ce=Se+"next__",Ae=p.a.shape({getTheme:p.a.func,subscribe:p.a.func,unsubscribe:p.a.func});var De=function(e){function t(){L(this,t);var n=B(this,e.call(this));return n.unsubscribeToOuterId=-1,n.getTheme=n.getTheme.bind(n),n}return z(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[Ce];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=function(e){var t={},n=0,r=e;return{publish:function(e){for(var n in r=e,t){var i=t[n];void 0!==i&&i(r)}},subscribe:function(e){var i=n;return t[i]=e,n+=1,e(r),i},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return R({},this.context,((e={})[Ce]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[Se]=function(e){var n=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(n)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[Ce].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(function(e){return"function"==typeof e}(t))return t(this.outerTheme);if(null===t||Array.isArray(t)||"object"!==(void 0===t?"undefined":j(t)))throw new Error("");return R({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?f.a.Children.only(this.props.children):null},t}(l.Component);De.childContextTypes=((ke={})[Se]=p.a.func,ke[Ce]=Ae,ke),De.contextTypes=((_e={})[Ce]=Ae,_e);var Te={};function Oe(e){for(var t,n=0|e.length,r=0|n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}var Pe=q,Me=function e(t,n){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(g.isValidElementType)(r))throw new Error("");var a=function(){return n(r,i,e.apply(void 0,arguments))};return a.withConfig=function(e){return t(n,r,R({},i,e))},a.attrs=function(e){return t(n,r,R({},i,{attrs:R({},i.attrs||{},e)}))},a}}(H),Ie=function(e,t){var n={},r=function(e){function t(){var n,r;L(this,t);for(var i=arguments.length,a=Array(i),o=0;on;)t.push(arguments[n++]);return y[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete y[e]},"process"==n(59)(f)?r=function(e){f.nextTick(o(v,e,1))}:m&&m.now?r=function(e){m.now(o(v,e,1))}:d?(a=(i=new d).port2,i.port1.onmessage=b,r=o(a.postMessage,a,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(o(v,e,1),0)}),e.exports={set:h,clear:p}},function(e,t,n){var r=n(29),i=n(77),a=n(15)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},function(e,t,n){var r=n(51),i=n(15)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){var r=n(29);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(41),i=n(58),a=n(113)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(16).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(59);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(41),i=n(40),a=n(562)(!1),o=n(113)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){e.exports=n(42)},function(e,t,n){e.exports=!n(35)&&!n(52)(function(){return 7!=Object.defineProperty(n(117)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(78),i=n(19),a=n(185),o=n(42),s=n(41),u=n(51),c=n(564),l=n(75),f=n(181),h=n(15)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,m,g,y,v){c(n,t,m);var b,x,w,E=function(e){if(!p&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",_="values"==g,S=!1,C=e.prototype,A=C[h]||C["@@iterator"]||g&&C[g],D=!p&&A||E(g),T=g?_?E("entries"):D:void 0,O="Array"==t&&C.entries||A;if(O&&(w=f(O.call(new e)))!==Object.prototype&&w.next&&(l(w,k,!0),r||s(w,h)||o(w,h,d)),_&&A&&"values"!==A.name&&(S=!0,D=function(){return A.call(this)}),r&&!v||!p&&!S&&C[h]||o(C,h,D),u[t]=D,u[k]=d,g)if(b={values:_?D:E("values"),keys:y?D:E("keys"),entries:T},v)for(x in b)x in C||a(C,x,b[x]);else i(i.P+i.F*(p||S),t,b);return b}},function(e,t){},function(e,t,n){e.exports={default:n(566),__esModule:!0}},function(e,t,n){n(406),e.exports=n(90).Object.assign},function(e,t,n){"use strict";n.r(t),n.d(t,"version",function(){return ge}),n.d(t,"parse",function(){return ye}),n.d(t,"parseExpressionAt",function(){return ve}),n.d(t,"tokenizer",function(){return be}),n.d(t,"parse_dammit",function(){return pe}),n.d(t,"LooseParser",function(){return de}),n.d(t,"pluginsLoose",function(){return me}),n.d(t,"addLooseExports",function(){return xe}),n.d(t,"Parser",function(){return B}),n.d(t,"plugins",function(){return z}),n.d(t,"defaultOptions",function(){return N}),n.d(t,"Position",function(){return F}),n.d(t,"SourceLocation",function(){return j}),n.d(t,"getLineInfo",function(){return L}),n.d(t,"Node",function(){return ee}),n.d(t,"TokenType",function(){return g}),n.d(t,"tokTypes",function(){return E}),n.d(t,"keywordTypes",function(){return x}),n.d(t,"TokContext",function(){return re}),n.d(t,"tokContexts",function(){return ie}),n.d(t,"isIdentifierChar",function(){return m}),n.d(t,"isIdentifierStart",function(){return d}),n.d(t,"Token",function(){return oe}),n.d(t,"isNewLine",function(){return S}),n.d(t,"lineBreak",function(){return k}),n.d(t,"lineBreakG",function(){return _}),n.d(t,"nonASCIIwhitespace",function(){return C});var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",a={5:i,6:i+" const class extends export import super"},o=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",c=new RegExp("["+s+"]"),l=new RegExp("["+s+u+"]");s=u=null;var f=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,10591,541],h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function p(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,f)))}function m(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&(p(e,f)||p(e,h)))))}var g=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function y(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},b={startsExpr:!0},x={};function w(e,t){return void 0===t&&(t={}),t.keyword=e,x[e]=new g(e,t)}var E={num:new g("num",b),regexp:new g("regexp",b),string:new g("string",b),name:new g("name",b),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",v),semi:new g(";",v),colon:new g(":",v),dot:new g("."),question:new g("?",v),arrow:new g("=>",v),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",v),backQuote:new g("`",b),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),_break:w("break"),_case:w("case",v),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",v),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",v),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",b),_if:w("if"),_return:w("return",v),_switch:w("switch"),_throw:w("throw",v),_try:w("try"),_var:w("var"),_const:w("const"),_while:w("while",{isLoop:!0}),_with:w("with"),_new:w("new",{beforeExpr:!0,startsExpr:!0}),_this:w("this",b),_super:w("super",b),_class:w("class",b),_extends:w("extends",v),_export:w("export"),_import:w("import"),_null:w("null",b),_true:w("true",b),_false:w("false",b),_in:w("in",{beforeExpr:!0,binop:7}),_instanceof:w("instanceof",{beforeExpr:!0,binop:7}),_typeof:w("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},k=/\r\n?|\n|\u2028|\u2029/,_=new RegExp(k.source,"g");function S(e){return 10===e||13===e||8232===e||8233===e}var C=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,A=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,T=D.hasOwnProperty,O=D.toString;function P(e,t){return T.call(e,t)}var M=Array.isArray||function(e){return"[object Array]"===O.call(e)},F=function(e,t){this.line=e,this.column=t};F.prototype.offset=function(e){return new F(this.line,this.column+e)};var j=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function L(e,t){for(var n=1,r=0;;){_.lastIndex=r;var i=_.exec(e);if(!(i&&i.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),M(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return M(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,o,s){var u={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(u.loc=new j(this,o,s)),e.ranges&&(u.range=[i,a]),t.push(u)}}(t,t.onComment)),t}var z={};function I(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var B=function(e,t,n){this.options=e=R(e),this.sourceFile=e.sourceFile,this.keywords=I(a[e.ecmaVersion>=6?6:5]);var i="";if(!e.allowReserved){for(var o=e.ecmaVersion;!(i=r[o]);o--);"module"==e.sourceType&&(i+=" await")}this.reservedWords=I(i);var s=(i?i+" ":"")+r.strict;this.reservedWordsStrict=I(s),this.reservedWordsStrictBind=I(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,this.loadPlugins(e.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(k).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=E.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope()};B.prototype.isKeyword=function(e){return this.keywords.test(e)},B.prototype.isReservedWord=function(e){return this.reservedWords.test(e)},B.prototype.extend=function(e,t){this[e]=t(this[e])},B.prototype.loadPlugins=function(e){for(var t in e){var n=z[t];if(!n)throw new Error("Plugin '"+t+"' not found");n(this,e[t])}},B.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var H=B.prototype,V=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function U(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}H.strictDirective=function(e){for(;;){A.lastIndex=e,e+=A.exec(this.input)[0].length;var t=V.exec(this.input.slice(e));if(!t)return!1;if("use strict"==(t[1]||t[2]))return!0;e+=t[0].length}},H.eat=function(e){return this.type===e&&(this.next(),!0)},H.isContextual=function(e){return this.type===E.name&&this.value===e&&!this.containsEsc},H.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},H.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},H.canInsertSemicolon=function(){return this.type===E.eof||this.type===E.braceR||k.test(this.input.slice(this.lastTokEnd,this.start))},H.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},H.semicolon=function(){this.eat(E.semi)||this.insertSemicolon()||this.unexpected()},H.afterTrailingComma=function(e,t){if(this.type==e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},H.expect=function(e){this.eat(e)||this.unexpected()},H.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},H.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},H.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},H.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var W={kind:"loop"},G={kind:"switch"};q.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;A.lastIndex=this.pos;var e=A.exec(this.input),t=this.pos+e[0].length,n=this.input.charCodeAt(t);if(91===n||123==n)return!0;if(d(n,!0)){for(var r=t+1;m(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(t,r);if(!o.test(i))return!0}return!1},q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;A.lastIndex=this.pos;var e=A.exec(this.input),t=this.pos+e[0].length;return!(k.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!=this.input.length&&m(this.input.charAt(t+8)))},q.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet()&&(i=E._var,r="let"),i){case E._break:case E._continue:return this.parseBreakContinueStatement(a,i.keyword);case E._debugger:return this.parseDebuggerStatement(a);case E._do:return this.parseDoStatement(a);case E._for:return this.parseForStatement(a);case E._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1);case E._class:return e||this.unexpected(),this.parseClass(a,!0);case E._if:return this.parseIfStatement(a);case E._return:return this.parseReturnStatement(a);case E._switch:return this.parseSwitchStatement(a);case E._throw:return this.parseThrowStatement(a);case E._try:return this.parseTryStatement(a);case E._const:case E._var:return r=r||this.value,e||"var"==r||this.unexpected(),this.parseVarStatement(a,r);case E._while:return this.parseWhileStatement(a);case E._with:return this.parseWithStatement(a);case E.braceL:return this.parseBlock();case E.semi:return this.parseEmptyStatement(a);case E._export:case E._import:return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===E._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e||this.unexpected(),this.next(),this.parseFunctionStatement(a,!0);var o=this.value,s=this.parseExpression();return i===E.name&&"Identifier"===s.type&&this.eat(E.colon)?this.parseLabeledStatement(a,o,s):this.parseExpressionStatement(a,s)}},q.parseBreakContinueStatement=function(e,t){var n="break"==t;this.next(),this.eat(E.semi)||this.insertSemicolon()?e.label=null:this.type!==E.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(E.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.inAsync&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterLexicalScope(),this.expect(E.parenL),this.type===E.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===E._var||this.type===E._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(t>-1&&this.unexpected(t),this.parseFor(e,r)):(this.options.ecmaVersion>=9&&(this.type===E._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var a=new U,o=this.parseExpression(!0,a);return this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===E._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},q.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},q.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.type==E._function),e.alternate=this.eat(E._else)?this.parseStatement(!this.strict&&this.type==E._function):null,this.finishNode(e,"IfStatement")},q.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(E.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},q.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(E.braceL),this.labels.push(G),this.enterLexicalScope();for(var n=!1;this.type!=E.braceR;)if(this.type===E._case||this.type===E._default){var r=this.type===E._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(E.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},q.parseThrowStatement=function(e){return this.next(),k.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var X=[];q.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===E._catch){var t=this.startNode();this.next(),this.expect(E.parenL),t.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(t.param,"let"),this.expect(E.parenR),t.body=this.parseBlock(!1),this.exitLexicalScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(E._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},q.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},q.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(W),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},q.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},q.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},q.parseLabeledStatement=function(e,t,n){for(var r=0,i=this.labels;r=0;o--){var s=this.labels[o];if(s.statementStart!=e.start)break;s.statementStart=this.start,s.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&"var"!=e.body.kind||"FunctionDeclaration"==e.body.type&&(this.strict||e.body.generator))&&this.raiseRecoverable(e.body.start,"Invalid labeled declaration"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},q.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},q.parseBlock=function(e){void 0===e&&(e=!0);var t=this.startNode();for(t.body=[],this.expect(E.braceL),e&&this.enterLexicalScope();!this.eat(E.braceR);){var n=this.parseStatement(!0);t.body.push(n)}return e&&this.exitLexicalScope(),this.finishNode(t,"BlockStatement")},q.parseFor=function(e,t){return e.init=t,this.expect(E.semi),e.test=this.type===E.semi?null:this.parseExpression(),this.expect(E.semi),e.update=this.type===E.parenR?null:this.parseExpression(),this.expect(E.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},q.parseForIn=function(e,t){var n=this.type===E._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"==n&&("AssignmentPattern"===t.type||"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(this.strict||"Identifier"!==t.declarations[0].id.type))&&this.raise(t.start,"Invalid assignment in for-in loop head"),e.left=t,e.right="ForInStatement"==n?this.parseExpression():this.parseMaybeAssign(),this.expect(E.parenR),this.exitLexicalScope(),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},q.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(E.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==r.id.type||t&&(this.type===E._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(E.comma))break}return e},q.parseVarId=function(e,t){e.id=this.parseBindingAtom(t),this.checkLVal(e.id,t,!1)},q.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(e.generator=this.eat(E.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&&(e.id="nullableID"===t&&this.type!=E.name?null:this.parseIdent(),e.id&&this.checkLVal(e.id,"var"));var i=this.inGenerator,a=this.inAsync,o=this.yieldPos,s=this.awaitPos,u=this.inFunction;return this.inGenerator=e.generator,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),t||(e.id=this.type==E.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=i,this.inAsync=a,this.yieldPos=o,this.awaitPos=s,this.inFunction=u,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},q.parseFunctionParams=function(e){this.expect(E.parenL),e.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.parseClass=function(e,t){this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),r=!1;for(n.body=[],this.expect(E.braceL);!this.eat(E.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},q.parseClassMember=function(e){var t=this;if(this.eat(E.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,a=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===E.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,a),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(E.star),a=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(E.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),a&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(e,n,i,a),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},q.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},q.parseClassId=function(e,t){e.id=this.type===E.name?this.parseIdent():!0===t?this.unexpected():null},q.parseClassSuper=function(e){e.superClass=this.eat(E._extends)?this.parseExprSubscripts():null},q.parseExport=function(e,t){if(this.next(),this.eat(E.star))return this.expectContextual("from"),this.type!==E.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(E._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===E._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===E._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==E.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];if(o)("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=t[r]={init:!1,get:!1,set:!1};o[a]=!0}}},K.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===E.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(E.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},K.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new U,r=!0);var o=this.start,s=this.startLoc;this.type!=E.parenL&&this.type!=E.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,o,s)),this.type.isAssign){var c=this.startNodeAt(o,s);return c.operator=this.value,c.left=this.type===E.eq?this.toAssignable(u,!1,t):u,r||U.call(t),t.shorthandAssign=-1,this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),u},K.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(E.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(E.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},K.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:i.start==n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},K.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==E._in)&&a>r){var o=this.type===E.logicalOR||this.type===E.logicalAND,s=this.value;this.next();var u=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),u,c,a,i),f=this.buildBinary(t,n,e,l,s,o);return this.parseExprOp(f,t,n,r,i)}return e},K.buildBinary=function(e,t,n,r,i,a){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},K.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.inAsync&&this.isContextual("await"))n=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===E.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(a,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(E.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},K.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return r;var a=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1)),a},K.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd==e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end),a=void 0;;)if((a=this.eat(E.bracketL))||this.eat(E.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=a?this.parseExpression():this.parseIdent(!0),o.computed=!!a,a&&this.expect(E.bracketR),e=this.finishNode(o,"MemberExpression")}else if(!r&&this.eat(E.parenL)){var s=new U,u=this.yieldPos,c=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var l=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1,s);if(i&&!this.canInsertSemicolon()&&this.eat(E.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=c,this.parseArrowExpression(this.startNodeAt(t,n),l,!0);this.checkExpressionErrors(s,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=c||this.awaitPos;var f=this.startNodeAt(t,n);f.callee=e,f.arguments=l,e=this.finishNode(f,"CallExpression")}else{if(this.type!==E.backQuote)return e;var h=this.startNodeAt(t,n);h.tag=e,h.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(h,"TaggedTemplateExpression")}},K.parseExprAtom=function(e){var t,n=this.potentialArrowAt==this.start;switch(this.type){case E._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.type!==E.dot&&this.type!==E.bracketL&&this.type!==E.parenL&&this.unexpected(),this.finishNode(t,"Super");case E._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case E.name:var r=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(this.type!==E.name);if(this.options.ecmaVersion>=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(E._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(E.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===E.name&&!a)return o=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(E.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case E.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case E.num:case E.string:return this.parseLiteral(this.value);case E._null:case E._true:case E._false:return(t=this.startNode()).value=this.type===E._null?null:this.type===E._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case E.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case E.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(E.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case E.braceL:return this.parseObj(!1,e);case E._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case E._class:return this.parseClass(this.startNode(),!1);case E._new:return this.parseNew();case E.backQuote:return this.parseTemplate();default:this.unexpected()}},K.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},K.parseParenExpression=function(){this.expect(E.parenL);var e=this.parseExpression();return this.expect(E.parenR),e},K.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,s=this.startLoc,u=[],c=!0,l=!1,f=new U,h=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==E.parenR;){if(c?c=!1:this.expect(E.comma),i&&this.afterTrailingComma(E.parenR,!0)){l=!0;break}if(this.type===E.ellipsis){a=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var d=this.start,m=this.startLoc;if(this.expect(E.parenR),e&&!this.canInsertSemicolon()&&this.eat(E.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(n,r,u);u.length&&!l||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(f,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,u.length>1?((t=this.startNodeAt(o,s)).expressions=u,this.finishNodeAt(t,"SequenceExpression",d,m)):t=u[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},K.parseParenItem=function(e){return e},K.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Y=[];K.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(E.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(E.parenL)?e.arguments=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Y,this.finishNode(e,"NewExpression")},K.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===E.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===E.backQuote,this.finishNode(n,"TemplateElement")},K.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.expect(E.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(E.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},K.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===E.name||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===E.star)&&!k.test(this.input.slice(this.lastTokEnd,this.start))},K.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(E.braceR);){if(r)r=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},K.parseProperty=function(e,t){var n,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(E.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===E.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===E.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(E.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(E.star),this.parsePropertyName(o,t)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,"Property")},K.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===E.colon&&this.unexpected(),this.eat(E.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===E.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type==E.comma||this.type==E.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?(this.checkUnreserved(e.key),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,e.key):this.type===E.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},K.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(E.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(E.bracketR),e.key;e.computed=!1}return e.key=this.type===E.num||this.type===E.string?this.parseExprAtom():this.parseIdent(!0)},K.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},K.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,a=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(E.parenL),n.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=a,this.awaitPos=o,this.inFunction=s,this.finishNode(n,"FunctionExpression")},K.parseArrowExpression=function(e,t,n){var r=this.inGenerator,i=this.inAsync,a=this.yieldPos,o=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inGenerator=!1,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=a,this.awaitPos=o,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},K.parseFunctionBody=function(e,t){var n=t&&this.type!==E.braceL,r=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!a||(i=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!r&&!i&&!t&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=o}this.exitFunctionScope(),this.strict&&e.id&&this.checkLVal(e.id,"none"),this.strict=r},K.isSimpleParamList=function(e){for(var t=0,n=e;t0;)t[n]=arguments[n+1];for(var r=0,i=t;r=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ae.updateContext=function(e){var t,n=this.type;n.keyword&&e==E.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},E.parenR.updateContext=E.braceR.updateContext=function(){if(1!=this.context.length){var e=this.context.pop();e===ie.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},E.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ie.b_stat:ie.b_expr),this.exprAllowed=!0},E.dollarBraceL.updateContext=function(){this.context.push(ie.b_tmpl),this.exprAllowed=!0},E.parenL.updateContext=function(e){var t=e===E._if||e===E._for||e===E._with||e===E._while;this.context.push(t?ie.p_stat:ie.p_expr),this.exprAllowed=!0},E.incDec.updateContext=function(){},E._function.updateContext=E._class.updateContext=function(e){e.beforeExpr&&e!==E.semi&&e!==E._else&&(e!==E.colon&&e!==E.braceL||this.curContext()!==ie.b_stat)?this.context.push(ie.f_expr):this.context.push(ie.f_stat),this.exprAllowed=!1},E.backQuote.updateContext=function(){this.curContext()===ie.q_tmpl?this.context.pop():this.context.push(ie.q_tmpl),this.exprAllowed=!1},E.star.updateContext=function(e){if(e==E._function){var t=this.context.length-1;this.context[t]===ie.f_expr?this.context[t]=ie.f_expr_gen:this.context[t]=ie.f_gen}this.exprAllowed=!0},E.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&("of"==this.value&&!this.exprAllowed||"yield"==this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var oe=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new j(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},se=B.prototype,ue="object"==typeof Packages&&"[object JavaPackage]"==Object.prototype.toString.call(Packages);function ce(e,t,n,r){try{return new RegExp(e,t)}catch(e){if(void 0!==n)throw e instanceof SyntaxError&&r.raise(n,"Error parsing regular expression: "+e.message),e}}se.next=function(){this.options.onToken&&this.options.onToken(new oe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},se.getToken=function(){return this.next(),new oe(this)},"undefined"!=typeof Symbol&&(se[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===E.eof,value:t}}}}),se.curContext=function(){return this.context[this.context.length-1]},se.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(E.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},se.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},se.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},se.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(_.lastIndex=n;(e=_.exec(this.input))&&e.index8&&e<14||e>=5760&&C.test(String.fromCharCode(e))))break e;++this.pos}}},se.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},se.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(E.ellipsis)):(++this.pos,this.finishToken(E.dot))},se.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(E.assign,2):this.finishOp(E.slash,1)},se.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?E.star:E.modulo;return this.options.ecmaVersion>=7&&42==e&&42===t&&(++n,r=E.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(E.assign,n+1):this.finishOp(r,n)},se.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?E.logicalOR:E.logicalAND,2):61===t?this.finishOp(E.assign,2):this.finishOp(124===e?E.bitwiseOR:E.bitwiseAND,1)},se.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(E.assign,2):this.finishOp(E.bitwiseXOR,1)},se.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!=t||this.inModule||62!=this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!k.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(E.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(E.assign,2):this.finishOp(E.plusMin,1)},se.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(E.assign,n+1):this.finishOp(E.bitShift,n)):33!=t||60!=e||this.inModule||45!=this.input.charCodeAt(this.pos+2)||45!=this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(E.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},se.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(E.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(E.arrow)):this.finishOp(61===e?E.eq:E.prefix,1)},se.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(E.parenL);case 41:return++this.pos,this.finishToken(E.parenR);case 59:return++this.pos,this.finishToken(E.semi);case 44:return++this.pos,this.finishToken(E.comma);case 91:return++this.pos,this.finishToken(E.bracketL);case 93:return++this.pos,this.finishToken(E.bracketR);case 123:return++this.pos,this.finishToken(E.braceL);case 125:return++this.pos,this.finishToken(E.braceR);case 58:return++this.pos,this.finishToken(E.colon);case 63:return++this.pos,this.finishToken(E.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(E.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(E.prefix,1)}this.raise(this.pos,"Unexpected character '"+fe(e)+"'")},se.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};var le=!!ce("￿","u");function fe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}se.readRegexp=function(){for(var e,t,n=this,r=this.pos;;){n.pos>=n.input.length&&n.raise(r,"Unterminated regular expression");var i=n.input.charAt(n.pos);if(k.test(i)&&n.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++n.pos}var a=this.input.slice(r,this.pos);++this.pos;var o=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(o);var u=a,c="";if(s){var l="gim";this.options.ecmaVersion>=6&&(l+="uy"),this.options.ecmaVersion>=9&&(l+="s");for(var f=0;f-1&&n.raise(r,"Duplicate regular expression flag")}s.indexOf("u")>=0&&(le?c="u":(u=(u=u.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,t,i){return(t=Number("0x"+t))>1114111&&n.raise(r+i+3,"Code point out of bounds"),"x"})).replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"),c=c.replace("u","")))}var p=null;return ue||(ce(u,c,r,this),p=ce(a,s)),this.finishToken(E.regexp,{pattern:a,flags:s,value:p})},se.readInt=function(e,t){for(var n=this.pos,r=0,i=0,a=null==t?1/0:t;i=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.pos,r=r*e+s}return this.pos===n||null!=t&&this.pos-n!==t?null:r},se.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,t)},se.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number"),n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(t,this.pos),a=n?parseInt(i,8):parseFloat(i);return this.finishToken(E.num,a)},se.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},se.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(S(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(E.string,t)};var he={};se.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==he)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},se.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw he;this.raise(e,t)},se.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==E.template&&this.type!==E.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(E.template,e)):36===n?(this.pos+=2,this.finishToken(E.dollarBraceL)):(++this.pos,this.finishToken(E.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(S(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},se.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!=t&&57!=t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(t)}},se.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},se.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos>=5)>0&&(n|=32),t+=i[n]}while(e>0);return t}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){r[e]=t,i[t]=e})},function(e,t,n){"use strict";(function(e,r){var i=n(192);function a(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}a.prototype={appendLeft:function(e){this.outro+=e},appendRight:function(e){this.intro=this.intro+e},clone:function(){var e=new a(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},contains:function(e){return this.start=t.end?1:-1;t;){if(i(t,e))return a(t,e);t=n[r+=o]}}}function h(e){var t=this,n={generatedCodeColumn:0,sourceIndex:0,sourceCodeLine:0,sourceCodeColumn:0,sourceCodeName:0},r=0,a=0;this.raw=[];var o=this.raw[r]=[],s=null;this.addEdit=function(e,n,r,i,u){n.length?o.push([a,e,i.line,i.column,u]):s&&o.push(s),t.advance(n),s=null},this.addUneditedChunk=function(n,i,u,c,l){for(var f=i.start,h=!0;f=r.length)return"\t";var i=r.reduce(function(e,t){var n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return new Array(i+1).join(" ")}(e)}}),this.byStart[0]=n,this.byEnd[e.length]=n}m.prototype={addSourcemapLocation:function(e){this.sourcemapLocations[e]=!0},append:function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},appendLeft:function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this},appendRight:function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this},clone:function(){for(var e=new m(this.original,{filename:this.filename}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;var r=t.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),t=r}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),Object.keys(this.sourcemapLocations).forEach(function(t){e.sourcemapLocations[t]=!0}),e},generateMap:function(e){var t=this;e=e||{};var n=Object.keys(this.storedNames),r=new h(e.hires),i=f(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext(function(e){var a=i(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,e.original,a,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&r.advance(e.outro)}),new s({file:e.file?e.file.split(/[\/\\]/).pop():null,sources:[e.source?u(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:n,mappings:r.encode()})},getIndentString:function(){return null===this.indentStr?"\t":this.indentStr},indent:function(e,t){var n=/^[^\r\n]/gm;if(l(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var r={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach(function(e){for(var t=e[0];t=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var r=this.byStart[e],i=this.byEnd[t],a=r.previous,o=i.next,s=this.byStart[n];if(!s&&i===this.lastChunk)return this;var u=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),u&&(u.next=r),s&&(s.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=u,i.next=s||null,u||(this.firstChunk=r),s||(this.lastChunk=i),this},overwrite:function(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(d.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),d.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,o=void 0!==r&&r.contentOnly;if(i){var s=this.original.slice(e,t);this.storedNames[s]=!0}var u=this.byStart[e],c=this.byEnd[t];if(u){if(t>u.end&&u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");if(u.edit(n,i,o),u!==c){for(var l=u.next;l!==c;)l.edit("",!1),l=l.next;l.edit("",!1)}}else{var f=new a(e,t,"").edit(n,i);c.next=f,f.previous=c}return this},prepend:function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},prependLeft:function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this},prependRight:function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this},remove:function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this},slice:function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>e||r.end<=e);){if(r.start=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==e||(n+=r.intro);var a=r.start=t;if(a&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===r?e-r.start:0,s=a?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,s),!r.outro||a&&r.end!==t||(n+=r.outro),a)break;r=r.next}return n},snip:function(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n},_split:function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,n=e>t.end;;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}},_splitChunk:function(e,t){if(e.edited&&e.content.length){var n=f(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0},toString:function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},trimLines:function(){return this.trim("[\\r\\n]")},trim:function(e){return this.trimStart(e).trimEnd(e)},trimEnd:function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return this;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(t);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return this;n=n.previous}while(n);return this},trimStart:function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return this;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(t);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return this;n=n.next}while(n);return this}};var g=Object.prototype.hasOwnProperty;function y(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}y.prototype={addSource:function(e){if(e instanceof m)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!l(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(t){g.call(e,t)||(e[t]=e.content[t])}),void 0===e.separator&&(e.separator=this.separator),e.filename)if(g.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},append:function(e,t){return this.addSource({content:new m(e),separator:t&&t.separator||""}),this},clone:function(){var e=new y({intro:this.intro,separator:this.separator});return this.sources.forEach(function(t){e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})}),e},generateMap:function(e){var t=this;void 0===e&&(e={});var n=[];this.sources.forEach(function(e){Object.keys(e.content.storedNames).forEach(function(e){~n.indexOf(e)||n.push(e)})});var r=new h(e.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(function(e,i){i>0&&r.advance(t.separator);var a=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,o=e.content,s=f(o.original);o.intro&&r.advance(o.intro),o.firstChunk.eachNext(function(t){var i=s(t.start);t.intro.length&&r.advance(t.intro),e.filename?t.edited?r.addEdit(a,t.content,t.original,i,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(a,t,o.original,i,o.sourcemapLocations):r.advance(t.content),t.outro.length&&r.advance(t.outro)}),o.outro&&r.advance(o.outro)}),new s({file:e.file?e.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(t){return e.file?u(e.file,t.filename):t.filename}),sourcesContent:this.uniqueSources.map(function(t){return e.includeContent?t.content:null}),names:n,mappings:r.encode()})},getIndentString:function(){var e={};return this.sources.forEach(function(t){var n=t.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)}),Object.keys(e).sort(function(t,n){return e[t]-e[n]})[0]||"\t"},indent:function(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(r,i){var a=void 0!==r.separator?r.separator:t.separator,o=n||i>0&&/\r?\n$/.test(a);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:o}),n="\n"===r.content.toString().slice(0,-1)}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,function(t,n){return n>0?e+t:t})),this},prepend:function(e){return this.intro=e+this.intro,this},toString:function(){var e=this,t=this.sources.map(function(t,n){var r=void 0!==t.separator?t.separator:e.separator;return(n>0?r:"")+t.content.toString()}).join("");return this.intro+t},trimLines:function(){return this.trim("[\\r\\n]")},trim:function(e){return this.trimStart(e).trimEnd(e)},trimStart:function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r]))break;n.content.trimStart(e),r+=1}while(""===n.content.toString())}return this},trimEnd:function(e){var t,n=new RegExp((e||"\\s")+"+$"),r=this.sources.length-1;do{if(!(t=this.sources[r])){this.intro=this.intro.replace(n,"");break}t.content.trimEnd(e),r-=1}while(""===t.content.toString());return this}},t.a=m}).call(this,n(93).Buffer,n(56))},function(e,t,n){var r=n(408),i=n(407);function a(e,t){if(!(this instanceof a))return new a(e,t);if(this.node=this.start=this.peeked=e,this.root=t,this.closingTag=!1,this._revisit=!0,this._selects=[],this._rejects=[],e&&this.higher(e))throw new Error("root must be a parent or ancestor to node")}function o(e,t){var n="nextSibling"==e;return function(i,a,o){i=this.compile(i),a=a&&a>0?a:1;for(var s=this.node,u=this.closingTag,c=this._revisit;s;){if(r(n,u)&&s[t])s=s[t],u=!n;else if(1==s.nodeType&&!s[t]&&r(n,u)){if(u=n,!c)continue}else if(s[e])s=s[e],u=!n;else if(s=s.parentNode,u=n,!c)continue;if(!s||this.higher(s,this.root))break;if(i(s)&&this.selects(s,o)&&this.rejects(s,o)){if(--a)continue;return o||(this.node=s),this.closingTag=u,s}}return null}}e.exports=a,a.prototype.reset=function(e){return this.node=e||this.start,this},a.prototype.revisit=function(e){return this._revisit=void 0==e||e,this},a.prototype.opening=function(){return 1==this.node.nodeType&&(this.closingTag=!1),this},a.prototype.atOpening=function(){return!this.closingTag},a.prototype.closing=function(){return 1==this.node.nodeType&&(this.closingTag=!0),this},a.prototype.atClosing=function(){return this.closingTag},a.prototype.next=o("nextSibling","firstChild"),a.prototype.previous=a.prototype.prev=o("previousSibling","lastChild"),a.prototype.select=function(e){return e=this.compile(e),this._selects.push(e),this},a.prototype.selects=function(e,t){var n=this._selects,r=n.length;if(!r)return!0;for(var i=0;i0?this.next(e,t,!0):this.prev(e,Math.abs(t),!0):this.node},a.prototype.use=function(e){return e(this),this}},function(e,t,n){"use strict";var r,i=(e.exports=function(e){if(null==e)return"";var t=r||(r=new RegExp("("+Object.keys(i).join("|")+")","g"));return String(e).replace(t,function(e){return i[e]})}).chars={"'":"'","'":"'","&":"&",">":">","<":"<",""":'"'}},function(e,t,n){"use strict";e.exports=n(413)},function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,u,c,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},function(e,t,n){"use strict";n.r(t);var r=Math.PI,i=2*r,a=i-1e-6;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new o}o.prototype=s.prototype={constructor:o,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(e,t,n,i,a){e=+e,t=+t,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,u=n-e,c=i-t,l=o-e,f=s-t,h=l*l+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>1e-6)if(Math.abs(f*u-c*l)>1e-6&&a){var p=n-o,d=i-s,m=u*u+c*c,g=p*p+d*d,y=Math.sqrt(m),v=Math.sqrt(h),b=a*Math.tan((r-Math.acos((m+h-g)/(2*y*v)))/2),x=b/v,w=b/y;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*l)+","+(t+x*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>l*d)+","+(this._x1=e+w*u)+","+(this._y1=t+w*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,o,s,u){e=+e,t=+t;var c=(n=+n)*Math.cos(o),l=n*Math.sin(o),f=e+c,h=t+l,p=1^u,d=u?o-s:s-o;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(d<0&&(d=d%i+i),d>a?this._+="A"+n+","+n+",0,1,"+p+","+(e-c)+","+(t-l)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=r)+","+p+","+(this._x1=e+n*Math.cos(s))+","+(this._y1=t+n*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var u=s,c=function(e){return function(){return e}},l=Math.abs,f=Math.atan2,h=Math.cos,p=Math.max,d=Math.min,m=Math.sin,g=Math.sqrt,y=1e-12,v=Math.PI,b=v/2,x=2*v;function w(e){return e>=1?b:e<=-1?-b:Math.asin(e)}function E(e){return e.innerRadius}function k(e){return e.outerRadius}function _(e){return e.startAngle}function S(e){return e.endAngle}function C(e){return e&&e.padAngle}function A(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/g(s*s+u*u),l=c*u,f=-c*s,h=e+l,d=t+f,m=n+l,y=r+f,v=(h+m)/2,b=(d+y)/2,x=m-h,w=y-d,E=x*x+w*w,k=i-a,_=h*y-m*d,S=(w<0?-1:1)*g(p(0,k*k*E-_*_)),C=(_*w-x*S)/E,A=(-_*x-w*S)/E,D=(_*w+x*S)/E,T=(-_*x+w*S)/E,O=C-v,P=A-b,M=D-v,F=T-b;return O*O+P*P>M*M+F*F&&(C=D,A=T),{cx:C,cy:A,x01:-l,y01:-f,x11:C*(i/k-1),y11:A*(i/k-1)}}var D=function(){var e=E,t=k,n=c(0),r=null,i=_,a=S,o=C,s=null;function p(){var c,p,E=+e.apply(this,arguments),k=+t.apply(this,arguments),_=i.apply(this,arguments)-b,S=a.apply(this,arguments)-b,C=l(S-_),D=S>_;if(s||(s=c=u()),ky)if(C>x-y)s.moveTo(k*h(_),k*m(_)),s.arc(0,0,k,_,S,!D),E>y&&(s.moveTo(E*h(S),E*m(S)),s.arc(0,0,E,S,_,D));else{var T,O,P=_,M=S,F=_,j=S,L=C,N=C,R=o.apply(this,arguments)/2,z=R>y&&(r?+r.apply(this,arguments):g(E*E+k*k)),I=d(l(k-E)/2,+n.apply(this,arguments)),B=I,H=I;if(z>y){var V=w(z/E*m(R)),U=w(z/k*m(R));(L-=2*V)>y?(F+=V*=D?1:-1,j-=V):(L=0,F=j=(_+S)/2),(N-=2*U)>y?(P+=U*=D?1:-1,M-=U):(N=0,P=M=(_+S)/2)}var q=k*h(P),W=k*m(P),G=E*h(j),X=E*m(j);if(I>y){var J=k*h(M),K=k*m(M),Y=E*h(F),$=E*m(F);if(Cy?function(e,t,n,r,i,a,o,s){var u=n-e,c=r-t,l=o-i,f=s-a,h=(l*(t-a)-f*(e-i))/(f*u-l*c);return[e+h*u,t+h*c]}(q,W,Y,$,J,K,G,X):[G,X],Q=q-Z[0],ee=W-Z[1],te=J-Z[0],ne=K-Z[1],re=1/m(function(e){return e>1?0:e<-1?v:Math.acos(e)}((Q*te+ee*ne)/(g(Q*Q+ee*ee)*g(te*te+ne*ne)))/2),ie=g(Z[0]*Z[0]+Z[1]*Z[1]);B=d(I,(E-ie)/(re-1)),H=d(I,(k-ie)/(re+1))}}N>y?H>y?(T=A(Y,$,q,W,k,H,D),O=A(J,K,G,X,k,H,D),s.moveTo(T.cx+T.x01,T.cy+T.y01),Hy&&L>y?B>y?(T=A(G,X,J,K,E,-B,D),O=A(q,W,Y,$,E,-B,D),s.lineTo(T.cx+T.x01,T.cy+T.y01),B=f;--h)s.point(y[h],v[h]);s.lineEnd(),s.areaEnd()}g&&(y[l]=+e(p,l,c),v[l]=+n(p,l,c),s.point(t?+t(p,l,c):y[l],r?+r(p,l,c):v[l]))}if(d)return s=null,d+""||null}function f(){return F().defined(i).curve(o).context(a)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:c(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:c(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:c(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:c(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:c(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:c(+e),l):r},l.lineX0=l.lineY0=function(){return f().x(e).y(n)},l.lineY1=function(){return f().x(e).y(r)},l.lineX1=function(){return f().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:c(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,null!=a&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(null==e?a=s=null:s=o(a=e),l):a},l},L=function(e,t){return te?1:t>=e?0:NaN},N=function(e){return e},R=function(){var e=N,t=L,n=null,r=c(0),i=c(x),a=c(0);function o(o){var s,u,c,l,f,h=o.length,p=0,d=new Array(h),m=new Array(h),g=+r.apply(this,arguments),y=Math.min(x,Math.max(-x,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/h,a.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s0&&(p+=f);for(null!=t?d.sort(function(e,n){return t(m[e],m[n])}):null!=n&&d.sort(function(e,t){return n(o[e],o[t])}),s=0,c=p?(y-h*b)/p:0;s0?f*c:0)+b,m[u]={data:o[u],index:s,value:f,startAngle:g,endAngle:l,padAngle:v};return m}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:c(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:c(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:c(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:c(+e),o):a},o},z=B(O);function I(e){this._curve=e}function B(e){function t(t){return new I(e(t))}return t._curve=e,t}function H(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(B(e)):t()._curve},e}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var V=function(){return H(F().curve(z))},U=function(){var e=j().curve(z),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return H(n())},delete e.lineX0,e.lineEndAngle=function(){return H(r())},delete e.lineX1,e.lineInnerRadius=function(){return H(i())},delete e.lineY0,e.lineOuterRadius=function(){return H(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t(B(e)):t()._curve},e},q=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},W=Array.prototype.slice;function G(e){return e.source}function X(e){return e.target}function J(e){var t=G,n=X,r=P,i=M,a=null;function o(){var o,s=W.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||(a=o=u()),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r="function"==typeof e?e:c(+e),o):r},o.y=function(e){return arguments.length?(i="function"==typeof e?e:c(+e),o):i},o.context=function(e){return arguments.length?(a=null==e?null:e,o):a},o}function K(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Y(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function $(e,t,n,r,i){var a=q(t,n),o=q(t,n=(n+i)/2),s=q(r,n),u=q(r,i);e.moveTo(a[0],a[1]),e.bezierCurveTo(o[0],o[1],s[0],s[1],u[0],u[1])}function Z(){return J(K)}function Q(){return J(Y)}function ee(){var e=J($);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var te={draw:function(e,t){var n=Math.sqrt(t/v);e.moveTo(n,0),e.arc(0,0,n,0,x)}},ne={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},re=Math.sqrt(1/3),ie=2*re,ae={draw:function(e,t){var n=Math.sqrt(t/ie),r=n*re;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},oe=Math.sin(v/10)/Math.sin(7*v/10),se=Math.sin(x/10)*oe,ue=-Math.cos(x/10)*oe,ce={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=se*n,i=ue*n;e.moveTo(0,-n),e.lineTo(r,i);for(var a=1;a<5;++a){var o=x*a/5,s=Math.cos(o),u=Math.sin(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},le={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},fe=Math.sqrt(3),he={draw:function(e,t){var n=-Math.sqrt(t/(3*fe));e.moveTo(0,2*n),e.lineTo(-fe*n,-n),e.lineTo(fe*n,-n),e.closePath()}},pe=Math.sqrt(3)/2,de=1/Math.sqrt(12),me=3*(de/2+1),ge={draw:function(e,t){var n=Math.sqrt(t/me),r=n/2,i=n*de,a=r,o=n*de+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(-.5*r-pe*i,pe*r+-.5*i),e.lineTo(-.5*a-pe*o,pe*a+-.5*o),e.lineTo(-.5*s-pe*u,pe*s+-.5*u),e.lineTo(-.5*r+pe*i,-.5*i-pe*r),e.lineTo(-.5*a+pe*o,-.5*o-pe*a),e.lineTo(-.5*s+pe*u,-.5*u-pe*s),e.closePath()}},ye=[te,ne,ae,le,ce,he,ge],ve=function(){var e=c(te),t=c(64),n=null;function r(){var r;if(n||(n=r=u()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:c(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:c(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},be=function(){};function xe(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function we(e){this._context=e}we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xe(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ee=function(e){return new we(e)};function ke(e){this._context=e}ke.prototype={areaStart:be,areaEnd:be,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var _e=function(e){return new ke(e)};function Se(e){this._context=e}Se.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ce=function(e){return new Se(e)};function Ae(e,t){this._basis=new we(e),this._beta=t}Ae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*o),this._beta*t[u]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var De=function e(t){function n(e){return 1===t?new we(e):new Ae(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Te(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Oe(e,t){this._context=e,this._k=(1-t)/6}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Te(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Te(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Pe=function e(t){function n(e){return new Oe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Me(e,t){this._context=e,this._k=(1-t)/6}Me.prototype={areaStart:be,areaEnd:be,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Te(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Fe=function e(t){function n(e){return new Me(e,t)}return n.tension=function(t){return e(+t)},n}(0);function je(e,t){this._context=e,this._k=(1-t)/6}je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Te(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Le=function e(t){function n(e){return new je(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ne(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>y){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>y){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Re(e,t){this._context=e,this._alpha=t}Re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ne(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ze=function e(t){function n(e){return t?new Re(e,t):new Oe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ie(e,t){this._context=e,this._alpha=t}Ie.prototype={areaStart:be,areaEnd:be,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ne(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Be=function e(t){function n(e){return t?new Ie(e,t):new Me(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function He(e,t){this._context=e,this._alpha=t}He.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ne(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ve=function e(t){function n(e){return t?new He(e,t):new je(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ue(e){this._context=e}Ue.prototype={areaStart:be,areaEnd:be,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var qe=function(e){return new Ue(e)};function We(e){return e<0?-1:1}function Ge(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(We(a)+We(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Xe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Je(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Ke(e){this._context=e}function Ye(e){this._context=new $e(e)}function $e(e){this._context=e}function Ze(e){return new Ke(e)}function Qe(e){return new Ye(e)}function et(e){this._context=e}function tt(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var it=function(e){return new rt(e,.5)};function at(e){return new rt(e,0)}function ot(e){return new rt(e,1)}var st=function(e,t){if((i=e.length)>1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a=0;)n[t]=t;return n};function ct(e,t){return e[t]}var lt=function(){var e=c([]),t=ut,n=st,r=ct;function i(i){var a,o,s=e.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(a=0;a0){for(var n,r,i,a=0,o=e[0].length;a1)for(var n,r,i,a,o,s,u=0,c=e[t[0]].length;u=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a},pt=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],a=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,a=0,o=1;o=arguments.length)?u=t[s]:(u=arguments[a],a+=1),i[s]=u,r(u)||(o-=1),s+=1}return o<=0?n.apply(this,i):h(o,p(e,i,n))}}var d=c(function(e,t){return 1===e?i(t):h(e,p(e,[],t))}),m=i(function(e){return d(e.length,function(){var t=0,n=arguments[0],r=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=n.apply(this,f(arguments,[t,r]));return t+=1,e},e.apply(this,i)})});function g(e){return function t(n,a,o){switch(arguments.length){case 0:return t;case 1:return r(n)?t:c(function(t,r){return e(n,t,r)});case 2:return r(n)&&r(a)?t:r(n)?c(function(t,n){return e(t,a,n)}):r(a)?c(function(t,r){return e(n,t,r)}):i(function(t){return e(n,a,t)});default:return r(n)&&r(a)&&r(o)?t:r(n)&&r(a)?c(function(t,n){return e(t,n,o)}):r(n)&&r(o)?c(function(t,n){return e(t,a,n)}):r(a)&&r(o)?c(function(t,r){return e(n,t,r)}):r(n)?i(function(t){return e(t,a,o)}):r(a)?i(function(t){return e(n,t,o)}):r(o)?i(function(t){return e(n,a,t)}):e(n,a,o)}}}var y=g(function(e,t,n){if(t>=n.length||t<-n.length)return n;var r=(t<0?n.length:0)+t,i=f(n);return i[r]=e(n[r]),i}),v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function b(e){return"function"==typeof e["@@transducer/step"]}function x(e,t,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!v(i)){for(var a=0;ae?t:e});function C(e,t){for(var n=0,r=t.length,i=Array(r);n0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}),T=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function O(e){return new T(e)}var P=c(function(e,t){return h(e.length,function(){return e.apply(t,arguments)})});function M(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function F(e,t,n,r){return e["@@transducer/result"](n[r](P(e["@@transducer/step"],e),t))}var j="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function L(e,t,n){if("function"==typeof e&&(e=O(e)),D(n))return function(e,t,n){for(var r=0,i=n.length;r=0;)z(t=V[n],e)&&!q(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:Object.keys(e)}),G=c(x(["fantasy-land/map","map"],R,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return d(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return L(function(n,r){return n[r]=e(t[r]),n},{},W(t));default:return C(e,t)}})),X=c(function(e,t){for(var n=t,r=0;r=0?r:0);ni?1:0}),he=g(function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r}),pe=Number.isInteger||function(e){return e<<0===e},de=i(function(e){return null==e}),me=g(function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var a=!de(r)&&z(i,r)?r[i]:pe(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,a)}if(pe(i)&&v(r)){var o=[].concat(r);return o[i]=n,o}return he(i,n,r)}),ge=c(function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,i){return t.call(this,e,n,r,i)};case 5:return function(e,n,r,i,a){return t.call(this,e,n,r,i,a)};case 6:return function(e,n,r,i,a,o){return t.call(this,e,n,r,i,a,o)};case 7:return function(e,n,r,i,a,o,s){return t.call(this,e,n,r,i,a,o,s)};case 8:return function(e,n,r,i,a,o,s,u){return t.call(this,e,n,r,i,a,o,s,u)};case 9:return function(e,n,r,i,a,o,s,u,c){return t.call(this,e,n,r,i,a,o,s,u,c)};case 10:return function(e,n,r,i,a,o,s,u,c,l){return t.call(this,e,n,r,i,a,o,s,u,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),ye=i(function(e){return ge(2,e)});function ve(e){return"[object Function]"===Object.prototype.toString.call(e)}var be=c(function(e,t){var n=d(e,t);return d(e,function(){return L(re,G(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),xe=i(function(e){return be(e.length,e)}),we=c(function(e,t){return ve(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:xe(Z)(e,t)}),Ee=i(function(e){return d(e.length,e)}),ke=Ee(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))});function _e(e){return function t(n){for(var r,i,a,o=[],s=0,u=n.length;st)throw new Error("min must not be greater than max in clamp(min, max, value)");return nt?t:n});function De(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var Te=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Oe(e,t,n,r){var i=function(i){for(var a=t.length,o=0;o=0;){if(n[a]===e)return r[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&Ke(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Ke(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=W(e);if(o.length!==W(t).length)return!1;var s=n.concat([e]),u=r.concat([t]);for(a=o.length-1;a>=0;){var c=o[a];if(!z(c,t)||!Ye(t[c],e[c],s,u))return!1;a-=1}return!0}var $e=c(function(e,t){return Ye(e,t,[],[])});function Ze(e,t,n){var r,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n=0}function et(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var tt=function(e){return(e<10?"0":"")+e},nt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+tt(e.getUTCMonth()+1)+"-"+tt(e.getUTCDate())+"T"+tt(e.getUTCHours())+":"+tt(e.getUTCMinutes())+":"+tt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function rt(e){return function(){return!e.apply(this,arguments)}}function it(e,t){for(var n=0,r=t.length,i=[];n":e(r,i)},i=function(e,t){return C(function(t){return et(t)+": "+r(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+C(r,t).join(", ")+"))";case"[object Array]":return"["+C(r,t).concat(i(t,ut(function(e){return/^\d+$/.test(e)},W(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):et(nt(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":et(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var a=t.toString();if("[object Object]"!==a)return a}return"{"+i(t,W(t)).join(", ")+"}"}}(e,[])}),lt=c(function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(ct(t)+" is not an array")}if(A(e)){if(A(t))return e+t;throw new TypeError(ct(t)+" is not a string")}if(null!=e&&ve(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&ve(e.concat))return e.concat(t);throw new TypeError(ct(e)+' does not have a method named "concat" or "fantasy-land/concat"')}),ft=i(function(e){return h(Y(S,0,G(function(e){return e[0].length},e)),function(){for(var t=0;t10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:Ee(ge(e,function(e,n,r,i,a,o,s,u,c,l){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,i);case 5:return new t(e,n,r,i,a);case 6:return new t(e,n,r,i,a,o);case 7:return new t(e,n,r,i,a,o,s);case 8:return new t(e,n,r,i,a,o,s,u);case 9:return new t(e,n,r,i,a,o,s,u,c);case 10:return new t(e,n,r,i,a,o,s,u,c,l)}}))}),pt=i(function(e){return ht(e.length,e)}),dt=c(Qe),mt=c(function(e,t){return d(Y(S,0,K("length",t)),function(){var n=arguments,r=this;return e.apply(r,C(function(e){return e.apply(r,n)},t))})}),gt=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(z(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),yt=p(4,[],x([],p(4,[],function(e,t,n,r){return new gt(e,t,n,r)}),function(e,t,n,r){return L(function(r,i){var a=n(i);return r[a]=e(z(a,r)?r[a]:t,i),r},{},r)})),vt=yt(function(e,t){return e+1},0),bt=l(-1),xt=c(function(e,t){return null==t||t!=t?e:t}),wt=g(function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}(),Ot=c(x(["drop"],c(function(e,t){return new Tt(e,t)}),function(e,t){return Re(Math.max(0,e),1/0,t)})),Pt=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=E.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?w(n):n},e}(),Mt=c(x(["take"],c(function(e,t){return new Pt(e,t)}),function(e,t){return Re(0,e<0?1/0:e,t)}));var Ft=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}(),jt=c(x([],c(function(e,t){return new Ft(e,t)}),function(e,t){return Mt(e=0&&e(t[n]);)n-=1;return Re(0,n+1,t)})),Rt=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=E.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}(),zt=c(function(e,t){return new Rt(e,t)}),It=c(function(e,t){var n=e<0?t.length+e:e;return A(t)?t.charAt(n):t[n]}),Bt=It(-1),Ht=c(x([],zt,function(e,t){var n=[],r=1,i=t.length;if(0!==i)for(n[0]=t[0];r=0?t.length-e:0,t)}),Kt=c(function(e,t){return $e(Jt(e.length,t),e)}),Yt=g(function(e,t,n){return $e(e(t),e(n))}),$t=g(function(e,t,n){return $e(t[e],n[e])}),Zt=c(function e(t,n){var r,i,a,o={};for(i in n)a=typeof(r=t[i]),o[i]="function"===a?r(n[i]):r&&"object"===a?e(r,n[i]):n[i];return o}),Qt=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=w(this.xf["@@transducer/step"](e,t))),e},e}(),en=c(x(["find"],c(function(e,t){return new Qt(e,t)}),function(e,t){for(var n=0,r=t.length;n=0;){if(e(t[n]))return t[n];n-=1}})),on=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}(),sn=c(x([],c(function(e,t){return new on(e,t)}),function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1})),un=i(_e(!0)),cn=i(function(e){return d(e.length,function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)})}),ln=c(Ne("forEach",function(e,t){for(var n=t.length,r=0;rt}),gn=c(function(e,t){return e>=t}),yn=c(z),vn=c(function(e,t){return e in t}),bn=It(0);function xn(e){return e}var wn=i(xn),En=g(function(e,t,n){return d(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})}),kn=l(1),_n=yt(function(e,t){return t},null),Sn=c(function(e,t){return"function"!=typeof t.indexOf||v(t)?Ze(t,e,0):t.indexOf(e)}),Cn=Re(0,-1),An=g(function(e,t,n){return it(function(t){return Xe(e,t,n)},t)}),Dn=g(function(e,t,n){e=e=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r}),Tn=g(function(e,t,n){return e=e=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))});function On(e,t,n){var r,i=typeof e;switch(i){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):i in n._items?e in n._items[i]||(t&&(n._items[i][e]=!0),!1):(t&&(n._items[i]={},n._items[i][e]=!0),!1);case"boolean":if(i in n._items){var a=e?1:0;return!!n._items[i][a]||(t&&(n._items[i][a]=!0),!1)}return t&&(n._items[i]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):i in n._items?!!Qe(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1);case"undefined":return!!n._items[i]||(t&&(n._items[i]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in n._items?!!Qe(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1)}}var Pn=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!On(e,!0,this)},e.prototype.has=function(e){return On(e,!1,this)},e}(),Mn=c(function(e,t){for(var n,r,i=new Pn,a=[],o=0;ot.length?(n=e,r=t):(n=t,r=e),Fn(it(cn(Qe)(n),r))}),Ln=c(Ne("intersperse",function(e,t){for(var n=[],r=0,i=t.length;r=0;){if($e(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)});function $n(e){return"[object Number]"===Object.prototype.toString.call(e)}var Zn=i(function(e){return null!=e&&$n(e.length)?e.length:NaN}),Qn=c(function(e,t){return function(n){return function(r){return G(function(e){return t(e,r)},n(e(r)))}}}),er=i(function(e){return Qn(It(e),Ct(e))}),tr=i(function(e){return Qn(X(e),me(e))}),nr=i(function(e){return Qn(J(e),he(e))}),rr=c(function(e,t){return e=0;)a=e(n[r],a[0]),i[r]=a[1],r-=1;return[i,a[0]]}),sr=c(function(e,t){return L(function(n,r){return n[r]=e(t[r],r,t),n},{},W(t))}),ur=c(function(e,t){return t.match(e)||[]}),cr=c(function(e,t){return pe(e)?!pe(t)||t<1?NaN:(e%t+t)%t:NaN}),lr=g(function(e,t,n){return e(n)>e(t)?n:t}),fr=Y(l,0),hr=i(function(e){return fr(e)/e.length}),pr=i(function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return hr(Array.prototype.slice.call(e,0).sort(function(e,t){return et?1:0}).slice(r,r+n))}),dr=c(function(e,t){var n={};return h(t.length,function(){var r=e.apply(this,arguments);return z(r,n)||(n[r]=t.apply(this,arguments)),n[r]})}),mr=dr(function(){return ct(arguments)}),gr=c(function(e,t){return Nn({},e,t)}),yr=i(function(e){return Nn.apply(null,[{}].concat(e))}),vr=g(function(e,t,n){var r,i={};for(r in t)z(r,t)&&(i[r]=z(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)z(r,n)&&!z(r,i)&&(i[r]=n[r]);return i}),br=g(function e(t,n,r){return vr(function(n,r,i){return at(r)&&at(i)?e(t,r,i):t(n,r,i)},n,r)}),xr=c(function(e,t){return br(function(e,t,n){return t},e,t)}),wr=c(function(e,t){return br(function(e,t,n){return n},e,t)}),Er=g(function(e,t,n){return br(function(t,n,r){return e(n,r)},t,n)}),kr=g(function(e,t,n){return vr(function(t,n,r){return e(n,r)},t,n)}),_r=c(function(e,t){return t0&&e(X(t,n))}),Wr=c(function(e,t){for(var n={},r=0;r=0;)t=e(n[r],t),r-=1;return t}),oi=p(4,[],function(e,t,n,r){return L(function(n,r){return e(n,r)?t(n,r):w(n)},n,r)}),si=i(w),ui=c(function(e,t){var n,r=Number(t),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);ii?1:0})}),gi=c(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var r=0,i=0;0===r&&i=0&&e(t[n]);)n-=1;return Re(n+1,1/0,t)}),Ci=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=E.init,e.prototype["@@transducer/result"]=E.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):w(e)},e}(),Ai=c(x(["takeWhile"],c(function(e,t){return new Ci(e,t)}),function(e,t){for(var n=0,r=t.length;n\n Hello World!\n \n All of the primer-react components are available in this sandbox!\n \n \n This is a box with some mono text.\n \n",scope:s})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=a(n(159));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return r.default.createElement(i.default,null)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(1)),a=n(3),o=s(n(126));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.numCommits,n=e.onClick,i=e.desktopUrl,s=e.state;return r.default.createElement(a.Block,{py:3,px:4,bg:"gray-light",style:{borderBottomLeftRadius:"3px",borderBottomRightRadius:"3px"}},r.default.createElement(o.default,{primary:"ready"===s,numCommits:t,onClick:n}),r.default.createElement(a.Text,{ml:2},"You can also "),r.default.createElement(a.Link,{nounderline:!0,href:i},"open this in Github Desktop"),r.default.createElement(a.Text,null," or view "),r.default.createElement(a.ButtonLink,null,"command line instructions."))};u.propTypes={desktopUrl:i.default.string.isRequired,numCommits:o.default.propTypes.numCommits,onClick:i.default.func.isRequired,state:i.default.string.isRequired},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(14)),i=u(n(0)),a=u(n(1)),o=n(22),s=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var c={ready:"green",invalid:"invalid",merged:"purple",pending:"yellow"},l=function(e){var t=e.state;return i.default.createElement("div",{className:"p-2 d-flex border-bottom"},i.default.createElement(s.Block,{mt:2},i.default.createElement(s.CircleOcticon,{icon:o.Check,size:32,bg:c[t],color:"white"})),i.default.createElement(s.Block,{p:2,display:"inline"},i.default.createElement(s.Text,{tag:"p",p:0,m:0,fontSize:2,fontWeight:"bold"},"This branch has no conflicts with the base branch"),i.default.createElement(s.Text,{tag:"p",pt:1,m:0,fontSize:0},"Merging can be performed automatically")))};l.propTypes={state:a.default.oneOf((0,r.default)(c)).isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),i=u(n(1)),a=n(3),o=u(n(203)),s=u(n(202));function u(e){return e&&e.__esModule?e:{default:e}}var c={ready:"green",invalid:"invalid",merged:"purple",pending:"yellow"};var l=function(e){var t=e.state,n=e.repoUrl,i=e.branchName,u=e.numCommits,l=e.onMerge;return r.default.createElement("div",{className:"d-flex flex-items-start"},r.default.createElement(a.MergeStatus,{state:t}),r.default.createElement(a.CaretBox,{ml:3,borderColor:c[t],caret:"left-top"},r.default.createElement(o.default,{state:t}),r.default.createElement(s.default,{state:t,numCommits:u,desktopUrl:function(e,t){return"x-github-client://openRepo/"+e+"?branch="+t}(n,i),onClick:l})))};l.propTypes={branchName:i.default.string.isRequired,numCommits:i.default.number.isRequired,onMerge:i.default.func.isRequired,repoUrl:i.default.string.isRequired,state:i.default.oneOf(["ready","invalid","merged","pending"]).isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),i=n(33),a=c(n(127)),o=c(n(204)),s=c(n(126)),u=n(3);function c(e){return e&&e.__esModule?e:{default:e}}var l=[{name:"MergeBox",element:r.default.createElement(u.Block,{p:4},r.default.createElement(i.LiveEditor,{code:" alert('merge!')}\n/>",scope:{MergeBox:o.default}}))},{name:"MergeButton",element:r.default.createElement(u.Block,{p:4},r.default.createElement(i.LiveEditor,{code:" alert('merge!')}\n/>",scope:{MergeButton:s.default}}))}];t.default=function(){return r.default.createElement(i.Library,{basename:"/primer-react/demo",title:"Demo Library",examples:l,renderSideNav:function(e){var t=e.title,n=e.examples;return r.default.createElement(a.default,{title:t,examples:n})}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(21)),a=n(3),o=n(43);function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"UnderlineNav",element:r.default.createElement("div",null,r.default.createElement(a.Block,{mb:4},r.default.createElement(i.default,null,"Using ",r.default.createElement(a.Text,{mono:!0},"")),r.default.createElement(a.UnderlineNav,null,r.default.createElement(a.UnderlineNavLink,{href:"#foo",selected:!0},"Selected"),r.default.createElement(a.UnderlineNavLink,{href:"#bar"},"Bar"),r.default.createElement(a.UnderlineNavLink,{href:"#baz"},"Baz"))),r.default.createElement(a.Block,{mb:4},r.default.createElement(i.default,null,"Using ",r.default.createElement(a.Text,{mono:!0},"
")," tags"),r.default.createElement(a.UnderlineNav,null,r.default.createElement("a",{href:"#foo"},"Foo"),r.default.createElement("a",{href:"#bar",selected:!0},"Selected"),r.default.createElement("a",{href:"#baz"},"Baz"))),r.default.createElement(a.Block,{mb:4},r.default.createElement(i.default,null,"Using ",r.default.createElement(a.Text,{mono:!0},"")," from react-router"),r.default.createElement(a.UnderlineNav,null,r.default.createElement(o.NavLink,{to:"#foo"},"Foo"),r.default.createElement(o.NavLink,{to:"#bar"},"Two"),r.default.createElement(o.NavLink,{to:"/"},"Selected"))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Tooltip",element:r.default.createElement("div",null,r.default.createElement(i.Box,{p:3},r.default.createElement(i.Tooltip,{text:"Hello, Tooltip!"},"Text with a tooltip")),r.default.createElement(i.Block,{p:2,my:2},r.default.createElement(a.default,{mt:3},"Directions"),i.Tooltip.directions.map(function(e){return r.default.createElement(i.Box,{p:3,my:2,key:e},r.default.createElement(i.Tooltip,{text:"Hello, Tooltip!",direction:e},"Tooltip direction=",e))}),r.default.createElement(a.default,{mt:3},"Alignment"),i.Tooltip.alignments.map(function(e){return r.default.createElement(i.Box,{p:3,my:2,key:e},r.default.createElement(i.Tooltip,{text:"Hello, Tooltip!",direction:"ne",align:e},"Tooltip align=",e))}),r.default.createElement(a.default,{mt:3},"Word wrap"),r.default.createElement(i.Box,{p:3,my:2},r.default.createElement(i.Tooltip,{text:"Hello, Tooltip! This tooltip has a sentence that will wrap to a newline.",wrap:!0,direction:"ne",align:"left"},"Word wrapping tooltip")),r.default.createElement(a.default,{mt:3},"No Delay"),r.default.createElement(i.Box,{p:3,my:2},r.default.createElement(i.Tooltip,{noDelay:!0,text:"Hello, Tooltip!"},"Text with a tooltip"))))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Text",element:r.default.createElement("div",null,r.default.createElement(i.Text,{tag:"div"},"Text"),r.default.createElement(i.Text,{tag:"div",fontWeight:"bold"},"Text bold"),r.default.createElement(i.Text,{tag:"div",color:"green"},"Text green"),r.default.createElement(i.Text,{tag:"div",lineHeight:"condensed"},"Text lineHeight 'condensed'"),r.default.createElement(i.Text,{tag:"div",fontSize:4},"Text fontSize 4"),r.default.createElement(i.Text,{tag:"div",p:4},"Text padding 4"))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),i=n(22),a=u(i),o=n(3),s=u(n(21));function u(e){return e&&e.__esModule?e:{default:e}}var c={name:"StateLabel",element:r.default.createElement("div",null,r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"open"},"Open")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"closed"},"Closed")),r.default.createElement(o.Block,{mb:4},r.default.createElement(o.StateLabel,{state:"merged"},"Merged")),r.default.createElement(o.Block,{mb:4},r.default.createElement(s.default,null,"By state (Octicons built in)"),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,null,"Unknown")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"open"},"Open")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"closed"},"Closed")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"merged"},"Merged")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{state:"reopened"},"Reopened"))),r.default.createElement(o.Block,{mb:4},r.default.createElement(s.default,null,"By color"),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{scheme:"invalid"},"Invalid")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{scheme:"green"},"Green")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{scheme:"red"},"Red")),r.default.createElement(o.Block,{mb:2},r.default.createElement(o.StateLabel,{scheme:"purple"},"Purple"))),r.default.createElement(o.Block,{mb:4},r.default.createElement(s.default,null,"Small, by state"),r.default.createElement(o.Block,{mb:2},r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0},"Unknown")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,state:"open"},"Open")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,state:"closed"},"Closed")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,state:"merged"},"Merged")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,state:"reopened"},"Reopened")))),r.default.createElement(o.Block,{mb:4},r.default.createElement(s.default,null,"Small, by color"),r.default.createElement(o.Block,{mb:2},r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"invalid"},"Invalid")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"green"},"Green")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"red"},"Red")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"purple"},"Purple")),r.default.createElement("span",{className:"mr-2"},r.default.createElement(o.StateLabel,{small:!0,scheme:"green",icon:r.default.createElement(a.default,{icon:i.GitBranch})},"Custom Octicon")))))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"MergeStatus",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:2},r.default.createElement(i.MergeStatus,{state:"pending"})),r.default.createElement(i.Block,{mb:2},r.default.createElement(i.MergeStatus,{state:"invalid"})),r.default.createElement(i.Block,{mb:2},r.default.createElement(i.MergeStatus,{state:"merged"})),r.default.createElement(i.Block,{mb:2},r.default.createElement(i.MergeStatus,{state:"ready"})))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Link",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:1},r.default.createElement(i.Link,{href:"https://github.com"},"Link")),r.default.createElement(i.Block,{mb:1},r.default.createElement(i.Link,{muted:!0,href:"https://github.com"},"Link muted")),r.default.createElement(i.Block,{mb:1},r.default.createElement(i.Link,{scheme:"gray",href:"https://github.com"},"Link gray")),r.default.createElement(i.Block,{mb:1},r.default.createElement(i.Link,{scheme:"gray-dark",href:"https://github.com"},"Link gray-dark")))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Label",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Label,null,"Default label"),r.default.createElement(i.Label,{scheme:"gray-darker"},"Darker gray label"),r.default.createElement(i.Label,{scheme:"orange"},"Orange label"),r.default.createElement(i.Label,{scheme:"green"},"Green label")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Label,{outline:!0},"Default outline label"),r.default.createElement(i.Label,{outline:!0,scheme:"green"},"Green outline label")))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Heading",element:r.default.createElement("div",null,r.default.createElement(i.Heading,{mb:2},"Default Heading"),[0,1,2,3,4,5,"00-light","0-light","1-light","2-light","3-light"].map(function(e){return r.default.createElement(i.Heading,{key:e,fontSize:e,mb:2},"With fontSize=",e)}))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Form elements",element:r.default.createElement("div",null,r.default.createElement(a.default,null,"Input"),r.default.createElement(i.TextInput,{name:"zipcode"}),r.default.createElement(a.default,null,"Input Sizes"),r.default.createElement(i.Box,null,r.default.createElement(i.TextInput,{name:"zipcode",size:"small",placeholder:"Small input"})),r.default.createElement(i.Box,null,r.default.createElement(i.TextInput,{name:"zipcode",size:"large",placeholder:"Large input"})),r.default.createElement(a.default,null,"Block input"),r.default.createElement(i.TextInput,{block:!0,placeholder:"Full width block input"}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Font sizes",element:r.default.createElement("div",null,[5,4,3,2,1,0].map(function(e){return r.default.createElement(i.Text,{tag:"div",key:e,fontSize:e},"fontSize ",e)}))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(14)),i=u(n(0)),a=n(33),o=n(3),s=u(n(21));function u(e){return e&&e.__esModule?e:{default:e}}var c={wrap:["wrap","nowrap"],direction:["row","row-reverse","column"],justifyContent:["start","end","center","between","around"],alignItems:["start","end","center","baseline","stretch"],alignContent:["start","end","center","between","around","stretch"]},l={name:"Flex",element:i.default.createElement("div",null,i.default.createElement(s.default,null,"FlexContainer"),i.default.createElement(a.PropsForm,null,i.default.createElement(o.FlexContainer,{display:["flex","inline-flex"],wrap:["wrap","nowrap"],direction:"row",justifyContent:["start","end","start"],alignItems:["start","end"],alignContent:"start",flexAuto:!0,alignSelf:"start",width:300,height:300,border:!0},i.default.createElement(o.Block,{p:3,bg:"blue"},"Item 1"),i.default.createElement(o.Block,{p:3,bg:"green"},"Item 2"),i.default.createElement(o.Block,{p:3,bg:"yellow"},"Item 3"),i.default.createElement(o.Block,{p:3,bg:"red"},"Item 4"),i.default.createElement(o.Block,{p:3,bg:"purple"},"Item 5")),(0,r.default)(c).map(function(e){return i.default.createElement(a.PropsForm.Select,{key:e,name:e},c[e].map(function(e){return i.default.createElement("option",{key:e},e)}))})),i.default.createElement(s.default,{mt:3},"FlexContainer + FlexItems set to flexAuto"),i.default.createElement(o.FlexContainer,{wrap:"nowrap",width:300,height:300,border:!0},i.default.createElement(o.FlexItem,{flexAuto:!0},i.default.createElement(o.Block,{p:3,bg:"blue"},"Item 1")),i.default.createElement(o.FlexItem,{flexAuto:!0},i.default.createElement(o.Block,{p:3,bg:"green"},"Item 2")),i.default.createElement(o.FlexItem,{flexAuto:!0},i.default.createElement(o.Block,{p:3,bg:"yellow"},"Item 3"))),i.default.createElement(s.default,{mt:2},"FlexContainer + FlexItems with first item set to alignSelf='center'"),i.default.createElement(o.FlexContainer,{wrap:"nowrap",width:300,height:300,border:!0},i.default.createElement(o.FlexItem,{alignSelf:"center"},i.default.createElement(o.Block,{p:3,bg:"blue"},"Item 1")),i.default.createElement(o.FlexItem,null,i.default.createElement(o.Block,{p:3,bg:"green"},"Item 2")),i.default.createElement(o.FlexItem,null,i.default.createElement(o.Block,{p:3,bg:"yellow"},"Item 3"))),i.default.createElement(s.default,{mt:2},'FlexContainer + FlexItems using tag prop set to "p"'),i.default.createElement(o.FlexContainer,{wrap:"nowrap",width:300,height:300,border:!0},i.default.createElement(o.FlexItem,{tag:"p"},i.default.createElement(o.Block,{p:3,bg:"blue"},"Item 1")),i.default.createElement(o.FlexItem,{tag:"p"},i.default.createElement(o.Block,{p:3,bg:"green"},"Item 2")),i.default.createElement(o.FlexItem,{tag:"p"},i.default.createElement(o.Block,{p:3,bg:"yellow"},"Item 3"))))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Flash",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,null," Flash ")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,{scheme:"yellow"}," Flash yellow ")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,{scheme:"red"}," Flash red ")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,{scheme:"green"}," Flash green ")),r.default.createElement(i.Block,{mb:3},r.default.createElement(i.Flash,{full:!0}," Flash full ")))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"DonutChart",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,null,"With ",r.default.createElement(i.Text,{mono:!0},"data")," prop"),r.default.createElement(i.DonutChart,{data:{error:2,pending:3,success:5}})," ",r.default.createElement(i.DonutChart,{data:{error:1,pending:4,success:2}})," ",r.default.createElement(i.DonutChart,{data:{pending:2,success:6}})," ",r.default.createElement(i.DonutChart,{data:{pending:0,success:1}})," ",r.default.createElement(i.DonutChart,{data:{pending:1,queued:1}})," ",r.default.createElement(i.DonutChart,{data:{unknown:1}})),r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,null,"With ",r.default.createElement(i.Text,{mono:!0},"DonutSlice")," children"),r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,state:"pending"}),r.default.createElement(i.DonutSlice,{value:1,state:"success"}),r.default.createElement(i.DonutSlice,{value:1,state:"error"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,state:"error"}),r.default.createElement(i.DonutSlice,{value:4,state:"pending"}),r.default.createElement(i.DonutSlice,{value:2,state:"success"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:2,state:"pending"}),r.default.createElement(i.DonutSlice,{value:6,state:"success"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:0,state:"pending"}),r.default.createElement(i.DonutSlice,{value:1,state:"success"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,state:"pending"}),r.default.createElement(i.DonutSlice,{value:1,state:"queued"}))," ",r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,state:"queued"}))),r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,null,"With custom ",r.default.createElement(i.Text,{mono:!0},"fill")," colors"),r.default.createElement(i.DonutChart,null,r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[0]}),r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[1]}),r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[2]}),r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[3]}),r.default.createElement(i.DonutSlice,{value:1,fill:i.theme.colors.purple[4]}))))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Dropdown",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:4},r.default.createElement(a.default,null,"Dropdown Primary"),r.default.createElement(i.Dropdown,{scheme:"primary"},r.default.createElement("ul",null,r.default.createElement("li",null,"Item 1"),r.default.createElement("li",null,"Item 2"),r.default.createElement("li",null,"Item 3")))),r.default.createElement(i.Block,{my:4},r.default.createElement(a.default,null,"Dropdown"),r.default.createElement(i.Dropdown,null,r.default.createElement("ul",null,r.default.createElement("li",null,"Item 1"),r.default.createElement("li",null,"Item 2"),r.default.createElement("li",null,"Item 3")))),r.default.createElement(i.Block,{my:4},r.default.createElement(a.default,null,"Dropdown with title"),r.default.createElement(i.Dropdown,{title:"Options"},r.default.createElement("ul",null,r.default.createElement("li",null,"Item 1"),r.default.createElement("li",null,"Item 2"),r.default.createElement("li",null,"Item 3")))))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Details",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:4},r.default.createElement(a.default,null,"With static children"),r.default.createElement(i.Details,null,r.default.createElement("summary",{className:"btn"},"Click me"),r.default.createElement("p",null,"This should show and hide"))),r.default.createElement(i.Block,{my:4},r.default.createElement(a.default,null,"With children as a function"),r.default.createElement(i.Details,null,function(e){var t=e.open,n=e.toggle;return r.default.createElement(r.default.Fragment,null,r.default.createElement("summary",{className:"btn",onClick:n},t?"Hide":"Show"),r.default.createElement("p",null,"This should show and hide"))})),r.default.createElement(i.Block,{my:4},r.default.createElement(a.default,null,"With render prop"),r.default.createElement(i.Details,{render:function(){return"hi"}})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"CounterLabel",element:r.default.createElement("div",null,r.default.createElement(i.CounterLabel,null,"12"),r.default.createElement(i.CounterLabel,{theme:"gray"},"13"),r.default.createElement(i.CounterLabel,{theme:"gray-light"},"13"))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(n(0)),i=o(n(1)),a=n(3);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.name,n=e.index,i=e.color;return r.default.createElement("div",null,r.default.createElement("div",{className:"m-1 mt-3 p-6",style:{background:i}}),r.default.createElement(a.Heading,{tag:"h3",fontSize:2,px:1},t,".",n),r.default.createElement(a.Text,{px:1},i))}s.propTypes={color:i.default.string,index:i.default.number,name:i.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(222));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Colors",element:r.default.createElement("div",null,["gray","blue","green","purple","yellow","orange"].map(function(e){return r.default.createElement("div",{className:"d-flex",key:e},i.theme.colors[e].map(function(t,n){return r.default.createElement(a.default,{name:e,index:n,key:t,color:t})}))}),r.default.createElement("div",{className:"d-flex"},r.default.createElement(i.Block,{bg:"blue",p:4,m:1}),r.default.createElement(i.Block,{bg:"green",p:4,m:1}),r.default.createElement(i.Block,{bg:"purple",p:4,m:1}),r.default.createElement(i.Block,{bg:"yellow",p:4,m:1}),r.default.createElement(i.Block,{bg:"red",p:4,m:1}),r.default.createElement(i.Block,{bg:"white",p:4,m:1,border:!0}),r.default.createElement(i.Block,{bg:"gray",p:4,m:1}),r.default.createElement(i.Block,{bg:"gray-light",p:4,m:1}),r.default.createElement(i.Block,{bg:"blue-light",p:4,m:1}),r.default.createElement(i.Block,{bg:"purple-light",p:4,m:1}),r.default.createElement(i.Block,{bg:"red-light",p:4,m:1})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),i=n(22),a=u(i),o=n(33),s=n(3);function u(e){return e&&e.__esModule?e:{default:e}}var c={name:"CircleBadge",element:r.default.createElement("div",null,r.default.createElement(s.Block,{mb:2,pt:2},r.default.createElement(s.Heading,{fontSize:3},"Small, medium & large"),r.default.createElement(o.LiveEditor,{code:'\n\n',scope:{CircleBadge:s.CircleBadge,Octicon:a.default,Zap:i.Zap}})),r.default.createElement(s.Block,{mb:2},r.default.createElement(s.Heading,{fontSize:3},"With Octicon as child"),r.default.createElement(o.LiveEditor,{code:'\n \n',scope:{CircleBadge:s.CircleBadge,Octicon:a.default,Zap:i.Zap}})),r.default.createElement(s.Block,{mb:2,pt:2},r.default.createElement(s.Heading,{fontSize:3},"With as a child & bg prop"),r.default.createElement(o.LiveEditor,{code:'\n',scope:{CircleBadge:s.CircleBadge,Octicon:a.default,Zap:i.Zap}})))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(22),a=n(3);var o={name:"CircleOcticon",element:r.default.createElement("div",{className:"d-flex"},r.default.createElement(a.CircleOcticon,{icon:i.Check,size:32,bg:"green",color:"white"}))};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(14)),i=u(n(0)),a=n(33),o=n(3),s=u(n(21));function u(e){return e&&e.__esModule?e:{default:e}}var c={name:"CaretBox",element:i.default.createElement("div",null,i.default.createElement(s.default,{mt:2},"CaretBox"),i.default.createElement(a.PropsForm,null,i.default.createElement(o.CaretBox,{my:4,p:2,minHeight:100,borderColor:"purple"},"CaretBox"),i.default.createElement(a.PropsForm.Select,{name:"caret"},o.Caret.locations.map(function(e){return i.default.createElement("option",{key:e},e)})),i.default.createElement(a.PropsForm.Select,{name:"borderColor"},(0,r.default)(o.theme.colors.border).map(function(e){return i.default.createElement("option",{key:e},e)})),i.default.createElement(a.PropsForm.Select,{name:"bg"},(0,r.default)(o.theme.colors.bg).map(function(e){return i.default.createElement("option",{key:e},e)}))))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Caret",element:r.default.createElement("div",null,i.Caret.locations.map(function(e){return r.default.createElement(i.Box,{p:2,mb:4,position:"relative",maxWidth:300,minHeight:96,shadow:"small",key:e},r.default.createElement(i.Text,{fontSize:1,mono:!0},"location='",e,"'"),r.default.createElement(i.Caret,{location:e}))}))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=s(n(21)),a=n(3),o=n(22);function s(e){return e&&e.__esModule?e:{default:e}}var u={name:"Buttons",element:r.default.createElement("div",null,r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,null," Button ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,{size:"sm"}," Button small ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,{size:"large"}," Button large ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.ButtonDanger,null," ButtonDanger ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.ButtonPrimary,null," ButtonPrimary ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.ButtonOutline,null," ButtonOutline ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,{block:!0}," Button block ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.Button,{linkStyle:!0}," Button linkStyle ")),r.default.createElement(a.Block,{mb:2},r.default.createElement(a.ButtonLink,{href:"https://www.goatslive.com/"},"This is an ",""," styled as a button")),r.default.createElement(a.Block,{mb:2},r.default.createElement(i.default,null,"Octicon Buttons"),r.default.createElement(a.OcticonButton,{icon:o.Pencil,label:"Edit",onClick:function(){return alert("edit")},mr:3}),r.default.createElement(a.Text,{color:"red"},r.default.createElement(a.OcticonButton,{icon:o.X,label:"Close",onClick:function(){return alert("close")},mr:3})),r.default.createElement(a.Block,null,r.default.createElement(a.OcticonButton,{icon:o.Hubot,size:"large",label:"ROBOT",onClick:function(){return alert("beep boop")}}))))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),i=n(22),a=c(i),o=n(33),s=c(n(21)),u=n(3);function c(e){return e&&e.__esModule?e:{default:e}}var l={name:"BranchName",element:r.default.createElement("div",null,r.default.createElement(u.BranchName,null,"a_new_feature_branch"),r.default.createElement(o.Detail,null,r.default.createElement(s.default,{mt:3},"Linked BranchName"),r.default.createElement(u.BranchName,{tag:"a",href:"/"},"a_new_feature_branch"),r.default.createElement(s.default,{mt:3},"BranchName with Octicon"),r.default.createElement(u.BranchName,null,r.default.createElement(a.default,{icon:i.GitBranch})," a_new_feature_branch")))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=n(3);var a={name:"Box",element:r.default.createElement("div",null,r.default.createElement(i.Box,{m:2},"This is a box"),r.default.createElement(i.Box,{p:2,m:2},"This is a box with padding."),r.default.createElement(i.Box,{shadow:"small",p:2,m:2},"This is a box with shadow."),r.default.createElement(i.Box,{shadow:"medium",p:2,m:2},"This is a box with a medium shadow."),r.default.createElement(i.Box,{shadow:"large",p:2,m:2},"This is a box with a large shadow."),r.default.createElement(i.Box,{shadow:"extra-large",p:2,m:2},"This is a box with an extra-large shadow."),r.default.createElement(i.Box,{borderColor:"green",p:2,m:2},"This is a box with a green border."))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(14)),i=s(n(0)),a=s(n(34)),o=n(3);function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,r.default)(a.default.colors.bg),c=["white","gray","black"],l={name:"Block",element:i.default.createElement("div",null,i.default.createElement("table",null,i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",{className:"text-left"},i.default.createElement(o.Text,{tag:"div",pb:4,mono:!0},"color")),i.default.createElement("th",{colSpan:c.length},i.default.createElement(o.Text,{tag:"div",pb:4,mono:!0},"bg=","{color}")),i.default.createElement("th",null,i.default.createElement(o.Text,{tag:"div",pb:4,mono:!0},"borderColor")))),i.default.createElement("tbody",null,u.map(function(e){return i.default.createElement("tr",{key:e},i.default.createElement("td",null,i.default.createElement(o.Text,{mono:!0,nowrap:!0,mr:3},e)),c.map(function(t){return i.default.createElement("td",{key:t},i.default.createElement(o.Block,{p:3,mb:2,bg:e,fg:t,border:"white"===e},i.default.createElement(o.Text,{mono:!0},t)))}),i.default.createElement("td",null,e in a.default.colors.border?i.default.createElement(o.Block,{p:3,mb:2,ml:3,borderColor:e},i.default.createElement(o.Text,{mono:!0},e)):null))}))))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(4)),i=u(n(6));t.default=c;var a=u(n(0)),o=u(n(1)),s=n(3);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.username,n=e.size,o=(0,i.default)(e,["username","size"]);return a.default.createElement(s.Avatar,(0,r.default)({src:"https://avatars.githubusercontent.com/"+t+"?v=3&s="+2*n,size:n},o))}c.defaultProps={size:20},c.propTypes=(0,r.default)({username:o.default.string},s.Avatar.propTypes),delete c.propTypes.src},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=n(3),a=o(n(232));function o(e){return e&&e.__esModule?e:{default:e}}var s={name:"Avatar",element:r.default.createElement("div",null,r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,{username:"primer",size:128})),r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,{username:"github",size:64})),r.default.createElement(i.Block,{mb:2},r.default.createElement(a.default,{username:"reactjs",size:32})," ",r.default.createElement(a.default,{username:"npm"})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(233);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return T(r).default}});var i=n(231);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return T(i).default}});var a=n(230);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return T(a).default}});var o=n(229);Object.defineProperty(t,"BranchName",{enumerable:!0,get:function(){return T(o).default}});var s=n(228);Object.defineProperty(t,"Buttons",{enumerable:!0,get:function(){return T(s).default}});var u=n(227);Object.defineProperty(t,"Caret",{enumerable:!0,get:function(){return T(u).default}});var c=n(226);Object.defineProperty(t,"CaretBox",{enumerable:!0,get:function(){return T(c).default}});var l=n(225);Object.defineProperty(t,"CircleOcticon",{enumerable:!0,get:function(){return T(l).default}});var f=n(224);Object.defineProperty(t,"CircleBadge",{enumerable:!0,get:function(){return T(f).default}});var h=n(223);Object.defineProperty(t,"Colors",{enumerable:!0,get:function(){return T(h).default}});var p=n(221);Object.defineProperty(t,"CounterLabel",{enumerable:!0,get:function(){return T(p).default}});var d=n(220);Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return T(d).default}});var m=n(219);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return T(m).default}});var g=n(218);Object.defineProperty(t,"DonutChart",{enumerable:!0,get:function(){return T(g).default}});var y=n(217);Object.defineProperty(t,"Flash",{enumerable:!0,get:function(){return T(y).default}});var v=n(216);Object.defineProperty(t,"Flex",{enumerable:!0,get:function(){return T(v).default}});var b=n(215);Object.defineProperty(t,"FontSizes",{enumerable:!0,get:function(){return T(b).default}});var x=n(214);Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return T(x).default}});var w=n(213);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return T(w).default}});var E=n(212);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return T(E).default}});var k=n(211);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return T(k).default}});var _=n(210);Object.defineProperty(t,"MergeStatus",{enumerable:!0,get:function(){return T(_).default}});var S=n(209);Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return T(S).default}});var C=n(208);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return T(C).default}});var A=n(207);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return T(A).default}});var D=n(206);function T(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"UnderlineNav",{enumerable:!0,get:function(){return T(D).default}})},function(e,t){!function(e){"use strict";if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(e){return e&&DataView.prototype.isPrototypeOf(e)},i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};l.prototype.append=function(e,t){e=s(e),t=u(t);var n=this.map[e];this.map[e]=n?n+","+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),c(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),c(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var a=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var o=[301,302,303,307,308];v.redirect=function(e,t){if(-1===o.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=g,e.Response=v,e.fetch=function(e,n){return new Promise(function(r,i){var a=new g(e,n),o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:function(e){var t=new l;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;r(new v(t,e))},o.onerror=function(){i(new TypeError("Network request failed"))},o.ontimeout=function(){i(new TypeError("Network request failed"))},o.open(a.method,a.url,!0),"include"===a.credentials&&(o.withCredentials=!0),"responseType"in o&&t.blob&&(o.responseType="blob"),a.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!i(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=d(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){n(235),e.exports=self.fetch.bind(self)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(4)),i=y(n(173)),a=y(n(172)),o=y(n(27)),s=y(n(26)),u=y(n(25)),c=y(n(24)),l=y(n(23)),f=y(n(128)),h=n(0),p=y(h),d=n(151),m=y(n(236)),g=n(28);function y(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){var e=this;(0,s.default)(this,t);var n=(0,c.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return n.fetchData=(0,a.default)(i.default.mark(function t(){var r,a,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.props.url,e.prev=1,e.next=4,(0,m.default)(r);case 4:return a=e.sent,e.next=7,a.json();case 7:o=e.sent,n.setState({fetchState:"fetched",code:(0,f.default)(o,null,2),data:o}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.setState({error:e.t0,fetchState:"error"});case 14:n.setState({loading:!1,fetching:!1,fetched:!0});case 15:case"end":return e.stop()}},t,e,[[1,11]])})),n.handleDataChange=function(e){if(!n.state.fetching)try{var t=JSON.parse(e);n.setState({data:t})}catch(t){n.setState({code:e})}},n.handleFetchStateChange=function(e){if(!n.state.fetching){var t=e.target.value;n.setState({fetchState:t,loading:"loading"===t,error:"error"===t})}},n.render=function(){return p.default.createElement(h.Fragment,null,n.props.children(n.state),n.props.renderEditor((0,r.default)({onDataChange:n.handleDataChange,onFetchStateChange:n.handleFetchStateChange},n.state)))},n.state={fetchState:"loading",data:null,error:null,loading:!0,fetching:!0,fetched:!1},n}return(0,l.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=(0,a.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.fetchData();case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()}]),t}(h.Component);v.defaultProps={renderEditor:function(e){var t=e.onDataChange,n=e.onFetchStateChange,r=e.fetchState,i=e.data,a=void 0===i?{}:i,o=(0,f.default)(a,null,2);return p.default.createElement(h.Fragment,null,p.default.createElement(g.Divider,null),p.default.createElement(g.Box,{p:3},p.default.createElement(g.Label,null,"Fetch State"),p.default.createElement(g.Select,{mt:1,value:r,onChange:n,children:["loading","fetched","error"].map(function(e){return p.default.createElement("option",{key:e,value:e,children:e})})})),p.default.createElement(g.Divider,null),p.default.createElement(d.Editor,{code:o,onChange:t,lang:"jsx"}))}},t.default=v},function(e){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){var r=n(238);function i(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3})$/);if(i){i=i[1];for(var a=0;a.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function c(e){var t=u(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function l(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,u=e[2]/100;if(0==s)return[a=255*u,a,a];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var c=0;c<3;c++)(r=o+1/3*-(c-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*a;return i}function f(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),u=255*r*(1-n*(1-a));r*=255;switch(i){case 0:return[r,u,o];case 1:return[s,r,o];case 2:return[o,r,u];case 3:return[o,s,r];case 4:return[u,o,r];case 5:return[r,o,s]}}function h(e){var t,n,i,a,o=e[0]/360,s=e[1]/100,u=e[2]/100,c=s+u;switch(c>1&&(s/=c,u/=c),n=1-u,i=6*o-(t=Math.floor(6*o)),0!=(1&t)&&(i=1-i),a=s+i*(n-s),t){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]}function d(e){var t,n,r,i=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*i+1.8758*a+.0415*o,r=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function y(e){var t,n,r,i,a=e[0],o=e[1],s=e[2];return a<=8?i=(n=100*a/903.3)/100*7.787+16/116:(n=100*Math.pow((a+16)/116,3),i=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(o/500+i-16/116)/7.787:95.047*Math.pow(o/500+i,3),n,r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3)]}function v(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]}function x(e){return d(y(e))}function w(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function E(e){return k[e]}e.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:u,rgb2lab:c,rgb2lch:function(e){return v(c(e))},hsl2rgb:l,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;if(0===r)return[0,0,0];return[t,100*(2*(n*=(r*=2)<=1?r:2-r)/(r+n)),100*((r+n)/2)]},hsl2hwb:function(e){return a(l(e))},hsl2cmyk:function(e){return o(l(e))},hsl2keyword:function(e){return s(l(e))},hsv2rgb:f,hsv2hsl:function(e){var t,n,r=e[0],i=e[1]/100,a=e[2]/100;return t=i*a,[r,100*(t=(t/=(n=(2-i)*a)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return a(f(e))},hsv2cmyk:function(e){return o(f(e))},hsv2keyword:function(e){return s(f(e))},hwb2rgb:h,hwb2hsl:function(e){return n(h(e))},hwb2hsv:function(e){return i(h(e))},hwb2cmyk:function(e){return o(h(e))},hwb2keyword:function(e){return s(h(e))},cmyk2rgb:p,cmyk2hsl:function(e){return n(p(e))},cmyk2hsv:function(e){return i(p(e))},cmyk2hwb:function(e){return a(p(e))},cmyk2keyword:function(e){return s(p(e))},keyword2rgb:E,keyword2hsl:function(e){return n(E(e))},keyword2hsv:function(e){return i(E(e))},keyword2hwb:function(e){return a(E(e))},keyword2cmyk:function(e){return o(E(e))},keyword2lab:function(e){return c(E(e))},keyword2xyz:function(e){return u(E(e))},xyz2rgb:d,xyz2lab:m,xyz2lch:function(e){return v(m(e))},lab2xyz:y,lab2rgb:x,lab2lch:v,lch2lab:w,lch2xyz:function(e){return y(w(e))},lch2rgb:function(e){return x(w(e))}};var k={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},_={};for(var S in k)_[JSON.stringify(k[S])]=S},function(e,t,n){var r=n(240),i=function(){return new c};for(var a in r){i[a+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(a);var o=/(\w+)2(\w+)/.exec(a),s=o[1],u=o[2];(i[s]=i[s]||{})[u]=i[a]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=r[e](t);if("string"==typeof n||void 0===n)return n;for(var i=0;in?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t=(t+e)%360)<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){for(var n=2*(t=1-(null==t?.5:t))-1,r=this.alpha()-e.alpha(),i=((n*r==-1?n:(n+r)/(1+n*r))+1)/2,a=1-i,o=this.rgbArray(),s=e.rgbArray(),u=0;u @@ -183,7 +183,7 @@ E.brewer=x={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","# * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(49),i=n(71),a=n(0),o=n(48),s=n(103),u=n(454),c=n(452);function l(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=0;it}return!1}function S(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new S(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new S(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new S(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){C[e]=new S(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){C[e]=new S(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new S(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){C[e]=new S(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){C[e]=new S(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){C[e]=new S(e,5,!1,e.toLowerCase(),null)});var A=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A,D);C[t]=new S(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A,D);C[t]=new S(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A,D);C[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),C.tabIndex=new S("tabIndex",1,!1,"tabindex",null);var T=/["'&<>]/;function O(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=T.exec(e);if(t){var n,r="",i=0;for(n=t.index;n=n.children.length){var r=n.footer;t+=r,""!==r&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===n.type?this.currentSelectValue=null:null!=n.type&&null!=n.type.type&&n.type.type.$$typeof===g&&this.popProvider(n.type)}else r=n.children[n.childIndex++],t+=this.render(r,n.context,n.domNamespace)}return t},e.prototype.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?O(n):this.previousWasTextNode?"\x3c!-- --\x3e"+O(n):(this.previousWasTextNode=!0,O(n));if(e=(t=G(e,t)).child,t=t.context,null===e||!1===e)return"";if(!a.isValidElement(e)){if(null!=e&&null!=e.$$typeof){var r=e.$$typeof;r===h&&l("257"),l("258",r.toString())}return e=R(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}if("string"==typeof(r=e.type))return this.renderDOM(e,t,n);switch(r){case d:case v:case m:case p:return e=R(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}if("object"==typeof r&&null!==r)switch(r.$$typeof){case b:return e=R(r.render(e.props,e.ref)),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case g:return n={type:e,domNamespace:n,children:r=R(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case y:return r=R(e.props.children(e.type._currentValue)),this.stack.push({type:e,domNamespace:n,children:r,childIndex:0,context:t,footer:""}),""}l("130",null==r?r:typeof r,"")},e.prototype.renderDOM=function(e,t,n){var r=e.type.toLowerCase();n===P.html&&M(r),V.hasOwnProperty(r)||(H.test(r)||l("65",r),V[r]=!0);var o=e.props;if("input"===r)o=i({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===r){var s=o.value;if(null==s){s=o.defaultValue;var u=o.children;null!=u&&(null!=s&&l("92"),Array.isArray(u)&&(1>=u.length||l("93"),u=u[0]),s=""+u),null==s&&(s="")}o=i({},o,{value:void 0,children:""+s})}else if("select"===r)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=i({},o,{value:void 0});else if("option"===r){u=this.currentSelectValue;var c=function(e){var t="";return a.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(o.children);if(null!=u){var f=null!=o.value?o.value+"":c;if(s=!1,Array.isArray(u)){for(var h=0;h":(v+=">",s="");e:{if(null!=(u=o.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=o.children)||"number"==typeof u){u=O(u);break e}u=null}return null!=u?(o=[],I[r]&&"\n"===u.charAt(0)&&(v+="\n"),v+=u):o=R(o.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?M(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:r,children:o,childIndex:0,context:t,footer:s}),this.previousWasTextNode=!1,v},e}(),J={renderToString:function(e){return new X(e,!1).read(1/0)},renderToStaticMarkup:function(e){return new X(e,!0).read(1/0)},renderToNodeStream:function(){l("207")},renderToStaticNodeStream:function(){l("208")},version:"16.4.1"},K={default:J},Y=K&&J||K;e.exports=Y.default?Y.default:Y},function(e,t,n){"use strict";e.exports=n(455)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.space=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=s(n(1)),a=n(97),o=s(n(158));function s(e){return e&&e.__esModule?e:{default:e}}var u=/^[mp][trblxy]?$/,c=t.space=function(e){var t=Object.keys(e).filter(function(e){return u.test(e)}).sort(),n=(0,a.breaks)(e),r=(0,a.get)(e,"theme.space",o.default.space);return t.map(function(t){var i=e[t],o=f(t);return Array.isArray(i)?(0,a.arr)(i).map(l(r)).map((0,a.dec)(o)).map((0,a.media)(n)).reduce(a.merge,{}):o.reduce(function(e,t){return Object.assign(e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,l(r)(i)))},{})}).reduce(a.merge,{})},l=function(e){return function(t){if(!(0,a.num)(t))return t;var n=e[Math.abs(t)]||Math.abs(t);return(0,a.num)(n)?(0,a.px)(n*((0,a.neg)(t)?-1:1)):(0,a.neg)(t)?"-"+n:n}},f=function(e){var t=e.split(""),n=r(t,2),i=n[0],a=n[1],o=h[i];return(p[a]||[""]).map(function(e){return o+e})},h={m:"margin",p:"padding"},p={t:["Top"],r:["Right"],b:["Bottom"],l:["Left"],x:["Left","Right"],y:["Top","Bottom"]},d=i.default.oneOfType([i.default.number,i.default.string,i.default.array]);c.propTypes={m:d,mt:d,mr:d,mb:d,ml:d,mx:d,my:d,p:d,pt:d,pr:d,pb:d,pl:d,px:d,py:d},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.borderWidth=t.buttonStyle=t.colorStyle=t.textStyle=t.disabled=t.active=t.focus=t.hover=t.left=t.bottom=t.right=t.top=t.zIndex=t.position=t.backgroundRepeat=t.backgroundPosition=t.backgroundSize=t.backgroundImage=t.background=t.boxShadow=t.borderRadius=t.borderColor=t.borders=t.borderLeft=t.borderBottom=t.borderRight=t.borderTop=t.border=t.gridTemplateRows=t.gridTemplateColumns=t.gridAutoRows=t.gridAutoColumns=t.gridAutoFlow=t.gridRow=t.gridColumn=t.gridRowGap=t.gridColumnGap=t.gridGap=t.order=t.alignSelf=t.justifySelf=t.flex=t.flexDirection=t.flexBasis=t.flexWrap=t.justifyContent=t.alignContent=t.alignItems=t.ratio=t.ratioPadding=t.size=t.sizeHeight=t.sizeWidth=t.minHeight=t.maxHeight=t.height=t.minWidth=t.maxWidth=t.display=t.letterSpacing=t.fontWeight=t.lineHeight=t.textAlign=t.fontFamily=t.color=t.bgColor=t.textColor=t.fontSize=t.width=t.space=void 0;var r=Object.assign||function(e){for(var t=1;t0?e+"px solid":e},p=t.border=(0,a.responsiveStyle)({prop:"border",key:"borders",getter:h}),d=t.borderTop=(0,a.responsiveStyle)({prop:"borderTop",key:"borders",getter:h}),m=t.borderRight=(0,a.responsiveStyle)({prop:"borderRight",key:"borders",getter:h}),g=t.borderBottom=(0,a.responsiveStyle)({prop:"borderBottom",key:"borders",getter:h}),y=t.borderLeft=(0,a.responsiveStyle)({prop:"borderLeft",key:"borders",getter:h});(t.borders=function(e){return r({},p(e),d(e),m(e),g(e),y(e))}).propTypes=r({},p.propTypes,d.propTypes,m.propTypes,g.propTypes,y.propTypes);t.borderColor=(0,a.style)({prop:"borderColor",key:"colors"}),t.borderRadius=(0,a.style)({prop:"borderRadius",key:"radii",numberToPx:!0}),t.boxShadow=(0,a.style)({prop:"boxShadow",key:"shadows"}),t.background=(0,a.style)({prop:"background"}),t.backgroundImage=(0,a.style)({prop:"backgroundImage",alias:"bgImage",getter:function(e){return"url("+e+")"}}),t.backgroundSize=(0,a.style)({prop:"backgroundSize",alias:"bgSize"}),t.backgroundPosition=(0,a.style)({prop:"backgroundPosition",alias:"bgPosition"}),t.backgroundRepeat=(0,a.style)({prop:"backgroundRepeat",alias:"bgRepeat"}),t.position=(0,a.responsiveStyle)({prop:"position"}),t.zIndex=(0,a.style)({prop:"zIndex"}),t.top=(0,a.responsiveStyle)({prop:"top",numberToPx:!0}),t.right=(0,a.responsiveStyle)({prop:"right",numberToPx:!0}),t.bottom=(0,a.responsiveStyle)({prop:"bottom",numberToPx:!0}),t.left=(0,a.responsiveStyle)({prop:"left",numberToPx:!0}),t.hover=(0,a.pseudoStyle)({prop:"hover",pseudoclass:"hover",keys:{color:"colors",backgroundColor:"colors",borderColor:"colors",boxShadow:"shadows"}}),t.focus=(0,a.pseudoStyle)({prop:"focus",keys:{color:"colors",backgroundColor:"colors",borderColor:"colors",boxShadow:"shadows"}}),t.active=(0,a.pseudoStyle)({prop:"active",keys:{color:"colors",backgroundColor:"colors",borderColor:"colors",boxShadow:"shadows"}}),t.disabled=(0,a.pseudoStyle)({prop:"disabledStyle",pseudoclass:"disabled",keys:{color:"colors",backgroundColor:"colors",borderColor:"colors",boxShadow:"shadows"}}),t.textStyle=(0,a.complexStyle)({prop:"textStyle",key:"textStyles"}),t.colorStyle=(0,a.complexStyle)({prop:"colors",key:"colorStyles"}),t.buttonStyle=(0,a.complexStyle)({prop:"buttonStyle",key:"buttons"}),t.borderWidth=(0,a.style)({prop:"borderWidth",cssProperty:"border",key:"borderWidths",getter:function(e){return h(e)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propTypes=t.util=t.theme=t.themeGet=t.complexStyle=t.responsiveStyle=t.pseudoStyle=t.style=t.borderWidth=t.buttonStyle=t.colorStyle=t.textStyle=t.disabled=t.active=t.focus=t.hover=t.left=t.bottom=t.right=t.top=t.zIndex=t.position=t.backgroundRepeat=t.backgroundPosition=t.backgroundSize=t.backgroundImage=t.background=t.boxShadow=t.borderRadius=t.borderColor=t.borders=t.borderLeft=t.borderBottom=t.borderRight=t.borderTop=t.border=t.gridTemplateRows=t.gridTemplateColumns=t.gridAutoRows=t.gridAutoColumns=t.gridAutoFlow=t.gridRow=t.gridColumn=t.gridRowGap=t.gridColumnGap=t.gridGap=t.order=t.alignSelf=t.justifySelf=t.flexBasis=t.flex=t.flexDirection=t.flexWrap=t.justifyContent=t.alignContent=t.alignItems=t.ratio=t.size=t.minHeight=t.maxHeight=t.height=t.minWidth=t.maxWidth=t.display=t.letterSpacing=t.fontWeight=t.lineHeight=t.textAlign=t.fontFamily=t.color=t.bgColor=t.textColor=t.fontSize=t.width=t.space=t.styles=void 0;var r=n(458);Object.defineProperty(t,"space",{enumerable:!0,get:function(){return r.space}}),Object.defineProperty(t,"width",{enumerable:!0,get:function(){return r.width}}),Object.defineProperty(t,"fontSize",{enumerable:!0,get:function(){return r.fontSize}}),Object.defineProperty(t,"textColor",{enumerable:!0,get:function(){return r.textColor}}),Object.defineProperty(t,"bgColor",{enumerable:!0,get:function(){return r.bgColor}}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return r.color}}),Object.defineProperty(t,"fontFamily",{enumerable:!0,get:function(){return r.fontFamily}}),Object.defineProperty(t,"textAlign",{enumerable:!0,get:function(){return r.textAlign}}),Object.defineProperty(t,"lineHeight",{enumerable:!0,get:function(){return r.lineHeight}}),Object.defineProperty(t,"fontWeight",{enumerable:!0,get:function(){return r.fontWeight}}),Object.defineProperty(t,"letterSpacing",{enumerable:!0,get:function(){return r.letterSpacing}}),Object.defineProperty(t,"display",{enumerable:!0,get:function(){return r.display}}),Object.defineProperty(t,"maxWidth",{enumerable:!0,get:function(){return r.maxWidth}}),Object.defineProperty(t,"minWidth",{enumerable:!0,get:function(){return r.minWidth}}),Object.defineProperty(t,"height",{enumerable:!0,get:function(){return r.height}}),Object.defineProperty(t,"maxHeight",{enumerable:!0,get:function(){return r.maxHeight}}),Object.defineProperty(t,"minHeight",{enumerable:!0,get:function(){return r.minHeight}}),Object.defineProperty(t,"size",{enumerable:!0,get:function(){return r.size}}),Object.defineProperty(t,"ratio",{enumerable:!0,get:function(){return r.ratio}}),Object.defineProperty(t,"alignItems",{enumerable:!0,get:function(){return r.alignItems}}),Object.defineProperty(t,"alignContent",{enumerable:!0,get:function(){return r.alignContent}}),Object.defineProperty(t,"justifyContent",{enumerable:!0,get:function(){return r.justifyContent}}),Object.defineProperty(t,"flexWrap",{enumerable:!0,get:function(){return r.flexWrap}}),Object.defineProperty(t,"flexDirection",{enumerable:!0,get:function(){return r.flexDirection}}),Object.defineProperty(t,"flex",{enumerable:!0,get:function(){return r.flex}}),Object.defineProperty(t,"flexBasis",{enumerable:!0,get:function(){return r.flexBasis}}),Object.defineProperty(t,"justifySelf",{enumerable:!0,get:function(){return r.justifySelf}}),Object.defineProperty(t,"alignSelf",{enumerable:!0,get:function(){return r.alignSelf}}),Object.defineProperty(t,"order",{enumerable:!0,get:function(){return r.order}}),Object.defineProperty(t,"gridGap",{enumerable:!0,get:function(){return r.gridGap}}),Object.defineProperty(t,"gridColumnGap",{enumerable:!0,get:function(){return r.gridColumnGap}}),Object.defineProperty(t,"gridRowGap",{enumerable:!0,get:function(){return r.gridRowGap}}),Object.defineProperty(t,"gridColumn",{enumerable:!0,get:function(){return r.gridColumn}}),Object.defineProperty(t,"gridRow",{enumerable:!0,get:function(){return r.gridRow}}),Object.defineProperty(t,"gridAutoFlow",{enumerable:!0,get:function(){return r.gridAutoFlow}}),Object.defineProperty(t,"gridAutoColumns",{enumerable:!0,get:function(){return r.gridAutoColumns}}),Object.defineProperty(t,"gridAutoRows",{enumerable:!0,get:function(){return r.gridAutoRows}}),Object.defineProperty(t,"gridTemplateColumns",{enumerable:!0,get:function(){return r.gridTemplateColumns}}),Object.defineProperty(t,"gridTemplateRows",{enumerable:!0,get:function(){return r.gridTemplateRows}}),Object.defineProperty(t,"border",{enumerable:!0,get:function(){return r.border}}),Object.defineProperty(t,"borderTop",{enumerable:!0,get:function(){return r.borderTop}}),Object.defineProperty(t,"borderRight",{enumerable:!0,get:function(){return r.borderRight}}),Object.defineProperty(t,"borderBottom",{enumerable:!0,get:function(){return r.borderBottom}}),Object.defineProperty(t,"borderLeft",{enumerable:!0,get:function(){return r.borderLeft}}),Object.defineProperty(t,"borders",{enumerable:!0,get:function(){return r.borders}}),Object.defineProperty(t,"borderColor",{enumerable:!0,get:function(){return r.borderColor}}),Object.defineProperty(t,"borderRadius",{enumerable:!0,get:function(){return r.borderRadius}}),Object.defineProperty(t,"boxShadow",{enumerable:!0,get:function(){return r.boxShadow}}),Object.defineProperty(t,"background",{enumerable:!0,get:function(){return r.background}}),Object.defineProperty(t,"backgroundImage",{enumerable:!0,get:function(){return r.backgroundImage}}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return r.backgroundSize}}),Object.defineProperty(t,"backgroundPosition",{enumerable:!0,get:function(){return r.backgroundPosition}}),Object.defineProperty(t,"backgroundRepeat",{enumerable:!0,get:function(){return r.backgroundRepeat}}),Object.defineProperty(t,"position",{enumerable:!0,get:function(){return r.position}}),Object.defineProperty(t,"zIndex",{enumerable:!0,get:function(){return r.zIndex}}),Object.defineProperty(t,"top",{enumerable:!0,get:function(){return r.top}}),Object.defineProperty(t,"right",{enumerable:!0,get:function(){return r.right}}),Object.defineProperty(t,"bottom",{enumerable:!0,get:function(){return r.bottom}}),Object.defineProperty(t,"left",{enumerable:!0,get:function(){return r.left}}),Object.defineProperty(t,"hover",{enumerable:!0,get:function(){return r.hover}}),Object.defineProperty(t,"focus",{enumerable:!0,get:function(){return r.focus}}),Object.defineProperty(t,"active",{enumerable:!0,get:function(){return r.active}}),Object.defineProperty(t,"disabled",{enumerable:!0,get:function(){return r.disabled}}),Object.defineProperty(t,"textStyle",{enumerable:!0,get:function(){return r.textStyle}}),Object.defineProperty(t,"colorStyle",{enumerable:!0,get:function(){return r.colorStyle}}),Object.defineProperty(t,"buttonStyle",{enumerable:!0,get:function(){return r.buttonStyle}}),Object.defineProperty(t,"borderWidth",{enumerable:!0,get:function(){return r.borderWidth}});var i=n(97);Object.defineProperty(t,"style",{enumerable:!0,get:function(){return i.style}}),Object.defineProperty(t,"pseudoStyle",{enumerable:!0,get:function(){return i.pseudoStyle}}),Object.defineProperty(t,"responsiveStyle",{enumerable:!0,get:function(){return i.responsiveStyle}}),Object.defineProperty(t,"complexStyle",{enumerable:!0,get:function(){return i.complexStyle}}),Object.defineProperty(t,"themeGet",{enumerable:!0,get:function(){return i.themeGet}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return i.themeGet}});var a=u(r),o=u(r),s=u(i);function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.styles=o,t.util=s;var c=t.propTypes={};Object.keys(a).forEach(function(e){c[e]=a[e].propTypes}),a.propTypes=c,t.default=a},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e)},e)}(this.props.theme)}}},{key:"render",value:function(){return i.createElement("div",null,this.props.children)}}]),t}();o.childContextTypes={theme:a.oneOfType([a.func,a.object])},e.exports=o},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],s=[],u=[];for(var c in t){var l=t[c];if(null!==l)if("object"!==(void 0===l?"undefined":r(l))){var f=o(c,l);u.push(f)}else{var h=/^@/.test(c)?c:null;e(l,h?n:n+a(c),h).forEach(function(e){return s.push(e)})}}return s.unshift({media:i,child:n,declarations:u}),s}(t).filter(function(e){return e.declarations.length}).forEach(function(t){var r=JSON.stringify(t),a=function(e){var t=e.selector,n=e.child,r=e.media;return function(e,t){return t?t+"{"+e+"}":e}(t+n+"{"+e.declarations.join(";")+"}",r)}(Object.assign(t,{selector:e}));n.push(a),i[r]=!0}),n.join("")}},function(e,t,n){"use strict";function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function i(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function a(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}e.exports=function(e,t){for(var n=1540483477,o=t^e.length,s=e.length,u=0;s>=4;){var c=r(e,u);c=a(c,n),c=a(c^=c>>>24,n),o=a(o,n),o^=c,u+=4,s-=4}switch(s){case 3:o^=i(e,u),o=a(o^=e.charCodeAt(u+2)<<16,n);break;case 2:o=a(o^=i(e,u),n);break;case 1:o=a(o^=e.charCodeAt(u),n)}return o=a(o^=o>>>13,n),((o^=o>>>15)>>>0).toString(36)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(464);function i(){}e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Head=t.Detail=t.Example=t.Library=void 0;var r,i,a=x(n(4)),o=x(n(98)),s=x(n(6)),u=x(n(27)),c=x(n(26)),l=x(n(25)),f=x(n(24)),h=x(n(23)),p=x(n(0)),d=x(n(39)),m=x(n(31)),g=n(43),y=n(28),v=x(n(96)),b=x(n(95));function x(e){return e&&e.__esModule?e:{default:e}}var w=(0,m.default)("div")({display:"flex",alignItems:"flex-start",height:"100vh"}),E=(0,m.default)("div")({flex:"1 1 auto",height:"100vh",overflowY:"auto",WebkitOverflowScrolling:"touch"}),k=(0,m.default)(g.Link)({display:"block",color:"inherit",textDecoration:"none",overflow:"hidden",border:"1px solid #f6f6f6","&:hover":{borderColor:"#ddd"}}),_=(0,m.default)("div")({width:"192px",flex:"none",height:"100vh",overflowY:"auto",WebkitOverflowScrolling:"touch",borderRight:"1px solid #f6f6f6"}),S=(0,m.default)(g.NavLink)({display:"block",paddingLeft:"8px",paddingRight:"8px",paddingTop:"4px",paddingBottom:"4px",fontSize:"12px",fontWeight:"bold",textDecoration:"none",color:"inherit",WebkitUserSelect:"none",userSelect:"none","&.active":{color:"white",backgroundColor:"black"}}),C="undefined"!=typeof document?g.BrowserRouter:g.StaticRouter,A=t.Library=function(e){function t(){return(0,c.default)(this,t),(0,f.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,h.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=e.basename,n=(0,s.default)(e,["basename"]);return p.default.createElement(C,{basename:t,context:{}},p.default.createElement(D,n))}}]),t}(p.default.Component),D=(0,g.withRouter)((i=r=function(e){function t(){var e,n,r,i;(0,c.default)(this,t);for(var a=arguments.length,s=Array(a),l=0;lc;)a.call(o,n=s[c++])&&l.push(e?[n,o[n]]:o[n]);return l}}},function(e,t,n){var r=n(19),i=n(467)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){n(468),e.exports=n(9).Object.values},function(e,t,n){e.exports={default:n(469),__esModule:!0}},function(e){e.exports={name:"primer-react",version:"0.0.11-beta",description:"Primer react components",main:"dist/index.umd.js",module:"dist/index.esm.js",scripts:{prebuild:"rm -rf dist",build:"NODE_ENV=production rollup -c","build:docs":"x0 build examples --out-dir docs",lint:"eslint src examples",prepublishOnly:"npm run build",start:"x0 dev examples -op 8888",test:"jest",watch:"jest --watch --no-coverage"},files:["dist","src","examples"],repository:"primer/primer-react",keywords:["react","components","library","design-system"],author:"GitHub, Inc.",license:"MIT",x0:{cssLibrary:"styled-components",basename:"/primer-react",template:"./html.js"},jest:{collectCoverage:!0,collectCoverageFrom:["src/**/*.js"],coveragePathIgnorePatterns:["/node_modules/","/src/utils/testing.js"]},dependencies:{"@githubprimer/octicons-react":"8.0.0",classnames:"^2.2.5","d3-shape":"^1.2.0",react:"^16.2.0","system-classnames":"^1.0.0-3"},devDependencies:{"@compositor/kit":"^1.0.43","@compositor/x0":"^5.0.8","babel-plugin-external-helpers":"6.22.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babel-preset-stage-0":"6.24.1",enzyme:"3.3.0","enzyme-adapter-react-16":"1.1.1",eslint:"4.19.1","eslint-plugin-github":"1.0.0","eslint-plugin-jest":"21.15.1","eslint-plugin-jsx-a11y":"6.0.3","eslint-plugin-react":"7.8.2",jest:"^22.4.3","react-router-dom":"^4.3.1","react-test-renderer":"^16.3.2",rollup:"0.62.0","rollup-plugin-babel":"3.0.5","rollup-plugin-commonjs":"9.1.3","styled-components":"3.3.3","styled-system":"^2.0.2"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(4)),i=l(n(6));t.default=f;var a=l(n(0)),o=l(n(1)),s=l(n(8)),u=n(160),c=n(7);function l(e){return e&&e.__esModule?e:{default:e}}function f(e){var t=e.children,n=e.selected,o=e.tag,l=(0,i.default)(e,["children","selected","tag"]),f=(0,c.mapWhitespaceProps)(l).className,h=(0,s.default)(u.ITEM_CLASS,n&&u.SELECTED_CLASS,f);return a.default.createElement(o,(0,r.default)({className:h},l),t)}f.displayName="UnderlineNavLink",f.defaultProps={tag:"a"},f.propTypes={children:o.default.node,className:o.default.string,selected:o.default.bool,tag:o.default.oneOfType([o.default.string,o.default.func])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(14)),i=c(n(6));t.default=f;var a=c(n(0)),o=c(n(1)),s=c(n(8)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}var l={green:"success",red:"error",yellow:"warn"};function f(e){var t=e.children,n=e.full,r=e.scheme,o=(0,i.default)(e,["children","full","scheme"]),c=(0,u.mapWhitespaceProps)(o).className;return a.default.createElement("div",{className:(0,s.default)(c,"flash",n&&"flash-full",r&&"flash-"+l[r])},t)}f.propTypes={children:o.default.node,className:o.default.string,full:o.default.bool,scheme:o.default.oneOf((0,r.default)(l))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6));t.default=c;var i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.theme,n=e.children,a=(0,r.default)(e,["theme","children"]),u=(0,s.mapWhitespaceProps)(a).className;return i.default.createElement("span",{className:(0,o.default)(u,"Counter",t&&"Counter--"+t)},n)}c.propTypes={children:a.default.node,theme:a.default.oneOf(["gray","gray-light"])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6));t.default=c;var i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.children,n=e.direction,a=e.text,u=e.noDelay,c=e.align,l=e.wrap,f=(0,r.default)(e,["children","direction","text","noDelay","align","wrap"]),h=(0,s.mapWhitespaceProps)(f).className;return i.default.createElement("span",{"aria-label":a,className:(0,o.default)(h,"tooltipped","tooltipped-"+n,c&&"tooltipped-align-"+c+"-2",u&&"tooltipped-no-delay",l&&"tooltipped-multiline")},t)}c.alignments=["left","right"],c.directions=["n","ne","e","se","s","sw","w","nw"],c.defaultProps={direction:"n"},c.propTypes={align:a.default.oneOf(c.alignments),children:a.default.node,direction:a.default.oneOf(c.directions),noDelay:a.default.bool,text:a.default.string,wrap:a.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(4)),i=l(n(6)),a=l(n(0)),o=l(n(1)),s=n(22),u=l(s),c=l(n(161));function l(e){return e&&e.__esModule?e:{default:e}}var f={ready:"green",invalid:"invalid",merged:"purple",pending:"yellow"},h=a.default.createElement(u.default,{icon:s.GitMerge,size:"medium"}),p=function(e){var t=e.state,n=(0,i.default)(e,["state"]);return a.default.createElement(c.default,(0,r.default)({},n,{scheme:f[t],icon:h}))};p.propTypes={state:o.default.oneOf(["ready","invalid","merged","pending"]).isRequired},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(4)),i=c(n(6));t.default=l;var a=c(n(0)),o=c(n(1)),s=c(n(8)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.children,n=e.muted,o=e.scheme,c=e.nounderline,l=(0,i.default)(e,["children","muted","scheme","nounderline"]),f=(0,u.mapWhitespaceProps)(l).className,h=o?"link-"+o:n?"muted-link":"text-blue";return a.default.createElement("a",(0,r.default)({className:(0,s.default)(f,h,c&&"no-underline")},l),t)}l.propTypes={children:o.default.node,className:o.default.string,href:o.default.string,muted:o.default.bool,nounderline:o.default.bool,scheme:o.default.oneOf(["gray","gray-dark"])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6));t.default=c;var i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.children,n=e.href,a=e.tag,u=(0,r.default)(e,["children","href","tag"]),c=(0,s.mapWhitespaceProps)(u).className;return"a"!==a&&(n=null),i.default.createElement(a,{href:n,className:(0,o.default)("branch-name",c)},t)}c.defaultProps={tag:"a"},c.propTypes={children:a.default.node,href:a.default.string,tag:a.default.oneOfType([a.default.string,a.default.func])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6));t.default=l;var i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t){return t?{"Label--outline-green":"green"===e}:{"Label--gray":null==e||"gray"===e,"Label--gray-darker":"gray-darker"===e,"Label--orange":"orange"===e,"bg-green":"green"===e}};function l(e){var t=e.outline,n=e.scheme,a=e.children,u=(0,r.default)(e,["outline","scheme","children"]),l=(0,s.mapWhitespaceProps)(u).className;return i.default.createElement("span",{className:(0,o.default)(l,"Label",t&&"Label--outline",c(n,t))},a)}l.propTypes={children:a.default.node,outline:a.default.bool,scheme:a.default.oneOf(["gray","gray-darker","green","orange"])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(162));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return i.default.createElement(a.default,e)};s.defaultProps={tag:"h1",fontSize:5,m:0},s.propTypes=(0,r.default)({},a.default.propTypes),t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6)),i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.autocomplete,n=e.onChange,a=e.block,u=e.disabled,c=e.id,l=e.name,f=e.placeholder,h=e.required,p=e.size,d=e.value,m=(0,r.default)(e,["autocomplete","onChange","block","disabled","id","name","placeholder","required","size","value"]),g=(0,s.mapWhitespaceProps)(m).className;return i.default.createElement("input",{"aria-label":f,autoComplete:t,onChange:n,className:(0,o.default)(g,"form-control",{"input-block":a,"input-sm":"small"===p,"input-lg":"large"===p}),disabled:u,id:c,name:l,placeholder:f,required:h,type:"text",value:d})};c.propTypes={autocomplete:a.default.string,block:a.default.bool,disabled:a.default.bool,id:a.default.string,name:a.default.string,onChange:a.default.func,placeholder:a.default.string,required:a.default.bool,size:a.default.oneOf(["small","large"]),value:a.default.string},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6)),i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.tag,n=void 0===t?"div":t,a=e.children,u=e.flexAuto,c=e.alignSelf,l=(0,r.default)(e,["tag","children","flexAuto","alignSelf"]),f=(0,s.mapWhitespaceProps)(l).className,h=(0,o.default)(f,{"flex-auto":u},c&&"flex-self-"+c);return i.default.createElement(n,{className:h},a)};c.propTypes={alignSelf:a.default.oneOf(["auto","start","end","center","baseline","stretch"]),children:a.default.node,flexAuto:a.default.bool,tag:a.default.string},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(4)),i=c(n(6)),a=c(n(0)),o=c(n(1)),s=c(n(8)),u=c(n(101));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=e.children,n=e.inline,o=e.wrap,c=e.direction,l=e.justifyContent,f=e.alignItems,h=e.alignContent,p=(0,i.default)(e,["children","inline","wrap","direction","justifyContent","alignItems","alignContent"]),d=(0,s.default)({"d-flex":!n,"d-inline-flex":n},o&&"flex-"+o,c&&"flex-"+c,l&&"flex-justify-"+l,f&&"flex-items-"+f,h&&"flex-content-"+h);return a.default.createElement(u.default,(0,r.default)({},p,{className:d}),t)};l.propTypes={alignContent:o.default.oneOf(["start","end","center","between","around","stretch"]),alignItems:o.default.oneOf(["start","end","center","baseline","stretch"]),children:o.default.node,direction:o.default.oneOf(["row","row-reverse","column"]),inline:o.default.bool,justifyContent:o.default.oneOf(["start","end","center","between","around"]),wrap:o.default.oneOf(["wrap","nowrap"])},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(6)),i=l(n(14)),a=l(n(0)),o=l(n(1)),s=n(198),u=l(n(163)),c=n(7);function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=e.data,n=e.children,o=void 0===n?function(e){return(0,i.default)(e).map(function(t){return a.default.createElement(u.default,{key:t,state:t,value:e[t]})})}(t):n,l=e.size,f=void 0===l?30:l,h=(0,r.default)(e,["data","children","size"]),p=(0,c.mapWhitespaceProps)(h).className,d=f/2,m=d-6,g=(0,s.pie)().value(function(e){return e.props.value}),y=a.default.Children.toArray(o),v=g(y),b=(0,s.arc)().innerRadius(m).outerRadius(d),x=y.map(function(e,t){return a.default.cloneElement(e,{d:b(v[t])})});return a.default.createElement("svg",{width:f,height:f,className:p},a.default.createElement("g",{transform:"translate("+d+","+d+")"},x))};f.propTypes={children:(0,c.oneOrMoreOf)(o.default.element),data:o.default.objectOf(o.default.number),size:o.default.number},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n(6));t.default=p;var i=f(n(0)),a=f(n(1)),o=f(n(8)),s=f(n(164)),u=f(n(47)),c=f(n(100)),l=n(7);function f(e){return e&&e.__esModule?e:{default:e}}var h={content:"",border:"4px solid",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent",width:"0",height:"0"};function p(e){var t=e.title,n=e.scheme,a=e.children,f=(0,r.default)(e,["title","scheme","children"]),p=(0,l.mapWhitespaceProps)(f).className;return i.default.createElement("div",{className:(0,o.default)(p,"BtnGroup")},i.default.createElement(s.default,{className:"details-reset BtnGroup-form d-flex"},function(e){var r=e.toggle;return i.default.createElement(i.default.Fragment,null,i.default.createElement(u.default,{tag:"summary",scheme:n,grouped:!0,onClick:r},t," ",i.default.createElement("div",{className:"d-inline-block v-align-middle",style:h})),i.default.createElement("div",{className:"border box-shadow position-absolute px-3 py-2 bg-white mt-1 rounded-1 list-style-none",style:{zIndex:99999}},i.default.createElement("div",{className:"position-absolute ml-0 mt-n2"},i.default.createElement(c.default,{edge:"top",align:"start"})),a))}))}p.propTypes={children:a.default.node,scheme:u.default.propTypes.scheme,title:a.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(4)),i=c(n(6)),a=c(n(0)),o=c(n(1)),s=c(n(8)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=e.tag,n=void 0===t?"div":t,o=e.size,c=void 0===o?"medium":o,l=e.bg,f=e.children,h=(0,i.default)(e,["tag","size","bg","children"]),p=(0,u.mapWhitespaceProps)(h).className,d=a.default.Children.map(f,function(e){var t=e.props.className,n=void 0===t?"":t;return n.includes("CircleBadge-icon")||(n=(0,s.default)("CircleBadge-icon",n)),a.default.cloneElement(e,{className:n})}),m=(0,s.default)(p,"CircleBadge","CircleBadge--"+c,l&&"bg-"+l);return a.default.createElement(n,(0,r.default)({className:m},h),d)};l.propTypes={alt:o.default.string,bg:o.default.string,size:o.default.oneOf(["small","medium","large"]),src:o.default.string},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(n(14)),i=h(n(4)),a=h(n(6));t.default=p;var o=h(n(0)),s=h(n(1)),u=h(n(8)),c=h(n(22)),l=n(7),f=n(34);function h(e){return e&&e.__esModule?e:{default:e}}function p(e){var t=e.size,n=e.bg,r=e.color,s=(0,a.default)(e,["size","bg","color"]),f=(0,l.mapWhitespaceProps)(s).className,h=(0,u.default)(f,"circle d-flex flex-items-center flex-justify-center",n&&"bg-"+n,r&&"text-"+r);return o.default.createElement("div",{style:{width:t+"px",height:t+"px"},className:h},o.default.createElement(c.default,(0,i.default)({size:t},s)))}p.defaultProps={size:32},p.propTypes=(0,i.default)({},c.default.propTypes,{bg:s.default.oneOf((0,r.default)(f.colors.bg)),color:s.default.oneOf((0,r.default)(f.colors)),size:s.default.number})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(4)),i=u(n(6));t.default=l;var a=u(n(0)),o=u(n(165)),s=u(n(100));function u(e){return e&&e.__esModule?e:{default:e}}var c=n(34).colors.bg;function l(e){var t=e.bg,n=e.borderColor,u=e.caret,l=e.children,f=(0,i.default)(e,["bg","borderColor","caret","children"]),h={location:u,borderColor:n,fill:c[t]};return a.default.createElement(o.default,(0,r.default)({},f,{bg:t,borderColor:n}),l,a.default.createElement(s.default,h))}l.propTypes=(0,r.default)({},o.default.propTypes,{caret:s.default.propTypes.location}),l.defaultProps=(0,r.default)({},o.default.defaultProps,{position:"relative"})},function(e,t,n){var r=n(110),i=n(15)("iterator"),a=n(51);e.exports=n(9).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||a.hasOwnProperty(r(t))}},function(e,t,n){n(74),n(61),e.exports=n(489)},function(e,t,n){e.exports={default:n(490),__esModule:!0}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(492);function i(){}e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(6));t.default=l;var i=c(n(0)),a=c(n(1)),o=c(n(8)),s=c(n(22)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.disabled,n=e.icon,a=e.label,c=e.onClick,l=e.size,f=(0,r.default)(e,["disabled","icon","label","onClick","size"]),h=(0,u.mapWhitespaceProps)(f).className,p={"aria-label":a,className:(0,o.default)("btn-link text-inherit",h),disabled:t,onClick:c},d={icon:n,size:l};return i.default.createElement("button",p,i.default.createElement(s.default,d))}l.defaultProps={label:""},l.propTypes={disabled:a.default.bool,icon:s.default.propTypes.icon,label:a.default.string.isRequired,onClick:a.default.func,size:s.default.propTypes.size}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(47));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(a.default,(0,r.default)({},e,{linkStyle:!0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(47));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(a.default,(0,r.default)({},e,{scheme:"outline"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(47));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(a.default,(0,r.default)({},e,{scheme:"primary"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(47));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(a.default,(0,r.default)({},e,{scheme:"danger"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6)),i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.alt,n=e.isChild,a=e.size,u=void 0===a?20:a,c=e.src,l=(0,r.default)(e,["alt","isChild","size","src"]),f=(0,s.mapWhitespaceProps)(l).className,h=(0,o.default)("avatar",{"avatar-small":u<=24,"avatar-child":n},f);return i.default.createElement("img",{className:h,alt:t,src:c,width:u,height:u})};c.propTypes={alt:a.default.string,isChild:a.default.bool,size:a.default.number,src:a.default.string},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?[]:t,a=e.props,o=void 0===a?[]:a,s=e.getter,u=void 0===s?i:s,c=o.reduce(function(e,t){return r({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))},{}),l=function(e){return function(t){var n={};for(var r in t)e[r]||(n[r]=t[r]);return n}}(c);return function(e){var t=[],r=function(r){if(!c[r])return"continue";var i=e[r];return null===i||void 0===i?"continue":Array.isArray(i)?void i.forEach(function(e,i){if(null!==e&&void 0!==e){var a=n[i];t.push(u({breakpoint:a,prop:r,value:e}))}}):(t.push(u({prop:r,value:i})),"continue")};for(var i in e)r(i);var a=l(e);return a.className?a.className=[a.className].concat(t).join(" "):a.className=t.join(" "),a}}},function(e,t,n){var r=n(58),i=n(50);n(171)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(501),e.exports=n(9).Object.keys},function(e,t,n){var r=n(29),i=n(109);e.exports=n(9).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(74),n(61),e.exports=n(503)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=o(n(1)),a=n(3);function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.css;return r.default.createElement("style",{dangerouslySetInnerHTML:{__html:t}})},u=a.theme.fonts.map(function(e){return e.indexOf(" ")>-1?'"'+e+'"':e}).join(", ");s.defaultProps={css:"\n * { box-sizing: border-box; }\n body {\n margin: 0;\n font-family: "+u+";\n line-height: "+a.theme.lineHeight+";\n }\n "},s.propTypes={css:i.default.string},t.default=s},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(48),i=n(49),a=n(506);e.exports=function(){function e(e,t,n,r,o,s){s!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){var r={"./_app.js":102,"./components.js":159,"./demos.js":205,"./index.js":201,"./sandbox.js":200};function i(e){var t=a(e);return n(t)}function a(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=508},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(48),i=n(49),a=n(510);e.exports=function(){function e(e,t,n,r,o,s){s!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(48),i=n(49),a=n(512);e.exports=function(){function e(e,t,n,r,o,s){s!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(514);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";var r=n(515);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;ot}return!1}function S(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new S(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new S(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new S(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){C[e]=new S(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){C[e]=new S(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new S(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){C[e]=new S(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){C[e]=new S(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){C[e]=new S(e,5,!1,e.toLowerCase(),null)});var A=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A,D);C[t]=new S(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A,D);C[t]=new S(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A,D);C[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),C.tabIndex=new S("tabIndex",1,!1,"tabindex",null);var T=/["'&<>]/;function O(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=T.exec(e);if(t){var n,r="",i=0;for(n=t.index;n=n.children.length){var r=n.footer;t+=r,""!==r&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===n.type?this.currentSelectValue=null:null!=n.type&&null!=n.type.type&&n.type.type.$$typeof===g&&this.popProvider(n.type)}else r=n.children[n.childIndex++],t+=this.render(r,n.context,n.domNamespace)}return t},e.prototype.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?O(n):this.previousWasTextNode?"\x3c!-- --\x3e"+O(n):(this.previousWasTextNode=!0,O(n));if(e=(t=G(e,t)).child,t=t.context,null===e||!1===e)return"";if(!a.isValidElement(e)){if(null!=e&&null!=e.$$typeof){var r=e.$$typeof;r===h&&l("257"),l("258",r.toString())}return e=R(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}if("string"==typeof(r=e.type))return this.renderDOM(e,t,n);switch(r){case d:case v:case m:case p:return e=R(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}if("object"==typeof r&&null!==r)switch(r.$$typeof){case b:return e=R(r.render(e.props,e.ref)),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case g:return n={type:e,domNamespace:n,children:r=R(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case y:return r=R(e.props.children(e.type._currentValue)),this.stack.push({type:e,domNamespace:n,children:r,childIndex:0,context:t,footer:""}),""}l("130",null==r?r:typeof r,"")},e.prototype.renderDOM=function(e,t,n){var r=e.type.toLowerCase();n===P.html&&M(r),V.hasOwnProperty(r)||(H.test(r)||l("65",r),V[r]=!0);var o=e.props;if("input"===r)o=i({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===r){var s=o.value;if(null==s){s=o.defaultValue;var u=o.children;null!=u&&(null!=s&&l("92"),Array.isArray(u)&&(1>=u.length||l("93"),u=u[0]),s=""+u),null==s&&(s="")}o=i({},o,{value:void 0,children:""+s})}else if("select"===r)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=i({},o,{value:void 0});else if("option"===r){u=this.currentSelectValue;var c=function(e){var t="";return a.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(o.children);if(null!=u){var f=null!=o.value?o.value+"":c;if(s=!1,Array.isArray(u)){for(var h=0;h":(v+=">",s="");e:{if(null!=(u=o.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=o.children)||"number"==typeof u){u=O(u);break e}u=null}return null!=u?(o=[],I[r]&&"\n"===u.charAt(0)&&(v+="\n"),v+=u):o=R(o.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?M(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:r,children:o,childIndex:0,context:t,footer:s}),this.previousWasTextNode=!1,v},e}(),J={renderToString:function(e){return new X(e,!1).read(1/0)},renderToStaticMarkup:function(e){return new X(e,!0).read(1/0)},renderToNodeStream:function(){l("207")},renderToStaticNodeStream:function(){l("208")},version:"16.4.1"},K={default:J},Y=K&&J||K;e.exports=Y.default?Y.default:Y},function(e,t,n){"use strict";e.exports=n(455)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.space=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=s(n(1)),a=n(97),o=s(n(158));function s(e){return e&&e.__esModule?e:{default:e}}var u=/^[mp][trblxy]?$/,c=t.space=function(e){var t=Object.keys(e).filter(function(e){return u.test(e)}).sort(),n=(0,a.breaks)(e),r=(0,a.get)(e,"theme.space",o.default.space);return t.map(function(t){var i=e[t],o=f(t);return Array.isArray(i)?(0,a.arr)(i).map(l(r)).map((0,a.dec)(o)).map((0,a.media)(n)).reduce(a.merge,{}):o.reduce(function(e,t){return Object.assign(e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,l(r)(i)))},{})}).reduce(a.merge,{})},l=function(e){return function(t){if(!(0,a.num)(t))return t;var n=e[Math.abs(t)]||Math.abs(t);return(0,a.num)(n)?(0,a.px)(n*((0,a.neg)(t)?-1:1)):(0,a.neg)(t)?"-"+n:n}},f=function(e){var t=e.split(""),n=r(t,2),i=n[0],a=n[1],o=h[i];return(p[a]||[""]).map(function(e){return o+e})},h={m:"margin",p:"padding"},p={t:["Top"],r:["Right"],b:["Bottom"],l:["Left"],x:["Left","Right"],y:["Top","Bottom"]},d=i.default.oneOfType([i.default.number,i.default.string,i.default.array]);c.propTypes={m:d,mt:d,mr:d,mb:d,ml:d,mx:d,my:d,p:d,pt:d,pr:d,pb:d,pl:d,px:d,py:d},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.borderWidth=t.buttonStyle=t.colorStyle=t.textStyle=t.disabled=t.active=t.focus=t.hover=t.left=t.bottom=t.right=t.top=t.zIndex=t.position=t.backgroundRepeat=t.backgroundPosition=t.backgroundSize=t.backgroundImage=t.background=t.boxShadow=t.borderRadius=t.borderColor=t.borders=t.borderLeft=t.borderBottom=t.borderRight=t.borderTop=t.border=t.gridTemplateRows=t.gridTemplateColumns=t.gridAutoRows=t.gridAutoColumns=t.gridAutoFlow=t.gridRow=t.gridColumn=t.gridRowGap=t.gridColumnGap=t.gridGap=t.order=t.alignSelf=t.justifySelf=t.flex=t.flexDirection=t.flexBasis=t.flexWrap=t.justifyContent=t.alignContent=t.alignItems=t.ratio=t.ratioPadding=t.size=t.sizeHeight=t.sizeWidth=t.minHeight=t.maxHeight=t.height=t.minWidth=t.maxWidth=t.display=t.letterSpacing=t.fontWeight=t.lineHeight=t.textAlign=t.fontFamily=t.color=t.bgColor=t.textColor=t.fontSize=t.width=t.space=void 0;var r=Object.assign||function(e){for(var t=1;t0?e+"px solid":e},p=t.border=(0,a.responsiveStyle)({prop:"border",key:"borders",getter:h}),d=t.borderTop=(0,a.responsiveStyle)({prop:"borderTop",key:"borders",getter:h}),m=t.borderRight=(0,a.responsiveStyle)({prop:"borderRight",key:"borders",getter:h}),g=t.borderBottom=(0,a.responsiveStyle)({prop:"borderBottom",key:"borders",getter:h}),y=t.borderLeft=(0,a.responsiveStyle)({prop:"borderLeft",key:"borders",getter:h});(t.borders=function(e){return r({},p(e),d(e),m(e),g(e),y(e))}).propTypes=r({},p.propTypes,d.propTypes,m.propTypes,g.propTypes,y.propTypes);t.borderColor=(0,a.style)({prop:"borderColor",key:"colors"}),t.borderRadius=(0,a.style)({prop:"borderRadius",key:"radii",numberToPx:!0}),t.boxShadow=(0,a.style)({prop:"boxShadow",key:"shadows"}),t.background=(0,a.style)({prop:"background"}),t.backgroundImage=(0,a.style)({prop:"backgroundImage",alias:"bgImage",getter:function(e){return"url("+e+")"}}),t.backgroundSize=(0,a.style)({prop:"backgroundSize",alias:"bgSize"}),t.backgroundPosition=(0,a.style)({prop:"backgroundPosition",alias:"bgPosition"}),t.backgroundRepeat=(0,a.style)({prop:"backgroundRepeat",alias:"bgRepeat"}),t.position=(0,a.responsiveStyle)({prop:"position"}),t.zIndex=(0,a.style)({prop:"zIndex"}),t.top=(0,a.responsiveStyle)({prop:"top",numberToPx:!0}),t.right=(0,a.responsiveStyle)({prop:"right",numberToPx:!0}),t.bottom=(0,a.responsiveStyle)({prop:"bottom",numberToPx:!0}),t.left=(0,a.responsiveStyle)({prop:"left",numberToPx:!0}),t.hover=(0,a.pseudoStyle)({prop:"hover",pseudoclass:"hover",keys:{color:"colors",backgroundColor:"colors",borderColor:"colors",boxShadow:"shadows"}}),t.focus=(0,a.pseudoStyle)({prop:"focus",keys:{color:"colors",backgroundColor:"colors",borderColor:"colors",boxShadow:"shadows"}}),t.active=(0,a.pseudoStyle)({prop:"active",keys:{color:"colors",backgroundColor:"colors",borderColor:"colors",boxShadow:"shadows"}}),t.disabled=(0,a.pseudoStyle)({prop:"disabledStyle",pseudoclass:"disabled",keys:{color:"colors",backgroundColor:"colors",borderColor:"colors",boxShadow:"shadows"}}),t.textStyle=(0,a.complexStyle)({prop:"textStyle",key:"textStyles"}),t.colorStyle=(0,a.complexStyle)({prop:"colors",key:"colorStyles"}),t.buttonStyle=(0,a.complexStyle)({prop:"buttonStyle",key:"buttons"}),t.borderWidth=(0,a.style)({prop:"borderWidth",cssProperty:"border",key:"borderWidths",getter:function(e){return h(e)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propTypes=t.util=t.theme=t.themeGet=t.complexStyle=t.responsiveStyle=t.pseudoStyle=t.style=t.borderWidth=t.buttonStyle=t.colorStyle=t.textStyle=t.disabled=t.active=t.focus=t.hover=t.left=t.bottom=t.right=t.top=t.zIndex=t.position=t.backgroundRepeat=t.backgroundPosition=t.backgroundSize=t.backgroundImage=t.background=t.boxShadow=t.borderRadius=t.borderColor=t.borders=t.borderLeft=t.borderBottom=t.borderRight=t.borderTop=t.border=t.gridTemplateRows=t.gridTemplateColumns=t.gridAutoRows=t.gridAutoColumns=t.gridAutoFlow=t.gridRow=t.gridColumn=t.gridRowGap=t.gridColumnGap=t.gridGap=t.order=t.alignSelf=t.justifySelf=t.flexBasis=t.flex=t.flexDirection=t.flexWrap=t.justifyContent=t.alignContent=t.alignItems=t.ratio=t.size=t.minHeight=t.maxHeight=t.height=t.minWidth=t.maxWidth=t.display=t.letterSpacing=t.fontWeight=t.lineHeight=t.textAlign=t.fontFamily=t.color=t.bgColor=t.textColor=t.fontSize=t.width=t.space=t.styles=void 0;var r=n(458);Object.defineProperty(t,"space",{enumerable:!0,get:function(){return r.space}}),Object.defineProperty(t,"width",{enumerable:!0,get:function(){return r.width}}),Object.defineProperty(t,"fontSize",{enumerable:!0,get:function(){return r.fontSize}}),Object.defineProperty(t,"textColor",{enumerable:!0,get:function(){return r.textColor}}),Object.defineProperty(t,"bgColor",{enumerable:!0,get:function(){return r.bgColor}}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return r.color}}),Object.defineProperty(t,"fontFamily",{enumerable:!0,get:function(){return r.fontFamily}}),Object.defineProperty(t,"textAlign",{enumerable:!0,get:function(){return r.textAlign}}),Object.defineProperty(t,"lineHeight",{enumerable:!0,get:function(){return r.lineHeight}}),Object.defineProperty(t,"fontWeight",{enumerable:!0,get:function(){return r.fontWeight}}),Object.defineProperty(t,"letterSpacing",{enumerable:!0,get:function(){return r.letterSpacing}}),Object.defineProperty(t,"display",{enumerable:!0,get:function(){return r.display}}),Object.defineProperty(t,"maxWidth",{enumerable:!0,get:function(){return r.maxWidth}}),Object.defineProperty(t,"minWidth",{enumerable:!0,get:function(){return r.minWidth}}),Object.defineProperty(t,"height",{enumerable:!0,get:function(){return r.height}}),Object.defineProperty(t,"maxHeight",{enumerable:!0,get:function(){return r.maxHeight}}),Object.defineProperty(t,"minHeight",{enumerable:!0,get:function(){return r.minHeight}}),Object.defineProperty(t,"size",{enumerable:!0,get:function(){return r.size}}),Object.defineProperty(t,"ratio",{enumerable:!0,get:function(){return r.ratio}}),Object.defineProperty(t,"alignItems",{enumerable:!0,get:function(){return r.alignItems}}),Object.defineProperty(t,"alignContent",{enumerable:!0,get:function(){return r.alignContent}}),Object.defineProperty(t,"justifyContent",{enumerable:!0,get:function(){return r.justifyContent}}),Object.defineProperty(t,"flexWrap",{enumerable:!0,get:function(){return r.flexWrap}}),Object.defineProperty(t,"flexDirection",{enumerable:!0,get:function(){return r.flexDirection}}),Object.defineProperty(t,"flex",{enumerable:!0,get:function(){return r.flex}}),Object.defineProperty(t,"flexBasis",{enumerable:!0,get:function(){return r.flexBasis}}),Object.defineProperty(t,"justifySelf",{enumerable:!0,get:function(){return r.justifySelf}}),Object.defineProperty(t,"alignSelf",{enumerable:!0,get:function(){return r.alignSelf}}),Object.defineProperty(t,"order",{enumerable:!0,get:function(){return r.order}}),Object.defineProperty(t,"gridGap",{enumerable:!0,get:function(){return r.gridGap}}),Object.defineProperty(t,"gridColumnGap",{enumerable:!0,get:function(){return r.gridColumnGap}}),Object.defineProperty(t,"gridRowGap",{enumerable:!0,get:function(){return r.gridRowGap}}),Object.defineProperty(t,"gridColumn",{enumerable:!0,get:function(){return r.gridColumn}}),Object.defineProperty(t,"gridRow",{enumerable:!0,get:function(){return r.gridRow}}),Object.defineProperty(t,"gridAutoFlow",{enumerable:!0,get:function(){return r.gridAutoFlow}}),Object.defineProperty(t,"gridAutoColumns",{enumerable:!0,get:function(){return r.gridAutoColumns}}),Object.defineProperty(t,"gridAutoRows",{enumerable:!0,get:function(){return r.gridAutoRows}}),Object.defineProperty(t,"gridTemplateColumns",{enumerable:!0,get:function(){return r.gridTemplateColumns}}),Object.defineProperty(t,"gridTemplateRows",{enumerable:!0,get:function(){return r.gridTemplateRows}}),Object.defineProperty(t,"border",{enumerable:!0,get:function(){return r.border}}),Object.defineProperty(t,"borderTop",{enumerable:!0,get:function(){return r.borderTop}}),Object.defineProperty(t,"borderRight",{enumerable:!0,get:function(){return r.borderRight}}),Object.defineProperty(t,"borderBottom",{enumerable:!0,get:function(){return r.borderBottom}}),Object.defineProperty(t,"borderLeft",{enumerable:!0,get:function(){return r.borderLeft}}),Object.defineProperty(t,"borders",{enumerable:!0,get:function(){return r.borders}}),Object.defineProperty(t,"borderColor",{enumerable:!0,get:function(){return r.borderColor}}),Object.defineProperty(t,"borderRadius",{enumerable:!0,get:function(){return r.borderRadius}}),Object.defineProperty(t,"boxShadow",{enumerable:!0,get:function(){return r.boxShadow}}),Object.defineProperty(t,"background",{enumerable:!0,get:function(){return r.background}}),Object.defineProperty(t,"backgroundImage",{enumerable:!0,get:function(){return r.backgroundImage}}),Object.defineProperty(t,"backgroundSize",{enumerable:!0,get:function(){return r.backgroundSize}}),Object.defineProperty(t,"backgroundPosition",{enumerable:!0,get:function(){return r.backgroundPosition}}),Object.defineProperty(t,"backgroundRepeat",{enumerable:!0,get:function(){return r.backgroundRepeat}}),Object.defineProperty(t,"position",{enumerable:!0,get:function(){return r.position}}),Object.defineProperty(t,"zIndex",{enumerable:!0,get:function(){return r.zIndex}}),Object.defineProperty(t,"top",{enumerable:!0,get:function(){return r.top}}),Object.defineProperty(t,"right",{enumerable:!0,get:function(){return r.right}}),Object.defineProperty(t,"bottom",{enumerable:!0,get:function(){return r.bottom}}),Object.defineProperty(t,"left",{enumerable:!0,get:function(){return r.left}}),Object.defineProperty(t,"hover",{enumerable:!0,get:function(){return r.hover}}),Object.defineProperty(t,"focus",{enumerable:!0,get:function(){return r.focus}}),Object.defineProperty(t,"active",{enumerable:!0,get:function(){return r.active}}),Object.defineProperty(t,"disabled",{enumerable:!0,get:function(){return r.disabled}}),Object.defineProperty(t,"textStyle",{enumerable:!0,get:function(){return r.textStyle}}),Object.defineProperty(t,"colorStyle",{enumerable:!0,get:function(){return r.colorStyle}}),Object.defineProperty(t,"buttonStyle",{enumerable:!0,get:function(){return r.buttonStyle}}),Object.defineProperty(t,"borderWidth",{enumerable:!0,get:function(){return r.borderWidth}});var i=n(97);Object.defineProperty(t,"style",{enumerable:!0,get:function(){return i.style}}),Object.defineProperty(t,"pseudoStyle",{enumerable:!0,get:function(){return i.pseudoStyle}}),Object.defineProperty(t,"responsiveStyle",{enumerable:!0,get:function(){return i.responsiveStyle}}),Object.defineProperty(t,"complexStyle",{enumerable:!0,get:function(){return i.complexStyle}}),Object.defineProperty(t,"themeGet",{enumerable:!0,get:function(){return i.themeGet}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return i.themeGet}});var a=u(r),o=u(r),s=u(i);function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.styles=o,t.util=s;var c=t.propTypes={};Object.keys(a).forEach(function(e){c[e]=a[e].propTypes}),a.propTypes=c,t.default=a},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e)},e)}(this.props.theme)}}},{key:"render",value:function(){return i.createElement("div",null,this.props.children)}}]),t}();o.childContextTypes={theme:a.oneOfType([a.func,a.object])},e.exports=o},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],s=[],u=[];for(var c in t){var l=t[c];if(null!==l)if("object"!==(void 0===l?"undefined":r(l))){var f=o(c,l);u.push(f)}else{var h=/^@/.test(c)?c:null;e(l,h?n:n+a(c),h).forEach(function(e){return s.push(e)})}}return s.unshift({media:i,child:n,declarations:u}),s}(t).filter(function(e){return e.declarations.length}).forEach(function(t){var r=JSON.stringify(t),a=function(e){var t=e.selector,n=e.child,r=e.media;return function(e,t){return t?t+"{"+e+"}":e}(t+n+"{"+e.declarations.join(";")+"}",r)}(Object.assign(t,{selector:e}));n.push(a),i[r]=!0}),n.join("")}},function(e,t,n){"use strict";function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function i(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function a(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}e.exports=function(e,t){for(var n=1540483477,o=t^e.length,s=e.length,u=0;s>=4;){var c=r(e,u);c=a(c,n),c=a(c^=c>>>24,n),o=a(o,n),o^=c,u+=4,s-=4}switch(s){case 3:o^=i(e,u),o=a(o^=e.charCodeAt(u+2)<<16,n);break;case 2:o=a(o^=i(e,u),n);break;case 1:o=a(o^=e.charCodeAt(u),n)}return o=a(o^=o>>>13,n),((o^=o>>>15)>>>0).toString(36)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(464);function i(){}e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Head=t.Detail=t.Example=t.Library=void 0;var r,i,a=x(n(4)),o=x(n(98)),s=x(n(6)),u=x(n(27)),c=x(n(26)),l=x(n(25)),f=x(n(24)),h=x(n(23)),p=x(n(0)),d=x(n(39)),m=x(n(31)),g=n(43),y=n(28),v=x(n(96)),b=x(n(95));function x(e){return e&&e.__esModule?e:{default:e}}var w=(0,m.default)("div")({display:"flex",alignItems:"flex-start",height:"100vh"}),E=(0,m.default)("div")({flex:"1 1 auto",height:"100vh",overflowY:"auto",WebkitOverflowScrolling:"touch"}),k=(0,m.default)(g.Link)({display:"block",color:"inherit",textDecoration:"none",overflow:"hidden",border:"1px solid #f6f6f6","&:hover":{borderColor:"#ddd"}}),_=(0,m.default)("div")({width:"192px",flex:"none",height:"100vh",overflowY:"auto",WebkitOverflowScrolling:"touch",borderRight:"1px solid #f6f6f6"}),S=(0,m.default)(g.NavLink)({display:"block",paddingLeft:"8px",paddingRight:"8px",paddingTop:"4px",paddingBottom:"4px",fontSize:"12px",fontWeight:"bold",textDecoration:"none",color:"inherit",WebkitUserSelect:"none",userSelect:"none","&.active":{color:"white",backgroundColor:"black"}}),C="undefined"!=typeof document?g.BrowserRouter:g.StaticRouter,A=t.Library=function(e){function t(){return(0,c.default)(this,t),(0,f.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,h.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=e.basename,n=(0,s.default)(e,["basename"]);return p.default.createElement(C,{basename:t,context:{}},p.default.createElement(D,n))}}]),t}(p.default.Component),D=(0,g.withRouter)((i=r=function(e){function t(){var e,n,r,i;(0,c.default)(this,t);for(var a=arguments.length,s=Array(a),l=0;lc;)a.call(o,n=s[c++])&&l.push(e?[n,o[n]]:o[n]);return l}}},function(e,t,n){var r=n(19),i=n(467)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){n(468),e.exports=n(9).Object.values},function(e,t,n){e.exports={default:n(469),__esModule:!0}},function(e){e.exports={name:"primer-react",version:"0.0.11-beta",description:"Primer react components",main:"dist/index.umd.js",module:"dist/index.esm.js",scripts:{prebuild:"rm -rf dist",build:"NODE_ENV=production rollup -c","build:docs":"x0 build examples --out-dir docs",lint:"eslint src examples",prepublishOnly:"npm run build",start:"x0 dev examples -op 8888",test:"jest",watch:"jest --watch --no-coverage"},files:["dist","src","examples"],repository:"primer/primer-react",keywords:["react","components","library","design-system"],author:"GitHub, Inc.",license:"MIT",x0:{cssLibrary:"styled-components",basename:"/primer-react",template:"./html.js"},jest:{collectCoverage:!0,collectCoverageFrom:["src/**/*.js"],coveragePathIgnorePatterns:["/node_modules/","/src/utils/testing.js"]},dependencies:{"@githubprimer/octicons-react":"8.0.0",classnames:"^2.2.5","d3-shape":"^1.2.0",react:"^16.2.0","system-classnames":"^1.0.0-3"},devDependencies:{"@compositor/kit":"^1.0.43","@compositor/x0":"^5.0.8","babel-plugin-external-helpers":"6.22.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babel-preset-stage-0":"6.24.1",enzyme:"3.3.0","enzyme-adapter-react-16":"1.1.1",eslint:"4.19.1","eslint-plugin-github":"1.0.0","eslint-plugin-jest":"21.15.1","eslint-plugin-jsx-a11y":"6.0.3","eslint-plugin-react":"7.8.2",jest:"^22.4.3","react-router-dom":"^4.3.1","react-test-renderer":"^16.3.2",rollup:"0.62.0","rollup-plugin-babel":"3.0.5","rollup-plugin-commonjs":"9.1.3","styled-components":"3.3.3","styled-system":"^2.0.2"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(4)),i=l(n(6));t.default=f;var a=l(n(0)),o=l(n(1)),s=l(n(8)),u=n(160),c=n(7);function l(e){return e&&e.__esModule?e:{default:e}}function f(e){var t=e.children,n=e.selected,o=e.tag,l=(0,i.default)(e,["children","selected","tag"]),f=(0,c.mapWhitespaceProps)(l).className,h=(0,s.default)(u.ITEM_CLASS,n&&u.SELECTED_CLASS,f);return a.default.createElement(o,(0,r.default)({className:h},l),t)}f.displayName="UnderlineNavLink",f.defaultProps={tag:"a"},f.propTypes={children:o.default.node,className:o.default.string,selected:o.default.bool,tag:o.default.oneOfType([o.default.string,o.default.func])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(14)),i=c(n(6));t.default=f;var a=c(n(0)),o=c(n(1)),s=c(n(8)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}var l={green:"success",red:"error",yellow:"warn"};function f(e){var t=e.children,n=e.full,r=e.scheme,o=(0,i.default)(e,["children","full","scheme"]),c=(0,u.mapWhitespaceProps)(o).className;return a.default.createElement("div",{className:(0,s.default)(c,"flash",n&&"flash-full",r&&"flash-"+l[r])},t)}f.propTypes={children:o.default.node,className:o.default.string,full:o.default.bool,scheme:o.default.oneOf((0,r.default)(l))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6));t.default=c;var i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.theme,n=e.children,a=(0,r.default)(e,["theme","children"]),u=(0,s.mapWhitespaceProps)(a).className;return i.default.createElement("span",{className:(0,o.default)(u,"Counter",t&&"Counter--"+t)},n)}c.propTypes={children:a.default.node,theme:a.default.oneOf(["gray","gray-light"])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6));t.default=c;var i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.children,n=e.direction,a=e.text,u=e.noDelay,c=e.align,l=e.wrap,f=(0,r.default)(e,["children","direction","text","noDelay","align","wrap"]),h=(0,s.mapWhitespaceProps)(f).className;return i.default.createElement("span",{"aria-label":a,className:(0,o.default)(h,"tooltipped","tooltipped-"+n,c&&"tooltipped-align-"+c+"-2",u&&"tooltipped-no-delay",l&&"tooltipped-multiline")},t)}c.alignments=["left","right"],c.directions=["n","ne","e","se","s","sw","w","nw"],c.defaultProps={direction:"n"},c.propTypes={align:a.default.oneOf(c.alignments),children:a.default.node,direction:a.default.oneOf(c.directions),noDelay:a.default.bool,text:a.default.string,wrap:a.default.bool}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(4)),i=l(n(6)),a=l(n(0)),o=l(n(1)),s=n(22),u=l(s),c=l(n(161));function l(e){return e&&e.__esModule?e:{default:e}}var f={ready:"green",invalid:"invalid",merged:"purple",pending:"yellow"},h=a.default.createElement(u.default,{icon:s.GitMerge,size:"medium"}),p=function(e){var t=e.state,n=(0,i.default)(e,["state"]);return a.default.createElement(c.default,(0,r.default)({},n,{scheme:f[t],icon:h}))};p.propTypes={state:o.default.oneOf(["ready","invalid","merged","pending"]).isRequired},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(4)),i=c(n(6));t.default=l;var a=c(n(0)),o=c(n(1)),s=c(n(8)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.children,n=e.muted,o=e.scheme,c=e.nounderline,l=(0,i.default)(e,["children","muted","scheme","nounderline"]),f=(0,u.mapWhitespaceProps)(l).className,h=o?"link-"+o:n?"muted-link":"text-blue";return a.default.createElement("a",(0,r.default)({className:(0,s.default)(f,h,c&&"no-underline")},l),t)}l.propTypes={children:o.default.node,className:o.default.string,href:o.default.string,muted:o.default.bool,nounderline:o.default.bool,scheme:o.default.oneOf(["gray","gray-dark"])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6));t.default=c;var i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.children,n=e.href,a=e.tag,u=(0,r.default)(e,["children","href","tag"]),c=(0,s.mapWhitespaceProps)(u).className;return"a"!==a&&(n=null),i.default.createElement(a,{href:n,className:(0,o.default)("branch-name",c)},t)}c.defaultProps={tag:"a"},c.propTypes={children:a.default.node,href:a.default.string,tag:a.default.oneOfType([a.default.string,a.default.func])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6));t.default=l;var i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t){return t?{"Label--outline-green":"green"===e}:{"Label--gray":null==e||"gray"===e,"Label--gray-darker":"gray-darker"===e,"Label--orange":"orange"===e,"bg-green":"green"===e}};function l(e){var t=e.outline,n=e.scheme,a=e.children,u=(0,r.default)(e,["outline","scheme","children"]),l=(0,s.mapWhitespaceProps)(u).className;return i.default.createElement("span",{className:(0,o.default)(l,"Label",t&&"Label--outline",c(n,t))},a)}l.propTypes={children:a.default.node,outline:a.default.bool,scheme:a.default.oneOf(["gray","gray-darker","green","orange"])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(162));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return i.default.createElement(a.default,e)};s.defaultProps={tag:"h1",fontSize:5,m:0},s.propTypes=(0,r.default)({},a.default.propTypes),t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6)),i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.autocomplete,n=e.onChange,a=e.block,u=e.disabled,c=e.id,l=e.name,f=e.placeholder,h=e.required,p=e.size,d=e.value,m=(0,r.default)(e,["autocomplete","onChange","block","disabled","id","name","placeholder","required","size","value"]),g=(0,s.mapWhitespaceProps)(m).className;return i.default.createElement("input",{"aria-label":f,autoComplete:t,onChange:n,className:(0,o.default)(g,"form-control",{"input-block":a,"input-sm":"small"===p,"input-lg":"large"===p}),disabled:u,id:c,name:l,placeholder:f,required:h,type:"text",value:d})};c.propTypes={autocomplete:a.default.string,block:a.default.bool,disabled:a.default.bool,id:a.default.string,name:a.default.string,onChange:a.default.func,placeholder:a.default.string,required:a.default.bool,size:a.default.oneOf(["small","large"]),value:a.default.string},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6)),i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.tag,n=void 0===t?"div":t,a=e.children,u=e.flexAuto,c=e.alignSelf,l=(0,r.default)(e,["tag","children","flexAuto","alignSelf"]),f=(0,s.mapWhitespaceProps)(l).className,h=(0,o.default)(f,{"flex-auto":u},c&&"flex-self-"+c);return i.default.createElement(n,{className:h},a)};c.propTypes={alignSelf:a.default.oneOf(["auto","start","end","center","baseline","stretch"]),children:a.default.node,flexAuto:a.default.bool,tag:a.default.string},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(4)),i=c(n(6)),a=c(n(0)),o=c(n(1)),s=c(n(101)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=(0,u.mapAllProps)(e),n=t.className,o=t.children,c=(0,i.default)(t,["className","children"]);return a.default.createElement(s.default,(0,r.default)({},c,{className:n}),o)};l.propTypes={alignContent:(0,u.oneOrMoreOf)(o.default.oneOf(["start","end","center","between","around","stretch"])),alignItems:(0,u.oneOrMoreOf)(o.default.oneOf(["start","end","center","baseline","stretch"])),children:o.default.node,direction:(0,u.oneOrMoreOf)(o.default.oneOf(["row","row-reverse","column"])),display:(0,u.oneOrMoreOf)(o.default.oneOf(["flex","inline-flex"])),inline:o.default.bool,justifyContent:(0,u.oneOrMoreOf)(o.default.oneOf(["start","end","center","between","around"])),wrap:(0,u.oneOrMoreOf)(o.default.oneOf(["wrap","nowrap"]))},l.defaultProps={display:"flex"},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(6)),i=l(n(14)),a=l(n(0)),o=l(n(1)),s=n(198),u=l(n(163)),c=n(7);function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=e.data,n=e.children,o=void 0===n?function(e){return(0,i.default)(e).map(function(t){return a.default.createElement(u.default,{key:t,state:t,value:e[t]})})}(t):n,l=e.size,f=void 0===l?30:l,h=(0,r.default)(e,["data","children","size"]),p=(0,c.mapWhitespaceProps)(h).className,d=f/2,m=d-6,g=(0,s.pie)().value(function(e){return e.props.value}),y=a.default.Children.toArray(o),v=g(y),b=(0,s.arc)().innerRadius(m).outerRadius(d),x=y.map(function(e,t){return a.default.cloneElement(e,{d:b(v[t])})});return a.default.createElement("svg",{width:f,height:f,className:p},a.default.createElement("g",{transform:"translate("+d+","+d+")"},x))};f.propTypes={children:(0,c.oneOrMoreOf)(o.default.element),data:o.default.objectOf(o.default.number),size:o.default.number},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n(6));t.default=p;var i=f(n(0)),a=f(n(1)),o=f(n(8)),s=f(n(164)),u=f(n(47)),c=f(n(100)),l=n(7);function f(e){return e&&e.__esModule?e:{default:e}}var h={content:"",border:"4px solid",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent",width:"0",height:"0"};function p(e){var t=e.title,n=e.scheme,a=e.children,f=(0,r.default)(e,["title","scheme","children"]),p=(0,l.mapWhitespaceProps)(f).className;return i.default.createElement("div",{className:(0,o.default)(p,"BtnGroup")},i.default.createElement(s.default,{className:"details-reset BtnGroup-form d-flex"},function(e){var r=e.toggle;return i.default.createElement(i.default.Fragment,null,i.default.createElement(u.default,{tag:"summary",scheme:n,grouped:!0,onClick:r},t," ",i.default.createElement("div",{className:"d-inline-block v-align-middle",style:h})),i.default.createElement("div",{className:"border box-shadow position-absolute px-3 py-2 bg-white mt-1 rounded-1 list-style-none",style:{zIndex:99999}},i.default.createElement("div",{className:"position-absolute ml-0 mt-n2"},i.default.createElement(c.default,{edge:"top",align:"start"})),a))}))}p.propTypes={children:a.default.node,scheme:u.default.propTypes.scheme,title:a.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(4)),i=c(n(6)),a=c(n(0)),o=c(n(1)),s=c(n(8)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=e.tag,n=void 0===t?"div":t,o=e.size,c=void 0===o?"medium":o,l=e.bg,f=e.children,h=(0,i.default)(e,["tag","size","bg","children"]),p=(0,u.mapWhitespaceProps)(h).className,d=a.default.Children.map(f,function(e){var t=e.props.className,n=void 0===t?"":t;return n.includes("CircleBadge-icon")||(n=(0,s.default)("CircleBadge-icon",n)),a.default.cloneElement(e,{className:n})}),m=(0,s.default)(p,"CircleBadge","CircleBadge--"+c,l&&"bg-"+l);return a.default.createElement(n,(0,r.default)({className:m},h),d)};l.propTypes={alt:o.default.string,bg:o.default.string,size:o.default.oneOf(["small","medium","large"]),src:o.default.string},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(n(14)),i=h(n(4)),a=h(n(6));t.default=p;var o=h(n(0)),s=h(n(1)),u=h(n(8)),c=h(n(22)),l=n(7),f=n(34);function h(e){return e&&e.__esModule?e:{default:e}}function p(e){var t=e.size,n=e.bg,r=e.color,s=(0,a.default)(e,["size","bg","color"]),f=(0,l.mapWhitespaceProps)(s).className,h=(0,u.default)(f,"circle d-flex flex-items-center flex-justify-center",n&&"bg-"+n,r&&"text-"+r);return o.default.createElement("div",{style:{width:t+"px",height:t+"px"},className:h},o.default.createElement(c.default,(0,i.default)({size:t},s)))}p.defaultProps={size:32},p.propTypes=(0,i.default)({},c.default.propTypes,{bg:s.default.oneOf((0,r.default)(f.colors.bg)),color:s.default.oneOf((0,r.default)(f.colors)),size:s.default.number})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(4)),i=u(n(6));t.default=l;var a=u(n(0)),o=u(n(165)),s=u(n(100));function u(e){return e&&e.__esModule?e:{default:e}}var c=n(34).colors.bg;function l(e){var t=e.bg,n=e.borderColor,u=e.caret,l=e.children,f=(0,i.default)(e,["bg","borderColor","caret","children"]),h={location:u,borderColor:n,fill:c[t]};return a.default.createElement(o.default,(0,r.default)({},f,{bg:t,borderColor:n}),l,a.default.createElement(s.default,h))}l.propTypes=(0,r.default)({},o.default.propTypes,{caret:s.default.propTypes.location}),l.defaultProps=(0,r.default)({},o.default.defaultProps,{position:"relative"})},function(e,t,n){var r=n(110),i=n(15)("iterator"),a=n(51);e.exports=n(9).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||a.hasOwnProperty(r(t))}},function(e,t,n){n(74),n(61),e.exports=n(489)},function(e,t,n){e.exports={default:n(490),__esModule:!0}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(492);function i(){}e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(6));t.default=l;var i=c(n(0)),a=c(n(1)),o=c(n(8)),s=c(n(22)),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.disabled,n=e.icon,a=e.label,c=e.onClick,l=e.size,f=(0,r.default)(e,["disabled","icon","label","onClick","size"]),h=(0,u.mapWhitespaceProps)(f).className,p={"aria-label":a,className:(0,o.default)("btn-link text-inherit",h),disabled:t,onClick:c},d={icon:n,size:l};return i.default.createElement("button",p,i.default.createElement(s.default,d))}l.defaultProps={label:""},l.propTypes={disabled:a.default.bool,icon:s.default.propTypes.icon,label:a.default.string.isRequired,onClick:a.default.func,size:s.default.propTypes.size}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(47));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(a.default,(0,r.default)({},e,{linkStyle:!0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(47));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(a.default,(0,r.default)({},e,{scheme:"outline"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(47));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(a.default,(0,r.default)({},e,{scheme:"primary"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),i=o(n(0)),a=o(n(47));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return i.default.createElement(a.default,(0,r.default)({},e,{scheme:"danger"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(6)),i=u(n(0)),a=u(n(1)),o=u(n(8)),s=n(7);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.alt,n=e.isChild,a=e.size,u=void 0===a?20:a,c=e.src,l=(0,r.default)(e,["alt","isChild","size","src"]),f=(0,s.mapWhitespaceProps)(l).className,h=(0,o.default)("avatar",{"avatar-small":u<=24,"avatar-child":n},f);return i.default.createElement("img",{className:h,alt:t,src:c,width:u,height:u})};c.propTypes={alt:a.default.string,isChild:a.default.bool,size:a.default.number,src:a.default.string},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?[]:t,a=e.props,o=void 0===a?[]:a,s=e.getter,u=void 0===s?i:s,c=o.reduce(function(e,t){return r({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))},{}),l=function(e){return function(t){var n={};for(var r in t)e[r]||(n[r]=t[r]);return n}}(c);return function(e){var t=[],r=function(r){if(!c[r])return"continue";var i=e[r];return null===i||void 0===i?"continue":Array.isArray(i)?void i.forEach(function(e,i){if(null!==e&&void 0!==e){var a=n[i];t.push(u({breakpoint:a,prop:r,value:e}))}}):(t.push(u({prop:r,value:i})),"continue")};for(var i in e)r(i);var a=l(e);return a.className?a.className=[a.className].concat(t).join(" "):a.className=t.join(" "),a}}},function(e,t,n){var r=n(58),i=n(50);n(171)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(501),e.exports=n(9).Object.keys},function(e,t,n){var r=n(29),i=n(109);e.exports=n(9).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(74),n(61),e.exports=n(503)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=o(n(1)),a=n(3);function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.css;return r.default.createElement("style",{dangerouslySetInnerHTML:{__html:t}})},u=a.theme.fonts.map(function(e){return e.indexOf(" ")>-1?'"'+e+'"':e}).join(", ");s.defaultProps={css:"\n * { box-sizing: border-box; }\n body {\n margin: 0;\n font-family: "+u+";\n line-height: "+a.theme.lineHeight+";\n }\n "},s.propTypes={css:i.default.string},t.default=s},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(48),i=n(49),a=n(506);e.exports=function(){function e(e,t,n,r,o,s){s!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){var r={"./_app.js":102,"./components.js":159,"./demos.js":205,"./index.js":201,"./sandbox.js":200};function i(e){var t=a(e);return n(t)}function a(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=508},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(48),i=n(49),a=n(510);e.exports=function(){function e(e,t,n,r,o,s){s!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(48),i=n(49),a=n(512);e.exports=function(){function e(e,t,n,r,o,s){s!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(514);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";var r=n(515);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;oO.length&&O.push(e)}function F(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case u:case c:a=!0}}if(a)return n(r,e,""===t?"."+j(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var o=0;oc;)for(var h,p=s(arguments[c++]),d=l?r(p).concat(l(p)):r(p),m=d.length,g=0;m>g;)f.call(p,h=d[g++])&&(n[h]=p[h]);return n}:u},function(e,t,n){var r=n(19);r(r.S+r.F,"Object",{assign:n(522)})},function(e,t,n){n(523),e.exports=n(9).Object.assign},function(e,t,n){var r=n(19);r(r.S,"Object",{create:n(115)})},function(e,t,n){n(525);var r=n(9).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){e.exports={default:n(526),__esModule:!0}},function(e,t,n){var r=n(36),i=n(29),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(53)(Function.call,n(168).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var r=n(19);r(r.S,"Object",{setPrototypeOf:n(528).set})},function(e,t,n){n(529),e.exports=n(9).Object.setPrototypeOf},function(e,t,n){e.exports={default:n(530),__esModule:!0}},function(e,t,n){n(106)("observable")},function(e,t,n){n(106)("asyncIterator")},function(e,t,n){var r=n(40),i=n(169).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(59);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(50),i=n(105),a=n(57);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),u=a.f,c=0;s.length>c;)u.call(e,o=s[c++])&&t.push(o);return t}},function(e,t,n){var r=n(76)("meta"),i=n(36),a=n(41),o=n(32).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(52)(function(){return u(Object.preventExtensions({}))}),l=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!a(e,r)&&l(e),e}}},function(e,t,n){"use strict";var r=n(16),i=n(41),a=n(35),o=n(19),s=n(185),u=n(537).KEY,c=n(52),l=n(112),f=n(75),h=n(76),p=n(15),d=n(107),m=n(106),g=n(536),y=n(535),v=n(29),b=n(36),x=n(40),w=n(116),E=n(60),k=n(115),_=n(534),S=n(168),C=n(32),A=n(50),D=S.f,T=C.f,O=_.f,P=r.Symbol,M=r.JSON,F=M&&M.stringify,j=p("_hidden"),L=p("toPrimitive"),N={}.propertyIsEnumerable,R=l("symbol-registry"),z=l("symbols"),I=l("op-symbols"),B=Object.prototype,H="function"==typeof P,V=r.QObject,U=!V||!V.prototype||!V.prototype.findChild,q=a&&c(function(){return 7!=k(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=D(B,t);r&&delete B[t],T(e,t,n),r&&e!==B&&T(B,t,r)}:T,W=function(e){var t=z[e]=k(P.prototype);return t._k=e,t},G=H&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},X=function(e,t,n){return e===B&&X(I,t,n),v(e),t=w(t,!0),v(n),i(z,t)?(n.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),n=k(n,{enumerable:E(0,!1)})):(i(e,j)||T(e,j,E(1,{})),e[j][t]=!0),q(e,t,n)):T(e,t,n)},J=function(e,t){v(e);for(var n,r=g(t=x(t)),i=0,a=r.length;a>i;)X(e,n=r[i++],t[n]);return e},K=function(e){var t=N.call(this,e=w(e,!0));return!(this===B&&i(z,e)&&!i(I,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,j)&&this[j][e])||t)},Y=function(e,t){if(e=x(e),t=w(t,!0),e!==B||!i(z,t)||i(I,t)){var n=D(e,t);return!n||!i(z,t)||i(e,j)&&e[j][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=O(x(e)),r=[],a=0;n.length>a;)i(z,t=n[a++])||t==j||t==u||r.push(t);return r},Z=function(e){for(var t,n=e===B,r=O(n?I:x(e)),a=[],o=0;r.length>o;)!i(z,t=r[o++])||n&&!i(B,t)||a.push(z[t]);return a};H||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(I,n),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),q(this,e,E(1,n))};return a&&U&&q(B,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),S.f=Y,C.f=X,n(169).f=_.f=$,n(57).f=K,n(105).f=Z,a&&!n(78)&&s(B,"propertyIsEnumerable",K,!0),d.f=function(e){return W(p(e))}),o(o.G+o.W+o.F*!H,{Symbol:P});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)p(Q[ee++]);for(var te=A(p.store),ne=0;te.length>ne;)m(te[ne++]);o(o.S+o.F*!H,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=P(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),o(o.S+o.F*!H,"Object",{create:function(e,t){return void 0===t?k(e):J(k(e),t)},defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:Y,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),M&&o(o.S+o.F*(!H||c(function(){var e=P();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!G(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,F.apply(M,r)}}),P.prototype[L]||n(42)(P.prototype,L,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){n(538),n(188),n(533),n(532),e.exports=n(9).Symbol},function(e,t,n){e.exports={default:n(539),__esModule:!0}},function(e,t,n){n(61),n(74),e.exports=n(107).f("iterator")},function(e,t,n){e.exports={default:n(541),__esModule:!0}},function(e,t,n){var r=n(19);r(r.S+r.F*!n(35),"Object",{defineProperty:n(32).f})},function(e,t,n){n(543);var r=n(9).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(58),i=n(181);n(171)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){n(545),e.exports=n(9).Object.getPrototypeOf},function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",c="object"==typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=t.regeneratorRuntime=c?e.exports:{}).wrap=x;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",m={},g={};g[o]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(P([])));v&&v!==r&&i.call(v,o)&&(g=v);var b=_.prototype=E.prototype=Object.create(g);k.prototype=b.constructor=_,_.constructor=k,_[u]=k.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},S(C.prototype),C.prototype[s]=function(){return this},l.AsyncIterator=C,l.async=function(e,t,n,r){var i=new C(x(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(b),b[u]="Generator",b[o]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function x(e,t,n,r){var i=t&&t.prototype instanceof E?t:E,a=Object.create(i.prototype),o=new O(r||[]);return a._invoke=function(e,t,n){var r=f;return function(i,a){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw a;return M()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=A(o,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?d:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function E(){}function k(){}function _(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(e){var t;this._invoke=function(n,r){function a(){return new Promise(function(t,a){!function t(n,r,a,o){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,a,o)},function(e){t("throw",e,a,o)}):Promise.resolve(c).then(function(e){u.value=e,a(u)},o)}o(s.arg)}(n,r,t,a)})}return t=t?t.then(a,a):a()}}function A(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,A(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0,a=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(547),i)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t,n){"use strict";var r=n(19),i=n(108),a=n(176);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";var r=n(19),i=n(9),a=n(16),o=n(178),s=n(175);r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,i.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(16),i=n(9),a=n(32),o=n(35),s=n(15)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];o&&t&&!t[s]&&a.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(42);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},function(e,t,n){var r=n(16),i=n(177).set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,u="process"==n(59)(o);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=o.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){o.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve();n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,h=document.createTextNode("");new a(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(53),i=n(180),a=n(179),o=n(29),s=n(114),u=n(109),c={},l={};(t=e.exports=function(e,t,n,f,h){var p,d,m,g,y=h?function(){return e}:u(e),v=r(n,f,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(a(y)){for(p=s(e.length);p>b;b++)if((g=t?v(o(d=e[b])[0],d[1]):v(e[b]))===c||g===l)return g}else for(m=y.call(e);!(d=m.next()).done;)if((g=i(m,v,d.value,t))===c||g===l)return g}).BREAK=c,t.RETURN=l},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var r,i,a,o,s=n(78),u=n(16),c=n(53),l=n(110),f=n(19),h=n(36),p=n(77),d=n(556),m=n(555),g=n(178),y=n(177).set,v=n(553)(),b=n(108),x=n(176),w=n(175),E=u.TypeError,k=u.process,_=u.Promise,S="process"==l(k),C=function(){},A=i=b.f,D=!!function(){try{var e=_.resolve(1),t=(e.constructor={})[n(15)("species")]=function(e){e(C,C)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t}catch(e){}}(),T=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},O=function(e,t){if(!e._n){e._n=!0;var n=e._c;v(function(){for(var r=e._v,i=1==e._s,a=0,o=function(t){var n,a,o=i?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{o?(i||(2==e._h&&F(e),e._h=1),!0===o?n=r:(c&&c.enter(),n=o(r),c&&c.exit()),n===t.promise?u(E("Promise-chain cycle")):(a=T(n))?a.call(n,s,u):s(n)):u(r)}catch(e){u(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&P(e)})}},P=function(e){y.call(u,function(){var t,n,r,i=e._v,a=M(e);if(a&&(t=x(function(){S?k.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=S||M(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){y.call(u,function(){var t;S?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},j=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},L=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=T(e))?v(function(){var r={_w:n,_d:!1};try{t.call(e,c(L,r,1),c(j,r,1))}catch(e){j.call(r,e)}}):(n._v=e,n._s=1,O(n,!1))}catch(e){j.call({_w:n,_d:!1},e)}}};D||(_=function(e){d(this,_,"Promise","_h"),p(e),r.call(this);try{e(c(L,this,1),c(j,this,1))}catch(e){j.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(552)(_.prototype,{then:function(e,t){var n=A(g(this,_));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=c(L,e,1),this.reject=c(j,e,1)},b.f=A=function(e){return e===_||e===o?new a(e):i(e)}),f(f.G+f.W+f.F*!D,{Promise:_}),n(75)(_,"Promise"),n(551)("Promise"),o=n(9).Promise,f(f.S+f.F*!D,"Promise",{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!D),"Promise",{resolve:function(e){return w(s&&this===o?_:this,e)}}),f(f.S+f.F*!(D&&n(174)(function(e){_.all(e).catch(C)})),"Promise",{all:function(e){var t=this,n=A(t),r=n.resolve,i=n.reject,a=x(function(){var n=[],a=0,o=1;m(e,!1,function(e){var s=a++,u=!1;n.push(void 0),o++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--o||r(n))},i)}),--o||r(n)});return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=A(t),r=n.reject,i=x(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(559),i=n(558),a=n(51),o=n(40);e.exports=n(187)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(119),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(40),i=n(114),a=n(561);e.exports=function(e){return function(t,n,o){var s,u=r(t),c=i(u.length),l=a(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(32),i=n(29),a=n(50);e.exports=n(35)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){"use strict";var r=n(115),i=n(60),a=n(75),o={};n(42)(o,n(15)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(119),i=n(118);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===c||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){n(188),n(61),n(74),n(557),n(550),n(549),e.exports=n(9).Promise},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getRoutes=void 0;var r=y(n(6)),i=y(n(189)),a=y(n(173)),o=y(n(172)),s=y(n(27)),u=y(n(26)),c=y(n(25)),l=y(n(24)),f=y(n(23)),h=y(n(4)),p=y(n(104)),d=y(n(0)),m=n(167),g=n(43);function y(e){return e&&e.__esModule?e:{default:e}}var v="undefined"!=typeof document,b=n(508),x={input:"/Users/emplums/primer-react/examples",dirname:"/Users/emplums/primer-react/examples",filename:null,stats:{dev:16777220,mode:16877,nlink:10,uid:499,gid:20,rdev:0,blksize:4194304,ino:4161146,size:320,blocks:0,atimeMs:1532061209888.547,mtimeMs:1532057295105.452,ctimeMs:1532057295105.452,birthtimeMs:1529363602400.1438,atime:"2018-07-20T04:33:29.889Z",mtime:"2018-07-20T03:28:15.105Z",ctime:"2018-07-20T03:28:15.105Z",birthtime:"2018-06-18T23:13:22.400Z"},outDir:"/Users/emplums/primer-react/docs",basename:"/primer-react",scope:{},pkg:{name:"primer-react",version:"0.0.11-beta",description:"Primer react components",main:"dist/index.umd.js",module:"dist/index.esm.js",scripts:{prebuild:"rm -rf dist",build:"NODE_ENV=production rollup -c","build:docs":"x0 build examples --out-dir docs",lint:"eslint src examples",prepublishOnly:"npm run build",start:"x0 dev examples -op 8888",test:"jest",watch:"jest --watch --no-coverage"},files:["dist","src","examples"],repository:{type:"git",url:"git+https://github.com/primer/primer-react.git"},keywords:["react","components","library","design-system"],author:{name:"GitHub, Inc."},license:"MIT",x0:{cssLibrary:"styled-components",basename:"/primer-react",template:"./html.js"},jest:{collectCoverage:!0,collectCoverageFrom:["src/**/*.js"],coveragePathIgnorePatterns:["/node_modules/","/src/utils/testing.js"]},dependencies:{"@githubprimer/octicons-react":"8.0.0",classnames:"^2.2.5","d3-shape":"^1.2.0",react:"^16.2.0","system-classnames":"^1.0.0-3"},devDependencies:{"@compositor/kit":"^1.0.43","@compositor/x0":"^5.0.8","babel-plugin-external-helpers":"6.22.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babel-preset-stage-0":"6.24.1",enzyme:"3.3.0","enzyme-adapter-react-16":"1.1.1",eslint:"4.19.1","eslint-plugin-github":"1.0.0","eslint-plugin-jest":"21.15.1","eslint-plugin-jsx-a11y":"6.0.3","eslint-plugin-react":"7.8.2",jest:"^22.4.3","react-router-dom":"^4.3.1","react-test-renderer":"^16.3.2",rollup:"0.62.0","rollup-plugin-babel":"3.0.5","rollup-plugin-commonjs":"9.1.3","styled-components":"3.3.3","styled-system":"^2.0.2"},bugs:{url:"https://github.com/primer/primer-react/issues"},readme:"ERROR: No README data found!",homepage:"https://github.com/primer/primer-react#readme",_id:"primer-react@0.0.11-beta"},cssLibrary:"styled-components",open:!1,o:!1,static:!1,debug:!1,d:"docs",app:"/Users/emplums/primer-react/examples/_app.js"},w=x.filename,E=x.basename,k=void 0===E?"":E,_=x.disableScroll,S=w?p.default.basename(w,p.default.extname(w)):"index",C=function(e){return e.keys().map(function(t){return{key:t,name:p.default.basename(t,p.default.extname(t)),module:e(t),Component:e(t).default||e(t)}}).filter(function(e){return!/^(\.|_)/.test(e.name)}).filter(function(e){return"function"==typeof e.Component})}(b),A=function(e){function t(){var e,n,r,i;(0,u.default)(this,t);for(var a=arguments.length,o=Array(a),c=0;c0&&void 0!==arguments[0]?arguments[0]:C;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.map(function(){var e=(0,o.default)(a.default.mark(function e(t){t.key;var n,r,i,o=t.name,s=t.module,u=t.Component;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=o===S)?"/":"/"+o,!u.getInitialProps){e.next=8;break}return e.next=5,u.getInitialProps({path:r});case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0={};case 9:return i=e.t0,r=i.path||r,e.abrupt("return",{key:o,name:o,path:r,exact:n,module:s,Component:u,props:i});case 12:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}());case 2:return t=e.sent,e.abrupt("return",i.default.all(t));case 4:case"end":return e.stop()}},e,void 0)}));return function(){return e.apply(this,arguments)}}(),M=function(e){function t(){var e,n,r,i;(0,u.default)(this,t);for(var a=arguments.length,o=Array(a),c=0;cO.length&&O.push(e)}function F(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case u:case c:a=!0}}if(a)return n(r,e,""===t?"."+j(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var o=0;oc;)for(var h,p=s(arguments[c++]),d=l?r(p).concat(l(p)):r(p),m=d.length,g=0;m>g;)f.call(p,h=d[g++])&&(n[h]=p[h]);return n}:u},function(e,t,n){var r=n(19);r(r.S+r.F,"Object",{assign:n(522)})},function(e,t,n){n(523),e.exports=n(9).Object.assign},function(e,t,n){var r=n(19);r(r.S,"Object",{create:n(115)})},function(e,t,n){n(525);var r=n(9).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){e.exports={default:n(526),__esModule:!0}},function(e,t,n){var r=n(36),i=n(29),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(53)(Function.call,n(168).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var r=n(19);r(r.S,"Object",{setPrototypeOf:n(528).set})},function(e,t,n){n(529),e.exports=n(9).Object.setPrototypeOf},function(e,t,n){e.exports={default:n(530),__esModule:!0}},function(e,t,n){n(106)("observable")},function(e,t,n){n(106)("asyncIterator")},function(e,t,n){var r=n(40),i=n(169).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(59);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(50),i=n(105),a=n(57);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),u=a.f,c=0;s.length>c;)u.call(e,o=s[c++])&&t.push(o);return t}},function(e,t,n){var r=n(76)("meta"),i=n(36),a=n(41),o=n(32).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(52)(function(){return u(Object.preventExtensions({}))}),l=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!a(e,r)&&l(e),e}}},function(e,t,n){"use strict";var r=n(16),i=n(41),a=n(35),o=n(19),s=n(185),u=n(537).KEY,c=n(52),l=n(112),f=n(75),h=n(76),p=n(15),d=n(107),m=n(106),g=n(536),y=n(535),v=n(29),b=n(36),x=n(40),w=n(116),E=n(60),k=n(115),_=n(534),S=n(168),C=n(32),A=n(50),D=S.f,T=C.f,O=_.f,P=r.Symbol,M=r.JSON,F=M&&M.stringify,j=p("_hidden"),L=p("toPrimitive"),N={}.propertyIsEnumerable,R=l("symbol-registry"),z=l("symbols"),I=l("op-symbols"),B=Object.prototype,H="function"==typeof P,V=r.QObject,U=!V||!V.prototype||!V.prototype.findChild,q=a&&c(function(){return 7!=k(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=D(B,t);r&&delete B[t],T(e,t,n),r&&e!==B&&T(B,t,r)}:T,W=function(e){var t=z[e]=k(P.prototype);return t._k=e,t},G=H&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},X=function(e,t,n){return e===B&&X(I,t,n),v(e),t=w(t,!0),v(n),i(z,t)?(n.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),n=k(n,{enumerable:E(0,!1)})):(i(e,j)||T(e,j,E(1,{})),e[j][t]=!0),q(e,t,n)):T(e,t,n)},J=function(e,t){v(e);for(var n,r=g(t=x(t)),i=0,a=r.length;a>i;)X(e,n=r[i++],t[n]);return e},K=function(e){var t=N.call(this,e=w(e,!0));return!(this===B&&i(z,e)&&!i(I,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,j)&&this[j][e])||t)},Y=function(e,t){if(e=x(e),t=w(t,!0),e!==B||!i(z,t)||i(I,t)){var n=D(e,t);return!n||!i(z,t)||i(e,j)&&e[j][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=O(x(e)),r=[],a=0;n.length>a;)i(z,t=n[a++])||t==j||t==u||r.push(t);return r},Z=function(e){for(var t,n=e===B,r=O(n?I:x(e)),a=[],o=0;r.length>o;)!i(z,t=r[o++])||n&&!i(B,t)||a.push(z[t]);return a};H||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(I,n),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),q(this,e,E(1,n))};return a&&U&&q(B,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),S.f=Y,C.f=X,n(169).f=_.f=$,n(57).f=K,n(105).f=Z,a&&!n(78)&&s(B,"propertyIsEnumerable",K,!0),d.f=function(e){return W(p(e))}),o(o.G+o.W+o.F*!H,{Symbol:P});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)p(Q[ee++]);for(var te=A(p.store),ne=0;te.length>ne;)m(te[ne++]);o(o.S+o.F*!H,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=P(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),o(o.S+o.F*!H,"Object",{create:function(e,t){return void 0===t?k(e):J(k(e),t)},defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:Y,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),M&&o(o.S+o.F*(!H||c(function(){var e=P();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!G(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,F.apply(M,r)}}),P.prototype[L]||n(42)(P.prototype,L,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){n(538),n(188),n(533),n(532),e.exports=n(9).Symbol},function(e,t,n){e.exports={default:n(539),__esModule:!0}},function(e,t,n){n(61),n(74),e.exports=n(107).f("iterator")},function(e,t,n){e.exports={default:n(541),__esModule:!0}},function(e,t,n){var r=n(19);r(r.S+r.F*!n(35),"Object",{defineProperty:n(32).f})},function(e,t,n){n(543);var r=n(9).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(58),i=n(181);n(171)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){n(545),e.exports=n(9).Object.getPrototypeOf},function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",c="object"==typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=t.regeneratorRuntime=c?e.exports:{}).wrap=x;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",m={},g={};g[o]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(P([])));v&&v!==r&&i.call(v,o)&&(g=v);var b=_.prototype=E.prototype=Object.create(g);k.prototype=b.constructor=_,_.constructor=k,_[u]=k.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},S(C.prototype),C.prototype[s]=function(){return this},l.AsyncIterator=C,l.async=function(e,t,n,r){var i=new C(x(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(b),b[u]="Generator",b[o]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function x(e,t,n,r){var i=t&&t.prototype instanceof E?t:E,a=Object.create(i.prototype),o=new O(r||[]);return a._invoke=function(e,t,n){var r=f;return function(i,a){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw a;return M()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=A(o,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=w(e,t,n);if("normal"===u.type){if(r=n.done?d:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function E(){}function k(){}function _(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(e){var t;this._invoke=function(n,r){function a(){return new Promise(function(t,a){!function t(n,r,a,o){var s=w(e[n],e,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,a,o)},function(e){t("throw",e,a,o)}):Promise.resolve(c).then(function(e){u.value=e,a(u)},o)}o(s.arg)}(n,r,t,a)})}return t=t?t.then(a,a):a()}}function A(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,A(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0,a=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(547),i)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t,n){"use strict";var r=n(19),i=n(108),a=n(176);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";var r=n(19),i=n(9),a=n(16),o=n(178),s=n(175);r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,i.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(16),i=n(9),a=n(32),o=n(35),s=n(15)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];o&&t&&!t[s]&&a.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(42);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},function(e,t,n){var r=n(16),i=n(177).set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,u="process"==n(59)(o);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=o.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){o.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve();n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,h=document.createTextNode("");new a(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(53),i=n(180),a=n(179),o=n(29),s=n(114),u=n(109),c={},l={};(t=e.exports=function(e,t,n,f,h){var p,d,m,g,y=h?function(){return e}:u(e),v=r(n,f,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(a(y)){for(p=s(e.length);p>b;b++)if((g=t?v(o(d=e[b])[0],d[1]):v(e[b]))===c||g===l)return g}else for(m=y.call(e);!(d=m.next()).done;)if((g=i(m,v,d.value,t))===c||g===l)return g}).BREAK=c,t.RETURN=l},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var r,i,a,o,s=n(78),u=n(16),c=n(53),l=n(110),f=n(19),h=n(36),p=n(77),d=n(556),m=n(555),g=n(178),y=n(177).set,v=n(553)(),b=n(108),x=n(176),w=n(175),E=u.TypeError,k=u.process,_=u.Promise,S="process"==l(k),C=function(){},A=i=b.f,D=!!function(){try{var e=_.resolve(1),t=(e.constructor={})[n(15)("species")]=function(e){e(C,C)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t}catch(e){}}(),T=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},O=function(e,t){if(!e._n){e._n=!0;var n=e._c;v(function(){for(var r=e._v,i=1==e._s,a=0,o=function(t){var n,a,o=i?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{o?(i||(2==e._h&&F(e),e._h=1),!0===o?n=r:(c&&c.enter(),n=o(r),c&&c.exit()),n===t.promise?u(E("Promise-chain cycle")):(a=T(n))?a.call(n,s,u):s(n)):u(r)}catch(e){u(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&P(e)})}},P=function(e){y.call(u,function(){var t,n,r,i=e._v,a=M(e);if(a&&(t=x(function(){S?k.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=S||M(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){y.call(u,function(){var t;S?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},j=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},L=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=T(e))?v(function(){var r={_w:n,_d:!1};try{t.call(e,c(L,r,1),c(j,r,1))}catch(e){j.call(r,e)}}):(n._v=e,n._s=1,O(n,!1))}catch(e){j.call({_w:n,_d:!1},e)}}};D||(_=function(e){d(this,_,"Promise","_h"),p(e),r.call(this);try{e(c(L,this,1),c(j,this,1))}catch(e){j.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(552)(_.prototype,{then:function(e,t){var n=A(g(this,_));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=c(L,e,1),this.reject=c(j,e,1)},b.f=A=function(e){return e===_||e===o?new a(e):i(e)}),f(f.G+f.W+f.F*!D,{Promise:_}),n(75)(_,"Promise"),n(551)("Promise"),o=n(9).Promise,f(f.S+f.F*!D,"Promise",{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!D),"Promise",{resolve:function(e){return w(s&&this===o?_:this,e)}}),f(f.S+f.F*!(D&&n(174)(function(e){_.all(e).catch(C)})),"Promise",{all:function(e){var t=this,n=A(t),r=n.resolve,i=n.reject,a=x(function(){var n=[],a=0,o=1;m(e,!1,function(e){var s=a++,u=!1;n.push(void 0),o++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--o||r(n))},i)}),--o||r(n)});return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=A(t),r=n.reject,i=x(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(559),i=n(558),a=n(51),o=n(40);e.exports=n(187)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(119),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(40),i=n(114),a=n(561);e.exports=function(e){return function(t,n,o){var s,u=r(t),c=i(u.length),l=a(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(32),i=n(29),a=n(50);e.exports=n(35)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){"use strict";var r=n(115),i=n(60),a=n(75),o={};n(42)(o,n(15)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(119),i=n(118);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===c||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){n(188),n(61),n(74),n(557),n(550),n(549),e.exports=n(9).Promise},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getRoutes=void 0;var r=y(n(6)),i=y(n(189)),a=y(n(173)),o=y(n(172)),s=y(n(27)),u=y(n(26)),c=y(n(25)),l=y(n(24)),f=y(n(23)),h=y(n(4)),p=y(n(104)),d=y(n(0)),m=n(167),g=n(43);function y(e){return e&&e.__esModule?e:{default:e}}var v="undefined"!=typeof document,b=n(508),x={input:"/Users/emplums/primer-react/examples",dirname:"/Users/emplums/primer-react/examples",filename:null,stats:{dev:16777220,mode:16877,nlink:10,uid:499,gid:20,rdev:0,blksize:4194304,ino:4161146,size:320,blocks:0,atimeMs:1532098071503.5237,mtimeMs:1532097272337.638,ctimeMs:1532097272337.638,birthtimeMs:1529363602400.1438,atime:"2018-07-20T14:47:51.504Z",mtime:"2018-07-20T14:34:32.338Z",ctime:"2018-07-20T14:34:32.338Z",birthtime:"2018-06-18T23:13:22.400Z"},outDir:"/Users/emplums/primer-react/docs",basename:"/primer-react",scope:{},pkg:{name:"primer-react",version:"0.0.11-beta",description:"Primer react components",main:"dist/index.umd.js",module:"dist/index.esm.js",scripts:{prebuild:"rm -rf dist",build:"NODE_ENV=production rollup -c","build:docs":"x0 build examples --out-dir docs",lint:"eslint src examples",prepublishOnly:"npm run build",start:"x0 dev examples -op 8888",test:"jest",watch:"jest --watch --no-coverage"},files:["dist","src","examples"],repository:{type:"git",url:"git+https://github.com/primer/primer-react.git"},keywords:["react","components","library","design-system"],author:{name:"GitHub, Inc."},license:"MIT",x0:{cssLibrary:"styled-components",basename:"/primer-react",template:"./html.js"},jest:{collectCoverage:!0,collectCoverageFrom:["src/**/*.js"],coveragePathIgnorePatterns:["/node_modules/","/src/utils/testing.js"]},dependencies:{"@githubprimer/octicons-react":"8.0.0",classnames:"^2.2.5","d3-shape":"^1.2.0",react:"^16.2.0","system-classnames":"^1.0.0-3"},devDependencies:{"@compositor/kit":"^1.0.43","@compositor/x0":"^5.0.8","babel-plugin-external-helpers":"6.22.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babel-preset-stage-0":"6.24.1",enzyme:"3.3.0","enzyme-adapter-react-16":"1.1.1",eslint:"4.19.1","eslint-plugin-github":"1.0.0","eslint-plugin-jest":"21.15.1","eslint-plugin-jsx-a11y":"6.0.3","eslint-plugin-react":"7.8.2",jest:"^22.4.3","react-router-dom":"^4.3.1","react-test-renderer":"^16.3.2",rollup:"0.62.0","rollup-plugin-babel":"3.0.5","rollup-plugin-commonjs":"9.1.3","styled-components":"3.3.3","styled-system":"^2.0.2"},bugs:{url:"https://github.com/primer/primer-react/issues"},readme:"ERROR: No README data found!",homepage:"https://github.com/primer/primer-react#readme",_id:"primer-react@0.0.11-beta"},cssLibrary:"styled-components",open:!1,o:!1,static:!1,debug:!1,d:"docs",app:"/Users/emplums/primer-react/examples/_app.js"},w=x.filename,E=x.basename,k=void 0===E?"":E,_=x.disableScroll,S=w?p.default.basename(w,p.default.extname(w)):"index",C=function(e){return e.keys().map(function(t){return{key:t,name:p.default.basename(t,p.default.extname(t)),module:e(t),Component:e(t).default||e(t)}}).filter(function(e){return!/^(\.|_)/.test(e.name)}).filter(function(e){return"function"==typeof e.Component})}(b),A=function(e){function t(){var e,n,r,i;(0,u.default)(this,t);for(var a=arguments.length,o=Array(a),c=0;c0&&void 0!==arguments[0]?arguments[0]:C;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.map(function(){var e=(0,o.default)(a.default.mark(function e(t){t.key;var n,r,i,o=t.name,s=t.module,u=t.Component;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=o===S)?"/":"/"+o,!u.getInitialProps){e.next=8;break}return e.next=5,u.getInitialProps({path:r});case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0={};case 9:return i=e.t0,r=i.path||r,e.abrupt("return",{key:o,name:o,path:r,exact:n,module:s,Component:u,props:i});case 12:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}());case 2:return t=e.sent,e.abrupt("return",i.default.all(t));case 4:case"end":return e.stop()}},e,void 0)}));return function(){return e.apply(this,arguments)}}(),M=function(e){function t(){var e,n,r,i;(0,u.default)(this,t);for(var a=arguments.length,o=Array(a),c=0;c<CircleBadge bg="blue" size="large"><img src="https://avatars0.githubusercontent.com/t/1929972?s=280&v=4"/></CircleBadge>

With Octicon as child

<CircleBadge size="medium">
   <Octicon icon={Zap}/>
 </CircleBadge>

With <img> as a child & bg prop

<CircleBadge bg="blue" size="small"><img src="https://avatars0.githubusercontent.com/t/1929972?s=280&v=4"/></CircleBadge>
-

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
Tooltip align=right

Word wrap

Word wrapping tooltip

No Delay

Text with a tooltip

Using <a> tags

Using <NavLink> from react-router

\ No newline at end of file +

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
Tooltip align=right

Word wrap

Word wrapping tooltip

No Delay

Text with a tooltip

Using <a> tags

Using <NavLink> from react-router

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index adb12a76e81..f1adc2a9612 100644 --- a/docs/index.html +++ b/docs/index.html @@ -14,4 +14,4 @@ <CircleBadge bg="blue" size="large"><img src="https://avatars0.githubusercontent.com/t/1929972?s=280&v=4"/></CircleBadge>

With Octicon as child

<CircleBadge size="medium">
   <Octicon icon={Zap}/>
 </CircleBadge>

With <img> as a child & bg prop

<CircleBadge bg="blue" size="small"><img src="https://avatars0.githubusercontent.com/t/1929972?s=280&v=4"/></CircleBadge>
-

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
Tooltip align=right

Word wrap

Word wrapping tooltip

No Delay

Text with a tooltip

Using <a> tags

Using <NavLink> from react-router

\ No newline at end of file +

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
Tooltip align=right

Word wrap

Word wrapping tooltip

No Delay

Text with a tooltip

Using <a> tags

Using <NavLink> from react-router

\ No newline at end of file diff --git a/examples/component-examples/Flex.js b/examples/component-examples/Flex.js index f516e78d4fd..1fae9a7525d 100644 --- a/examples/component-examples/Flex.js +++ b/examples/component-examples/Flex.js @@ -18,6 +18,7 @@ const FlexExample = { FlexContainer { - const classes = classnames( - { - 'd-flex': !inline, - 'd-inline-flex': inline - }, - wrap && `flex-${wrap}`, - direction && `flex-${direction}`, - justifyContent && `flex-justify-${justifyContent}`, - alignItems && `flex-items-${alignItems}`, - alignContent && `flex-content-${alignContent}` - ) +const FlexContainer = props => { + const {className, children, ...rest} = mapAllProps(props) return ( - + {children} ) } FlexContainer.propTypes = { - alignContent: PropTypes.oneOf(['start', 'end', 'center', 'between', 'around', 'stretch']), - alignItems: PropTypes.oneOf(['start', 'end', 'center', 'baseline', 'stretch']), + alignContent: oneOrMoreOf(PropTypes.oneOf(['start', 'end', 'center', 'between', 'around', 'stretch'])), + alignItems: oneOrMoreOf(PropTypes.oneOf(['start', 'end', 'center', 'baseline', 'stretch'])), children: PropTypes.node, - direction: PropTypes.oneOf(['row', 'row-reverse', 'column']), + direction: oneOrMoreOf(PropTypes.oneOf(['row', 'row-reverse', 'column'])), + display: oneOrMoreOf(PropTypes.oneOf(['flex', 'inline-flex'])), inline: PropTypes.bool, - justifyContent: PropTypes.oneOf(['start', 'end', 'center', 'between', 'around']), - wrap: PropTypes.oneOf(['wrap', 'nowrap']) + justifyContent: oneOrMoreOf(PropTypes.oneOf(['start', 'end', 'center', 'between', 'around'])), + wrap: oneOrMoreOf(PropTypes.oneOf(['wrap', 'nowrap'])) +} + +FlexContainer.defaultProps = { + display: 'flex' } export default FlexContainer diff --git a/src/__tests__/FlexContainer.js b/src/__tests__/FlexContainer.js index d7bdd585e08..29e7160a534 100644 --- a/src/__tests__/FlexContainer.js +++ b/src/__tests__/FlexContainer.js @@ -2,28 +2,30 @@ import React from 'react' import FlexContainer from '../FlexContainer' import {renderClasses} from '../utils/testing' -describe('FlexContainer', () => { - it('FlexContainer renders wrap classes', () => { - expect(renderClasses()).toEqual(['d-flex', 'flex-nowrap']) - }) +it('FlexContainer renders wrap classes', () => { + expect(renderClasses()).toEqual(['flex-nowrap', 'd-flex']) +}) - it('FlexContainer renders direction classes', () => { - expect(renderClasses()).toEqual(['d-flex', 'flex-row']) - }) +it('FlexContainer renders direction classes', () => { + expect(renderClasses()).toEqual(['flex-row', 'd-flex']) +}) - it('FlexContainer renders justifyContent classes', () => { - expect(renderClasses()).toEqual(['d-flex', 'flex-justify-start']) - }) +it('FlexContainer renders justifyContent classes', () => { + expect(renderClasses()).toEqual(['flex-justify-start', 'd-flex']) +}) - it('FlexContainer renders alignItems classes', () => { - expect(renderClasses()).toEqual(['d-flex', 'flex-items-start']) - }) +it('FlexContainer renders alignItems classes', () => { + expect(renderClasses()).toEqual(['flex-items-start', 'd-flex']) +}) - it('FlexContainer renders alignContent classes', () => { - expect(renderClasses()).toEqual(['d-flex', 'flex-content-start']) - }) +it('FlexContainer renders alignContent classes', () => { + expect(renderClasses()).toEqual(['flex-content-start', 'd-flex']) +}) + +it('FlexContainer renders display classes', () => { + expect(renderClasses()).toEqual(['d-inline-flex']) +}) - it('FlexContainer renders inline classes', () => { - expect(renderClasses()).toEqual(['d-inline-flex']) - }) +it('FlexContainer renders responsive display classes', () => { + expect(renderClasses()).toEqual(['d-flex', 'd-sm-inline-flex']) }) diff --git a/src/props.js b/src/props.js index b4397387666..7fa10d9b171 100644 --- a/src/props.js +++ b/src/props.js @@ -7,11 +7,32 @@ export const oneOrMoreOf = type => PropTypes.oneOfType([type, PropTypes.arrayOf( export const oneOrMoreNumbers = oneOrMoreOf(PropTypes.number) -export const createMapperWithPropTypes = props => { +const flexPropNames = { + justifyContent: 'justify', + alignItems: 'items', + alignContent: 'content' +} + +const classPattern = (breakpoint, prop, value, type) => { + let result = '' + switch (type) { + case 'flex': + result = ['flex', breakpoint, flexPropNames[prop], value].join('-') + break + case 'display': + result = ['d', breakpoint, value].join('-') + break + default: + result = [prop, breakpoint, value].join('-') + } + return result.replace(/\-\-+/g, '-') //eslint-disable-line +} + +export const createMapperWithPropTypes = (props, type) => { const mapper = createMapper({ breakpoints, props, - getter: ({breakpoint, prop, value}) => (breakpoint ? [prop, breakpoint, value].join('-') : [prop, value].join('-')) + getter: ({breakpoint, prop, value}) => classPattern(breakpoint, prop, value, type) }) mapper.propTypes = props.reduce((propTypes, prop) => { propTypes[prop] = oneOrMoreNumbers @@ -22,8 +43,14 @@ export const createMapperWithPropTypes = props => { export const marginProps = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my'] export const paddingProps = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py'] +export const flexProps = ['wrap', 'direction', 'justifyContent', 'alignItems', 'alignContent'] export const mapWhitespaceProps = createMapperWithPropTypes(marginProps.concat(paddingProps)) +export const mapFlexProps = createMapperWithPropTypes(flexProps, 'flex') +export const mapDisplayProps = createMapperWithPropTypes(['display'], 'display') +export const mapAllProps = props => { + return mapWhitespaceProps(mapDisplayProps(mapFlexProps(props))) +} export function stylizer(propsToPass) { return props => {