diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 2bcb7bd..0000000 --- a/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM node:14.15.4-buster-slim -MAINTAINER mac - -# install the node modules at container build time -RUN mkdir -p /react -ADD package.json /react/package.json -RUN cd /react && npm install --save-dev --silent - -# Now add our project code -ADD . /react -WORKDIR /react - -EXPOSE 2000 -ENTRYPOINT ["/react/entrypoints/build.sh"] - diff --git a/README.md b/README.md index fbd3a69..6c37876 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,46 @@ You can specify a `theme` name or object when you instantiate your rjv component ``` -Check out the list of supported themes [in the component demo](https://react-json-view.microlink.io/). +The following themes are builtin with the library: + +- `'apathy'` +- `'ashes'` +- `'atelierDune'` +- `'atelierForest'` +- `'atelierHeath'` +- `'atelierLakeside'` +- `'atelierSeaside'` +- `'bespin'` +- `'brewer'` +- `'bright'` +- `'chalk'` +- `'codeschool'` +- `'colors'` +- `'eighties'` +- `'embers'` +- `'flat'` +- `'google'` +- `'grayscale'` +- `'greenscreen'` +- `'harmonic'` +- `'hopscotch'` +- `'isotope'` +- `'marrakesh'` +- `'mocha'` +- `'monokai'` +- `'ocean'` +- `'paraiso'` +- `'pop'` +- `'railscasts'` +- `'shapeshifter'` +- `'solarized'` +- `'summerfruit'` +- `'threezerotwofour'` +- `'tomorrow'` +- `'tube'` +- `'twilight'` + +Check [react-json-view.microlink.io](https://react-json-view.microlink.io/) to see how they look like. #### Custom theme diff --git a/demo/dist/main.js b/demo/dist/main.js index 5385a8c..9de663e 100644 --- a/demo/dist/main.js +++ b/demo/dist/main.js @@ -1,12 +1,12 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.reactJsonView=t(require("React"),require("ReactDOM")):e.reactJsonView=t(e.React,e.ReactDOM)}(window,(function(e,t){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},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="",n(n.s=55)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(56)()},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var a=n(31)("wks"),r=n(21),o=n(4).Symbol,i="function"==typeof o;(e.exports=function(e){return a[e]||(a[e]=i&&o[e]||(i?o:r)("Symbol."+e))}).store=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var r=(i=a,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([r]).join("\n")}var i,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,a){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(a)for(var o=0;o(()=>{var n={9735:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},294:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},1733:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},8974:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},6933:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},523:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},1223:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},1233:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},2847:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},8120:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},6305:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},525:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},4124:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},7167:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},4582:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},7096:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},9887:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},7199:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},1985:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},8093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},1615:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},9063:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},9446:(e,t,n)=>{"use strict";function a(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var r=n(1308);t.threezerotwofour=a(r);var o=n(9735);t.apathy=a(o);var i=n(294);t.ashes=a(i);var s=n(1733);t.atelierDune=a(s);var l=n(8974);t.atelierForest=a(l);var u=n(6933);t.atelierHeath=a(u);var c=n(523);t.atelierLakeside=a(c);var p=n(1223);t.atelierSeaside=a(p);var d=n(1233);t.bespin=a(d);var h=n(2847);t.brewer=a(h);var b=n(8120);t.bright=a(b);var f=n(6305);t.chalk=a(f);var v=n(525);t.codeschool=a(v);var g=n(4124);t.colors=a(g);var m=n(7167);t.default=a(m);var y=n(4582);t.eighties=a(y);var E=n(7096);t.embers=a(E);var k=n(9887);t.flat=a(k);var S=n(7199);t.google=a(S);var w=n(1985);t.grayscale=a(w);var x=n(8093);t.greenscreen=a(x);var C=n(1615);t.harmonic=a(C);var O=n(9063);t.hopscotch=a(O);var j=n(9033);t.isotope=a(j);var A=n(4112);t.marrakesh=a(A);var M=n(9600);t.mocha=a(M);var F=n(1240);t.monokai=a(F);var D=n(9768);t.ocean=a(D);var _=n(8293);t.paraiso=a(_);var I=n(3093);t.pop=a(I);var P=n(1951);t.railscasts=a(P);var T=n(6368);t.shapeshifter=a(T);var N=n(2317);t.solarized=a(N);var R=n(1091);t.summerfruit=a(R);var B=n(6943);t.tomorrow=a(B);var z=n(5670);t.tube=a(z);var L=n(2536);t.twilight=a(L)},9033:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},4112:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},9600:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},1240:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},9768:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},8293:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},3093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},1951:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},6368:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},2317:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},1091:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},1308:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},6943:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},5670:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},2536:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},6481:(e,t,n)=>{var a=n(4176),r={};for(var o in a)a.hasOwnProperty(o)&&(r[a[o]]=o);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in i)if(i.hasOwnProperty(s)){if(!("channels"in i[s]))throw new Error("missing channels property: "+s);if(!("labels"in i[s]))throw new Error("missing channel labels property: "+s);if(i[s].labels.length!==i[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=i[s].channels,u=i[s].labels;delete i[s].channels,delete i[s].labels,Object.defineProperty(i[s],"channels",{value:l}),Object.defineProperty(i[s],"labels",{value:u})}i.rgb.hsl=function(e){var t,n,a=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.min(a,r,o),s=Math.max(a,r,o),l=s-i;return s===i?t=0:a===s?t=(r-o)/l:r===s?t=2+(o-a)/l:o===s&&(t=4+(a-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s===i?0:n<=.5?l/(s+i):l/(2-s-i)),100*n]},i.rgb.hsv=function(e){var t,n,a,r,o,i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),p=function(e){return(u-e)/6/c+.5};return 0===c?r=o=0:(o=c/u,t=p(i),n=p(s),a=p(l),i===u?r=a-n:s===u?r=1/3+t-a:l===u&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*u]},i.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[i.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,a=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-a,1-r)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var t=r[e];if(t)return t;var n,o,i,s=1/0;for(var l in a)if(a.hasOwnProperty(l)){var u=a[l],c=(o=e,i=u,Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));c.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*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*n+.0722*a),100*(.0193*t+.1192*n+.9505*a)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],a=t[1],r=t[2];return a/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.hsl.rgb=function(e){var t,n,a,r,o,i=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var u=0;u<3;u++)(a=i+1/3*-(u-1))<0&&a++,a>1&&a--,o=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,r[u]=255*o;return r},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,a=e[2]/100,r=n,o=Math.max(a,.01);return n*=(a*=2)<=1?a:2-a,r*=o<=1?o:2-o,[t,100*(0===a?2*r/(o+r):2*n/(a+n)),100*((a+n)/2)]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,a=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),i=255*a*(1-n),s=255*a*(1-n*o),l=255*a*(1-n*(1-o));switch(a*=255,r){case 0:return[a,l,i];case 1:return[s,a,i];case 2:return[i,a,l];case 3:return[i,s,a];case 4:return[l,i,a];case 5:return[a,i,s]}},i.hsv.hsl=function(e){var t,n,a,r=e[0],o=e[1]/100,i=e[2]/100,s=Math.max(i,.01);return a=(2-o)*i,n=o*s,[r,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(a/=2)]},i.hwb.rgb=function(e){var t,n,a,r,o,i,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,p=u+c;switch(p>1&&(u/=p,c/=p),a=6*l-(t=Math.floor(6*l)),1&t&&(a=1-a),r=u+a*((n=1-c)-u),t){default:case 6:case 0:o=n,i=r,s=u;break;case 1:o=r,i=n,s=u;break;case 2:o=u,i=n,s=r;break;case 3:o=u,i=r,s=n;break;case 4:o=r,i=u,s=n;break;case 5:o=n,i=u,s=r}return[255*o,255*i,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},i.xyz.rgb=function(e){var t,n,a,r=e[0]/100,o=e[1]/100,i=e[2]/100;return n=-.9689*r+1.8758*o+.0415*i,a=.0557*r+-.204*o+1.057*i,t=(t=3.2406*r+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],a=e[2];return n/=100,a/=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-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.lab.xyz=function(e){var t,n,a,r=e[0];t=e[1]/500+(n=(r+16)/116),a=n-e[2]/200;var o=Math.pow(n,3),i=Math.pow(t,3),s=Math.pow(a,3);return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,[t*=95.047,n*=100,a*=108.883]},i.lab.lch=function(e){var t,n=e[0],a=e[1],r=e[2];return(t=360*Math.atan2(r,a)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(a*a+r*r),t]},i.lch.lab=function(e){var t,n=e[0],a=e[1];return t=e[2]/360*2*Math.PI,[n,a*Math.cos(t),a*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],r=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===r&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],a=e[2];return t===n&&n===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var a=parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},i.rgb.hcg=function(e){var t,n=e[0]/255,a=e[1]/255,r=e[2]/255,o=Math.max(Math.max(n,a),r),i=Math.min(Math.min(n,a),r),s=o-i;return t=s<=0?0:o===n?(a-r)/s%6:o===a?2+(r-n)/s:4+(n-a)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?i/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=1,r=0;return(a=n<.5?2*t*n:2*t*(1-n))<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=t*n,r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];var r,o=[0,0,0],i=t%1*6,s=i%1,l=1-s;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return r=(1-n)*a,[255*(n*o[0]+r),255*(n*o[1]+r),255*(n*o[2]+r)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,a=n-t,r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},4732:(e,t,n)=>{var a=n(6481),r=n(1157),o={};Object.keys(a).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:a[e].channels}),Object.defineProperty(o[e],"labels",{value:a[e].labels});var t=r(e);Object.keys(t).forEach((function(n){var a=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var a=n.length,r=0;r1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))})),e.exports=o},1157:(e,t,n)=>{var a=n(6481);function r(e){var t=function(){for(var e={},t=Object.keys(a),n=t.length,r=0;r{"use strict";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]}},4877:e=>{"use strict";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]}},6138:(e,t,n)=>{var a=n(4877),r=n(301),o=Object.hasOwnProperty,i=Object.create(null);for(var s in a)o.call(a,s)&&(i[a[s]]=s);var l=e.exports={to:{},get:{}};function u(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,r,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=t[2],t=t[1],n=0;n<3;n++){var s=2*n;i[n]=parseInt(t.slice(s,s+2),16)}r&&(i[3]=parseInt(r,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);r&&(i[3]=parseInt(r+r,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(a,t[1])?((i=a[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=u(i[n],0,255);return i[3]=u(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=r(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=r(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"},l.to.hsl=function(){var e=r(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=r(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},3639:(e,t,n)=>{"use strict";var a=n(6138),r=n(4732),o=[].slice,i=["keyword","gray","hex"],s={};Object.keys(r).forEach((function(e){s[o.call(r[e].labels).sort().join("")]=e}));var l={};function u(e,t){if(!(this instanceof u))return new u(e,t);if(t&&t in i&&(t=null),t&&!(t in r))throw new Error("Unknown model: "+t);var n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var p=a.get(e);if(null===p)throw new Error("Unable to parse color from string: "+e);this.model=p.model,c=r[this.model].channels,this.color=p.value.slice(0,c),this.valpha="number"==typeof p.value[c]?p.value[c]:1}else if(e.length){this.model=t||"rgb",c=r[this.model].channels;var h=o.call(e,0,c);this.color=d(h,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var b=Object.keys(e);"alpha"in e&&(b.splice(b.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var f=b.sort().join("");if(!(f in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[f];var v=r[this.model].labels,g=[];for(n=0;nn?(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":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),a=this.rgb(),r=void 0===t?.5:t,o=2*r-1,i=n.alpha()-a.alpha(),s=((o*i==-1?o:(o+i)/(1+o*i))+1)/2,l=1-s;return u.rgb(s*n.red()+l*a.red(),s*n.green()+l*a.green(),s*n.blue()+l*a.blue(),n.alpha()*r+a.alpha()*(1-r))}},Object.keys(r).forEach((function(e){if(-1===i.indexOf(e)){var t=r[e].channels;u.prototype[e]=function(){if(this.model===e)return new u(this);if(arguments.length)return new u(arguments,e);var n,a="number"==typeof arguments[t]?t:this.valpha;return new u((n=r[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(a),e)},u[e]=function(n){return"number"==typeof n&&(n=d(o.call(arguments),t)),new u(n,e)}}})),e.exports=u},2326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(3535),r=n.n(a)()(!1);r.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Open+Sans);"]),r.push([e.id,'#mac-react-container{font-family:"Open Sans";padding:20px}#mac-react-container .header-1{font-size:28px;margin-right:5px;margin-bottom:3px}#mac-react-container .header-2{font-size:22px;margin-right:5px;margin-bottom:5px;font-style:italic}',""]);const o=r},143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(3535),r=n.n(a)()(!1);r.push([e.id,".rjv-demo .rjv-settings,.rjv-demo .rjv-source{vertical-align:top;display:inline-block;margin-top:5px;margin-right:10px;min-width:300px;max-width:400px}.rjv-demo .rjv-settings .rjv-input,.rjv-demo .rjv-source .rjv-input{margin-bottom:5px}.rjv-demo .rjv-settings .rjv-input .rjv-label,.rjv-demo .rjv-source .rjv-input .rjv-label{padding:.5em;font-size:14px;font-weight:bold}.rjv-demo .rjv-header{position:relative}.rjv-demo .rjv-header .rjv-logo{width:100px;position:absolute;right:0px;top:0px;cursor:pointer}.rjv-demo .rjv-header .github-btn{display:block;position:absolute;right:0px;top:48px}",""]);const o=r},6392:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(3535),r=n.n(a)()(!1);r.push([e.id,'.github-btn{font:bold 11px/14px "Helvetica Neue",Helvetica,Arial,sans-serif;height:20px;overflow:hidden}.gh-btn,.gh-count,.gh-ico{float:left}.gh-btn,.gh-count{padding:2px 5px 2px 4px;color:#333;text-decoration:none;white-space:nowrap;cursor:pointer;border-radius:3px}.gh-btn{background-color:#eee;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fcfcfc), color-stop(100%, #eee));background-image:-webkit-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-moz-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-ms-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-o-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:linear-gradient(to bottom, #fcfcfc 0, #eee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fcfcfc", endColorstr="#eeeeee", GradientType=0);background-repeat:no-repeat;border:1px solid #d5d5d5}.gh-btn:hover,.gh-btn:focus{text-decoration:none;background-color:#ddd;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #eee), color-stop(100%, #ddd));background-image:-webkit-linear-gradient(top, #eee 0, #ddd 100%);background-image:-moz-linear-gradient(top, #eee 0, #ddd 100%);background-image:-ms-linear-gradient(top, #eee 0, #ddd 100%);background-image:-o-linear-gradient(top, #eee 0, #ddd 100%);background-image:linear-gradient(to bottom, #eee 0, #ddd 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#eeeeee", endColorstr="#dddddd", GradientType=0);border-color:#ccc}.gh-btn:active{background-image:none;background-color:#dcdcdc;border-color:#b5b5b5;box-shadow:inset 0 2px 4px rgba(0,0,0,.15)}.gh-ico{width:14px;height:14px;margin-right:4px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=");background-size:100% 100%;background-repeat:no-repeat}.gh-count{position:relative;display:none;margin-left:4px;background-color:#fafafa;border:1px solid #d4d4d4}.gh-count:hover,.gh-count:focus{color:#4183c4}.gh-count:before,.gh-count:after{content:"";position:absolute;display:inline-block;width:0;height:0;border-color:transparent;border-style:solid}.gh-count:before{top:50%;left:-3px;margin-top:-4px;border-width:4px 4px 4px 0;border-right-color:#fafafa}.gh-count:after{top:50%;left:-4px;z-index:-1;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#d4d4d4}.github-btn-large{height:30px}.github-btn-large .gh-btn,.github-btn-large .gh-count{padding:3px 10px 3px 8px;font-size:16px;line-height:22px;border-radius:4px}.github-btn-large .gh-ico{width:20px;height:20px}.github-btn-large .gh-count{margin-left:6px}.github-btn-large .gh-count:before{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0}.github-btn-large .gh-count:after{left:-6px;margin-top:-7px;border-width:7px 7px 7px 0}',""]);const o=r},97:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(3535),r=n.n(a)()(!1);r.push([e.id,".Select{position:relative}.Select input::-webkit-contacts-auto-fill-button,.Select input::-webkit-credentials-auto-fill-button{display:none !important}.Select input::-ms-clear{display:none !important}.Select input::-ms-reveal{display:none !important}.Select,.Select div,.Select input,.Select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.Select.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.Select.is-searchable.is-open>.Select-control{cursor:text}.Select.is-searchable.is-focused:not(.is-open)>.Select-control{cursor:text}.Select.is-focused>.Select-control{background:#fff}.Select.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1);background:#fff}.Select.has-value.is-clearable.Select--single>.Select-control .Select-value{padding-right:42px}.Select.has-value.Select--single>.Select-control .Select-value .Select-value-label,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus{color:#007eff;outline:none;text-decoration:underline}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus{background:#fff}.Select.has-value.is-pseudo-focused .Select-input{opacity:0}.Select.is-open .Select-arrow,.Select .Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select.Select--rtl{direction:rtl;text-align:right}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none;background:#fff}.Select-placeholder,.Select--single>.Select-control .Select-value{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:17px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin 400ms infinite linear;-o-animation:Select-animation-spin 400ms infinite linear;animation:Select-animation-spin 400ms infinite linear;width:16px;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block;position:relative;vertical-align:middle}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn 200ms;-o-animation:Select-animation-fadeIn 200ms;animation:Select-animation-fadeIn 200ms;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--rtl .Select-arrow-zone{padding-right:0;padding-left:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.Select-control>*:last-child{padding-right:5px}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{position:absolute;display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0, 0, 0, 0);overflow:hidden;float:left}@-webkit-keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.Select--rtl .Select-input{margin-left:0;margin-right:10px}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:hover,.Select--multi .Select-value-icon:focus{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.Select--rtl .Select-value{margin-left:0;margin-right:5px}.Select--multi.Select--rtl .Select-value-icon{border-right:none;border-left:1px solid #c2e0ff;border-left:1px solid rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:hover,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:active{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}",""]);const o=r},3535:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var r=(i=a,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([r]).join("\n")}var i,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,a){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(a)for(var o=0;o{"use strict";var t,n="object"==typeof Reflect?Reflect:null,a=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,a){function r(n){e.removeListener(t,o),a(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}f(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,n)}(e,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,a){var r,o,i,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=a?[n,i]:[i,n]:a?i.unshift(n):i.push(n),(r=l(e))>0&&i.length>r&&!i.warned){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=c.bind(a);return r.listener=n,a.wrapFn=r,r}function d(e,t,n){var a=e._events;if(void 0===a)return[];var r=a[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=b(l,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4263:e=>{"use strict";var t=function(e){};e.exports=function(e,n){for(var a=arguments.length,r=new Array(a>2?a-2:0),o=2;o{e.exports.Dispatcher=n(9808)},9808:(e,t,n)=>{"use strict";function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(4263),o=function(){function e(){a(this,"_callbacks",void 0),a(this,"_isDispatching",void 0),a(this,"_isHandled",void 0),a(this,"_isPending",void 0),a(this,"_lastID",void 0),a(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=e.prototype;return t.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},t.unregister=function(e){this._callbacks[e]||r(!1),delete this._callbacks[e]},t.waitFor=function(e){this._isDispatching||r(!1);for(var t=0;t{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},3989:(e,t,n)=>{var a="__lodash_placeholder__",r=32,o=1/0,i=NaN,s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",r],["partialRight",64],["rearg",256]],l="[object Function]",u="[object GeneratorFunction]",c=/^\s+|\s+$/g,p=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,h=/,? & /,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,v=/^\[object .+?Constructor\]$/,g=/^0o[0-7]+$/i,m=/^(?:0|[1-9]\d*)$/,y=parseInt,E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,k="object"==typeof self&&self&&self.Object===Object&&self,S=E||k||Function("return this")();function w(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function x(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,a){var r=e.length,o=n+(a?1:-1);for(;a?o--:++o-1}function C(e){return e!=e}function O(e,t){for(var n=-1,r=e.length,o=0,i=[];++n2?A:void 0);function q(e){if(!te(e)||function(e){return!!I&&I in e}(e))return!1;var t=function(e){var t=te(e)?N.call(e):"";return t==l||t==u}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?R:v;return t.test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function K(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n,a=te(n=e.prototype)?B(n):{},r=e.apply(a,t);return te(r)?r:a}}function W(e,t,n,a,r,o,i,s,l,u){var c=128&t,p=1&t,d=2&t,h=24&t,b=512&t,f=d?void 0:K(e);return function v(){for(var g=arguments.length,m=Array(g),y=g;y--;)m[y]=arguments[y];if(h)var E=Y(v),k=function(e,t){for(var n=e.length,a=0;n--;)e[n]===t&&a++;return a}(m,E);if(a&&(m=function(e,t,n,a){for(var r=-1,o=e.length,i=n.length,s=-1,l=t.length,u=z(o-i,0),c=Array(l+u),p=!a;++s1&&m.reverse(),c&&l1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(p,"{\n/* [wrapped with "+t+"] */\n")}function Q(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||m.test(e))&&e>-1&&e%1==0&&e{"use strict";var a=n(2985);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},2736:(e,t,n)=>{e.exports=n(6186)()},2985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("undefined"!=typeof XDomainRequest)return t(null),null;var n=new XMLHttpRequest;return n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&200===n.status&&t(JSON.parse(n.responseText))},n.open("GET",e,!0),n.send(),n},e.exports=t.default},3442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["className","type","size"]);delete i.namespace,delete i.repo;var l,u,c,d=this.state.count,h=s.classNames((c=t,(u=t)in(l={"github-btn":!0,"github-btn-large":"large"===o})?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,l));return r.default.createElement("span",a({},i,{className:h}),r.default.createElement("a",{className:"gh-btn",href:this.getRepoUrl(),target:"_blank"},r.default.createElement("span",{className:"gh-ico","aria-hidden":"true"}),r.default.createElement("span",{className:"gh-text"},p[n])),r.default.createElement("a",{className:"gh-count",target:"_blank",href:this.getCountUrl(),style:this.getCountStyle()},d))},t}(r.default.Component);h.displayName="GitHubButton",h.propTypes={className:o.default.string,type:o.default.oneOf(["stargazers","watchers","forks"]).isRequired,namespace:o.default.string.isRequired,repo:o.default.string.isRequired,size:o.default.oneOf(["large"])},t.default=h,e.exports=t.default},7027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=function(e){return Object.keys(e).filter((function(t){return e[t]})).join(" ")}},8225:(e,t,n)=>{"use strict";var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",a({},r,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);b.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},b.defaultProps={minWidth:1,injectStyles:!0},t.A=b},301:(e,t,n)=>{"use strict";var a=n(8336),r=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n{var a=n(4710),r=n(2326);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},8896:(e,t,n)=>{var a=n(4710),r=n(143);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},8071:(e,t,n)=>{var a=n(4710),r=n(6392);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},2132:(e,t,n)=>{var a=n(4710),r=n(97);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},4710:(e,t,n)=>{"use strict";var a,r=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n{"use strict";e.exports=t},1845:t=>{"use strict";t.exports=e},7500:(e,t)=>{var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t){var n=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var a=n(15);e.exports=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(31)("keys"),r=n(21);e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t,n){var a=n(2),r=n(4),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var a=n(11).f,r=n(8),o=n(3)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&a(e,o,{configurable:!0,value:t})}},function(e,t,n){n(71);for(var a=n(4),r=n(10),o=n(16),i=n(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;udocument.F=Object<\/script>"),e.close(),u=e.F;a--;)delete u.prototype[o[a]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=a(e),n=new s,s.prototype=null,n[i]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var a=n(8),r=n(13),o=n(66)(!1),i=n(30)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),u=0,l=[];for(n in s)n!=i&&a(s,n)&&l.push(n);for(;t.length>u;)a(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var a=n(29);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t,n){var a=n(44),r=n(32).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,r)}},function(e,t,n){var a=n(29),r=n(3)("toStringTag"),o="Arguments"==a(function(){return arguments}());e.exports=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:o?a(t):"Object"==(i=a(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=/-?\d+(\.\d+)?%?/g;e.exports=function(e){return e.match(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",a({},r,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(o.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase16Theme=t.createStyling=t.invertTheme=void 0;var a=f(n(58)),r=f(n(85)),o=f(n(90)),i=f(n(98)),s=f(n(102)),u=function(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}(n(103)),l=f(n(141)),c=f(n(142)),p=f(n(147)),d=n(148);function f(e){return e&&e.__esModule?e:{default:e}}var h=u.default,b=(0,i.default)(h),v=(0,p.default)(c.default,d.rgb2yuv,(function(e){var t,n=(0,o.default)(e,3),a=n[0],r=n[1],i=n[2];return[(t=a,t<.25?1:t<.5?.9-t:1.1-t),r,i]}),d.yuv2rgb,l.default),m=function(e){return function(t){return{className:[t.className,e.className].filter(Boolean).join(" "),style:(0,r.default)({},t.style||{},e.style||{})}}},g=function(e,t){var n=(0,i.default)(t);for(var o in e)-1===n.indexOf(o)&&n.push(o);return n.reduce((function(n,o){return n[o]=function(e,t){if(void 0===e)return t;if(void 0===t)return e;var n=void 0===e?"undefined":(0,a.default)(e),o=void 0===t?"undefined":(0,a.default)(t);switch(n){case"string":switch(o){case"string":return[t,e].filter(Boolean).join(" ");case"object":return m({className:e,style:t});case"function":return function(n){for(var a=arguments.length,r=Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o2?n-2:0),s=2;s3?t-3:0),a=3;a1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=o.defaultBase16,c=void 0===l?h:l,p=o.base16Themes,d=void 0===p?null:p,f=S(u,d);f&&(u=(0,r.default)({},f,u));var v=b.reduce((function(e,t){return e[t]=u[t]||c[t],e}),{}),m=(0,i.default)(u).reduce((function(e,t){return-1===b.indexOf(t)?(e[t]=u[t],e):e}),{}),E=e(v),x=g(m,E);return(0,s.default)(y,2).apply(void 0,[x].concat(n))}),3),t.getBase16Theme=function(e,t){if(e&&e.extend&&(e=e.extend),"string"==typeof e){var n=e.split(":"),a=(0,o.default)(n,2),r=a[0],i=a[1];e=(t||{})[r]||u[r],"inverted"===i&&(e=E(e))}return e&&e.hasOwnProperty("base00")?e:void 0})},function(e,t,n){"use strict";var a,r="object"==typeof Reflect?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};a=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,a){function r(n){e.removeListener(t,o),a(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function p(e,t,n,a){var r,o,i,s;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=a?[n,i]:[i,n]:a?i.unshift(n):i.push(n),(r=c(e))>0&&i.length>r&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,s=u,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(a);return r.listener=n,a.wrapFn=r,r}function h(e,t,n){var a=e._events;if(void 0===a)return[];var r=a[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var u=r[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var l=u.length,c=v(u,l);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},s.prototype.listenerCount=b,s.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},function(e,t,n){e.exports.Dispatcher=n(149)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["className","type","size"]);delete i.namespace,delete i.repo;var u,l,c,p=this.state.count,f=s.classNames((c=t,(l=t)in(u={"github-btn":!0,"github-btn-large":"large"===o})?Object.defineProperty(u,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[l]=c,u));return r.default.createElement("span",a({},i,{className:f}),r.default.createElement("a",{className:"gh-btn",href:this.getRepoUrl(),target:"_blank"},r.default.createElement("span",{className:"gh-ico","aria-hidden":"true"}),r.default.createElement("span",{className:"gh-text"},d[n])),r.default.createElement("a",{className:"gh-count",target:"_blank",href:this.getCountUrl(),style:this.getCountStyle()},p))},t}(r.default.Component);h.displayName="GitHubButton",h.propTypes={className:o.default.string,type:o.default.oneOf(["stargazers","watchers","forks"]).isRequired,namespace:o.default.string.isRequired,repo:o.default.string.isRequired,size:o.default.oneOf(["large"])},t.default=h,e.exports=t.default},function(e,t,n){e.exports=n(161)},function(e,t,n){"use strict";var a=n(57);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return 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";t.__esModule=!0;var a=i(n(59)),r=i(n(74)),o="function"==typeof r.default&&"symbol"==typeof a.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===o(a.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,n){e.exports={default:n(60),__esModule:!0}},function(e,t,n){n(25),n(34),e.exports=n(35).f("iterator")},function(e,t,n){var a=n(26),r=n(27);e.exports=function(e){return function(t,n){var o,i,s=String(r(t)),u=a(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(i=s.charCodeAt(u+1))<56320||i>57343?e?s.charAt(u):o:e?s.slice(u,u+2):i-56320+(o-55296<<10)+65536}}},function(e,t,n){var a=n(63);e.exports=function(e,t,n){if(a(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,r){return e.call(t,n,a,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var a=n(43),r=n(20),o=n(33),i={};n(10)(i,n(3)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=a(i,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var a=n(11),r=n(14),o=n(17);e.exports=n(7)?Object.defineProperties:function(e,t){r(e);for(var n,i=o(t),s=i.length,u=0;s>u;)a.f(e,n=i[u++],t[n]);return e}},function(e,t,n){var a=n(13),r=n(67),o=n(68);e.exports=function(e){return function(t,n,i){var s,u=a(t),l=r(u.length),c=o(i,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var a=n(26),r=Math.min;e.exports=function(e){return e>0?r(a(e),9007199254740991):0}},function(e,t,n){var a=n(26),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=a(e))<0?r(e+t,0):o(e,t)}},function(e,t,n){var a=n(4).document;e.exports=a&&a.documentElement},function(e,t,n){var a=n(8),r=n(22),o=n(30)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),a(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){"use strict";var a=n(72),r=n(73),o=n(16),i=n(13);e.exports=n(39)(Array,"Array",(function(e,t){this._t=i(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,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,a("keys"),a("values"),a("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(75),__esModule:!0}},function(e,t,n){n(76),n(82),n(83),n(84),e.exports=n(2).Symbol},function(e,t,n){"use strict";var a=n(4),r=n(8),o=n(7),i=n(19),s=n(42),u=n(77).KEY,l=n(12),c=n(31),p=n(33),d=n(21),f=n(3),h=n(35),b=n(36),v=n(78),m=n(79),g=n(14),y=n(15),E=n(22),S=n(13),x=n(28),C=n(20),O=n(43),k=n(80),j=n(81),w=n(37),A=n(11),_=n(17),F=j.f,M=A.f,D=k.f,I=a.Symbol,P=a.JSON,T=P&&P.stringify,N=f("_hidden"),R=f("toPrimitive"),B={}.propertyIsEnumerable,L=c("symbol-registry"),V=c("symbols"),z=c("op-symbols"),q=Object.prototype,K="function"==typeof I&&!!w.f,W=a.QObject,H=!W||!W.prototype||!W.prototype.findChild,U=o&&l((function(){return 7!=O(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(e,t,n){var a=F(q,t);a&&delete q[t],M(e,t,n),a&&e!==q&&M(q,t,a)}:M,Y=function(e){var t=V[e]=O(I.prototype);return t._k=e,t},J=K&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},G=function(e,t,n){return e===q&&G(z,t,n),g(e),t=x(t,!0),g(n),r(V,t)?(n.enumerable?(r(e,N)&&e[N][t]&&(e[N][t]=!1),n=O(n,{enumerable:C(0,!1)})):(r(e,N)||M(e,N,C(1,{})),e[N][t]=!0),U(e,t,n)):M(e,t,n)},Q=function(e,t){g(e);for(var n,a=v(t=S(t)),r=0,o=a.length;o>r;)G(e,n=a[r++],t[n]);return e},Z=function(e){var t=B.call(this,e=x(e,!0));return!(this===q&&r(V,e)&&!r(z,e))&&(!(t||!r(this,e)||!r(V,e)||r(this,N)&&this[N][e])||t)},$=function(e,t){if(e=S(e),t=x(t,!0),e!==q||!r(V,t)||r(z,t)){var n=F(e,t);return!n||!r(V,t)||r(e,N)&&e[N][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=D(S(e)),a=[],o=0;n.length>o;)r(V,t=n[o++])||t==N||t==u||a.push(t);return a},ee=function(e){for(var t,n=e===q,a=D(n?z:S(e)),o=[],i=0;a.length>i;)!r(V,t=a[i++])||n&&!r(q,t)||o.push(V[t]);return o};K||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(z,n),r(this,N)&&r(this[N],e)&&(this[N][e]=!1),U(this,e,C(1,n))};return o&&H&&U(q,e,{configurable:!0,set:t}),Y(e)}).prototype,"toString",(function(){return this._k})),j.f=$,A.f=G,n(46).f=k.f=X,n(23).f=Z,w.f=ee,o&&!n(18)&&s(q,"propertyIsEnumerable",Z,!0),h.f=function(e){return Y(f(e))}),i(i.G+i.W+i.F*!K,{Symbol:I});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var ae=_(f.store),re=0;ae.length>re;)b(ae[re++]);i(i.S+i.F*!K,"Symbol",{for:function(e){return r(L,e+="")?L[e]:L[e]=I(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),i(i.S+i.F*!K,"Object",{create:function(e,t){return void 0===t?O(e):Q(O(e),t)},defineProperty:G,defineProperties:Q,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:ee});var oe=l((function(){w.f(1)}));i(i.S+i.F*oe,"Object",{getOwnPropertySymbols:function(e){return w.f(E(e))}}),P&&i(i.S+i.F*(!K||l((function(){var e=I();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,a=[e],r=1;arguments.length>r;)a.push(arguments[r++]);if(n=t=a[1],(y(t)||void 0!==e)&&!J(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),a[1]=t,T.apply(P,a)}}),I.prototype[R]||n(10)(I.prototype,R,I.prototype.valueOf),p(I,"Symbol"),p(Math,"Math",!0),p(a.JSON,"JSON",!0)},function(e,t,n){var a=n(21)("meta"),r=n(15),o=n(8),i=n(11).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(12)((function(){return u(Object.preventExtensions({}))})),c=function(e){i(e,a,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:a,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,a)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[a].i},getWeak:function(e,t){if(!o(e,a)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[a].w},onFreeze:function(e){return l&&p.NEED&&u(e)&&!o(e,a)&&c(e),e}}},function(e,t,n){var a=n(17),r=n(37),o=n(23);e.exports=function(e){var t=a(e),n=r.f;if(n)for(var i,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,i=s[l++])&&t.push(i);return t}},function(e,t,n){var a=n(29);e.exports=Array.isArray||function(e){return"Array"==a(e)}},function(e,t,n){var a=n(13),r=n(46).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return i.slice()}}(e):r(a(e))}},function(e,t,n){var a=n(23),r=n(20),o=n(13),i=n(28),s=n(8),u=n(40),l=Object.getOwnPropertyDescriptor;t.f=n(7)?l:function(e,t){if(e=o(e),t=i(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return r(!a.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(36)("asyncIterator")},function(e,t,n){n(36)("observable")},function(e,t,n){"use strict";t.__esModule=!0;var a,r=n(86),o=(a=r)&&a.__esModule?a:{default:a};t.default=o.default||function(e){for(var t=1;tc;)for(var f,h=u(arguments[c++]),b=p?r(h).concat(p(h)):r(h),v=b.length,m=0;v>m;)f=b[m++],a&&!d.call(h,f)||(n[f]=h[f]);return n}:l},function(e,t,n){"use strict";t.__esModule=!0;var a=o(n(91)),r=o(n(94));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,a.default)(Object(e)))return function(e,t){var n=[],a=!0,o=!1,i=void 0;try{for(var s,u=(0,r.default)(e);!(a=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);a=!0);}catch(e){o=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){e.exports={default:n(92),__esModule:!0}},function(e,t,n){n(34),n(25),e.exports=n(93)},function(e,t,n){var a=n(47),r=n(3)("iterator"),o=n(16);e.exports=n(2).isIterable=function(e){var t=Object(e);return void 0!==t[r]||"@@iterator"in t||o.hasOwnProperty(a(t))}},function(e,t,n){e.exports={default:n(95),__esModule:!0}},function(e,t,n){n(34),n(25),e.exports=n(96)},function(e,t,n){var a=n(14),r=n(97);e.exports=n(2).getIterator=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return a(t.call(e))}},function(e,t,n){var a=n(47),r=n(3)("iterator"),o=n(16);e.exports=n(2).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||o[a(e)]}},function(e,t,n){e.exports={default:n(99),__esModule:!0}},function(e,t,n){n(100),e.exports=n(2).Object.keys},function(e,t,n){var a=n(22),r=n(17);n(101)("keys",(function(){return function(e){return r(a(e))}}))},function(e,t,n){var a=n(19),r=n(2),o=n(12);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],i={};i[e]=t(n),a(a.S+a.F*o((function(){n(1)})),"Object",i)}},function(e,t,n){(function(t){var n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a=/^\s+|\s+$/g,r=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,o=/\{\n\/\* \[wrapped with (.+)\] \*/,i=/,? & /,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^\[object .+?Constructor\]$/,c=/^0o[0-7]+$/i,p=/^(?:0|[1-9]\d*)$/,d=parseInt,f="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,b=f||h||Function("return this")();function v(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function m(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,a){var r=e.length,o=n+(a?1:-1);for(;a?o--:++o-1}function g(e){return e!=e}function y(e,t){for(var n=e.length,a=0;n--;)e[n]===t&&a++;return a}function E(e,t){for(var n=-1,a=e.length,r=0,o=[];++n2?x:void 0);function N(e){return X(e)?D(e):{}}function R(e){return!(!X(e)||function(e){return!!w&&w in e}(e))&&(function(e){var t=X(e)?F.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?M:l).test(function(e){if(null!=e){try{return A.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function B(e,t,n,a){for(var r=-1,o=e.length,i=n.length,s=-1,u=t.length,l=I(o-i,0),c=Array(u+l),p=!a;++s1&&S.reverse(),c&&u1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(r,"{\n/* [wrapped with "+t+"] */\n")}function J(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e1&&a--,o=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,r[l]=255*o;return r}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,r=n||a||Function("return this")();function o(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t){for(var n=-1,a=t.length,r=e.length;++n-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?l.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}(e)}(e)&&u.call(e,"callee")&&(!p.call(e,"callee")||"[object Arguments]"==l.call(e))}(e)||!!(d&&e&&e[d])}var b=Array.isArray;var v,m,g,y=(m=function(e){var t=(e=function e(t,n,a,r,o){var s=-1,u=t.length;for(a||(a=h),o||(o=[]);++s0&&a(l)?n>1?e(l,n-1,a,r,o):i(o,l):r||(o[o.length]=l)}return o}(e,1)).length,n=t;for(v&&e.reverse();n--;)if("function"!=typeof e[n])throw new TypeError("Expected a function");return function(){for(var n=0,a=t?e[n].apply(this,arguments):arguments[0];++n2?n-2:0),o=2;o.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.Select.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.Select.is-searchable.is-open>.Select-control{cursor:text}.Select.is-searchable.is-focused:not(.is-open)>.Select-control{cursor:text}.Select.is-focused>.Select-control{background:#fff}.Select.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1);background:#fff}.Select.has-value.is-clearable.Select--single>.Select-control .Select-value{padding-right:42px}.Select.has-value.Select--single>.Select-control .Select-value .Select-value-label,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus{color:#007eff;outline:none;text-decoration:underline}.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus{background:#fff}.Select.has-value.is-pseudo-focused .Select-input{opacity:0}.Select.is-open .Select-arrow,.Select .Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select.Select--rtl{direction:rtl;text-align:right}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none;background:#fff}.Select-placeholder,.Select--single>.Select-control .Select-value{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:17px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin 400ms infinite linear;-o-animation:Select-animation-spin 400ms infinite linear;animation:Select-animation-spin 400ms infinite linear;width:16px;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block;position:relative;vertical-align:middle}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn 200ms;-o-animation:Select-animation-fadeIn 200ms;animation:Select-animation-fadeIn 200ms;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--rtl .Select-arrow-zone{padding-right:0;padding-left:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.Select-control>*:last-child{padding-right:5px}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{position:absolute;display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0, 0, 0, 0);overflow:hidden;float:left}@-webkit-keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.Select--rtl .Select-input{margin-left:0;margin-right:10px}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:hover,.Select--multi .Select-value-icon:focus{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.Select--rtl .Select-value{margin-left:0;margin-right:5px}.Select--multi.Select--rtl .Select-value-icon{border-right:none;border-left:1px solid #c2e0ff;border-left:1px solid rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:hover,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:active{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}",""]),t.default=r},function(e,t,n){var a=n(24),r=n(158);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var a=n(5),r=n.n(a)()(!1);r.push([e.i,'.github-btn{font:bold 11px/14px "Helvetica Neue",Helvetica,Arial,sans-serif;height:20px;overflow:hidden}.gh-btn,.gh-count,.gh-ico{float:left}.gh-btn,.gh-count{padding:2px 5px 2px 4px;color:#333;text-decoration:none;white-space:nowrap;cursor:pointer;border-radius:3px}.gh-btn{background-color:#eee;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fcfcfc), color-stop(100%, #eee));background-image:-webkit-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-moz-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-ms-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:-o-linear-gradient(top, #fcfcfc 0, #eee 100%);background-image:linear-gradient(to bottom, #fcfcfc 0, #eee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fcfcfc", endColorstr="#eeeeee", GradientType=0);background-repeat:no-repeat;border:1px solid #d5d5d5}.gh-btn:hover,.gh-btn:focus{text-decoration:none;background-color:#ddd;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #eee), color-stop(100%, #ddd));background-image:-webkit-linear-gradient(top, #eee 0, #ddd 100%);background-image:-moz-linear-gradient(top, #eee 0, #ddd 100%);background-image:-ms-linear-gradient(top, #eee 0, #ddd 100%);background-image:-o-linear-gradient(top, #eee 0, #ddd 100%);background-image:linear-gradient(to bottom, #eee 0, #ddd 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#eeeeee", endColorstr="#dddddd", GradientType=0);border-color:#ccc}.gh-btn:active{background-image:none;background-color:#dcdcdc;border-color:#b5b5b5;box-shadow:inset 0 2px 4px rgba(0,0,0,.15)}.gh-ico{width:14px;height:14px;margin-right:4px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=");background-size:100% 100%;background-repeat:no-repeat}.gh-count{position:relative;display:none;margin-left:4px;background-color:#fafafa;border:1px solid #d4d4d4}.gh-count:hover,.gh-count:focus{color:#4183c4}.gh-count:before,.gh-count:after{content:"";position:absolute;display:inline-block;width:0;height:0;border-color:transparent;border-style:solid}.gh-count:before{top:50%;left:-3px;margin-top:-4px;border-width:4px 4px 4px 0;border-right-color:#fafafa}.gh-count:after{top:50%;left:-4px;z-index:-1;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#d4d4d4}.github-btn-large{height:30px}.github-btn-large .gh-btn,.github-btn-large .gh-count{padding:3px 10px 3px 8px;font-size:16px;line-height:22px;border-radius:4px}.github-btn-large .gh-ico{width:20px;height:20px}.github-btn-large .gh-count{margin-left:6px}.github-btn-large .gh-count:before{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0}.github-btn-large .gh-count:after{left:-6px;margin-top:-7px;border-width:7px 7px 7px 0}',""]),t.default=r},function(e,t,n){var a=n(24),r=n(160);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};a(r,o);e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var a=n(5),r=n.n(a)()(!1);r.push([e.i,"@import url(https://fonts.googleapis.com/css?family=Open+Sans);"]),r.push([e.i,'#mac-react-container{font-family:"Open Sans";padding:20px}#mac-react-container .header-1{font-size:28px;margin-right:5px;margin-bottom:3px}#mac-react-container .header-2{font-size:22px;margin-right:5px;margin-bottom:5px;font-style:italic}',""]),t.default=r},function(e,t,n){"use strict";n.r(t);var a=n(9),r=n.n(a),o=n(0),i=n.n(o);function s(e){return(s="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})(e)}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=s(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t-1)return!1;if(a.filterOption)return a.filterOption.call(r,e,t);if(!t)return!0;var o=String(e[a.valueKey]),i=String(e[a.labelKey]);return a.ignoreAccents&&("label"!==a.matchProp&&(o=_(o)),"value"!==a.matchProp&&(i=_(i))),a.ignoreCase&&("label"!==a.matchProp&&(o=o.toLowerCase()),"value"!==a.matchProp&&(i=i.toLowerCase())),"start"===a.matchPos?"label"!==a.matchProp&&o.substr(0,t.length)===t||"value"!==a.matchProp&&i.substr(0,t.length)===t:"label"!==a.matchProp&&o.indexOf(t)>=0||"value"!==a.matchProp&&i.indexOf(t)>=0}))}function M(e){var t=e.focusedOption,n=e.focusOption,a=e.inputValue,r=e.instancePrefix,o=(e.labelKey,e.onFocus),s=e.onOptionRef,u=e.onSelect,l=e.optionClassName,c=e.optionComponent,p=e.optionRenderer,d=e.options,f=e.removeValue,h=e.selectValue,b=e.valueArray,v=e.valueKey,m=c;return d.map((function(e,c){var d=b&&b.some((function(t){return t[v]==e[v]})),g=e===t,y=j()(l,{"Select-option":!0,"is-selected":d,"is-focused":g,"is-disabled":e.disabled});return i.a.createElement(m,{className:y,focusOption:n,inputValue:a,instancePrefix:r,isDisabled:e.disabled,isFocused:g,isSelected:d,key:"option-"+c+"-"+e[v],onFocus:o,onSelect:u,option:e,optionIndex:c,ref:function(e){s(e,g)},removeValue:f,selectValue:h},p(e,c,a))}))}var D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I=(function(){function e(e){this.value=e}function t(t){var n,a;function r(n,a){try{var i=t[n](a),s=i.value;s instanceof e?Promise.resolve(s.value).then((function(e){r("next",e)}),(function(e){r("throw",e)})):o(i.done?"return":"normal",i.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?r(n.key,n.arg):a=null}this._invoke=function(e,t){return new Promise((function(o,i){var s={key:e,arg:t,resolve:o,reject:i,next:null};a?a=a.next=s:(n=a=s,r(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),P=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n},L=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},V=function(e){function t(e){I(this,t);var n=L(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return R(t,e),P(t,[{key:"blockEvent",value:function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)}},{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(e){this.dragging=!0}},{key:"handleTouchStart",value:function(e){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,a=e.optionIndex,r=j()(this.props.className,t.className);return t.disabled?i.a.createElement("div",{className:r,onMouseDown:this.blockEvent,onClick:this.blockEvent},this.props.children):i.a.createElement("div",{className:r,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+a,title:t.title},this.props.children)}}]),t}(i.a.Component);V.propTypes={children:x.a.node,className:x.a.string,instancePrefix:x.a.string.isRequired,isDisabled:x.a.bool,isFocused:x.a.bool,isSelected:x.a.bool,onFocus:x.a.func,onSelect:x.a.func,onUnfocus:x.a.func,option:x.a.object.isRequired,optionIndex:x.a.number};var z=function(e){function t(e){I(this,t);var n=L(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return R(t,e),P(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(e){this.dragging=!0}},{key:"handleTouchStart",value:function(e){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return i.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?i.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):i.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return i.a.createElement("div",{className:j()("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(i.a.Component);z.propTypes={children:x.a.node,disabled:x.a.bool,id:x.a.string,onClick:x.a.func,onRemove:x.a.func,value:x.a.object.isRequired}; +*/!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;return(()=>{"use strict";var e=r(1845),t=r.n(e),n=r(4883),a=r.n(n);function o(e){return o="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},o(e)}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=o(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function s(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t-1)return!1;if(a.filterOption)return a.filterOption.call(r,e,t);if(!t)return!0;var o=String(e[a.valueKey]),i=String(e[a.labelKey]);return a.ignoreAccents&&("label"!==a.matchProp&&(o=O(o)),"value"!==a.matchProp&&(i=O(i))),a.ignoreCase&&("label"!==a.matchProp&&(o=o.toLowerCase()),"value"!==a.matchProp&&(i=i.toLowerCase())),"start"===a.matchPos?"label"!==a.matchProp&&o.substr(0,t.length)===t||"value"!==a.matchProp&&i.substr(0,t.length)===t:"label"!==a.matchProp&&o.indexOf(t)>=0||"value"!==a.matchProp&&i.indexOf(t)>=0}))}function A(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,o=e.instancePrefix,i=(e.labelKey,e.onFocus),s=e.onOptionRef,l=e.onSelect,u=e.optionClassName,c=e.optionComponent,p=e.optionRenderer,d=e.options,h=e.removeValue,b=e.selectValue,f=e.valueArray,v=e.valueKey,g=c;return d.map((function(e,c){var d=f&&f.some((function(t){return t[v]==e[v]})),m=e===t,y=w()(u,{"Select-option":!0,"is-selected":d,"is-focused":m,"is-disabled":e.disabled});return a().createElement(g,{className:y,focusOption:n,inputValue:r,instancePrefix:o,isDisabled:e.disabled,isFocused:m,isSelected:d,key:"option-"+c+"-"+e[v],onFocus:i,onSelect:l,option:e,optionIndex:c,ref:function(e){s(e,m)},removeValue:h,selectValue:b},p(e,c,r))}))}var M="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},F=(function(){function e(e){this.value=e}function t(t){var n,a;function r(n,a){try{var i=t[n](a),s=i.value;s instanceof e?Promise.resolve(s.value).then((function(e){r("next",e)}),(function(e){r("throw",e)})):o(i.done?"return":"normal",i.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?r(n.key,n.arg):a=null}this._invoke=function(e,t){return new Promise((function(o,i){var s={key:e,arg:t,resolve:o,reject:i,next:null};a?a=a.next=s:(n=a=s,r(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),D=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n},N=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},R=function(e){function t(e){F(this,t);var n=N(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return P(t,e),D(t,[{key:"blockEvent",value:function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)}},{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(e){this.dragging=!0}},{key:"handleTouchStart",value:function(e){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,o=w()(this.props.className,t.className);return t.disabled?a().createElement("div",{className:o,onMouseDown:this.blockEvent,onClick:this.blockEvent},this.props.children):a().createElement("div",{className:o,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(a().Component);R.propTypes={children:E().node,className:E().string,instancePrefix:E().string.isRequired,isDisabled:E().bool,isFocused:E().bool,isSelected:E().bool,onFocus:E().func,onSelect:E().func,onUnfocus:E().func,option:E().object.isRequired,optionIndex:E().number};var B=function(e){function t(e){F(this,t);var n=N(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return P(t,e),D(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(e){this.dragging=!0}},{key:"handleTouchStart",value:function(e){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return a().createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){var e="Select-value-label";return this.props.onClick||this.props.value.href?a().createElement("a",{className:e,href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):a().createElement("span",{className:e,role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return a().createElement("div",{className:w()("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(a().Component);B.propTypes={children:E().node,disabled:E().bool,id:E().string,onClick:E().func,onRemove:E().func,value:E().object.isRequired}; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/react-select */ -var q=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},K=x.a.oneOfType([x.a.string,x.a.node]),W=x.a.oneOfType([x.a.string,x.a.number]),H=1,U=function(e){function t(e){I(this,t);var n=L(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return["clearValue","focusOption","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleRequired","handleTouchOutside","handleTouchMove","handleTouchStart","handleTouchEnd","handleTouchEndClearValue","handleValueClick","getOptionLabel","onOptionRef","removeValue","selectValue"].forEach((function(e){return n[e]=n[e].bind(n)})),n.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},n}return R(t,e),P(t,[{key:"componentWillMount",value:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++H)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:this.handleRequired(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){void 0!==this.props.autofocus&&"undefined"!=typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:this.handleRequired(t[0],e.multi)}):this.props.required&&this.setState({required:!1})}},{key:"componentDidUpdate",value:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=Object(a.findDOMNode)(this.focused),r=Object(a.findDOMNode)(this.menu),o=r.scrollTop,i=o+r.offsetHeight,s=n.offsetTop,u=s+n.offsetHeight;(o>s||id.bottom?c.scrollTop=l.offsetTop+l.clientHeight-c.offsetHeight:p.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"handleRequired",value:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e,t){var n=this,a="object"===(void 0===t?"undefined":D(t))?t:this.props;if(a.multi){if("string"==typeof e&&(e=e.split(a.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return n.expandValue(e,a)})).filter((function(e){return e}))}var r=this.expandValue(e,a);return r?[r]:[]}},{key:"expandValue",value:function(e,t){var n=void 0===e?"undefined":D(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var a=t.options,r=t.valueKey;if(a)for(var o=0;oa&&this.focusOption(n[a+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter((function(n){return n[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:this.handleInputValueChange("")},this.focus))}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,this.state.isOpen){if(t.length){for(var n=-1,a=0;a0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){n=(r=n-this.props.pageSize)<0?0:r}else if("page_down"===e){var r;n=(r=n+this.props.pageSize)>t.length-1?t.length-1:r}-1===n&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}}else this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)})}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return i.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},i.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,a=this.props.valueRenderer||this.getOptionLabel,r=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:i.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var o=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(e,t){return i.a.createElement(r,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||!1===e.clearableValue,key:"value-"+t+"-"+e[n.props.valueKey],onClick:o,onRemove:n.removeValue,value:e},a(e,t),i.a.createElement("span",{className:"Select-aria-only"}," "))})):this.state.inputValue?void 0:(t&&(o=null),i.a.createElement(r,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:o,value:e[0]},a(e[0])))}},{key:"renderInput",value:function(e,t){var n,a=this,r=j()("Select-input",this.props.inputProps.className),o=!!this.state.isOpen,s=j()((T(n={},this._instancePrefix+"-list",o),T(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),u=N({},this.props.inputProps,{role:"combobox","aria-expanded":""+o,"aria-owns":s,"aria-haspopup":""+o,"aria-activedescendant":o?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:r,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return a.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(u);if(this.props.disabled||!this.props.searchable){var l=this.props.inputProps,c=(l.inputClassName,B(l,["inputClassName"])),p=j()(T({},this._instancePrefix+"-list",o));return i.a.createElement("div",N({},c,{role:"combobox","aria-expanded":o,"aria-owns":p,"aria-activedescendant":o?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:r,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return a.input=e},"aria-disabled":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?i.a.createElement(O.a,N({id:this.props.id},u,{minWidth:"5"})):i.a.createElement("div",{className:r,key:"input-wrap"},i.a.createElement("input",N({id:this.props.id},u)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.clearRenderer();return i.a.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},t)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?i.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var a="function"==typeof this.props.filterOptions?this.props.filterOptions:F;return a(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey,trimFilter:this.props.trimFilter})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,removeValue:this.removeValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?i.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map((function(e){return q(e[t.props.valueKey])})).join(this.props.delimiter);return i.a.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map((function(e,n){return i.a.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:q(e[t.props.valueKey]),disabled:t.props.disabled})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,a=this.state.focusedOption||e;if(a&&!a.disabled){var r=-1;if(t.some((function(e,t){var o=e[n]===a[n];return o&&(r=t),o})),-1!==r)return r}for(var o=0;oe.length)&&(t=e.length);for(var n=0,a=Array(t);n=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function je(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var we=n(52),Ae=new(n(53).Dispatcher),_e=new(function(e){function t(){var e;d(this,t);for(var n=arguments.length,a=new Array(n),r=0;rt&&(r.style.cursor="pointer",this.state.collapsed&&(a=i.a.createElement("span",null,a.substring(0,t),i.a.createElement("span",ge(n,"ellipsis")," ...")))),i.a.createElement("div",ge(n,"string"),i.a.createElement(ye,Object.assign({type_name:"string"},e)),i.a.createElement("span",Object.assign({className:"string-value"},r,{onClick:this.toggleCollapsed}),'"',a,'"'))}}])}(i.a.PureComponent),Re=function(e){function t(){return d(this,t),g(this,t,arguments)}return E(t,e),h(t,[{key:"render",value:function(){return i.a.createElement("div",ge(this.props.theme,"undefined"),"undefined")}}])}(i.a.PureComponent);function Be(){return(Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?o:null,namespace:r.splice(0,r.length-1),existing_value:s,variable_removed:!1,key_name:null};"object"===de(s)?Ae.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:u,data:e}):Ae.dispatch({name:"VARIABLE_ADDED",rjvId:u,data:p(p({},e),{},{new_value:[].concat(je(s),[null])})})}})))},e.getRemoveObject=function(t){var n=e.props,a=n.theme,r=(n.hover,n.namespace),o=n.name,s=n.src,u=n.rjvId;if(1!==r.length)return i.a.createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},i.a.createElement(gt,Object.assign({className:"click-to-remove-icon"},ge(a,"removeVarIcon"),{onClick:function(){Ae.dispatch({name:"VARIABLE_REMOVED",rjvId:u,data:{name:o,namespace:r.splice(0,r.length-1),existing_value:s,variable_removed:!0}})}})))},e.render=function(){var t=e.props,n=t.theme,a=t.onDelete,r=t.onAdd,o=t.enableClipboard,s=t.src,u=t.namespace,l=t.rowHovered;return i.a.createElement("div",Object.assign({},ge(n,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),o?i.a.createElement(Ot,{rowHovered:l,clickCallback:o,src:s,theme:n,namespace:u}):null,!1!==r?e.getAddAttribute(l):null,!1!==a?e.getRemoveObject(l):null)},e}return E(t,e),h(t)}(i.a.PureComponent);function wt(e){var t=e.parent_type,n=e.namespace,a=e.quotesOnKeys,r=e.theme,o=e.jsvRoot,s=e.name,u=e.displayArrayKey,l=e.name?e.name:"";return!o||!1!==s&&null!==s?"array"==t?u?i.a.createElement("span",Object.assign({},ge(r,"array-key"),{key:n}),i.a.createElement("span",{className:"array-key"},l),i.a.createElement("span",ge(r,"colon"),":")):i.a.createElement("span",null):i.a.createElement("span",Object.assign({},ge(r,"object-name"),{key:n}),i.a.createElement("span",{className:"object-key"},a&&i.a.createElement("span",{style:{verticalAlign:"top"}},'"'),i.a.createElement("span",null,l),a&&i.a.createElement("span",{style:{verticalAlign:"top"}},'"')),i.a.createElement("span",ge(r,"colon"),":")):i.a.createElement("span",null)}function At(e){var t=e.theme;switch(e.iconStyle){case"triangle":return i.a.createElement(vt,Object.assign({},ge(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return i.a.createElement(ft,Object.assign({},ge(t,"expanded-icon"),{className:"expanded-icon"}));default:return i.a.createElement(pt,Object.assign({},ge(t,"expanded-icon"),{className:"expanded-icon"}))}}function _t(e){var t=e.theme;switch(e.iconStyle){case"triangle":return i.a.createElement(bt,Object.assign({},ge(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return i.a.createElement(ht,Object.assign({},ge(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return i.a.createElement(dt,Object.assign({},ge(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var Ft=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],Mt=function(e){function t(e){var n;return d(this,t),(n=g(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var a in n.state.expanded)t.push(n.state.expanded[a]);t[e]=!t[e],n.setState({expanded:t})},n.state={expanded:[]},n}return E(t,e),h(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,n=t.theme,a=t.iconStyle;return this.state.expanded[e]?i.a.createElement(At,{theme:n,iconStyle:a}):i.a.createElement(_t,{theme:n,iconStyle:a})}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,a=t.groupArraysAfterLength,r=(t.depth,t.name),o=t.theme,s=t.jsvRoot,u=t.namespace,l=(t.parent_type,pe(t,Ft)),c=0,p=5*this.props.indentWidth;s||(c=5*this.props.indentWidth);var d=a,f=Math.ceil(n.length/d);return i.a.createElement("div",Object.assign({className:"object-key-val"},ge(o,s?"jsv-root":"objectKeyVal",{paddingLeft:c})),i.a.createElement(wt,this.props),i.a.createElement("span",null,i.a.createElement(jt,Object.assign({size:n.length},this.props))),je(Array(f)).map((function(t,a){return i.a.createElement("div",Object.assign({key:a,className:"object-key-val array-group"},ge(o,"objectKeyVal",{marginLeft:6,paddingLeft:p})),i.a.createElement("span",ge(o,"brace-row"),i.a.createElement("div",Object.assign({className:"icon-container"},ge(o,"icon-container"),{onClick:function(t){e.toggleCollapsed(a)}}),e.getExpandedIcon(a)),e.state.expanded[a]?i.a.createElement(Tt,Object.assign({key:r+a,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:a*d,src:n.slice(a*d,a*d+d),namespace:u,type:"array",parent_type:"array_group",theme:o},l)):i.a.createElement("span",Object.assign({},ge(o,"brace"),{onClick:function(t){e.toggleCollapsed(a)},className:"array-group-brace"}),"[",i.a.createElement("div",Object.assign({},ge(o,"array-group-meta-data"),{className:"array-group-meta-data"}),i.a.createElement("span",Object.assign({className:"object-size"},ge(o,"object-size")),a*d," - ",a*d+d>n.length?n.length:a*d+d)),"]")))})))}}])}(i.a.PureComponent),Dt=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],It=function(e){function t(e){var n;d(this,t),(n=g(this,t,[e])).toggleCollapsed=function(){n.setState({expanded:!n.state.expanded},(function(){Fe.set(n.props.rjvId,n.props.namespace,"expanded",n.state.expanded)}))},n.getObjectContent=function(e,t,a){return i.a.createElement("div",{className:"pushed-content object-container"},i.a.createElement("div",Object.assign({className:"object-content"},ge(n.props.theme,"pushed-content")),n.renderObjectContents(t,a)))},n.getEllipsis=function(){return 0===n.state.size?null:i.a.createElement("div",Object.assign({},ge(n.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:n.toggleCollapsed}),"...")},n.getObjectMetaData=function(e){var t=n.props,a=(t.rjvId,t.theme,n.state),r=a.size,o=a.hovered;return i.a.createElement(jt,Object.assign({rowHovered:o,size:r},n.props))},n.renderObjectContents=function(e,t){var a,r=n.props,o=r.depth,s=r.parent_type,u=r.index_offset,l=r.groupArraysAfterLength,c=r.namespace,p=n.state.object_type,d=[],f=Object.keys(e||{});return n.props.sortKeys&&"array"!==p&&(f=f.sort()),f.forEach((function(r){if(a=new Pt(r,e[r]),"array_group"===s&&u&&(a.name=parseInt(a.name)+u),e.hasOwnProperty(r))if("object"===a.type)d.push(i.a.createElement(Tt,Object.assign({key:a.name,depth:o+1,name:a.name,src:a.value,namespace:c.concat(a.name),parent_type:p},t)));else if("array"===a.type){var f=Tt;l&&a.value.length>l&&(f=Mt),d.push(i.a.createElement(f,Object.assign({key:a.name,depth:o+1,name:a.name,src:a.value,namespace:c.concat(a.name),type:"array",parent_type:p},t)))}else d.push(i.a.createElement(kt,Object.assign({key:a.name+"_"+c,variable:a,singleIndent:5,namespace:c,type:n.props.type},t)))})),d};var a=t.getState(e);return n.state=p(p({},a),{},{prevProps:{}}),n}return E(t,e),h(t,[{key:"getBraceStart",value:function(e,t){var n=this,a=this.props,r=a.src,o=a.theme,s=a.iconStyle;if("array_group"===a.parent_type)return i.a.createElement("span",null,i.a.createElement("span",ge(o,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(r):null);var u=t?At:_t;return i.a.createElement("span",null,i.a.createElement("span",Object.assign({onClick:function(e){n.toggleCollapsed()}},ge(o,"brace-row")),i.a.createElement("div",Object.assign({className:"icon-container"},ge(o,"icon-container")),i.a.createElement(u,{theme:o,iconStyle:s})),i.a.createElement(wt,this.props),i.a.createElement("span",ge(o,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(r):null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.depth,a=t.src,r=(t.namespace,t.name,t.type,t.parent_type),o=t.theme,s=t.jsvRoot,u=t.iconStyle,l=pe(t,Dt),c=this.state,d=c.object_type,f=c.expanded,h={};return s||"array_group"===r?"array_group"===r&&(h.borderLeft=0,h.display="inline"):h.paddingLeft=5*this.props.indentWidth,i.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(p(p({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(p(p({},e.state),{},{hovered:!1}))}},ge(o,s?"jsv-root":"objectKeyVal",h)),this.getBraceStart(d,f),f?this.getObjectContent(n,a,p({theme:o,iconStyle:u},l)):this.getEllipsis(),i.a.createElement("span",{className:"brace-row"},i.a.createElement("span",{style:p(p({},ge(o,"brace").style),{},{paddingLeft:f?"3px":"0px"})},"array"===d?"]":"}"),f?null:this.getObjectMetaData(a)))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var a=n.prevProps;return e.src!==a.src||e.collapsed!==a.collapsed||e.name!==a.name||e.namespace!==a.namespace||e.rjvId!==a.rjvId?p(p({},t.getState(e)),{},{prevProps:e}):null}}])}(i.a.PureComponent);It.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:de(e.src),namespace:e.namespace}))&&0!==t;return{expanded:Fe.get(e.rjvId,e.namespace,"expanded",n),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var Pt=h((function e(t,n){d(this,e),this.name=t,this.value=n,this.type=de(n)}));le(It);var Tt=It,Nt=function(e){function t(){var e;d(this,t);for(var n=arguments.length,a=new Array(n),r=0;ro.groupArraysAfterLength&&(u=Mt),i.a.createElement("div",{className:"pretty-json-container object-container"},i.a.createElement("div",{className:"object-content"},i.a.createElement(u,Object.assign({namespace:s,depth:0,jsvRoot:!0},o))))},e}return E(t,e),h(t)}(i.a.PureComponent),Rt=function(e){function t(e){var n;return d(this,t),(n=g(this,t,[e])).closeModal=function(){Ae.dispatch({rjvId:n.props.rjvId,name:"RESET"})},n.submit=function(){n.props.submit(n.state.input)},n.state={input:e.input?e.input:""},n}return E(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.theme,a=t.rjvId,r=t.isValid,o=this.state.input,s=r(o);return i.a.createElement("div",Object.assign({className:"key-modal-request"},ge(n,"key-modal-request"),{onClick:this.closeModal}),i.a.createElement("div",Object.assign({},ge(n,"key-modal"),{onClick:function(e){e.stopPropagation()}}),i.a.createElement("div",ge(n,"key-modal-label"),"Key Name:"),i.a.createElement("div",{style:{position:"relative"}},i.a.createElement("input",Object.assign({},ge(n,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:o,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){s&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),s?i.a.createElement(xt,Object.assign({},ge(n,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),i.a.createElement("span",ge(n,"key-modal-cancel"),i.a.createElement(Et,Object.assign({},ge(n,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Ae.dispatch({rjvId:a,name:"RESET"})}})))))}}])}(i.a.PureComponent),Bt=function(e){function t(){var e;d(this,t);for(var n=arguments.length,a=new Array(n),r=0;rs||id.bottom?c.scrollTop=u.offsetTop+u.clientHeight-c.offsetHeight:p.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"handleRequired",value:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e,t){var n=this,a="object"===(void 0===t?"undefined":M(t))?t:this.props;if(a.multi){if("string"==typeof e&&(e=e.split(a.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return n.expandValue(e,a)})).filter((function(e){return e}))}var r=this.expandValue(e,a);return r?[r]:[]}},{key:"expandValue",value:function(e,t){var n=void 0===e?"undefined":M(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var a=t.options,r=t.valueKey;if(a)for(var o=0;oa&&this.focusOption(n[a+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter((function(n){return n[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:this.handleInputValueChange("")},this.focus))}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,this.state.isOpen){if(t.length){for(var n=-1,a=0;a0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){n=(r=n-this.props.pageSize)<0?0:r}else if("page_down"===e){var r;n=(r=n+this.props.pageSize)>t.length-1?t.length-1:r}-1===n&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}}else this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)})}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return a().createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},a().createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:a().createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(e,t){return a().createElement(o,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||!1===e.clearableValue,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:e},r(e,t),a().createElement("span",{className:"Select-aria-only"}," "))})):this.state.inputValue?void 0:(t&&(i=null),a().createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:e[0]},r(e[0])))}},{key:"renderInput",value:function(e,t){var n,r=this,o=w()("Select-input",this.props.inputProps.className),i=!!this.state.isOpen,s=w()((_(n={},this._instancePrefix+"-list",i),_(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),l=I({},this.props.inputProps,{role:"combobox","aria-expanded":""+i,"aria-owns":s,"aria-haspopup":""+i,"aria-activedescendant":i?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:o,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(l);if(this.props.disabled||!this.props.searchable){var u=this.props.inputProps,c=(u.inputClassName,T(u,["inputClassName"])),p=w()(_({},this._instancePrefix+"-list",i));return a().createElement("div",I({},c,{role:"combobox","aria-expanded":i,"aria-owns":p,"aria-activedescendant":i?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:o,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},"aria-disabled":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?a().createElement(k.A,I({id:this.props.id},l,{minWidth:"5"})):a().createElement("div",{className:o,key:"input-wrap"},a().createElement("input",I({id:this.props.id},l)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.clearRenderer();return a().createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},t)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?a().createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var a="function"==typeof this.props.filterOptions?this.props.filterOptions:j;return a(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey,trimFilter:this.props.trimFilter})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,removeValue:this.removeValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?a().createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map((function(e){return z(e[t.props.valueKey])})).join(this.props.delimiter);return a().createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map((function(e,n){return a().createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:z(e[t.props.valueKey]),disabled:t.props.disabled})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,a=this.state.focusedOption||e;if(a&&!a.disabled){var r=-1;if(t.some((function(e,t){var o=e[n]===a[n];return o&&(r=t),o})),-1!==r)return r}for(var o=0;oe.length)&&(t=e.length);for(var n=0,a=Array(t);n1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o1?a-1:0),o=1;o2?n-2:0),r=2;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=t.defaultBase16,r=void 0===a?we:a,o=t.base16Themes,i=_e(n,void 0===o?null:o);i&&(n=Se(Se({},i),n));for(var s=xe.reduce((function(e,t){return e[t]=n[t]||r[t],e}),{}),l=Object.keys(n).reduce((function(e,t){return-1===xe.indexOf(t)?(e[t]=n[t],e):e}),{}),u=e(s),c=je(l,u),p=arguments.length,d=new Array(p>3?p-3:0),h=3;h=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}(r);try{for(p.s();!(s=p.n()).done;){c=c[s.value]}}catch(e){p.e(e)}finally{p.f()}return i?"array"==ue(c)?c.splice(a,1):delete c[a]:null!==a?c[a]=o:u=o,e.set(t,"global","src",u),u},e.deepCopy=function(t,n){var a,r=ue(t),o=n.shift();return"array"==r?a=ze(t):"object"==r&&(a=u({},t)),void 0!==o&&(a[o]=e.deepCopy(t[o],n)),a},e}return m(t,e),d(t)}(Le.EventEmitter));Ve.register(qe.handleAction.bind(qe));const Ke=qe;var We=function(e){function t(e){var n;return c(this,t),(n=v(this,t,[e])).toggleCollapsed=function(){n.setState({collapsed:!n.state.collapsed},(function(){Ke.set(n.props.rjvId,n.props.namespace,"collapsed",n.state.collapsed)}))},n.getFunctionDisplay=function(e){var t=n.props;return e?a().createElement("span",null,n.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),a().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},a().createElement("span",null,"{"),a().createElement("span",Pe(t.theme,"ellipsis"),"..."),a().createElement("span",null,"}"))):n.props.value.toString().slice(9,-1)},n.state={collapsed:Ke.get(e.rjvId,e.namespace,"collapsed",!0)},n}return m(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return a().createElement("div",Pe(e.theme,"function"),a().createElement(Te,Object.assign({type_name:"function"},e)),a().createElement("span",Object.assign({},Pe(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}])}(a().PureComponent),Ue=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){return a().createElement("div",Pe(this.props.theme,"nan"),"NaN")}}])}(a().PureComponent),He=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){return a().createElement("div",Pe(this.props.theme,"null"),"NULL")}}])}(a().PureComponent),Ye=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){var e=this.props;return a().createElement("div",Pe(e.theme,"integer"),a().createElement(Te,Object.assign({type_name:"int"},e)),this.props.value)}}])}(a().PureComponent),Je=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){var e=this.props;return a().createElement("div",Pe(e.theme,"regexp"),a().createElement(Te,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}])}(a().PureComponent),$e=function(e){function t(e){var n;return c(this,t),(n=v(this,t,[e])).toggleCollapsed=function(){n.setState({collapsed:!n.state.collapsed},(function(){Ke.set(n.props.rjvId,n.props.namespace,"collapsed",n.state.collapsed)}))},n.state={collapsed:Ke.get(e.rjvId,e.namespace,"collapsed",!0)},n}return m(t,e),d(t,[{key:"render",value:function(){this.state.collapsed;var e=this.props,t=e.collapseStringsAfterLength,n=e.theme,r=e.value,o={style:{cursor:"default"}};return"integer"===ue(t)&&r.length>t&&(o.style.cursor="pointer",this.state.collapsed&&(r=a().createElement("span",null,r.substring(0,t),a().createElement("span",Pe(n,"ellipsis")," ...")))),a().createElement("div",Pe(n,"string"),a().createElement(Te,Object.assign({type_name:"string"},e)),a().createElement("span",Object.assign({className:"string-value"},o,{onClick:this.toggleCollapsed}),'"',r,'"'))}}])}(a().PureComponent),Ge=function(e){function t(){return c(this,t),v(this,t,arguments)}return m(t,e),d(t,[{key:"render",value:function(){return a().createElement("div",Pe(this.props.theme,"undefined"),"undefined")}}])}(a().PureComponent);function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?i:null,namespace:o.splice(0,o.length-1),existing_value:s,variable_removed:!1,key_name:null};"object"===ue(s)?Ve.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:l,data:e}):Ve.dispatch({name:"VARIABLE_ADDED",rjvId:l,data:u(u({},e),{},{new_value:[].concat(ze(s),[null])})})}})))},e.getRemoveObject=function(t){var n=e.props,r=n.theme,o=(n.hover,n.namespace),i=n.name,s=n.src,l=n.rjvId;if(1!==o.length)return a().createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},a().createElement(Dt,Object.assign({className:"click-to-remove-icon"},Pe(r,"removeVarIcon"),{onClick:function(){Ve.dispatch({name:"VARIABLE_REMOVED",rjvId:l,data:{name:i,namespace:o.splice(0,o.length-1),existing_value:s,variable_removed:!0}})}})))},e.render=function(){var t=e.props,n=t.theme,r=t.onDelete,o=t.onAdd,i=t.enableClipboard,s=t.src,l=t.namespace,u=t.rowHovered;return a().createElement("div",Object.assign({},Pe(n,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),i?a().createElement(Rt,{rowHovered:u,clickCallback:i,src:s,theme:n,namespace:l}):null,!1!==o?e.getAddAttribute(u):null,!1!==r?e.getRemoveObject(u):null)},e}return m(t,e),d(t)}(a().PureComponent);function Lt(e){var t=e.parent_type,n=e.namespace,r=e.quotesOnKeys,o=e.theme,i=e.jsvRoot,s=e.name,l=e.displayArrayKey,u=e.name?e.name:"";return!i||!1!==s&&null!==s?"array"==t?l?a().createElement("span",Object.assign({},Pe(o,"array-key"),{key:n}),a().createElement("span",{className:"array-key"},u),a().createElement("span",Pe(o,"colon"),":")):a().createElement("span",null):a().createElement("span",Object.assign({},Pe(o,"object-name"),{key:n}),a().createElement("span",{className:"object-key"},r&&a().createElement("span",{style:{verticalAlign:"top"}},'"'),a().createElement("span",null,u),r&&a().createElement("span",{style:{verticalAlign:"top"}},'"')),a().createElement("span",Pe(o,"colon"),":")):a().createElement("span",null)}function Vt(e){var t=e.theme;switch(e.iconStyle){case"triangle":return a().createElement(Mt,Object.assign({},Pe(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return a().createElement(Ot,Object.assign({},Pe(t,"expanded-icon"),{className:"expanded-icon"}));default:return a().createElement(xt,Object.assign({},Pe(t,"expanded-icon"),{className:"expanded-icon"}))}}function qt(e){var t=e.theme;switch(e.iconStyle){case"triangle":return a().createElement(At,Object.assign({},Pe(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return a().createElement(jt,Object.assign({},Pe(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return a().createElement(Ct,Object.assign({},Pe(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var Kt=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],Wt=function(e){function t(e){var n;return c(this,t),(n=v(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var a in n.state.expanded)t.push(n.state.expanded[a]);t[e]=!t[e],n.setState({expanded:t})},n.state={expanded:[]},n}return m(t,e),d(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,n=t.theme,r=t.iconStyle;return this.state.expanded[e]?a().createElement(Vt,{theme:n,iconStyle:r}):a().createElement(qt,{theme:n,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,r=t.groupArraysAfterLength,o=(t.depth,t.name),i=t.theme,s=t.jsvRoot,l=t.namespace,u=(t.parent_type,le(t,Kt)),c=0,p=5*this.props.indentWidth;s||(c=5*this.props.indentWidth);var d=r,h=Math.ceil(n.length/d);return a().createElement("div",Object.assign({className:"object-key-val"},Pe(i,s?"jsv-root":"objectKeyVal",{paddingLeft:c})),a().createElement(Lt,this.props),a().createElement("span",null,a().createElement(zt,Object.assign({size:n.length},this.props))),ze(Array(h)).map((function(t,r){return a().createElement("div",Object.assign({key:r,className:"object-key-val array-group"},Pe(i,"objectKeyVal",{marginLeft:6,paddingLeft:p})),a().createElement("span",Pe(i,"brace-row"),a().createElement("div",Object.assign({className:"icon-container"},Pe(i,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?a().createElement(Jt,Object.assign({key:o+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:n.slice(r*d,r*d+d),namespace:l,type:"array",parent_type:"array_group",theme:i},u)):a().createElement("span",Object.assign({},Pe(i,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",a().createElement("div",Object.assign({},Pe(i,"array-group-meta-data"),{className:"array-group-meta-data"}),a().createElement("span",Object.assign({className:"object-size"},Pe(i,"object-size")),r*d," - ",r*d+d>n.length?n.length:r*d+d)),"]")))})))}}])}(a().PureComponent),Ut=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],Ht=function(e){function t(e){var n;c(this,t),(n=v(this,t,[e])).toggleCollapsed=function(){n.setState({expanded:!n.state.expanded},(function(){Ke.set(n.props.rjvId,n.props.namespace,"expanded",n.state.expanded)}))},n.getObjectContent=function(e,t,r){return a().createElement("div",{className:"pushed-content object-container"},a().createElement("div",Object.assign({className:"object-content"},Pe(n.props.theme,"pushed-content")),n.renderObjectContents(t,r)))},n.getEllipsis=function(){return 0===n.state.size?null:a().createElement("div",Object.assign({},Pe(n.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:n.toggleCollapsed}),"...")},n.getObjectMetaData=function(e){var t=n.props,r=(t.rjvId,t.theme,n.state),o=r.size,i=r.hovered;return a().createElement(zt,Object.assign({rowHovered:i,size:o},n.props))},n.renderObjectContents=function(e,t){var r,o=n.props,i=o.depth,s=o.parent_type,l=o.index_offset,u=o.groupArraysAfterLength,c=o.namespace,p=n.state.object_type,d=[],h=Object.keys(e||{});return n.props.sortKeys&&"array"!==p&&(h=h.sort()),h.forEach((function(o){if(r=new Yt(o,e[o]),"array_group"===s&&l&&(r.name=parseInt(r.name)+l),e.hasOwnProperty(o))if("object"===r.type)d.push(a().createElement(Jt,Object.assign({key:r.name,depth:i+1,name:r.name,src:r.value,namespace:c.concat(r.name),parent_type:p},t)));else if("array"===r.type){var h=Jt;u&&r.value.length>u&&(h=Wt),d.push(a().createElement(h,Object.assign({key:r.name,depth:i+1,name:r.name,src:r.value,namespace:c.concat(r.name),type:"array",parent_type:p},t)))}else d.push(a().createElement(Bt,Object.assign({key:r.name+"_"+c,variable:r,singleIndent:5,namespace:c,type:n.props.type},t)));else;})),d};var r=t.getState(e);return n.state=u(u({},r),{},{prevProps:{}}),n}return m(t,e),d(t,[{key:"getBraceStart",value:function(e,t){var n=this,r=this.props,o=r.src,i=r.theme,s=r.iconStyle;if("array_group"===r.parent_type)return a().createElement("span",null,a().createElement("span",Pe(i,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(o):null);var l=t?Vt:qt;return a().createElement("span",null,a().createElement("span",Object.assign({onClick:function(e){n.toggleCollapsed()}},Pe(i,"brace-row")),a().createElement("div",Object.assign({className:"icon-container"},Pe(i,"icon-container")),a().createElement(l,{theme:i,iconStyle:s})),a().createElement(Lt,this.props),a().createElement("span",Pe(i,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(o):null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.depth,r=t.src,o=(t.namespace,t.name,t.type,t.parent_type),i=t.theme,s=t.jsvRoot,l=t.iconStyle,c=le(t,Ut),p=this.state,d=p.object_type,h=p.expanded,b={};return s||"array_group"===o?"array_group"===o&&(b.borderLeft=0,b.display="inline"):b.paddingLeft=5*this.props.indentWidth,a().createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(u(u({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(u(u({},e.state),{},{hovered:!1}))}},Pe(i,s?"jsv-root":"objectKeyVal",b)),this.getBraceStart(d,h),h?this.getObjectContent(n,r,u({theme:i,iconStyle:l},c)):this.getEllipsis(),a().createElement("span",{className:"brace-row"},a().createElement("span",{style:u(u({},Pe(i,"brace").style),{},{paddingLeft:h?"3px":"0px"})},"array"===d?"]":"}"),h?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var a=n.prevProps;return e.src!==a.src||e.collapsed!==a.collapsed||e.name!==a.name||e.namespace!==a.namespace||e.rjvId!==a.rjvId?u(u({},t.getState(e)),{},{prevProps:e}):null}}])}(a().PureComponent);Ht.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:ue(e.src),namespace:e.namespace}))&&0!==t;return{expanded:Ke.get(e.rjvId,e.namespace,"expanded",n),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var Yt=d((function e(t,n){c(this,e),this.name=t,this.value=n,this.type=ue(n)}));ie(Ht);const Jt=Ht;var $t=function(e){function t(){var e;c(this,t);for(var n=arguments.length,r=new Array(n),o=0;oi.groupArraysAfterLength&&(l=Wt),a().createElement("div",{className:"pretty-json-container object-container"},a().createElement("div",{className:"object-content"},a().createElement(l,Object.assign({namespace:s,depth:0,jsvRoot:!0},i))))},e}return m(t,e),d(t)}(a().PureComponent),Gt=function(e){function t(e){var n;return c(this,t),(n=v(this,t,[e])).closeModal=function(){Ve.dispatch({rjvId:n.props.rjvId,name:"RESET"})},n.submit=function(){n.props.submit(n.state.input)},n.state={input:e.input?e.input:""},n}return m(t,e),d(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.theme,r=t.rjvId,o=t.isValid,i=this.state.input,s=o(i);return a().createElement("div",Object.assign({className:"key-modal-request"},Pe(n,"key-modal-request"),{onClick:this.closeModal}),a().createElement("div",Object.assign({},Pe(n,"key-modal"),{onClick:function(e){e.stopPropagation()}}),a().createElement("div",Pe(n,"key-modal-label"),"Key Name:"),a().createElement("div",{style:{position:"relative"}},a().createElement("input",Object.assign({},Pe(n,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:i,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){s&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),s?a().createElement(Tt,Object.assign({},Pe(n,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),a().createElement("span",Pe(n,"key-modal-cancel"),a().createElement(It,Object.assign({},Pe(n,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Ve.dispatch({rjvId:r,name:"RESET"})}})))))}}])}(a().PureComponent),Qt=function(e){function t(){var e;c(this,t);for(var n=arguments.length,a=new Array(n),r=0;r.Select-control,\n .Select-option,\n .Select-option.is-selected,\n .Select-option.is-focused {\n background-color: ").concat(this.state.siteTheme.bgColor,";\n color: ").concat(this.state.siteTheme.color,";\n }\n .Select-option.is-focused {\n opacity: 0.8;\n }\n .Select.has-value.Select--single>.Select-control .Select-value .Select-value-label, .Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label {\n color: ").concat(this.state.siteTheme.color,";\n }\n ")),a().createElement("div",{className:"rjv-demo"},a().createElement("div",{className:"rjv-header"},a().createElement("div",{className:"header-1"},"@microlink/react-json-view"),a().createElement("img",{className:"rjv-logo",src:"https://raw.githubusercontent.com/microlinkhq/react-json-view/master/doc/rjv-icon-alt.png",onClick:function(){window.open("https://github.com/microlinkhq/react-json-view","_blank")}}),a().createElement(nn(),{type:"stargazers",namespace:"microlinkhq",repo:"react-json-view"})),a().createElement(en,{name:!1,collapsed:d,style:{padding:"10px",borderRadius:"3px",margin:"10px 0px"},theme:c,src:n,collapseStringsAfterLength:r,onEdit:!!i&&function(t){console.log(t),e.setState({src:t.updated_src})},onDelete:!!s&&function(t){console.log(t),e.setState({src:t.updated_src})},onAdd:!!o&&function(t){console.log(t),e.setState({src:t.updated_src})},displayObjectSize:l,enableClipboard:u,indentWidth:h,displayDataTypes:b,iconStyle:p}),a().createElement("div",{className:"rjv-settings"},a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Theme:"),this.getThemeInput(c)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Icon Style:"),this.getIconStyleInput(p)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Enable Edit:"),this.getEditInput(i)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Enable Add:"),this.getAddInput(o)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Enable Delete:"),this.getDeleteInput(s)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Enable Clipboard:"),this.getEnableClipboardInput(u))),a().createElement("div",{className:"rjv-settings"},a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Display Data Types:"),this.getDataTypesInput(b)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Display Object Size:"),this.getObjectSizeInput(l)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Indent Width:"),this.getIndentWidthInput(h)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Collapsed:"),this.getCollapsedInput(d)),a().createElement("div",{className:"rjv-input"},a().createElement("div",{className:"rjv-label"},"Collapse Strings After Length:"),this.getCollapsedStringsInput(r))),this.getNotes(i,o)))}}])}(a().PureComponent));rn.defaultProps={theme:"rjv-default",src:null,collapsed:!1,collapseStringsAfter:15,onAdd:!0,onEdit:!0,onDelete:!0,displayObjectSize:!0,enableClipboard:!0,indentWidth:4,displayDataTypes:!0,iconStyle:"triangle"};const on=rn;function sn(){return a().createElement("div",{className:"mac-react"},a().createElement(on,null))}r(8077);var ln=document.getElementById("mac-react-container");t().render(React.createElement("div",{className:"app-entry"},React.createElement(sn,null)),ln)})(),{}})())); \ No newline at end of file diff --git a/demo/src/js/components/Demo.js b/demo/src/js/components/Demo.js index b6a85e8..eefe98f 100644 --- a/demo/src/js/components/Demo.js +++ b/demo/src/js/components/Demo.js @@ -8,7 +8,7 @@ import './../../style/scss/rjv-demo.scss' import 'react-select/dist/react-select.css' import 'react-github-button/assets/style.css' -//index entrypoint component +// index entrypoint component class Demo extends React.PureComponent { constructor (props) { super(props) @@ -19,7 +19,7 @@ class Demo extends React.PureComponent { } static defaultProps = { - theme: 'monokai', + theme: 'rjv-default', src: null, collapsed: false, collapseStringsAfter: 15, @@ -33,6 +33,97 @@ class Demo extends React.PureComponent { iconStyle: 'triangle' } + // componentDidMount () { + // const themes = [ + // 'apathy', + // 'apathy:inverted', + // 'ashes', + // 'bespin', + // 'brewer', + // 'bright:inverted', + // 'bright', + // 'chalk', + // 'codeschool', + // 'colors', + // 'eighties', + // 'embers', + // 'flat', + // 'google', + // 'grayscale', + // 'grayscale:inverted', + // 'greenscreen', + // 'harmonic', + // 'hopscotch', + // 'isotope', + // 'marrakesh', + // 'mocha', + // 'monokai', + // 'ocean', + // 'paraiso', + // 'pop', + // 'railscasts', + // 'rjv-default', + // 'shapeshifter', + // 'shapeshifter:inverted', + // 'solarized', + // 'summerfruit', + // 'summerfruit:inverted', + // 'threezerotwofour', + // 'tomorrow', + // 'tube', + // 'twilight' + // ] + // let currentIndex = 0 + // this.themeInterval = setInterval(() => { + // if (currentIndex < themes.length) { + // this.setState({ theme: themes[currentIndex] }) + // currentIndex++ + // } else { + // clearInterval(this.themeInterval) + // } + // }, 1000) + // } + + // componentWillUnmount () { + // clearInterval(this.themeInterval) + // } + + componentDidMount () { + this.updateStyles() + this.observer = new MutationObserver(this.updateStyles) + this.observer.observe(document.querySelector('.react-json-view'), { + attributes: true, + childList: true, + subtree: true + }) + } + + componentWillUnmount () { + if (this.observer) { + this.observer.disconnect() + } + } + + updateStyles = () => { + const $ = document.querySelector.bind(document) + const siteTheme = { + color: $('.object-key').style.color, + bgColor: $('.react-json-view').style.backgroundColor, + borderColor: $('.variable-row').style.borderLeftColor + } + + this.setState({ siteTheme }) + + // console.log(siteTheme) + // this.setState({ + // siteTheme: { + // color: document.querySelector('.object-key').style.color, + // bgColor: document.querySelector('.react-json-view').style.backgroundColor, + // borderColor: document.querySelector('.variable-row').style.borderLeftColor + // } + // }) + } + render () { const { src, @@ -48,6 +139,7 @@ class Demo extends React.PureComponent { indentWidth, displayDataTypes } = this.state + const style = { padding: '10px', borderRadius: '3px', @@ -55,121 +147,151 @@ class Demo extends React.PureComponent { } return ( -
-
-
react-json-view
-
component demo
- { - window.open( - 'https://github.com/microlinkhq/react-json-view', - '_blank' - ) - }} - /> - -
- { - console.log(e) - this.setState({ src: e.updated_src }) - } - : false + <> + {this.state.siteTheme && ( + + )} +
+
+
@microlink/react-json-view
+ { + window.open( + 'https://github.com/microlinkhq/react-json-view', + '_blank' + ) + }} + /> +
-
+ { + console.log(e) + this.setState({ src: e.updated_src }) + } + : false + } + onDelete={ + onDelete + ? e => { + console.log(e) + this.setState({ src: e.updated_src }) + } + : false + } + onAdd={ + onAdd + ? e => { + console.log(e) + this.setState({ src: e.updated_src }) + } + : false + } + displayObjectSize={displayObjectSize} + enableClipboard={enableClipboard} + indentWidth={indentWidth} + displayDataTypes={displayDataTypes} + iconStyle={iconStyle} + /> -
-
-
Display Data Types:
- {this.getDataTypesInput(displayDataTypes)} -
-
-
Display Object Size:
- {this.getObjectSizeInput(displayObjectSize)} -
-
-
Indent Width:
- {this.getIndentWidthInput(indentWidth)} -
-
-
Collapsed:
- {this.getCollapsedInput(collapsed)} +
+
+
Theme:
+ {this.getThemeInput(theme)} +
+
+
Icon Style:
+ {this.getIconStyleInput(iconStyle)} +
+
+
Enable Edit:
+ {this.getEditInput(onEdit)} +
+
+
Enable Add:
+ {this.getAddInput(onAdd)} +
+
+
Enable Delete:
+ {this.getDeleteInput(onDelete)} +
+
+
Enable Clipboard:
+ {this.getEnableClipboardInput(enableClipboard)} +
-
-
Collapse Strings After Length:
- {this.getCollapsedStringsInput(collapseStringsAfter)} + +
+
+
Display Data Types:
+ {this.getDataTypesInput(displayDataTypes)} +
+
+
Display Object Size:
+ {this.getObjectSizeInput(displayObjectSize)} +
+
+
Indent Width:
+ {this.getIndentWidthInput(indentWidth)} +
+
+
Collapsed:
+ {this.getCollapsedInput(collapsed)} +
+
+
Collapse Strings After Length:
+ {this.getCollapsedStringsInput(collapseStringsAfter)} +
-
- {this.getNotes(onEdit, onAdd)} -
+ {this.getNotes(onEdit, onAdd)} +
+ ) } getNotes = (on_edit_enabled, on_add_enabled) => { - let notes = [] + const notes = [] if (on_edit_enabled) { notes.push( @@ -453,19 +575,19 @@ class Demo extends React.PureComponent { } set = (field, value) => { - let state = {} + const state = {} state[field] = value.value this.setState(state) } - //just a function to get an example JSON object + // just a function to get an example JSON object getExampleJson = () => { return { string: 'this is a test string', integer: 42, array: [1, 2, 3, 'test', NaN], float: 3.14159, - undefined: undefined, + undefined, object: { 'first-child': true, 'second-child': false, diff --git a/demo/src/js/index.js b/demo/src/js/index.js index adb22c8..30eb746 100644 --- a/demo/src/js/index.js +++ b/demo/src/js/index.js @@ -1,7 +1,7 @@ import React from 'react' import ReactJsonDemo from './components/Demo' -//index entrypoint component +// index entrypoint component export default function Demo () { return (
diff --git a/demo/src/style/scss/rjv-demo.scss b/demo/src/style/scss/rjv-demo.scss index d6fbbdf..e87f4fc 100644 --- a/demo/src/style/scss/rjv-demo.scss +++ b/demo/src/style/scss/rjv-demo.scss @@ -10,9 +10,9 @@ .rjv-input { margin-bottom: 5px; .rjv-label { + padding: 0.5em; font-size: 14px; font-weight: bold; - // font-style: italic; } } } diff --git a/docker/README.md b/docker/README.md deleted file mode 100644 index 3432c79..0000000 --- a/docker/README.md +++ /dev/null @@ -1,105 +0,0 @@ -### Contributing to this Project Using Docker - -#### Run the Dev Server - -To use Docker to run the source code in a local development environment: - -1. Clone this repo -2. Build the docker image - - `cd react-json-view` - - `./docker/build-container.sh` - - _note:_ you may need to use `sudo` to run docker commands -3. Run the docker container on port 2000. This will run the webpack-dev-server with hot-reloading enabled. - - `./docker/dev-server.sh` - - _note:_ you may need to use `sudo` to run the server file -4. Open port 2000 in your browser - - navigate to localhost:2000 - -Your source code will be mounted inside the docker container. The container is built on the latest `Node:slim` image. - -Webpack-dev-server is running in the container and hot-reloading when changes are made locally. - -All node modules are installed within the container, so make sure to rebuild your container if you make changes to package.json (see step 2, above). - -#### Run the Production Build - -```bash -cd react-json-view -# build the rjv container -./docker/build-container.sh -# run the build within your docker container -./docker/build-dist.sh -``` - -### Motivation for adding Docker to your Development Stack - -**PSA:** You do not need to use Docker to contribute to this project. If you're not interested in using a container for development, you can ignore this directory. - -You can contribute to this project with or without using Docker. This README is here to describe _how_ to use Docker when contributing and _why_ you would benefit. - -#### What is Docker? - -docker manages software "containers". -a container is a stack of "images" that define an environment from the OS up. -for example, the container used with this project has the following composition: - -``` -[ RJV node modules ] -[ node 8.4.0 ] -[ linux debian ] -``` - -#### Motivations for Docker - -- _environmental consistency_ - - this means I can completely replicate an environment for any build, on any machine -- _portability_ - - it's easy to define an environment and share it with other developers. - - I don't need to list steps for installing software - I can just write and share a dockerfile -- _module fatigue_ - - I can easily add/update/remove frameworks or node modules without worrying about messing up my file system. All packages are confined within a container, which I can easily update, rebuild or remove. - -#### RJV Docker Workflow - -the `Dockerfile` defines exactly how a container should be composed for an application. Any docker-integrated workflow starts here. - -Here is the [RJV Dockerfile](https://github.com/microlinkhq/react-json-view/blob/master/Dockerfile) - -Notice [here](https://github.com/microlinkhq/react-json-view/blob/master/Dockerfile#L1) that my container is built on top of a node container. If you track down that node container on docker-hub, you'll see that it's built on top of a debian container. Also notice that `node_modules` are installed directly into my container [here](https://github.com/microlinkhq/react-json-view/blob/master/Dockerfile#L6-L7). - -When I run `./docker/build-container.sh`, docker produces a container including all the `node_modules` listed in my `package.json` file. - -When I run `./docker/dev-server.sh`, a few things happen: - -1. docker [runs my container and mounts some source files](https://github.com/microlinkhq/react-json-view/blob/master/docker/dev-server.sh#L16-L20) into the container - - "mounting" is like a soft copy. my files are linked inside the container's file system so local edits propagate to the container. -2. docker [exposes a port](https://github.com/microlinkhq/react-json-view/blob/master/docker/dev-server.sh#L23) on the container - - this allows me to configure my app to listen and respond to to traffic at http://localhost:2000 - - the port is arbitrary -3. An [entrypoint will be invoked](https://github.com/microlinkhq/react-json-view/blob/master/docker/dev-server.sh#L24) once the container is running - - With my container up and running, the [entrypoint simply runs webpack dev server](https://github.com/microlinkhq/react-json-view/blob/master/entrypoints/dev-server.sh#L6). - -If you understand those steps, then you'll understand any of the docker scripts in `/docker/`. They do the same thing as the dev-server script but call different entrypoints. - -here is a workflow comparison with and without docker: - -| Task | Without Docker | With Docker | -| :------------------- | :----------------------------------------------- | :---------------------------------------------------- | -| install node modules | update package.json
`npm install --save-dev` | update package.json
`./docker/build-container.sh` | -| run dev server | `npm run dev:hot` | `./docker/dev-server.sh` | -| run build | `npm run build` | `./docker/build.sh` | - -#### is it worth it? - -`/docker/` and `/entrypoint/` scripts come with some overhead. Is it really worth the work? - -Remember the problems that docker is solving. Without docker, I have to be much more skeptical when testing contributions from the community. - -What if a contributor is using a different version of node or npm? -What if a contributor has a global package installed that's affecting the behavior of their code? - -running the app inside a container ensures that environmental inconsistencies like those above will not lead to bugs in production. - -#### more examples - -[github-help-wanted](https://github.com/mac-s-g/github-help-wanted) is a newer project that has a simpler docker workflow. diff --git a/docker/build-container.sh b/docker/build-container.sh deleted file mode 100755 index d1c41ec..0000000 --- a/docker/build-container.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -docker build -t react-json-view . diff --git a/docker/build-demo.sh b/docker/build-demo.sh deleted file mode 100755 index 2909187..0000000 --- a/docker/build-demo.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# runs webpack in react container - -NODE_ENV=${1:-production} -echo "Running with NODE_ENV=$NODE_ENV" - -# stop and remove the containers if they are running -stop_and_remove_container() -{ - docker stop react-json-view - docker rm react-json-view -} -stop_and_remove_container || true - -# run the workbench container -docker run \ - -v $(pwd)/src:/react/src \ - -v $(pwd)/demo:/react/demo \ - -v $(pwd)/docker:/react/docker \ - -v $(pwd)/webpack:/react/webpack \ - --name=react-json-view \ - -e NODE_ENV=$NODE_ENV \ - --entrypoint=/react/docker/entrypoints/demo.sh \ - -t react-json-view \ No newline at end of file diff --git a/docker/build-dist.sh b/docker/build-dist.sh deleted file mode 100755 index c6a4fe0..0000000 --- a/docker/build-dist.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# runs webpack in node container - -NODE_ENV=${1:-production} -echo "Running with NODE_ENV=$NODE_ENV" - -# stop and remove the containers if they are running -stop_and_remove_container() -{ - docker stop react-json-view - docker rm react-json-view -} -stop_and_remove_container || true - -# run the workbench container -docker run \ - -v $(pwd)/src:/react/src \ - -v $(pwd)/dist:/react/dist \ - -v $(pwd)/webpack:/react/webpack \ - -v $(pwd)/docker:/react/docker \ - --name=react-json-view \ - -e NODE_ENV=$NODE_ENV \ - --entrypoint=/react/docker/entrypoints/build.sh \ - -t react-json-view \ No newline at end of file diff --git a/docker/coverage.sh b/docker/coverage.sh deleted file mode 100755 index 6e00a8d..0000000 --- a/docker/coverage.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -# runs webpack in react container - -NODE_ENV=${1:-local} -echo "Running with NODE_ENV=$NODE_ENV" - -rm -rf ./coverage/* - -# run the container -docker run \ - -v $(pwd)/src:/react/src \ - -v $(pwd)/dev-server:/react/dev-server \ - -v $(pwd)/coverage:/react/coverage \ - -v $(pwd)/webpack/webpack.config.js:/react/webpack.config.js \ - -v $(pwd)/.nyc_output:/react/.nyc_output \ - -v $(pwd)/test:/react/test \ - -v $(pwd)/docker:/react/docker \ - --rm \ - -e NODE_ENV=$NODE_ENV \ - --entrypoint=/react/docker/entrypoints/coverage.sh \ - -t react-json-view - diff --git a/docker/debug.sh b/docker/debug.sh deleted file mode 100755 index cc6fb7b..0000000 --- a/docker/debug.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -# runs webpack in react container - -# debug output for production build -NODE_ENV=${1:-production} -echo "Running with NODE_ENV=$NODE_ENV" - -rm -rf ./debug - -mkdir debug - -# run the container -docker run \ - -v $(pwd)/src:/react/src \ - -v $(pwd)/debug:/react/debug \ - -v $(pwd)/webpack/webpack.config.js:/react/webpack.config.js \ - -v $(pwd)/docker:/react/docker \ - --rm \ - -e NODE_ENV=$NODE_ENV \ - --entrypoint=/react/docker/entrypoints/debug.sh \ - -t react-json-view - diff --git a/docker/dev-server.sh b/docker/dev-server.sh deleted file mode 100755 index cd7baa1..0000000 --- a/docker/dev-server.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -# runs webpack in react container - -NODE_ENV=${1:-development} -echo "Running with NODE_ENV=$NODE_ENV" - -# stop and remove the containers if they are running -stop_and_remove_container() -{ - docker stop react-json-view - docker rm react-json-view -} -stop_and_remove_container || true - -# run the workbench container -docker run \ - -v $(pwd)/src:/react/src \ - -v $(pwd)/dev-server:/react/dev-server \ - -v $(pwd)/webpack:/react/webpack \ - -v $(pwd)/docker:/react/docker \ - --name=react-json-view \ - -e NODE_ENV=$NODE_ENV \ - --publish 2000:2000 \ - --entrypoint=/react/docker/entrypoints/dev-server.sh \ - -t react-json-view \ No newline at end of file diff --git a/docker/entrypoints/build.sh b/docker/entrypoints/build.sh deleted file mode 100755 index a8f266a..0000000 --- a/docker/entrypoints/build.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# builds component output files - -export NODE_ENV=${NODE_ENV:-production} - -echo Building RJV Distribution... - -# remove dist files if they exist, -# otherwise create the dist directory -if [ -d /react/dist/main.js ]; then - echo Removing existing dist artifacts - rm /react/dist/main.js -fi - -# now, build the app -cd /react -npm run build - -# ... and copy files for dist -cp -a /react/dist /dist -echo Copied distribution to /dist diff --git a/docker/entrypoints/coverage.sh b/docker/entrypoints/coverage.sh deleted file mode 100755 index 3b933ba..0000000 --- a/docker/entrypoints/coverage.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -echo Running Coverage Report - -cd /react - -echo Running: npm run unit_test -npm run test - -echo Running: npm run coverage -npm run test:coverage diff --git a/docker/entrypoints/debug.sh b/docker/entrypoints/debug.sh deleted file mode 100755 index 1aec218..0000000 --- a/docker/entrypoints/debug.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -cd /react - -echo getting source tree.. -npm run modules:tree > debug/tree.json - -echo Running bundle size analysis -npm run modules:size-analyzer \ No newline at end of file diff --git a/docker/entrypoints/demo.sh b/docker/entrypoints/demo.sh deleted file mode 100755 index 2f2ac59..0000000 --- a/docker/entrypoints/demo.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# builds component output files - -export NODE_ENV=${NODE_ENV:-production} - -echo Building RJV Demo... - -# remove dist files if they exist, -# otherwise create the dist directory -if [ -d /react/demo/dist/main.js ]; then - echo Removing existing dist artifacts - rm /react/demo/dist/main.js -fi - -# now, build the app -cd /react - -npm run build:demo - -echo Copied distribution to /demo/dist diff --git a/docker/entrypoints/dev-server.sh b/docker/entrypoints/dev-server.sh deleted file mode 100755 index 79447a3..0000000 --- a/docker/entrypoints/dev-server.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# runs webpack dev server /react directory - -mkdir -p /react/dist || true -cd /react -exec npm run dev diff --git a/docker/entrypoints/test-watch.sh b/docker/entrypoints/test-watch.sh deleted file mode 100755 index 665b1cf..0000000 --- a/docker/entrypoints/test-watch.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -echo Running Tests -cd /react - -exec npm run test:watch diff --git a/docker/entrypoints/test.sh b/docker/entrypoints/test.sh deleted file mode 100755 index 9015890..0000000 --- a/docker/entrypoints/test.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -echo Running Tests -cd /react - -exec npm run test \ No newline at end of file diff --git a/docker/shell.sh b/docker/shell.sh deleted file mode 100755 index 7c9e967..0000000 --- a/docker/shell.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# runs shell in react container - -NODE_ENV=${1:-local} -echo "Running with NODE_ENV=$NODE_ENV" - -# run the react-json-view container -docker run \ - --rm \ - -v $(pwd)/src:/react/src \ - -v $(pwd)/dev-server:/react/dev-server \ - -v $(pwd)/test:/react/test \ - -v $(pwd)/webpack:/react/webpack \ - -v $(pwd)/docker:/react/docker \ - -e NODE_ENV=$NODE_ENV \ - --entrypoint=/bin/bash \ - -ti react-json-view diff --git a/docker/test-watch.sh b/docker/test-watch.sh deleted file mode 100755 index 8f3a198..0000000 --- a/docker/test-watch.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# runs webpack in react container - -NODE_ENV=${1:-local} -echo "Running with NODE_ENV=$NODE_ENV" - -# run the workbench container -docker run \ - -v $(pwd)/src:/react/src \ - -v $(pwd)/dev-server:/react/dev-server \ - -v $(pwd)/webpack/webpack.config.js:/react/webpack.config.js \ - -v $(pwd)/test:/react/test \ - -v $(pwd)/docker:/react/docker \ - --rm \ - -e NODE_ENV=$NODE_ENV \ - --entrypoint=/react/docker/entrypoints/test-watch.sh \ - -t react-json-view diff --git a/docker/test.sh b/docker/test.sh deleted file mode 100755 index 1e02821..0000000 --- a/docker/test.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# runs webpack in react container - -NODE_ENV=${1:-local} -echo "Running with NODE_ENV=$NODE_ENV" - -# run the workbench container -docker run \ - -v $(pwd)/src:/react/src \ - -v $(pwd)/coverage:/react/coverage \ - -v $(pwd)/webpack/webpack.config.js:/react/webpack.config.js \ - -v $(pwd)/test:/react/test \ - -v $(pwd)/docker:/react/docker \ - --rm \ - -e NODE_ENV=$NODE_ENV \ - --entrypoint=/react/docker/entrypoints/test.sh \ - -t react-json-view \ No newline at end of file diff --git a/package.json b/package.json index 4ec2462..f101339 100644 --- a/package.json +++ b/package.json @@ -223,6 +223,7 @@ "babel-plugin-istanbul": "6.1.1", "babel-plugin-react-html-attrs": "~2.1.0", "babel-preset-react-app": "10.0.1", + "browser-sync": "~3.0.3", "chai": "~4.2.0", "cheerio": "1.0.0-rc.3", "css-loader": "~4.3.0", @@ -249,6 +250,7 @@ "standard": "latest", "standard-version": "latest", "style-loader": "~1.3.0", + "tinyrun": "~1.0.2", "typescript": "^4.5.4", "webpack": "~5.93.0", "webpack-bundle-analyzer": "~4.10.2", @@ -262,8 +264,11 @@ ], "scripts": { "build": "NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production webpack --config webpack/webpack.config.js --progress", - "build:demo": "NODE_ENV=production webpack --node-env production --config webpack/webpack.config-demo.js --progress", - "dev": "NODE_ENV=development webpack-dev-server --config webpack/webpack.config-dev.js --open", + "dev": "NODE_ENV=development webpack serve --config webpack/webpack.config-dev.js --open", + "docs:build": "NODE_ENV=production webpack --node-env production --config webpack/webpack.config-demo.js --progress", + "docs:dev": "tinyrun 'npm run docs:dev:watch' 'npm run docs:dev:browserync'", + "docs:dev:watch": "npm run docs:build -- --watch", + "docs:dev:browserync": "browser-sync start --serveStatic demo/dist/ --server --files 'index.html, **/*.(css|js|md)'", "lint": "standard", "modules:debug": "./docker/debug.sh", "modules:size-analyzer": "webpack --config webpack/webpack.config.js --json | webpack-bundle-size-analyzer", diff --git a/webpack/webpack.config-demo.js b/webpack/webpack.config-demo.js index 72403a2..3479ec6 100644 --- a/webpack/webpack.config-demo.js +++ b/webpack/webpack.config-demo.js @@ -1,5 +1,4 @@ const path = require('path') -const webpack = require('webpack') const TerserPlugin = require('terser-webpack-plugin') const PATHS = { @@ -23,7 +22,6 @@ const config = { library: 'reactJsonView', libraryTarget: 'umd' }, - plugins: [], resolve: { extensions: ['.js', '.json', '.css', '.scss'] },