mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-13 20:51:41 +00:00
10887 lines
638 KiB
Go
10887 lines
638 KiB
Go
package dist
|
||
|
||
import (
|
||
"bytes"
|
||
"net/http"
|
||
"os"
|
||
"strings"
|
||
"time"
|
||
)
|
||
|
||
type fileSystem struct {
|
||
files map[string]file
|
||
}
|
||
|
||
func (fs *fileSystem) Open(name string) (http.File, error) {
|
||
name = strings.Replace(name, "//", "/", -1)
|
||
f, ok := fs.files[name]
|
||
if ok {
|
||
return newHTTPFile(f, false), nil
|
||
}
|
||
index := strings.Replace(name+"/index.html", "//", "/", -1)
|
||
f, ok = fs.files[index]
|
||
if !ok {
|
||
return nil, os.ErrNotExist
|
||
}
|
||
return newHTTPFile(f, true), nil
|
||
}
|
||
|
||
type file struct {
|
||
os.FileInfo
|
||
data []byte
|
||
}
|
||
|
||
type fileInfo struct {
|
||
name string
|
||
size int64
|
||
mode os.FileMode
|
||
modTime time.Time
|
||
isDir bool
|
||
|
||
files []os.FileInfo
|
||
}
|
||
|
||
func (f *fileInfo) Name() string {
|
||
return f.name
|
||
}
|
||
|
||
func (f *fileInfo) Size() int64 {
|
||
return f.size
|
||
}
|
||
|
||
func (f *fileInfo) Mode() os.FileMode {
|
||
return f.mode
|
||
}
|
||
|
||
func (f *fileInfo) ModTime() time.Time {
|
||
return f.modTime
|
||
}
|
||
|
||
func (f *fileInfo) IsDir() bool {
|
||
return f.isDir
|
||
}
|
||
|
||
func (f *fileInfo) Readdir(count int) ([]os.FileInfo, error) {
|
||
return make([]os.FileInfo, 0), nil
|
||
}
|
||
|
||
func (f *fileInfo) Sys() interface{} {
|
||
return nil
|
||
}
|
||
|
||
func newHTTPFile(file file, isDir bool) *httpFile {
|
||
return &httpFile{
|
||
file: file,
|
||
reader: bytes.NewReader(file.data),
|
||
isDir: isDir,
|
||
}
|
||
}
|
||
|
||
type httpFile struct {
|
||
file
|
||
|
||
reader *bytes.Reader
|
||
isDir bool
|
||
}
|
||
|
||
func (f *httpFile) Read(p []byte) (n int, err error) {
|
||
return f.reader.Read(p)
|
||
}
|
||
|
||
func (f *httpFile) Seek(offset int64, whence int) (ret int64, err error) {
|
||
return f.reader.Seek(offset, whence)
|
||
}
|
||
|
||
func (f *httpFile) Stat() (os.FileInfo, error) {
|
||
return f, nil
|
||
}
|
||
|
||
func (f *httpFile) IsDir() bool {
|
||
return f.isDir
|
||
}
|
||
|
||
func (f *httpFile) Readdir(count int) ([]os.FileInfo, error) {
|
||
return make([]os.FileInfo, 0), nil
|
||
}
|
||
|
||
func (f *httpFile) Close() error {
|
||
return nil
|
||
}
|
||
|
||
// New returns an embedded http.FileSystem
|
||
func New() http.FileSystem {
|
||
return &fileSystem{
|
||
files: files,
|
||
}
|
||
}
|
||
|
||
// Lookup returns the file at the specified path
|
||
func Lookup(path string) ([]byte, error) {
|
||
f, ok := files[path]
|
||
if !ok {
|
||
return nil, os.ErrNotExist
|
||
}
|
||
return f.data, nil
|
||
}
|
||
|
||
// MustLookup returns the file at the specified path
|
||
// and panics if the file is not found.
|
||
func MustLookup(path string) []byte {
|
||
d, err := Lookup(path)
|
||
if err != nil {
|
||
panic(err)
|
||
}
|
||
return d
|
||
}
|
||
|
||
// Index of all files
|
||
var files = map[string]file{
|
||
"/static/bundle.3210ec51b3a117dda107.js": {
|
||
data: file0,
|
||
FileInfo: &fileInfo{
|
||
name: "bundle.3210ec51b3a117dda107.js",
|
||
size: 367666,
|
||
modTime: time.Unix(1562669038, 0),
|
||
},
|
||
},
|
||
"/static/vendor.bab47468491b194ca445.js": {
|
||
data: file1,
|
||
FileInfo: &fileInfo{
|
||
name: "vendor.bab47468491b194ca445.js",
|
||
size: 272274,
|
||
modTime: time.Unix(1562669038, 0),
|
||
},
|
||
},
|
||
"/favicon.png": {
|
||
data: file2,
|
||
FileInfo: &fileInfo{
|
||
name: "favicon.png",
|
||
size: 1374,
|
||
modTime: time.Unix(1562669038, 0),
|
||
},
|
||
},
|
||
"/index.html": {
|
||
data: file3,
|
||
FileInfo: &fileInfo{
|
||
name: "index.html",
|
||
size: 388,
|
||
modTime: time.Unix(1562669038, 0),
|
||
},
|
||
},
|
||
}
|
||
|
||
//
|
||
// embedded files.
|
||
//
|
||
|
||
// /static/bundle.3210ec51b3a117dda107.js
|
||
var file0 = []byte(`webpackJsonp([0],[
|
||
/* 0 */,
|
||
/* 1 */,
|
||
/* 2 */,
|
||
/* 3 */
|
||
/***/ (function(module, exports) {
|
||
|
||
/*
|
||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||
Author Tobias Koppers @sokra
|
||
*/
|
||
// css base code, injected by the css-loader
|
||
module.exports = function(useSourceMap) {
|
||
var list = [];
|
||
|
||
// return the list of modules as css string
|
||
list.toString = function toString() {
|
||
return this.map(function (item) {
|
||
var content = cssWithMappingToString(item, useSourceMap);
|
||
if(item[2]) {
|
||
return "@media " + item[2] + "{" + content + "}";
|
||
} else {
|
||
return content;
|
||
}
|
||
}).join("");
|
||
};
|
||
|
||
// import a list of modules into the list
|
||
list.i = function(modules, mediaQuery) {
|
||
if(typeof modules === "string")
|
||
modules = [[null, modules, ""]];
|
||
var alreadyImportedModules = {};
|
||
for(var i = 0; i < this.length; i++) {
|
||
var id = this[i][0];
|
||
if(typeof id === "number")
|
||
alreadyImportedModules[id] = true;
|
||
}
|
||
for(i = 0; i < modules.length; i++) {
|
||
var item = modules[i];
|
||
// skip already imported module
|
||
// this implementation is not 100% perfect for weird media query combinations
|
||
// when a module is imported multiple times with different media queries.
|
||
// I hope this will never occur (Hey this way we have smaller bundles)
|
||
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
|
||
if(mediaQuery && !item[2]) {
|
||
item[2] = mediaQuery;
|
||
} else if(mediaQuery) {
|
||
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
|
||
}
|
||
list.push(item);
|
||
}
|
||
}
|
||
};
|
||
return list;
|
||
};
|
||
|
||
function cssWithMappingToString(item, useSourceMap) {
|
||
var content = item[1] || '';
|
||
var cssMapping = item[3];
|
||
if (!cssMapping) {
|
||
return content;
|
||
}
|
||
|
||
if (useSourceMap && typeof btoa === 'function') {
|
||
var sourceMapping = toComment(cssMapping);
|
||
var sourceURLs = cssMapping.sources.map(function (source) {
|
||
return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
|
||
});
|
||
|
||
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
|
||
}
|
||
|
||
return [content].join('\n');
|
||
}
|
||
|
||
// Adapted from convert-source-map (MIT)
|
||
function toComment(sourceMap) {
|
||
// eslint-disable-next-line no-undef
|
||
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
|
||
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
|
||
|
||
return '/*# ' + data + ' */';
|
||
}
|
||
|
||
|
||
/***/ }),
|
||
/* 4 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
/*
|
||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||
Author Tobias Koppers @sokra
|
||
*/
|
||
|
||
var stylesInDom = {};
|
||
|
||
var memoize = function (fn) {
|
||
var memo;
|
||
|
||
return function () {
|
||
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
|
||
return memo;
|
||
};
|
||
};
|
||
|
||
var isOldIE = memoize(function () {
|
||
// Test for IE <= 9 as proposed by Browserhacks
|
||
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
||
// Tests for existence of standard globals is to allow style-loader
|
||
// to operate correctly into non-standard environments
|
||
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
||
return window && document && document.all && !window.atob;
|
||
});
|
||
|
||
var getElement = (function (fn) {
|
||
var memo = {};
|
||
|
||
return function(selector) {
|
||
if (typeof memo[selector] === "undefined") {
|
||
memo[selector] = fn.call(this, selector);
|
||
}
|
||
|
||
return memo[selector]
|
||
};
|
||
})(function (target) {
|
||
return document.querySelector(target)
|
||
});
|
||
|
||
var singleton = null;
|
||
var singletonCounter = 0;
|
||
var stylesInsertedAtTop = [];
|
||
|
||
var fixUrls = __webpack_require__(419);
|
||
|
||
module.exports = function(list, options) {
|
||
if (typeof DEBUG !== "undefined" && DEBUG) {
|
||
if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
|
||
}
|
||
|
||
options = options || {};
|
||
|
||
options.attrs = typeof options.attrs === "object" ? options.attrs : {};
|
||
|
||
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
||
// tags it will allow on a page
|
||
if (!options.singleton) options.singleton = isOldIE();
|
||
|
||
// By default, add <style> tags to the <head> element
|
||
if (!options.insertInto) options.insertInto = "head";
|
||
|
||
// By default, add <style> tags to the bottom of the target
|
||
if (!options.insertAt) options.insertAt = "bottom";
|
||
|
||
var styles = listToStyles(list, options);
|
||
|
||
addStylesToDom(styles, options);
|
||
|
||
return function update (newList) {
|
||
var mayRemove = [];
|
||
|
||
for (var i = 0; i < styles.length; i++) {
|
||
var item = styles[i];
|
||
var domStyle = stylesInDom[item.id];
|
||
|
||
domStyle.refs--;
|
||
mayRemove.push(domStyle);
|
||
}
|
||
|
||
if(newList) {
|
||
var newStyles = listToStyles(newList, options);
|
||
addStylesToDom(newStyles, options);
|
||
}
|
||
|
||
for (var i = 0; i < mayRemove.length; i++) {
|
||
var domStyle = mayRemove[i];
|
||
|
||
if(domStyle.refs === 0) {
|
||
for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
|
||
|
||
delete stylesInDom[domStyle.id];
|
||
}
|
||
}
|
||
};
|
||
};
|
||
|
||
function addStylesToDom (styles, options) {
|
||
for (var i = 0; i < styles.length; i++) {
|
||
var item = styles[i];
|
||
var domStyle = stylesInDom[item.id];
|
||
|
||
if(domStyle) {
|
||
domStyle.refs++;
|
||
|
||
for(var j = 0; j < domStyle.parts.length; j++) {
|
||
domStyle.parts[j](item.parts[j]);
|
||
}
|
||
|
||
for(; j < item.parts.length; j++) {
|
||
domStyle.parts.push(addStyle(item.parts[j], options));
|
||
}
|
||
} else {
|
||
var parts = [];
|
||
|
||
for(var j = 0; j < item.parts.length; j++) {
|
||
parts.push(addStyle(item.parts[j], options));
|
||
}
|
||
|
||
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
|
||
}
|
||
}
|
||
}
|
||
|
||
function listToStyles (list, options) {
|
||
var styles = [];
|
||
var newStyles = {};
|
||
|
||
for (var i = 0; i < list.length; i++) {
|
||
var item = list[i];
|
||
var id = options.base ? item[0] + options.base : item[0];
|
||
var css = item[1];
|
||
var media = item[2];
|
||
var sourceMap = item[3];
|
||
var part = {css: css, media: media, sourceMap: sourceMap};
|
||
|
||
if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
|
||
else newStyles[id].parts.push(part);
|
||
}
|
||
|
||
return styles;
|
||
}
|
||
|
||
function insertStyleElement (options, style) {
|
||
var target = getElement(options.insertInto)
|
||
|
||
if (!target) {
|
||
throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
||
}
|
||
|
||
var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
|
||
|
||
if (options.insertAt === "top") {
|
||
if (!lastStyleElementInsertedAtTop) {
|
||
target.insertBefore(style, target.firstChild);
|
||
} else if (lastStyleElementInsertedAtTop.nextSibling) {
|
||
target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
|
||
} else {
|
||
target.appendChild(style);
|
||
}
|
||
stylesInsertedAtTop.push(style);
|
||
} else if (options.insertAt === "bottom") {
|
||
target.appendChild(style);
|
||
} else {
|
||
throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");
|
||
}
|
||
}
|
||
|
||
function removeStyleElement (style) {
|
||
if (style.parentNode === null) return false;
|
||
style.parentNode.removeChild(style);
|
||
|
||
var idx = stylesInsertedAtTop.indexOf(style);
|
||
if(idx >= 0) {
|
||
stylesInsertedAtTop.splice(idx, 1);
|
||
}
|
||
}
|
||
|
||
function createStyleElement (options) {
|
||
var style = document.createElement("style");
|
||
|
||
options.attrs.type = "text/css";
|
||
|
||
addAttrs(style, options.attrs);
|
||
insertStyleElement(options, style);
|
||
|
||
return style;
|
||
}
|
||
|
||
function createLinkElement (options) {
|
||
var link = document.createElement("link");
|
||
|
||
options.attrs.type = "text/css";
|
||
options.attrs.rel = "stylesheet";
|
||
|
||
addAttrs(link, options.attrs);
|
||
insertStyleElement(options, link);
|
||
|
||
return link;
|
||
}
|
||
|
||
function addAttrs (el, attrs) {
|
||
Object.keys(attrs).forEach(function (key) {
|
||
el.setAttribute(key, attrs[key]);
|
||
});
|
||
}
|
||
|
||
function addStyle (obj, options) {
|
||
var style, update, remove, result;
|
||
|
||
// If a transform function was defined, run it on the css
|
||
if (options.transform && obj.css) {
|
||
result = options.transform(obj.css);
|
||
|
||
if (result) {
|
||
// If transform returns a value, use that instead of the original css.
|
||
// This allows running runtime transformations on the css.
|
||
obj.css = result;
|
||
} else {
|
||
// If the transform function returns a falsy value, don't add this css.
|
||
// This allows conditional loading of css
|
||
return function() {
|
||
// noop
|
||
};
|
||
}
|
||
}
|
||
|
||
if (options.singleton) {
|
||
var styleIndex = singletonCounter++;
|
||
|
||
style = singleton || (singleton = createStyleElement(options));
|
||
|
||
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
||
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
||
|
||
} else if (
|
||
obj.sourceMap &&
|
||
typeof URL === "function" &&
|
||
typeof URL.createObjectURL === "function" &&
|
||
typeof URL.revokeObjectURL === "function" &&
|
||
typeof Blob === "function" &&
|
||
typeof btoa === "function"
|
||
) {
|
||
style = createLinkElement(options);
|
||
update = updateLink.bind(null, style, options);
|
||
remove = function () {
|
||
removeStyleElement(style);
|
||
|
||
if(style.href) URL.revokeObjectURL(style.href);
|
||
};
|
||
} else {
|
||
style = createStyleElement(options);
|
||
update = applyToTag.bind(null, style);
|
||
remove = function () {
|
||
removeStyleElement(style);
|
||
};
|
||
}
|
||
|
||
update(obj);
|
||
|
||
return function updateStyle (newObj) {
|
||
if (newObj) {
|
||
if (
|
||
newObj.css === obj.css &&
|
||
newObj.media === obj.media &&
|
||
newObj.sourceMap === obj.sourceMap
|
||
) {
|
||
return;
|
||
}
|
||
|
||
update(obj = newObj);
|
||
} else {
|
||
remove();
|
||
}
|
||
};
|
||
}
|
||
|
||
var replaceText = (function () {
|
||
var textStore = [];
|
||
|
||
return function (index, replacement) {
|
||
textStore[index] = replacement;
|
||
|
||
return textStore.filter(Boolean).join('\n');
|
||
};
|
||
})();
|
||
|
||
function applyToSingletonTag (style, index, remove, obj) {
|
||
var css = remove ? "" : obj.css;
|
||
|
||
if (style.styleSheet) {
|
||
style.styleSheet.cssText = replaceText(index, css);
|
||
} else {
|
||
var cssNode = document.createTextNode(css);
|
||
var childNodes = style.childNodes;
|
||
|
||
if (childNodes[index]) style.removeChild(childNodes[index]);
|
||
|
||
if (childNodes.length) {
|
||
style.insertBefore(cssNode, childNodes[index]);
|
||
} else {
|
||
style.appendChild(cssNode);
|
||
}
|
||
}
|
||
}
|
||
|
||
function applyToTag (style, obj) {
|
||
var css = obj.css;
|
||
var media = obj.media;
|
||
|
||
if(media) {
|
||
style.setAttribute("media", media)
|
||
}
|
||
|
||
if(style.styleSheet) {
|
||
style.styleSheet.cssText = css;
|
||
} else {
|
||
while(style.firstChild) {
|
||
style.removeChild(style.firstChild);
|
||
}
|
||
|
||
style.appendChild(document.createTextNode(css));
|
||
}
|
||
}
|
||
|
||
function updateLink (link, options, obj) {
|
||
var css = obj.css;
|
||
var sourceMap = obj.sourceMap;
|
||
|
||
/*
|
||
If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
|
||
and there is no publicPath defined then lets turn convertToAbsoluteUrls
|
||
on by default. Otherwise default to the convertToAbsoluteUrls option
|
||
directly
|
||
*/
|
||
var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
|
||
|
||
if (options.convertToAbsoluteUrls || autoFixUrls) {
|
||
css = fixUrls(css);
|
||
}
|
||
|
||
if (sourceMap) {
|
||
// http://stackoverflow.com/a/26603875
|
||
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
|
||
}
|
||
|
||
var blob = new Blob([css], { type: "text/css" });
|
||
|
||
var oldSrc = link.href;
|
||
|
||
link.href = URL.createObjectURL(blob);
|
||
|
||
if(oldSrc) URL.revokeObjectURL(oldSrc);
|
||
}
|
||
|
||
|
||
/***/ }),
|
||
/* 5 */,
|
||
/* 6 */,
|
||
/* 7 */,
|
||
/* 8 */,
|
||
/* 9 */,
|
||
/* 10 */,
|
||
/* 11 */,
|
||
/* 12 */,
|
||
/* 13 */,
|
||
/* 14 */,
|
||
/* 15 */,
|
||
/* 16 */,
|
||
/* 17 */,
|
||
/* 18 */,
|
||
/* 19 */,
|
||
/* 20 */,
|
||
/* 21 */,
|
||
/* 22 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.inject = exports.drone = undefined;
|
||
|
||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var drone = exports.drone = function drone(client, Component) {
|
||
// @see https://github.com/yannickcr/eslint-plugin-react/issues/512
|
||
// eslint-disable-next-line react/display-name
|
||
var component = function (_React$Component) {
|
||
_inherits(component, _React$Component);
|
||
|
||
function component() {
|
||
_classCallCheck(this, component);
|
||
|
||
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
||
}
|
||
|
||
component.prototype.getChildContext = function getChildContext() {
|
||
return {
|
||
drone: client
|
||
};
|
||
};
|
||
|
||
component.prototype.render = function render() {
|
||
return _react2["default"].createElement(Component, _extends({}, this.state, this.props));
|
||
};
|
||
|
||
return component;
|
||
}(_react2["default"].Component);
|
||
|
||
component.childContextTypes = {
|
||
drone: function drone(props, propName) {}
|
||
};
|
||
|
||
return component;
|
||
};
|
||
|
||
var inject = exports.inject = function inject(Component) {
|
||
// @see https://github.com/yannickcr/eslint-plugin-react/issues/512
|
||
// eslint-disable-next-line react/display-name
|
||
var component = function (_React$Component2) {
|
||
_inherits(component, _React$Component2);
|
||
|
||
function component() {
|
||
_classCallCheck(this, component);
|
||
|
||
return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments));
|
||
}
|
||
|
||
component.prototype.render = function render() {
|
||
this.props.drone = this.context.drone;
|
||
return _react2["default"].createElement(Component, _extends({}, this.state, this.props));
|
||
};
|
||
|
||
return component;
|
||
}(_react2["default"].Component);
|
||
|
||
return component;
|
||
};
|
||
|
||
/***/ }),
|
||
/* 23 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.repositorySlug = exports.compareRepository = exports.disableRepository = exports.enableRepository = exports.updateRepository = exports.syncRepostoryList = exports.fetchRepostoryList = exports.fetchRepository = undefined;
|
||
|
||
var _message = __webpack_require__(67);
|
||
|
||
var _feed = __webpack_require__(126);
|
||
|
||
/**
|
||
* Get the named repository and store the results in
|
||
* the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
*/
|
||
var fetchRepository = exports.fetchRepository = function fetchRepository(tree, client, owner, name) {
|
||
tree.unset(["repo", "error"]);
|
||
tree.unset(["repo", "loaded"]);
|
||
|
||
client.getRepo(owner, name).then(function (repo) {
|
||
tree.set(["repos", "data", repo.full_name], repo);
|
||
tree.set(["repo", "loaded"], true);
|
||
})["catch"](function (error) {
|
||
tree.set(["repo", "error"], error);
|
||
tree.set(["repo", "loaded"], true);
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Get the repository list for the current user and
|
||
* store the results in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
*/
|
||
var fetchRepostoryList = exports.fetchRepostoryList = function fetchRepostoryList(tree, client) {
|
||
tree.unset(["repos", "loaded"]);
|
||
tree.unset(["repos", "error"]);
|
||
|
||
client.getRepoList({ all: true }).then(function (results) {
|
||
var list = {};
|
||
results.map(function (repo) {
|
||
list[repo.full_name] = repo;
|
||
});
|
||
|
||
var path = ["repos", "data"];
|
||
if (tree.exists(path)) {
|
||
tree.deepMerge(path, list);
|
||
} else {
|
||
tree.set(path, list);
|
||
}
|
||
|
||
tree.set(["repos", "loaded"], true);
|
||
})["catch"](function (error) {
|
||
tree.set(["repos", "loaded"], true);
|
||
tree.set(["repos", "error"], error);
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Synchronize the repository list for the current user
|
||
* and merge the results into the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
*/
|
||
var syncRepostoryList = exports.syncRepostoryList = function syncRepostoryList(tree, client) {
|
||
tree.unset(["repos", "loaded"]);
|
||
tree.unset(["repos", "error"]);
|
||
|
||
client.getRepoList({ all: true, flush: true }).then(function (results) {
|
||
var list = {};
|
||
results.map(function (repo) {
|
||
list[repo.full_name] = repo;
|
||
});
|
||
|
||
var path = ["repos", "data"];
|
||
if (tree.exists(path)) {
|
||
tree.deepMerge(path, list);
|
||
} else {
|
||
tree.set(path, list);
|
||
}
|
||
|
||
(0, _message.displayMessage)(tree, "Successfully synchronized your repository list");
|
||
tree.set(["repos", "loaded"], true);
|
||
})["catch"](function (error) {
|
||
(0, _message.displayMessage)(tree, "Failed to synchronize your repository list");
|
||
tree.set(["repos", "loaded"], true);
|
||
tree.set(["repos", "error"], error);
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Update the repository and if successful update the
|
||
* repository information into the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {Object} data - The repository updates.
|
||
*/
|
||
var updateRepository = exports.updateRepository = function updateRepository(tree, client, owner, name, data) {
|
||
client.updateRepo(owner, name, data).then(function (repo) {
|
||
tree.set(["repos", "data", repo.full_name], repo);
|
||
(0, _message.displayMessage)(tree, "Successfully updated the repository settings");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to update the repository settings");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Enables the repository and if successful update the
|
||
* repository active status in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
*/
|
||
var enableRepository = exports.enableRepository = function enableRepository(tree, client, owner, name) {
|
||
client.activateRepo(owner, name).then(function (result) {
|
||
(0, _message.displayMessage)(tree, "Successfully activated your repository");
|
||
tree.set(["repos", "data", result.full_name, "active"], true);
|
||
(0, _feed.fetchFeed)(tree, client);
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to activate your repository");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Disables the repository and if successful update the
|
||
* repository active status in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
*/
|
||
var disableRepository = exports.disableRepository = function disableRepository(tree, client, owner, name) {
|
||
client.deleteRepo(owner, name).then(function (result) {
|
||
(0, _message.displayMessage)(tree, "Successfully disabled your repository");
|
||
tree.set(["repos", "data", result.full_name, "active"], false);
|
||
(0, _feed.fetchFeed)(tree, client);
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to disabled your repository");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Compare two repositories by name.
|
||
*
|
||
* @param {Object} a - A repository.
|
||
* @param {Object} b - A repository.
|
||
* @returns {number}
|
||
*/
|
||
var compareRepository = exports.compareRepository = function compareRepository(a, b) {
|
||
if (a.full_name < b.full_name) return -1;
|
||
if (a.full_name > b.full_name) return 1;
|
||
return 0;
|
||
};
|
||
|
||
/**
|
||
* Returns the repository slug.
|
||
*
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The process name.
|
||
*/
|
||
var repositorySlug = exports.repositorySlug = function repositorySlug(owner, name) {
|
||
return owner + "/" + name;
|
||
};
|
||
|
||
/***/ }),
|
||
/* 24 */,
|
||
/* 25 */,
|
||
/* 26 */,
|
||
/* 27 */,
|
||
/* 28 */,
|
||
/* 29 */,
|
||
/* 30 */,
|
||
/* 31 */,
|
||
/* 32 */,
|
||
/* 33 */,
|
||
/* 34 */,
|
||
/* 35 */,
|
||
/* 36 */,
|
||
/* 37 */,
|
||
/* 38 */,
|
||
/* 39 */,
|
||
/* 40 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.TimelapseIcon = exports.TagIcon = exports.SyncIcon = exports.StarIcon = exports.ScheduleIcon = exports.RemoveIcon = exports.RefreshIcon = exports.PlayIcon = exports.PauseIcon = exports.MergeIcon = exports.MenuIcon = exports.LinkIcon = exports.LaunchIcon = exports.ExpandIcon = exports.DeployIcon = exports.CommitIcon = exports.ClockIcon = exports.CloseIcon = exports.CheckIcon = exports.BranchIcon = exports.BackIcon = undefined;
|
||
|
||
var _back = __webpack_require__(448);
|
||
|
||
var _back2 = _interopRequireDefault(_back);
|
||
|
||
var _branch = __webpack_require__(449);
|
||
|
||
var _branch2 = _interopRequireDefault(_branch);
|
||
|
||
var _check = __webpack_require__(450);
|
||
|
||
var _check2 = _interopRequireDefault(_check);
|
||
|
||
var _clock = __webpack_require__(451);
|
||
|
||
var _clock2 = _interopRequireDefault(_clock);
|
||
|
||
var _close = __webpack_require__(127);
|
||
|
||
var _close2 = _interopRequireDefault(_close);
|
||
|
||
var _commit = __webpack_require__(452);
|
||
|
||
var _commit2 = _interopRequireDefault(_commit);
|
||
|
||
var _deploy = __webpack_require__(453);
|
||
|
||
var _deploy2 = _interopRequireDefault(_deploy);
|
||
|
||
var _expand = __webpack_require__(454);
|
||
|
||
var _expand2 = _interopRequireDefault(_expand);
|
||
|
||
var _launch = __webpack_require__(455);
|
||
|
||
var _launch2 = _interopRequireDefault(_launch);
|
||
|
||
var _link = __webpack_require__(456);
|
||
|
||
var _link2 = _interopRequireDefault(_link);
|
||
|
||
var _menu = __webpack_require__(188);
|
||
|
||
var _menu2 = _interopRequireDefault(_menu);
|
||
|
||
var _merge = __webpack_require__(457);
|
||
|
||
var _merge2 = _interopRequireDefault(_merge);
|
||
|
||
var _pause = __webpack_require__(458);
|
||
|
||
var _pause2 = _interopRequireDefault(_pause);
|
||
|
||
var _play = __webpack_require__(459);
|
||
|
||
var _play2 = _interopRequireDefault(_play);
|
||
|
||
var _refresh = __webpack_require__(189);
|
||
|
||
var _refresh2 = _interopRequireDefault(_refresh);
|
||
|
||
var _remove = __webpack_require__(460);
|
||
|
||
var _remove2 = _interopRequireDefault(_remove);
|
||
|
||
var _schedule = __webpack_require__(461);
|
||
|
||
var _schedule2 = _interopRequireDefault(_schedule);
|
||
|
||
var _star = __webpack_require__(462);
|
||
|
||
var _star2 = _interopRequireDefault(_star);
|
||
|
||
var _sync = __webpack_require__(463);
|
||
|
||
var _sync2 = _interopRequireDefault(_sync);
|
||
|
||
var _tag = __webpack_require__(464);
|
||
|
||
var _tag2 = _interopRequireDefault(_tag);
|
||
|
||
var _timelapse = __webpack_require__(465);
|
||
|
||
var _timelapse2 = _interopRequireDefault(_timelapse);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
exports.BackIcon = _back2["default"];
|
||
exports.BranchIcon = _branch2["default"];
|
||
exports.CheckIcon = _check2["default"];
|
||
exports.CloseIcon = _close2["default"];
|
||
exports.ClockIcon = _clock2["default"];
|
||
exports.CommitIcon = _commit2["default"];
|
||
exports.DeployIcon = _deploy2["default"];
|
||
exports.ExpandIcon = _expand2["default"];
|
||
exports.LaunchIcon = _launch2["default"];
|
||
exports.LinkIcon = _link2["default"];
|
||
exports.MenuIcon = _menu2["default"];
|
||
exports.MergeIcon = _merge2["default"];
|
||
exports.PauseIcon = _pause2["default"];
|
||
exports.PlayIcon = _play2["default"];
|
||
exports.RefreshIcon = _refresh2["default"];
|
||
exports.RemoveIcon = _remove2["default"];
|
||
exports.ScheduleIcon = _schedule2["default"];
|
||
exports.StarIcon = _star2["default"];
|
||
exports.SyncIcon = _sync2["default"];
|
||
exports.TagIcon = _tag2["default"];
|
||
exports.TimelapseIcon = _timelapse2["default"];
|
||
|
||
/***/ }),
|
||
/* 41 */,
|
||
/* 42 */,
|
||
/* 43 */,
|
||
/* 44 */,
|
||
/* 45 */,
|
||
/* 46 */,
|
||
/* 47 */,
|
||
/* 48 */,
|
||
/* 49 */,
|
||
/* 50 */,
|
||
/* 51 */,
|
||
/* 52 */,
|
||
/* 53 */,
|
||
/* 54 */,
|
||
/* 55 */,
|
||
/* 56 */,
|
||
/* 57 */,
|
||
/* 58 */,
|
||
/* 59 */,
|
||
/* 60 */,
|
||
/* 61 */,
|
||
/* 62 */,
|
||
/* 63 */,
|
||
/* 64 */,
|
||
/* 65 */,
|
||
/* 66 */,
|
||
/* 67 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
/**
|
||
* Displays the global message.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {string} message - The message text.
|
||
*/
|
||
var displayMessage = exports.displayMessage = function displayMessage(tree, message) {
|
||
tree.set(["message", "text"], message);
|
||
|
||
setTimeout(function () {
|
||
hideMessage(tree);
|
||
}, 5000);
|
||
};
|
||
|
||
/**
|
||
* Hide the global message.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
*/
|
||
var hideMessage = exports.hideMessage = function hideMessage(tree) {
|
||
tree.unset(["message", "text"]);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 68 */,
|
||
/* 69 */,
|
||
/* 70 */,
|
||
/* 71 */,
|
||
/* 72 */,
|
||
/* 73 */,
|
||
/* 74 */,
|
||
/* 75 */,
|
||
/* 76 */,
|
||
/* 77 */,
|
||
/* 78 */,
|
||
/* 79 */,
|
||
/* 80 */,
|
||
/* 81 */,
|
||
/* 82 */,
|
||
/* 83 */,
|
||
/* 84 */,
|
||
/* 85 */,
|
||
/* 86 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.StatusText = exports.StatusLabel = exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _classnames = __webpack_require__(66);
|
||
|
||
var _classnames2 = _interopRequireDefault(_classnames);
|
||
|
||
var _status = __webpack_require__(87);
|
||
|
||
var _status2 = __webpack_require__(446);
|
||
|
||
var _status3 = _interopRequireDefault(_status2);
|
||
|
||
var _index = __webpack_require__(40);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var defaultIconSize = 15;
|
||
|
||
var statusLabel = function statusLabel(status) {
|
||
switch (status) {
|
||
case _status.STATUS_BLOCKED:
|
||
return "Pending Approval";
|
||
case _status.STATUS_DECLINED:
|
||
return "Declined";
|
||
case _status.STATUS_ERROR:
|
||
return "Error";
|
||
case _status.STATUS_FAILURE:
|
||
return "Failure";
|
||
case _status.STATUS_KILLED:
|
||
return "Cancelled";
|
||
case _status.STATUS_PENDING:
|
||
return "Pending";
|
||
case _status.STATUS_RUNNING:
|
||
return "Running";
|
||
case _status.STATUS_SKIPPED:
|
||
return "Skipped";
|
||
case _status.STATUS_STARTED:
|
||
return "Running";
|
||
case _status.STATUS_SUCCESS:
|
||
return "Successful";
|
||
default:
|
||
return "";
|
||
}
|
||
};
|
||
|
||
var renderIcon = function renderIcon(status, size) {
|
||
switch (status) {
|
||
case _status.STATUS_SKIPPED:
|
||
return _react2["default"].createElement(_index.RemoveIcon, { size: size });
|
||
case _status.STATUS_PENDING:
|
||
return _react2["default"].createElement(_index.ClockIcon, { size: size });
|
||
case _status.STATUS_RUNNING:
|
||
case _status.STATUS_STARTED:
|
||
return _react2["default"].createElement(_index.RefreshIcon, { size: size });
|
||
case _status.STATUS_SUCCESS:
|
||
return _react2["default"].createElement(_index.CheckIcon, { size: size });
|
||
default:
|
||
return _react2["default"].createElement(_index.CloseIcon, { size: size });
|
||
}
|
||
};
|
||
|
||
var Status = function (_Component) {
|
||
_inherits(Status, _Component);
|
||
|
||
function Status() {
|
||
_classCallCheck(this, Status);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Status.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.status !== nextProps.status;
|
||
};
|
||
|
||
Status.prototype.render = function render() {
|
||
var status = this.props.status;
|
||
|
||
var icon = renderIcon(status, defaultIconSize);
|
||
var classes = (0, _classnames2["default"])(_status3["default"].root, _status3["default"][status]);
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: classes },
|
||
icon
|
||
);
|
||
};
|
||
|
||
return Status;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = Status;
|
||
var StatusLabel = exports.StatusLabel = function StatusLabel(_ref) {
|
||
var status = _ref.status;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: (0, _classnames2["default"])(_status3["default"].label, _status3["default"][status]) },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
statusLabel(status)
|
||
)
|
||
);
|
||
};
|
||
|
||
var StatusText = exports.StatusText = function StatusText(_ref2) {
|
||
var status = _ref2.status,
|
||
text = _ref2.text;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{
|
||
className: (0, _classnames2["default"])(_status3["default"].label, _status3["default"][status]),
|
||
style: "text-transform: capitalize;padding: 5px 10px;"
|
||
},
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
text
|
||
)
|
||
);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 87 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
var STATUS_BLOCKED = "blocked";
|
||
var STATUS_DECLINED = "declined";
|
||
var STATUS_ERROR = "error";
|
||
var STATUS_FAILURE = "failure";
|
||
var STATUS_KILLED = "killed";
|
||
var STATUS_PENDING = "pending";
|
||
var STATUS_RUNNING = "running";
|
||
var STATUS_SKIPPED = "skipped";
|
||
var STATUS_STARTED = "started";
|
||
var STATUS_SUCCESS = "success";
|
||
|
||
exports.STATUS_BLOCKED = STATUS_BLOCKED;
|
||
exports.STATUS_DECLINED = STATUS_DECLINED;
|
||
exports.STATUS_ERROR = STATUS_ERROR;
|
||
exports.STATUS_FAILURE = STATUS_FAILURE;
|
||
exports.STATUS_KILLED = STATUS_KILLED;
|
||
exports.STATUS_PENDING = STATUS_PENDING;
|
||
exports.STATUS_RUNNING = STATUS_RUNNING;
|
||
exports.STATUS_SKIPPED = STATUS_SKIPPED;
|
||
exports.STATUS_SUCCESS = STATUS_SUCCESS;
|
||
exports.STATUS_STARTED = STATUS_STARTED;
|
||
|
||
/***/ }),
|
||
/* 88 */,
|
||
/* 89 */,
|
||
/* 90 */,
|
||
/* 91 */,
|
||
/* 92 */,
|
||
/* 93 */,
|
||
/* 94 */,
|
||
/* 95 */,
|
||
/* 96 */,
|
||
/* 97 */,
|
||
/* 98 */,
|
||
/* 99 */,
|
||
/* 100 */,
|
||
/* 101 */,
|
||
/* 102 */,
|
||
/* 103 */,
|
||
/* 104 */,
|
||
/* 105 */,
|
||
/* 106 */,
|
||
/* 107 */,
|
||
/* 108 */,
|
||
/* 109 */,
|
||
/* 110 */,
|
||
/* 111 */,
|
||
/* 112 */,
|
||
/* 113 */,
|
||
/* 114 */,
|
||
/* 115 */,
|
||
/* 116 */,
|
||
/* 117 */,
|
||
/* 118 */,
|
||
/* 119 */,
|
||
/* 120 */,
|
||
/* 121 */,
|
||
/* 122 */,
|
||
/* 123 */,
|
||
/* 124 */,
|
||
/* 125 */,
|
||
/* 126 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.fetchFeedOnce = fetchFeedOnce;
|
||
exports.subscribeToFeedOnce = subscribeToFeedOnce;
|
||
/**
|
||
* Get the event feed and store the results in the
|
||
* state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
*/
|
||
var fetchFeed = exports.fetchFeed = function fetchFeed(tree, client) {
|
||
client.getBuildFeed({ latest: true }).then(function (results) {
|
||
var list = {};
|
||
var sorted = results.sort(compareFeedItem);
|
||
sorted.map(function (repo) {
|
||
list[repo.full_name] = repo;
|
||
});
|
||
if (sorted && sorted.length > 0) {
|
||
tree.set(["feed", "latest"], sorted[0]);
|
||
}
|
||
tree.set(["feed", "loaded"], true);
|
||
tree.set(["feed", "data"], list);
|
||
})["catch"](function (error) {
|
||
tree.set(["feed", "loaded"], true);
|
||
tree.set(["feed", "error"], error);
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Ensures the fetchFeed function is invoked exactly once.
|
||
* TODO replace this with a decorator
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
*/
|
||
function fetchFeedOnce(tree, client) {
|
||
if (fetchFeedOnce.fired) {
|
||
return;
|
||
}
|
||
fetchFeedOnce.fired = true;
|
||
return fetchFeed(tree, client);
|
||
}
|
||
|
||
/**
|
||
* Subscribes to the server-side event feed and synchonizes
|
||
* event data with the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
*/
|
||
var subscribeToFeed = exports.subscribeToFeed = function subscribeToFeed(tree, client) {
|
||
return client.on(function (data) {
|
||
var repo = data.repo,
|
||
build = data.build;
|
||
|
||
|
||
if (tree.exists("feed", "data", repo.full_name)) {
|
||
var cursor = tree.select(["feed", "data", repo.full_name]);
|
||
cursor.merge(build);
|
||
}
|
||
|
||
if (tree.exists("builds", "data", repo.full_name)) {
|
||
tree.set(["builds", "data", repo.full_name, build.number], build);
|
||
}
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Ensures the subscribeToFeed function is invoked exactly once.
|
||
* TODO replace this with a decorator
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
*/
|
||
function subscribeToFeedOnce(tree, client) {
|
||
if (subscribeToFeedOnce.fired) {
|
||
return;
|
||
}
|
||
subscribeToFeedOnce.fired = true;
|
||
return subscribeToFeed(tree, client);
|
||
}
|
||
|
||
/**
|
||
* Compare two feed items by name.
|
||
* @param {Object} a - A feed item.
|
||
* @param {Object} b - A feed item.
|
||
* @returns {number}
|
||
*/
|
||
var compareFeedItem = exports.compareFeedItem = function compareFeedItem(a, b) {
|
||
return (b.started_at || b.created_at || -1) - (a.started_at || a.created_at || -1);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 127 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var CloseIcon = function (_Component) {
|
||
_inherits(CloseIcon, _Component);
|
||
|
||
function CloseIcon() {
|
||
_classCallCheck(this, CloseIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
CloseIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }),
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
||
);
|
||
};
|
||
|
||
return CloseIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = CloseIcon;
|
||
|
||
/***/ }),
|
||
/* 128 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _index = __webpack_require__(40);
|
||
|
||
var _reactTimeago = __webpack_require__(190);
|
||
|
||
var _reactTimeago2 = _interopRequireDefault(_reactTimeago);
|
||
|
||
var _duration = __webpack_require__(468);
|
||
|
||
var _duration2 = _interopRequireDefault(_duration);
|
||
|
||
var _build_time = __webpack_require__(469);
|
||
|
||
var _build_time2 = _interopRequireDefault(_build_time);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Runtime = function (_Component) {
|
||
_inherits(Runtime, _Component);
|
||
|
||
function Runtime() {
|
||
_classCallCheck(this, Runtime);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Runtime.prototype.render = function render() {
|
||
var _props = this.props,
|
||
start = _props.start,
|
||
finish = _props.finish;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _build_time2["default"].host },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _build_time2["default"].row },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_index.ScheduleIcon, null)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
start ? _react2["default"].createElement(_reactTimeago2["default"], { date: start * 1000 }) : _react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"--"
|
||
)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _build_time2["default"].row },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_index.TimelapseIcon, null)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
finish ? _react2["default"].createElement(_duration2["default"], { start: start, finished: finish }) : start ? _react2["default"].createElement(_reactTimeago2["default"], { date: start * 1000 }) : _react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"--"
|
||
)
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
return Runtime;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = Runtime;
|
||
|
||
/***/ }),
|
||
/* 129 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.assertBuildMatrix = exports.assertBuildFinished = exports.compareBuild = exports.declineBuild = exports.approveBuild = exports.restartBuild = exports.cancelBuild = exports.fetchBuildList = exports.fetchBuild = undefined;
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _message = __webpack_require__(67);
|
||
|
||
var _status = __webpack_require__(87);
|
||
|
||
/**
|
||
* Gets the build for the named repository and stores
|
||
* the results in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {number|string} number - The build number.
|
||
*/
|
||
var fetchBuild = exports.fetchBuild = function fetchBuild(tree, client, owner, name, number) {
|
||
var slug = (0, _repository.repositorySlug)(owner, name);
|
||
|
||
tree.unset(["builds", "loaded"]);
|
||
client.getBuild(owner, name, number).then(function (build) {
|
||
var path = ["builds", "data", slug, build.number];
|
||
|
||
if (tree.exists(path)) {
|
||
tree.deepMerge(path, build);
|
||
} else {
|
||
tree.set(path, build);
|
||
}
|
||
|
||
tree.set(["builds", "loaded"], true);
|
||
})["catch"](function (error) {
|
||
tree.set(["builds", "loaded"], true);
|
||
tree.set(["builds", "error"], error);
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Gets the build list for the named repository and
|
||
* stores the results in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
*/
|
||
var fetchBuildList = exports.fetchBuildList = function fetchBuildList(tree, client, owner, name) {
|
||
var page = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
||
|
||
var slug = (0, _repository.repositorySlug)(owner, name);
|
||
|
||
tree.unset(["builds", "loaded"]);
|
||
tree.unset(["builds", "error"]);
|
||
|
||
client.getBuildList(owner, name, { page: page }).then(function (results) {
|
||
var list = {};
|
||
results.map(function (build) {
|
||
list[build.number] = build;
|
||
});
|
||
|
||
var path = ["builds", "data", slug];
|
||
if (tree.exists(path)) {
|
||
tree.deepMerge(path, list);
|
||
} else {
|
||
tree.set(path, list);
|
||
}
|
||
|
||
tree.unset(["builds", "error"]);
|
||
tree.set(["builds", "loaded"], true);
|
||
})["catch"](function (error) {
|
||
tree.set(["builds", "error"], error);
|
||
tree.set(["builds", "loaded"], true);
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Cancels the build.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {number} build - The build number.
|
||
* @param {number} proc - The process number.
|
||
*/
|
||
var cancelBuild = exports.cancelBuild = function cancelBuild(tree, client, owner, repo, build, proc) {
|
||
client.cancelBuild(owner, repo, build, proc).then(function (result) {
|
||
(0, _message.displayMessage)(tree, "Successfully cancelled your build");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to cancel your build");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Restarts the build.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {number} build - The build number.
|
||
*/
|
||
var restartBuild = exports.restartBuild = function restartBuild(tree, client, owner, repo, build) {
|
||
client.restartBuild(owner, repo, build, { fork: true }).then(function (result) {
|
||
(0, _message.displayMessage)(tree, "Successfully restarted your build");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to restart your build");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Approves the blocked build.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {number} build - The build number.
|
||
*/
|
||
var approveBuild = exports.approveBuild = function approveBuild(tree, client, owner, repo, build) {
|
||
client.approveBuild(owner, repo, build).then(function (result) {
|
||
(0, _message.displayMessage)(tree, "Successfully processed your approval decision");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to process your approval decision");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Declines the blocked build.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {number} build - The build number.
|
||
*/
|
||
var declineBuild = exports.declineBuild = function declineBuild(tree, client, owner, repo, build) {
|
||
client.declineBuild(owner, repo, build).then(function (result) {
|
||
(0, _message.displayMessage)(tree, "Successfully processed your decline decision");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to process your decline decision");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Compare two builds by number.
|
||
*
|
||
* @param {Object} a - A build.
|
||
* @param {Object} b - A build.
|
||
* @returns {number}
|
||
*/
|
||
var compareBuild = exports.compareBuild = function compareBuild(a, b) {
|
||
return b.number - a.number;
|
||
};
|
||
|
||
/**
|
||
* Returns true if the build is in a penidng or running state.
|
||
*
|
||
* @param {Object} build - The build object.
|
||
* @returns {boolean}
|
||
*/
|
||
var assertBuildFinished = exports.assertBuildFinished = function assertBuildFinished(build) {
|
||
return build.status !== _status.STATUS_RUNNING && build.status !== _status.STATUS_PENDING;
|
||
};
|
||
|
||
/**
|
||
* Returns true if the build is a matrix.
|
||
*
|
||
* @param {Object} build - The build object.
|
||
* @returns {boolean}
|
||
*/
|
||
var assertBuildMatrix = exports.assertBuildMatrix = function assertBuildMatrix(build) {
|
||
return build && build.procs && build.procs.length > 1;
|
||
};
|
||
|
||
/***/ }),
|
||
/* 130 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = exports.BACK_BUTTON = exports.SEPARATOR = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _index = __webpack_require__(40);
|
||
|
||
var _breadcrumb = __webpack_require__(522);
|
||
|
||
var _breadcrumb2 = _interopRequireDefault(_breadcrumb);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
// breadcrumb separater icon.
|
||
var SEPARATOR = exports.SEPARATOR = _react2["default"].createElement(_index.ExpandIcon, { size: 18, className: _breadcrumb2["default"].separator });
|
||
|
||
// breadcrumb back button.
|
||
var BACK_BUTTON = exports.BACK_BUTTON = _react2["default"].createElement(_index.BackIcon, { size: 18, className: _breadcrumb2["default"].back });
|
||
|
||
// helper function to render a list item.
|
||
var renderItem = function renderItem(element, index) {
|
||
return _react2["default"].createElement(
|
||
"li",
|
||
{ key: index },
|
||
element
|
||
);
|
||
};
|
||
|
||
var Breadcrumb = function (_Component) {
|
||
_inherits(Breadcrumb, _Component);
|
||
|
||
function Breadcrumb() {
|
||
_classCallCheck(this, Breadcrumb);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Breadcrumb.prototype.render = function render() {
|
||
var elements = this.props.elements;
|
||
|
||
return _react2["default"].createElement(
|
||
"ol",
|
||
{ className: _breadcrumb2["default"].breadcrumb },
|
||
elements.map(renderItem)
|
||
);
|
||
};
|
||
|
||
return Breadcrumb;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = Breadcrumb;
|
||
|
||
/***/ }),
|
||
/* 131 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.assertProcRunning = exports.assertProcFinished = exports.findChildProcess = undefined;
|
||
|
||
var _status = __webpack_require__(87);
|
||
|
||
/**
|
||
* Returns a process from the process tree with the
|
||
* matching process number.
|
||
*
|
||
* @param {Object} procs - The process tree.
|
||
* @param {number|string} pid - The process number.
|
||
* @returns {Object}
|
||
*/
|
||
var findChildProcess = exports.findChildProcess = function findChildProcess(tree, pid) {
|
||
for (var i = 0; i < tree.length; i++) {
|
||
var parent = tree[i];
|
||
// eslint-disable-next-line
|
||
if (parent.pid == pid) {
|
||
return parent;
|
||
}
|
||
for (var ii = 0; ii < parent.children.length; ii++) {
|
||
var child = parent.children[ii];
|
||
// eslint-disable-next-line
|
||
if (child.pid == pid) {
|
||
return child;
|
||
}
|
||
}
|
||
}
|
||
};
|
||
|
||
/**
|
||
* Returns true if the process is in a completed state.
|
||
*
|
||
* @param {Object} proc - The process object.
|
||
* @returns {boolean}
|
||
*/
|
||
var assertProcFinished = exports.assertProcFinished = function assertProcFinished(proc) {
|
||
return proc.state !== _status.STATUS_RUNNING && proc.state !== _status.STATUS_PENDING;
|
||
};
|
||
|
||
/**
|
||
* Returns true if the process is running.
|
||
*
|
||
* @param {Object} proc - The process object.
|
||
* @returns {boolean}
|
||
*/
|
||
var assertProcRunning = exports.assertProcRunning = function assertProcRunning(proc) {
|
||
return proc.state === _status.STATUS_RUNNING;
|
||
};
|
||
|
||
/***/ }),
|
||
/* 132 */,
|
||
/* 133 */,
|
||
/* 134 */,
|
||
/* 135 */,
|
||
/* 136 */,
|
||
/* 137 */,
|
||
/* 138 */,
|
||
/* 139 */,
|
||
/* 140 */,
|
||
/* 141 */,
|
||
/* 142 */,
|
||
/* 143 */,
|
||
/* 144 */,
|
||
/* 145 */,
|
||
/* 146 */,
|
||
/* 147 */,
|
||
/* 148 */,
|
||
/* 149 */,
|
||
/* 150 */,
|
||
/* 151 */,
|
||
/* 152 */,
|
||
/* 153 */,
|
||
/* 154 */,
|
||
/* 155 */,
|
||
/* 156 */,
|
||
/* 157 */,
|
||
/* 158 */,
|
||
/* 159 */,
|
||
/* 160 */,
|
||
/* 161 */,
|
||
/* 162 */,
|
||
/* 163 */,
|
||
/* 164 */,
|
||
/* 165 */,
|
||
/* 166 */,
|
||
/* 167 */,
|
||
/* 168 */,
|
||
/* 169 */,
|
||
/* 170 */,
|
||
/* 171 */,
|
||
/* 172 */,
|
||
/* 173 */,
|
||
/* 174 */,
|
||
/* 175 */,
|
||
/* 176 */,
|
||
/* 177 */,
|
||
/* 178 */,
|
||
/* 179 */,
|
||
/* 180 */,
|
||
/* 181 */,
|
||
/* 182 */,
|
||
/* 183 */,
|
||
/* 184 */,
|
||
/* 185 */,
|
||
/* 186 */,
|
||
/* 187 */,
|
||
/* 188 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var MenuIcon = function (_Component) {
|
||
_inherits(MenuIcon, _Component);
|
||
|
||
function MenuIcon() {
|
||
_classCallCheck(this, MenuIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
MenuIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
||
_react2["default"].createElement("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })
|
||
);
|
||
};
|
||
|
||
return MenuIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = MenuIcon;
|
||
|
||
/***/ }),
|
||
/* 189 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var RefreshIcon = function (_Component) {
|
||
_inherits(RefreshIcon, _Component);
|
||
|
||
function RefreshIcon() {
|
||
_classCallCheck(this, RefreshIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
RefreshIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }),
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
||
);
|
||
};
|
||
|
||
return RefreshIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = RefreshIcon;
|
||
|
||
/***/ }),
|
||
/* 190 */,
|
||
/* 191 */,
|
||
/* 192 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
var EVENT_DEPLOY = "deployment";
|
||
var EVENT_PULL_REQUEST = "pull_request";
|
||
var EVENT_PUSH = "push";
|
||
var EVENT_TAG = "tag";
|
||
|
||
exports.EVENT_DEPLOY = EVENT_DEPLOY;
|
||
exports.EVENT_PULL_REQUEST = EVENT_PULL_REQUEST;
|
||
exports.EVENT_PUSH = EVENT_PUSH;
|
||
exports.EVENT_TAG = EVENT_TAG;
|
||
|
||
/***/ }),
|
||
/* 193 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _index = __webpack_require__(40);
|
||
|
||
var _events = __webpack_require__(192);
|
||
|
||
var _build_event = __webpack_require__(508);
|
||
|
||
var _build_event2 = _interopRequireDefault(_build_event);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var BuildEvent = function (_Component) {
|
||
_inherits(BuildEvent, _Component);
|
||
|
||
function BuildEvent() {
|
||
_classCallCheck(this, BuildEvent);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
BuildEvent.prototype.render = function render() {
|
||
var _props = this.props,
|
||
event = _props.event,
|
||
branch = _props.branch,
|
||
commit = _props.commit,
|
||
refs = _props.refs,
|
||
refspec = _props.refspec,
|
||
link = _props.link,
|
||
target = _props.target;
|
||
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _build_event2["default"].host },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _build_event2["default"].row },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_index.CommitIcon, null)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
commit && commit.substr(0, 10)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _build_event2["default"].row },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
event === _events.EVENT_TAG ? _react2["default"].createElement(_index.TagIcon, null) : event === _events.EVENT_PULL_REQUEST ? _react2["default"].createElement(_index.MergeIcon, null) : event === _events.EVENT_DEPLOY ? _react2["default"].createElement(_index.DeployIcon, null) : _react2["default"].createElement(_index.BranchIcon, null)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
event === _events.EVENT_TAG && refs ? trimTagRef(refs) : event === _events.EVENT_PULL_REQUEST && refspec ? trimMergeRef(refs) : event === _events.EVENT_DEPLOY && target ? target : branch
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"a",
|
||
{ href: link, target: "_blank" },
|
||
_react2["default"].createElement(_index.LaunchIcon, null)
|
||
)
|
||
);
|
||
};
|
||
|
||
return BuildEvent;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = BuildEvent;
|
||
|
||
|
||
var trimMergeRef = function trimMergeRef(ref) {
|
||
return ref.match(/\d/g) || ref;
|
||
};
|
||
|
||
var trimTagRef = function trimTagRef(ref) {
|
||
return ref.startsWith("refs/tags/") ? ref.substr(10) : ref;
|
||
};
|
||
|
||
// push
|
||
// pull request (ref)
|
||
// tag (ref)
|
||
// deploy
|
||
|
||
/***/ }),
|
||
/* 194 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _sync = __webpack_require__(530);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
return {
|
||
feed: ["feed"],
|
||
user: ["user", "data"],
|
||
syncing: ["user", "syncing"]
|
||
};
|
||
};
|
||
|
||
var RedirectRoot = (_dec = (0, _higherOrder.branch)(binding), _dec(_class = function (_Component) {
|
||
_inherits(RedirectRoot, _Component);
|
||
|
||
function RedirectRoot() {
|
||
_classCallCheck(this, RedirectRoot);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
RedirectRoot.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
||
var user = nextProps.user;
|
||
|
||
if (!user && window) {
|
||
window.location.href = "/login?url=" + window.location.href;
|
||
}
|
||
};
|
||
|
||
RedirectRoot.prototype.render = function render() {
|
||
var _props = this.props,
|
||
user = _props.user,
|
||
syncing = _props.syncing;
|
||
var _props$feed = this.props.feed,
|
||
latest = _props$feed.latest,
|
||
loaded = _props$feed.loaded;
|
||
|
||
|
||
return !loaded && syncing ? _react2["default"].createElement(_sync.Message, null) : !loaded ? undefined : !user ? undefined : !latest ? _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/account/repos" }) : !latest.number ? _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/" + latest.full_name }) : _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/" + latest.full_name + "/" + latest.number });
|
||
};
|
||
|
||
return RedirectRoot;
|
||
}(_react.Component)) || _class);
|
||
exports["default"] = RedirectRoot;
|
||
|
||
/***/ }),
|
||
/* 195 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _propTypes = __webpack_require__(12);
|
||
|
||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||
|
||
var _menu = __webpack_require__(535);
|
||
|
||
var _menu2 = _interopRequireDefault(_menu);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Menu = function (_Component) {
|
||
_inherits(Menu, _Component);
|
||
|
||
function Menu() {
|
||
var _temp, _this, _ret;
|
||
|
||
_classCallCheck(this, Menu);
|
||
|
||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||
args[_key] = arguments[_key];
|
||
}
|
||
|
||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.propTypes = { items: _propTypes2["default"].array, right: _propTypes2["default"].any }, _temp), _possibleConstructorReturn(_this, _ret);
|
||
}
|
||
|
||
Menu.prototype.render = function render() {
|
||
var items = this.props.items;
|
||
var right = this.props.right ? _react2["default"].createElement(
|
||
"div",
|
||
{ className: _menu2["default"].right },
|
||
this.props.right
|
||
) : null;
|
||
return _react2["default"].createElement(
|
||
"section",
|
||
{ className: _menu2["default"].root },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _menu2["default"].left },
|
||
items.map(function (i) {
|
||
return _react2["default"].createElement(
|
||
_reactRouterDom.NavLink,
|
||
{
|
||
key: i.to + i.label,
|
||
to: i.to,
|
||
exact: true,
|
||
activeClassName: _menu2["default"]["link-active"]
|
||
},
|
||
i.label
|
||
);
|
||
})
|
||
),
|
||
right
|
||
);
|
||
};
|
||
|
||
return Menu;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = Menu;
|
||
|
||
/***/ }),
|
||
/* 196 */,
|
||
/* 197 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _menu = __webpack_require__(195);
|
||
|
||
var _menu2 = _interopRequireDefault(_menu);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var RepoMenu = function (_Component) {
|
||
_inherits(RepoMenu, _Component);
|
||
|
||
function RepoMenu() {
|
||
_classCallCheck(this, RepoMenu);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
RepoMenu.prototype.render = function render() {
|
||
var _props$match$params = this.props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo;
|
||
|
||
var menu = [{ to: "/" + owner + "/" + repo, label: "Builds" }, { to: "/" + owner + "/" + repo + "/settings/secrets", label: "Secrets" }, { to: "/" + owner + "/" + repo + "/settings/registry", label: "Registry" }, { to: "/" + owner + "/" + repo + "/settings", label: "Settings" }];
|
||
return _react2["default"].createElement(_menu2["default"], _extends({ items: menu }, this.props));
|
||
};
|
||
|
||
return RepoMenu;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = RepoMenu;
|
||
|
||
/***/ }),
|
||
/* 198 */,
|
||
/* 199 */,
|
||
/* 200 */,
|
||
/* 201 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
__webpack_require__(133);
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactDom = __webpack_require__(1);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
var root = void 0;
|
||
|
||
function init() {
|
||
var App = __webpack_require__(406)["default"];
|
||
root = (0, _reactDom.render)(_react2["default"].createElement(App, null), document.body, root);
|
||
}
|
||
|
||
init();
|
||
|
||
if (false) module.hot.accept("./screens/drone", init);
|
||
|
||
/***/ }),
|
||
/* 202 */,
|
||
/* 203 */,
|
||
/* 204 */,
|
||
/* 205 */,
|
||
/* 206 */,
|
||
/* 207 */,
|
||
/* 208 */,
|
||
/* 209 */,
|
||
/* 210 */,
|
||
/* 211 */,
|
||
/* 212 */,
|
||
/* 213 */,
|
||
/* 214 */,
|
||
/* 215 */,
|
||
/* 216 */,
|
||
/* 217 */,
|
||
/* 218 */,
|
||
/* 219 */,
|
||
/* 220 */,
|
||
/* 221 */,
|
||
/* 222 */,
|
||
/* 223 */,
|
||
/* 224 */,
|
||
/* 225 */,
|
||
/* 226 */,
|
||
/* 227 */,
|
||
/* 228 */,
|
||
/* 229 */,
|
||
/* 230 */,
|
||
/* 231 */,
|
||
/* 232 */,
|
||
/* 233 */,
|
||
/* 234 */,
|
||
/* 235 */,
|
||
/* 236 */,
|
||
/* 237 */,
|
||
/* 238 */,
|
||
/* 239 */,
|
||
/* 240 */,
|
||
/* 241 */,
|
||
/* 242 */,
|
||
/* 243 */,
|
||
/* 244 */,
|
||
/* 245 */,
|
||
/* 246 */,
|
||
/* 247 */,
|
||
/* 248 */,
|
||
/* 249 */,
|
||
/* 250 */,
|
||
/* 251 */,
|
||
/* 252 */,
|
||
/* 253 */,
|
||
/* 254 */,
|
||
/* 255 */,
|
||
/* 256 */,
|
||
/* 257 */,
|
||
/* 258 */,
|
||
/* 259 */,
|
||
/* 260 */,
|
||
/* 261 */,
|
||
/* 262 */,
|
||
/* 263 */,
|
||
/* 264 */,
|
||
/* 265 */,
|
||
/* 266 */,
|
||
/* 267 */,
|
||
/* 268 */,
|
||
/* 269 */,
|
||
/* 270 */,
|
||
/* 271 */,
|
||
/* 272 */,
|
||
/* 273 */,
|
||
/* 274 */,
|
||
/* 275 */,
|
||
/* 276 */,
|
||
/* 277 */,
|
||
/* 278 */,
|
||
/* 279 */,
|
||
/* 280 */,
|
||
/* 281 */,
|
||
/* 282 */,
|
||
/* 283 */,
|
||
/* 284 */,
|
||
/* 285 */,
|
||
/* 286 */,
|
||
/* 287 */,
|
||
/* 288 */,
|
||
/* 289 */,
|
||
/* 290 */,
|
||
/* 291 */,
|
||
/* 292 */,
|
||
/* 293 */,
|
||
/* 294 */,
|
||
/* 295 */,
|
||
/* 296 */,
|
||
/* 297 */,
|
||
/* 298 */,
|
||
/* 299 */,
|
||
/* 300 */,
|
||
/* 301 */,
|
||
/* 302 */,
|
||
/* 303 */,
|
||
/* 304 */,
|
||
/* 305 */,
|
||
/* 306 */,
|
||
/* 307 */,
|
||
/* 308 */,
|
||
/* 309 */,
|
||
/* 310 */,
|
||
/* 311 */,
|
||
/* 312 */,
|
||
/* 313 */,
|
||
/* 314 */,
|
||
/* 315 */,
|
||
/* 316 */,
|
||
/* 317 */,
|
||
/* 318 */,
|
||
/* 319 */,
|
||
/* 320 */,
|
||
/* 321 */,
|
||
/* 322 */,
|
||
/* 323 */,
|
||
/* 324 */,
|
||
/* 325 */,
|
||
/* 326 */,
|
||
/* 327 */,
|
||
/* 328 */,
|
||
/* 329 */,
|
||
/* 330 */,
|
||
/* 331 */,
|
||
/* 332 */,
|
||
/* 333 */,
|
||
/* 334 */,
|
||
/* 335 */,
|
||
/* 336 */,
|
||
/* 337 */,
|
||
/* 338 */,
|
||
/* 339 */,
|
||
/* 340 */,
|
||
/* 341 */,
|
||
/* 342 */,
|
||
/* 343 */,
|
||
/* 344 */,
|
||
/* 345 */,
|
||
/* 346 */,
|
||
/* 347 */,
|
||
/* 348 */,
|
||
/* 349 */,
|
||
/* 350 */,
|
||
/* 351 */,
|
||
/* 352 */,
|
||
/* 353 */,
|
||
/* 354 */,
|
||
/* 355 */,
|
||
/* 356 */,
|
||
/* 357 */,
|
||
/* 358 */,
|
||
/* 359 */,
|
||
/* 360 */,
|
||
/* 361 */,
|
||
/* 362 */,
|
||
/* 363 */,
|
||
/* 364 */,
|
||
/* 365 */,
|
||
/* 366 */,
|
||
/* 367 */,
|
||
/* 368 */,
|
||
/* 369 */,
|
||
/* 370 */,
|
||
/* 371 */,
|
||
/* 372 */,
|
||
/* 373 */,
|
||
/* 374 */,
|
||
/* 375 */,
|
||
/* 376 */,
|
||
/* 377 */,
|
||
/* 378 */,
|
||
/* 379 */,
|
||
/* 380 */,
|
||
/* 381 */,
|
||
/* 382 */,
|
||
/* 383 */,
|
||
/* 384 */,
|
||
/* 385 */,
|
||
/* 386 */,
|
||
/* 387 */,
|
||
/* 388 */,
|
||
/* 389 */,
|
||
/* 390 */,
|
||
/* 391 */,
|
||
/* 392 */,
|
||
/* 393 */,
|
||
/* 394 */,
|
||
/* 395 */,
|
||
/* 396 */,
|
||
/* 397 */,
|
||
/* 398 */,
|
||
/* 399 */,
|
||
/* 400 */,
|
||
/* 401 */,
|
||
/* 402 */,
|
||
/* 403 */,
|
||
/* 404 */,
|
||
/* 405 */,
|
||
/* 406 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _state = __webpack_require__(409);
|
||
|
||
var _state2 = _interopRequireDefault(_state);
|
||
|
||
var _client = __webpack_require__(410);
|
||
|
||
var _client2 = _interopRequireDefault(_client);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _screens = __webpack_require__(411);
|
||
|
||
var _titles = __webpack_require__(420);
|
||
|
||
var _titles2 = _interopRequireDefault(_titles);
|
||
|
||
var _layout = __webpack_require__(441);
|
||
|
||
var _layout2 = _interopRequireDefault(_layout);
|
||
|
||
var _redirect = __webpack_require__(194);
|
||
|
||
var _redirect2 = _interopRequireDefault(_redirect);
|
||
|
||
var _feed = __webpack_require__(126);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _drone = __webpack_require__(579);
|
||
|
||
var _drone2 = _interopRequireDefault(_drone);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
// eslint-disable-next-line no-unused-vars
|
||
|
||
|
||
if (false) {
|
||
require("preact/devtools");
|
||
}
|
||
|
||
var App = function (_Component) {
|
||
_inherits(App, _Component);
|
||
|
||
function App() {
|
||
_classCallCheck(this, App);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
App.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
_reactRouterDom.BrowserRouter,
|
||
null,
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_titles2["default"], null),
|
||
_react2["default"].createElement(
|
||
_reactRouterDom.Switch,
|
||
null,
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: true, component: _redirect2["default"] }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/login/error", exact: true, component: _screens.LoginError }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: false, component: _layout2["default"] })
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
return App;
|
||
}(_react.Component);
|
||
|
||
if (_state2["default"].exists(["user", "data"])) {
|
||
(0, _feed.fetchFeedOnce)(_state2["default"], _client2["default"]);
|
||
(0, _feed.subscribeToFeedOnce)(_state2["default"], _client2["default"]);
|
||
}
|
||
|
||
_client2["default"].onerror = function (error) {
|
||
console.error(error);
|
||
if (error.status === 401) {
|
||
_state2["default"].unset(["user", "data"]);
|
||
}
|
||
};
|
||
|
||
exports["default"] = (0, _higherOrder.root)(_state2["default"], (0, _inject.drone)(_client2["default"], App));
|
||
|
||
/***/ }),
|
||
/* 407 */,
|
||
/* 408 */,
|
||
/* 409 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
|
||
var _baobab = __webpack_require__(62);
|
||
|
||
var _baobab2 = _interopRequireDefault(_baobab);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
var user = window.DRONE_USER;
|
||
var sync = window.DRONE_SYNC;
|
||
|
||
var state = {
|
||
follow: false,
|
||
language: "en-US",
|
||
|
||
user: {
|
||
data: user,
|
||
error: undefined,
|
||
loaded: true,
|
||
syncing: sync
|
||
},
|
||
|
||
feed: {
|
||
loaded: false,
|
||
error: undefined,
|
||
data: {}
|
||
},
|
||
|
||
repos: {
|
||
loaded: false,
|
||
error: undefined,
|
||
data: {}
|
||
},
|
||
|
||
secrets: {
|
||
loaded: false,
|
||
error: undefined,
|
||
data: {}
|
||
},
|
||
|
||
registry: {
|
||
error: undefined,
|
||
loaded: false,
|
||
data: {}
|
||
},
|
||
|
||
builds: {
|
||
loaded: false,
|
||
error: undefined,
|
||
data: {}
|
||
},
|
||
|
||
logs: {
|
||
follow: false,
|
||
loading: true,
|
||
error: false,
|
||
data: {}
|
||
},
|
||
|
||
token: {
|
||
value: undefined,
|
||
error: undefined,
|
||
loading: false
|
||
},
|
||
|
||
message: {
|
||
show: false,
|
||
text: undefined,
|
||
error: false
|
||
},
|
||
|
||
location: {
|
||
protocol: window.location.protocol,
|
||
host: window.location.host
|
||
}
|
||
};
|
||
|
||
var tree = new _baobab2["default"](state);
|
||
|
||
if (window) {
|
||
window.tree = tree;
|
||
}
|
||
|
||
exports["default"] = tree;
|
||
|
||
/***/ }),
|
||
/* 410 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
|
||
var _droneJs = __webpack_require__(172);
|
||
|
||
var _droneJs2 = _interopRequireDefault(_droneJs);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
exports["default"] = _droneJs2["default"].fromWindow();
|
||
|
||
/***/ }),
|
||
/* 411 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.LoginError = undefined;
|
||
|
||
var _error = __webpack_require__(412);
|
||
|
||
var _error2 = _interopRequireDefault(_error);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
exports.LoginError = _error2["default"];
|
||
|
||
/***/ }),
|
||
/* 412 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _queryString = __webpack_require__(173);
|
||
|
||
var _queryString2 = _interopRequireDefault(_queryString);
|
||
|
||
var _report = __webpack_require__(416);
|
||
|
||
var _report2 = _interopRequireDefault(_report);
|
||
|
||
var _index = __webpack_require__(417);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var DEFAULT_ERROR = "The system failed to process your Login request.";
|
||
|
||
var Error = function (_Component) {
|
||
_inherits(Error, _Component);
|
||
|
||
function Error() {
|
||
_classCallCheck(this, Error);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Error.prototype.render = function render() {
|
||
var parsed = _queryString2["default"].parse(window.location.search);
|
||
var error = DEFAULT_ERROR;
|
||
|
||
switch (parsed.code || parsed.error) {
|
||
case "oauth_error":
|
||
break;
|
||
case "access_denied":
|
||
break;
|
||
}
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].root },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].alert },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_report2["default"], null)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
error
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
return Error;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = Error;
|
||
|
||
/***/ }),
|
||
/* 413 */,
|
||
/* 414 */,
|
||
/* 415 */,
|
||
/* 416 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var ReportIcon = function (_Component) {
|
||
_inherits(ReportIcon, _Component);
|
||
|
||
function ReportIcon() {
|
||
_classCallCheck(this, ReportIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
ReportIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{ className: this.props.className, viewBox: "0 0 24 24" },
|
||
_react2["default"].createElement("path", { d: "M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z" }),
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
||
);
|
||
};
|
||
|
||
return ReportIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = ReportIcon;
|
||
|
||
/***/ }),
|
||
/* 417 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(418);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 418 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__root___3uuMg {\n box-sizing: border-box;\n margin: 50px auto;\n max-width: 400px;\n min-width: 400px;\n padding: 30px;\n}\n.index__root___3uuMg .index__alert___2Yfk1 {\n background: #fdb835;\n color: #ffffff;\n display: flex;\n margin-bottom: 20px;\n padding: 20px;\n text-align: left;\n}\n.index__root___3uuMg .index__alert___2Yfk1 > :last-child {\n font-family: 'Roboto';\n font-size: 15px;\n line-height: 20px;\n padding-left: 10px;\n padding-top: 2px;\n}\n.index__root___3uuMg svg {\n fill: #ffffff;\n height: 26px;\n width: 26px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "index__root___3uuMg",
|
||
"alert": "index__alert___2Yfk1"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 419 */
|
||
/***/ (function(module, exports) {
|
||
|
||
|
||
/**
|
||
* When source maps are enabled, ` + "`" + `style-loader` + "`" + ` uses a link element with a data-uri to
|
||
* embed the css on the page. This breaks all relative urls because now they are relative to a
|
||
* bundle instead of the current page.
|
||
*
|
||
* One solution is to only use full urls, but that may be impossible.
|
||
*
|
||
* Instead, this function "fixes" the relative urls to be absolute according to the current page location.
|
||
*
|
||
* A rudimentary test suite is located at ` + "`" + `test/fixUrls.js` + "`" + ` and can be run via the ` + "`" + `npm test` + "`" + ` command.
|
||
*
|
||
*/
|
||
|
||
module.exports = function (css) {
|
||
// get current location
|
||
var location = typeof window !== "undefined" && window.location;
|
||
|
||
if (!location) {
|
||
throw new Error("fixUrls requires window.location");
|
||
}
|
||
|
||
// blank or null?
|
||
if (!css || typeof css !== "string") {
|
||
return css;
|
||
}
|
||
|
||
var baseUrl = location.protocol + "//" + location.host;
|
||
var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
|
||
|
||
// convert each url(...)
|
||
/*
|
||
This regular expression is just a way to recursively match brackets within
|
||
a string.
|
||
|
||
/url\s*\( = Match on the word "url" with any whitespace after it and then a parens
|
||
( = Start a capturing group
|
||
(?: = Start a non-capturing group
|
||
[^)(] = Match anything that isn't a parentheses
|
||
| = OR
|
||
\( = Match a start parentheses
|
||
(?: = Start another non-capturing groups
|
||
[^)(]+ = Match anything that isn't a parentheses
|
||
| = OR
|
||
\( = Match a start parentheses
|
||
[^)(]* = Match anything that isn't a parentheses
|
||
\) = Match a end parentheses
|
||
) = End Group
|
||
*\) = Match anything and then a close parens
|
||
) = Close non-capturing group
|
||
* = Match anything
|
||
) = Close capturing group
|
||
\) = Match a close parens
|
||
|
||
/gi = Get all matches, not the first. Be case insensitive.
|
||
*/
|
||
var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
|
||
// strip quotes (if they exist)
|
||
var unquotedOrigUrl = origUrl
|
||
.trim()
|
||
.replace(/^"(.*)"$/, function(o, $1){ return $1; })
|
||
.replace(/^'(.*)'$/, function(o, $1){ return $1; });
|
||
|
||
// already a full url? no change
|
||
if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(unquotedOrigUrl)) {
|
||
return fullMatch;
|
||
}
|
||
|
||
// convert the url to a full url
|
||
var newUrl;
|
||
|
||
if (unquotedOrigUrl.indexOf("//") === 0) {
|
||
//TODO: should we add protocol?
|
||
newUrl = unquotedOrigUrl;
|
||
} else if (unquotedOrigUrl.indexOf("/") === 0) {
|
||
// path should be relative to the base url
|
||
newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
|
||
} else {
|
||
// path should be relative to current directory
|
||
newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
|
||
}
|
||
|
||
// send back the fixed url(...)
|
||
return "url(" + JSON.stringify(newUrl) + ")";
|
||
});
|
||
|
||
// send back the fixed css
|
||
return fixedCss;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
/* 420 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
|
||
exports["default"] = function () {
|
||
return _react2["default"].createElement(
|
||
_reactRouterDom.Switch,
|
||
null,
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/account/tokens", exact: true, component: accountTitle }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", exact: true, component: accountRepos }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/login", exact: false, component: loginTitle }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: false, component: repoTitle }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: false, component: defautTitle })
|
||
);
|
||
};
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _reactTitleComponent = __webpack_require__(186);
|
||
|
||
var _reactTitleComponent2 = _interopRequireDefault(_reactTitleComponent);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
var accountTitle = function accountTitle() {
|
||
return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Tokens | drone" });
|
||
};
|
||
|
||
// @see https://github.com/yannickcr/eslint-plugin-react/issues/512
|
||
// eslint-disable-next-line react/display-name
|
||
|
||
|
||
var accountRepos = function accountRepos() {
|
||
return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Repositories | drone" });
|
||
};
|
||
|
||
var loginTitle = function loginTitle() {
|
||
return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Login | drone" });
|
||
};
|
||
|
||
var repoTitle = function repoTitle(_ref) {
|
||
var match = _ref.match;
|
||
return _react2["default"].createElement(_reactTitleComponent2["default"], { render: match.params.owner + "/" + match.params.repo + " | drone" });
|
||
};
|
||
|
||
var defautTitle = function defautTitle() {
|
||
return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Welcome | drone" });
|
||
};
|
||
|
||
/***/ }),
|
||
/* 421 */,
|
||
/* 422 */,
|
||
/* 423 */,
|
||
/* 424 */,
|
||
/* 425 */,
|
||
/* 426 */,
|
||
/* 427 */,
|
||
/* 428 */,
|
||
/* 429 */,
|
||
/* 430 */,
|
||
/* 431 */,
|
||
/* 432 */,
|
||
/* 433 */,
|
||
/* 434 */,
|
||
/* 435 */,
|
||
/* 436 */,
|
||
/* 437 */,
|
||
/* 438 */,
|
||
/* 439 */,
|
||
/* 440 */,
|
||
/* 441 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _dec2, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _classnames = __webpack_require__(66);
|
||
|
||
var _classnames2 = _interopRequireDefault(_classnames);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _reactScreenSize = __webpack_require__(187);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _menu = __webpack_require__(188);
|
||
|
||
var _menu2 = _interopRequireDefault(_menu);
|
||
|
||
var _feed = __webpack_require__(442);
|
||
|
||
var _feed2 = _interopRequireDefault(_feed);
|
||
|
||
var _registry = __webpack_require__(476);
|
||
|
||
var _registry2 = _interopRequireDefault(_registry);
|
||
|
||
var _secrets = __webpack_require__(487);
|
||
|
||
var _secrets2 = _interopRequireDefault(_secrets);
|
||
|
||
var _settings = __webpack_require__(498);
|
||
|
||
var _settings2 = _interopRequireDefault(_settings);
|
||
|
||
var _builds = __webpack_require__(502);
|
||
|
||
var _builds2 = _interopRequireDefault(_builds);
|
||
|
||
var _repos = __webpack_require__(514);
|
||
|
||
var _repos2 = _interopRequireDefault(_repos);
|
||
|
||
var _tokens = __webpack_require__(526);
|
||
|
||
var _tokens2 = _interopRequireDefault(_tokens);
|
||
|
||
var _redirect = __webpack_require__(194);
|
||
|
||
var _redirect2 = _interopRequireDefault(_redirect);
|
||
|
||
var _header = __webpack_require__(533);
|
||
|
||
var _header2 = _interopRequireDefault(_header);
|
||
|
||
var _menu3 = __webpack_require__(534);
|
||
|
||
var _menu4 = _interopRequireDefault(_menu3);
|
||
|
||
var _build = __webpack_require__(537);
|
||
|
||
var _build2 = _interopRequireDefault(_build);
|
||
|
||
var _menu5 = __webpack_require__(561);
|
||
|
||
var _menu6 = _interopRequireDefault(_menu5);
|
||
|
||
var _menu7 = __webpack_require__(197);
|
||
|
||
var _menu8 = _interopRequireDefault(_menu7);
|
||
|
||
var _snackbar = __webpack_require__(562);
|
||
|
||
var _drawer = __webpack_require__(574);
|
||
|
||
var _layout = __webpack_require__(577);
|
||
|
||
var _layout2 = _interopRequireDefault(_layout);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
return {
|
||
user: ["user"],
|
||
message: ["message"],
|
||
sidebar: ["sidebar"],
|
||
menu: ["menu"]
|
||
};
|
||
};
|
||
|
||
var mapScreenSizeToProps = function mapScreenSizeToProps(screenSize) {
|
||
return {
|
||
isTablet: screenSize["small"],
|
||
isMobile: screenSize["mobile"],
|
||
isDesktop: screenSize["> small"]
|
||
};
|
||
};
|
||
|
||
var Default = (_dec = (0, _higherOrder.branch)(binding), _dec2 = (0, _reactScreenSize.connectScreenSize)(mapScreenSizeToProps), (0, _inject.inject)(_class = _dec(_class = _dec2(_class = function (_Component) {
|
||
_inherits(Default, _Component);
|
||
|
||
function Default(props, context) {
|
||
_classCallCheck(this, Default);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.state = {
|
||
menu: false,
|
||
feed: false
|
||
};
|
||
|
||
_this.openMenu = _this.openMenu.bind(_this);
|
||
_this.closeMenu = _this.closeMenu.bind(_this);
|
||
_this.closeSnackbar = _this.closeSnackbar.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
Default.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
||
if (nextProps.location !== this.props.location) {
|
||
this.closeMenu(true);
|
||
}
|
||
};
|
||
|
||
Default.prototype.openMenu = function openMenu() {
|
||
this.props.dispatch(function (tree) {
|
||
tree.set(["menu"], true);
|
||
});
|
||
};
|
||
|
||
Default.prototype.closeMenu = function closeMenu() {
|
||
this.props.dispatch(function (tree) {
|
||
tree.set(["menu"], false);
|
||
});
|
||
};
|
||
|
||
Default.prototype.render = function render() {
|
||
var _props = this.props,
|
||
user = _props.user,
|
||
message = _props.message,
|
||
menu = _props.menu;
|
||
|
||
|
||
var classes = (0, _classnames2["default"])(!user || !user.data ? _layout2["default"].guest : null);
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: classes },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _layout2["default"].left },
|
||
_react2["default"].createElement(
|
||
_reactRouterDom.Switch,
|
||
null,
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/", component: _feed2["default"] })
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _layout2["default"].center },
|
||
!user || !user.data ? _react2["default"].createElement(
|
||
"a",
|
||
{
|
||
href: "/login?url=" + window.location.href,
|
||
target: "_self",
|
||
className: _layout2["default"].login
|
||
},
|
||
"Click to Login"
|
||
) : _react2["default"].createElement("noscript", null),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _layout2["default"].title },
|
||
_react2["default"].createElement(
|
||
_reactRouterDom.Switch,
|
||
null,
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", component: _repos.UserRepoTitle }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)",
|
||
exact: true,
|
||
component: _build.BuildLogsTitle
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/:build(\\d*)",
|
||
component: _build.BuildLogsTitle
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", component: _header2["default"] })
|
||
),
|
||
user && user.data ? _react2["default"].createElement(
|
||
"div",
|
||
{ className: _layout2["default"].avatar },
|
||
_react2["default"].createElement("img", { src: user.data.avatar_url })
|
||
) : undefined,
|
||
user && user.data ? _react2["default"].createElement(
|
||
"button",
|
||
{ onClick: this.openMenu },
|
||
_react2["default"].createElement(_menu2["default"], null)
|
||
) : _react2["default"].createElement("noscript", null)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _layout2["default"].menu },
|
||
_react2["default"].createElement(
|
||
_reactRouterDom.Switch,
|
||
null,
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/account/repos",
|
||
exact: true,
|
||
component: _menu4["default"]
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/account/",
|
||
exact: false,
|
||
component: undefined
|
||
}),
|
||
"BuildMenu",
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)",
|
||
exact: true,
|
||
component: _menu6["default"]
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/:build(\\d*)",
|
||
exact: true,
|
||
component: _menu6["default"]
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: false, component: _menu8["default"] })
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
_reactRouterDom.Switch,
|
||
null,
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/account/token", exact: true, component: _tokens2["default"] }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", exact: true, component: _repos2["default"] }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/settings/secrets",
|
||
exact: true,
|
||
component: _secrets2["default"]
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/settings/registry",
|
||
exact: true,
|
||
component: _registry2["default"]
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/settings",
|
||
exact: true,
|
||
component: _settings2["default"]
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/:build(\\d*)",
|
||
exact: true,
|
||
component: _build2["default"]
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, {
|
||
path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)",
|
||
exact: true,
|
||
component: _build2["default"]
|
||
}),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: true, component: _builds2["default"] }),
|
||
_react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: true, component: _redirect2["default"] })
|
||
)
|
||
),
|
||
_react2["default"].createElement(_snackbar.Snackbar, { message: message.text, onClose: this.closeSnackbar }),
|
||
_react2["default"].createElement(
|
||
_drawer.Drawer,
|
||
{ onClick: this.closeMenu, position: _drawer.DOCK_RIGHT, open: menu },
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"ul",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"li",
|
||
null,
|
||
_react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{ to: "/account/repos" },
|
||
"Repositories"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"li",
|
||
null,
|
||
_react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{ to: "/account/token" },
|
||
"Token"
|
||
)
|
||
)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"ul",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"li",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"a",
|
||
{ href: "/logout", target: "_self" },
|
||
"Logout"
|
||
)
|
||
)
|
||
)
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
Default.prototype.closeSnackbar = function closeSnackbar() {
|
||
this.props.dispatch(function (tree) {
|
||
tree.unset(["message", "text"]);
|
||
});
|
||
};
|
||
|
||
return Default;
|
||
}(_react.Component)) || _class) || _class) || _class);
|
||
exports["default"] = Default;
|
||
|
||
/***/ }),
|
||
/* 442 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _feed = __webpack_require__(126);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _logo = __webpack_require__(443);
|
||
|
||
var _logo2 = _interopRequireDefault(_logo);
|
||
|
||
var _components = __webpack_require__(444);
|
||
|
||
var _index = __webpack_require__(473);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
var _reactCollapsible = __webpack_require__(475);
|
||
|
||
var _reactCollapsible2 = _interopRequireDefault(_reactCollapsible);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
return { feed: ["feed"] };
|
||
};
|
||
|
||
var Sidebar = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(Sidebar, _Component);
|
||
|
||
function Sidebar(props, context) {
|
||
_classCallCheck(this, Sidebar);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.toggleItem = function (item) {
|
||
_this.setState(function (state) {
|
||
var _ref;
|
||
|
||
return _ref = {}, _ref[item] = !state[item], _ref;
|
||
});
|
||
|
||
localStorage.setItem(item, _this.state[item]);
|
||
};
|
||
|
||
_this.renderFeed = function (list, renderStarred) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(
|
||
_components.List,
|
||
null,
|
||
list.map(function (item) {
|
||
return _this.renderItem(item, renderStarred);
|
||
})
|
||
)
|
||
);
|
||
};
|
||
|
||
_this.renderItem = function (item, renderStarred) {
|
||
var starred = _this.state.starred;
|
||
if (renderStarred && !starred.includes(item.full_name)) {
|
||
return null;
|
||
}
|
||
return _react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{ to: "/" + item.full_name, key: item.full_name },
|
||
_react2["default"].createElement(_components.Item, {
|
||
item: item,
|
||
onFave: _this.onFave,
|
||
faved: starred.includes(item.full_name)
|
||
})
|
||
);
|
||
};
|
||
|
||
_this.onFave = function (fullName) {
|
||
if (!_this.state.starred.includes(fullName)) {
|
||
_this.setState(function (state) {
|
||
var list = state.starred.concat(fullName);
|
||
return { starred: list };
|
||
});
|
||
} else {
|
||
_this.setState(function (state) {
|
||
var list = state.starred.filter(function (v) {
|
||
return v !== fullName;
|
||
});
|
||
return { starred: list };
|
||
});
|
||
}
|
||
|
||
localStorage.setItem("starred", JSON.stringify(_this.state.starred));
|
||
};
|
||
|
||
_this.setState({
|
||
starred: JSON.parse(localStorage.getItem("starred") || "[]"),
|
||
starredOpen: (localStorage.getItem("starredOpen") || "true") === "true",
|
||
reposOpen: (localStorage.getItem("reposOpen") || "true") === "true"
|
||
});
|
||
|
||
_this.handleFilter = _this.handleFilter.bind(_this);
|
||
_this.toggleStarred = _this.toggleItem.bind(_this, "starredOpen");
|
||
_this.toggleAll = _this.toggleItem.bind(_this, "reposOpen");
|
||
return _this;
|
||
}
|
||
|
||
Sidebar.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.feed !== nextProps.feed || this.state.filter !== nextState.filter || this.state.starred.length !== nextState.starred.length;
|
||
};
|
||
|
||
Sidebar.prototype.handleFilter = function handleFilter(e) {
|
||
this.setState({
|
||
filter: e.target.value
|
||
});
|
||
};
|
||
|
||
Sidebar.prototype.render = function render() {
|
||
var feed = this.props.feed;
|
||
var filter = this.state.filter;
|
||
|
||
|
||
var list = feed.data ? Object.values(feed.data) : [];
|
||
|
||
var filterFunc = function filterFunc(item) {
|
||
return !filter || item.full_name.indexOf(filter) !== -1;
|
||
};
|
||
|
||
var filtered = list.filter(filterFunc).sort(_feed.compareFeedItem);
|
||
var starredOpen = this.state.starredOpen;
|
||
var reposOpen = this.state.reposOpen;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].feed },
|
||
LOGO,
|
||
_react2["default"].createElement(
|
||
_reactCollapsible2["default"],
|
||
{
|
||
trigger: "Starred",
|
||
triggerTagName: "div",
|
||
transitionTime: 200,
|
||
open: starredOpen,
|
||
onOpen: this.toggleStarred,
|
||
onClose: this.toggleStarred,
|
||
triggerOpenedClassName: _index2["default"].Collapsible__trigger,
|
||
triggerClassName: _index2["default"].Collapsible__trigger
|
||
},
|
||
feed.loaded === false ? LOADING : feed.error ? ERROR : list.length === 0 ? EMPTY : this.renderFeed(list, true)
|
||
),
|
||
_react2["default"].createElement(
|
||
_reactCollapsible2["default"],
|
||
{
|
||
trigger: "Repos",
|
||
triggerTagName: "div",
|
||
transitionTime: 200,
|
||
open: reposOpen,
|
||
onOpen: this.toggleAll,
|
||
onClose: this.toggleAll,
|
||
triggerOpenedClassName: _index2["default"].Collapsible__trigger,
|
||
triggerClassName: _index2["default"].Collapsible__trigger
|
||
},
|
||
_react2["default"].createElement("input", {
|
||
type: "text",
|
||
placeholder: "Search \u2026",
|
||
onChange: this.handleFilter
|
||
}),
|
||
feed.loaded === false ? LOADING : feed.error ? ERROR : list.length === 0 ? EMPTY : filtered.length > 0 ? this.renderFeed(filtered.sort(_feed.compareFeedItem), false) : NO_MATCHES
|
||
)
|
||
);
|
||
};
|
||
|
||
return Sidebar;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = Sidebar;
|
||
|
||
|
||
var LOGO = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].brand },
|
||
_react2["default"].createElement(_logo2["default"], null),
|
||
_react2["default"].createElement(
|
||
"p",
|
||
null,
|
||
"Woodpecker CI"
|
||
)
|
||
);
|
||
|
||
var LOADING = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].message },
|
||
"Loading"
|
||
);
|
||
|
||
var EMPTY = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].message },
|
||
"Your build feed is empty"
|
||
);
|
||
|
||
var NO_MATCHES = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].message },
|
||
"No results found"
|
||
);
|
||
|
||
var ERROR = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].message },
|
||
"Oops. It looks like there was a problem loading your feed"
|
||
);
|
||
|
||
/***/ }),
|
||
/* 443 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Logo = function (_Component) {
|
||
_inherits(Logo, _Component);
|
||
|
||
function Logo() {
|
||
_classCallCheck(this, Logo);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Logo.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{ viewBox: "0 0 50 62.5", preserveAspectRatio: "xMidYMid" },
|
||
_react2["default"].createElement(
|
||
"g",
|
||
null,
|
||
_react2["default"].createElement("path", {
|
||
fillRule: "evenodd",
|
||
clipRule: "evenodd",
|
||
d: "M15.872,0.468c1.148,1.088,1.582,2.188,2.855,2.337l0.036,0.007c-0.588,0.606-1.089,1.402-1.443,2.423c-0.379,1.096-0.488,2.285-0.614,3.659c-0.189,2.046-0.401,4.364-1.556,7.269 c-2.486,6.258-1.119,11.631,0.332,17.317c0.664,2.604,1.348,5.297,1.642,8.107c0.035,0.355,0.287,0.652,0.633,0.744 c0.346,0.095,0.709-0.035,0.922-0.323c0.227-0.313,0.524-0.797,0.86-1.424c0.84,3.323,1.355,6.131,1.783,8.697 c0.126,0.73,1.048,0.973,1.517,0.41c2.881-3.463,3.763-8.636,2.184-12.674c0.459-2.433,1.402-4.45,2.398-6.583 c0.536-1.15,1.08-2.318,1.55-3.566c0.228-0.084,0.569-0.314,0.791-0.441l1.706-0.981l-0.256,1.052 c-0.112,0.461,0.171,0.929,0.635,1.04c0.457,0.118,0.93-0.173,1.043-0.632l0.68-2.858l1.285-2.95 c0.19-0.436-0.009-0.943-0.446-1.135c-0.44-0.189-0.947,0.01-1.135,0.448l-1.152,2.669l-2.383,1.372 c0.235-0.932,0.414-1.919,0.508-2.981c0.432-4.859-0.718-9.074-3.066-11.266c-0.163-0.157-0.208-0.281-0.247-0.26 c0.095-0.119,0.249-0.26,0.358-0.374c2.283-1.693,6.047-0.147,8.319,0.751c0.589,0.231,0.876-0.338,0.316-0.67 c-1.949-1.154-5.948-4.197-8.188-6.194c-0.313-0.275-0.527-0.607-0.89-0.913c-2.415-4.266-8.168-1.764-10.885-2.252 C15.862,0.275,15.798,0.396,15.872,0.468 M26.852,6.367c-0.059,1.242-0.603,1.8-0.999,2.208c-0.218,0.224-0.427,0.436-0.525,0.738 c-0.236,0.714,0.008,1.51,0.66,2.143c1.974,1.84,2.925,5.527,2.538,9.861c-0.291,3.287-1.448,5.762-2.671,8.384 c-1.031,2.207-2.096,4.489-2.577,7.259c-0.027,0.161-0.01,0.33,0.056,0.481c1.021,2.433,1.135,6.196-0.672,9.46 c-0.461-2.553-1.053-5.385-1.97-8.712c1.964-4.488,4.203-11.75,2.919-17.668c-0.325-1.497-1.304-3.276-2.387-4.207 c-0.208-0.179-0.402-0.237-0.495-0.167c-0.084,0.061-0.151,0.238-0.062,0.444c0.55,1.266,0.879,2.599,1.226,4.276 c1.125,5.443-0.956,12.49-2.835,16.782l-0.116,0.259l-0.457,0.982c-0.356-2.014-0.849-3.95-1.33-5.839 c-1.379-5.407-2.679-10.516-0.401-16.255c1.247-3.137,1.483-5.692,1.672-7.746c0.116-1.263,0.216-2.355,0.526-3.252 c0.905-2.605,3.062-3.178,4.744-2.852C25.328,3.262,26.936,4.539,26.852,6.367z M23.984,6.988c0.617,0.204,1.283-0.131,1.487-0.75 c0.202-0.617-0.134-1.283-0.751-1.487c-0.618-0.204-1.285,0.134-1.487,0.751C23.029,6.12,23.366,6.786,23.984,6.988z"
|
||
})
|
||
)
|
||
);
|
||
};
|
||
|
||
return Logo;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = Logo;
|
||
|
||
/***/ }),
|
||
/* 444 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = undefined;
|
||
|
||
var _list = __webpack_require__(445);
|
||
|
||
exports.List = _list.List;
|
||
exports.Item = _list.Item;
|
||
|
||
/***/ }),
|
||
/* 445 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _status = __webpack_require__(86);
|
||
|
||
var _status2 = _interopRequireDefault(_status);
|
||
|
||
var _build_time = __webpack_require__(128);
|
||
|
||
var _build_time2 = _interopRequireDefault(_build_time);
|
||
|
||
var _list = __webpack_require__(471);
|
||
|
||
var _list2 = _interopRequireDefault(_list);
|
||
|
||
var _index = __webpack_require__(40);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var List = exports.List = function List(_ref) {
|
||
var children = _ref.children;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].list },
|
||
children
|
||
);
|
||
};
|
||
|
||
var Item = exports.Item = function (_Component) {
|
||
_inherits(Item, _Component);
|
||
|
||
function Item(props) {
|
||
_classCallCheck(this, Item);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props));
|
||
|
||
_this.handleFave = _this.handleFave.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
Item.prototype.handleFave = function handleFave(e) {
|
||
e.preventDefault();
|
||
this.props.onFave(this.props.item.full_name);
|
||
};
|
||
|
||
Item.prototype.render = function render() {
|
||
var _props = this.props,
|
||
item = _props.item,
|
||
faved = _props.faved;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].item },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ onClick: this.handleFave },
|
||
_react2["default"].createElement(_index.StarIcon, { filled: faved, size: 16, className: _list2["default"].star })
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].header },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].title },
|
||
item.full_name
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].icon },
|
||
item.status ? _react2["default"].createElement(_status2["default"], { status: item.status }) : _react2["default"].createElement("noscript", null)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].body },
|
||
_react2["default"].createElement(_build_time2["default"], {
|
||
start: item.started_at || item.created_at,
|
||
finish: item.finished_at
|
||
})
|
||
)
|
||
);
|
||
};
|
||
|
||
Item.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.item !== nextProps.item || this.props.faved !== nextProps.faved;
|
||
};
|
||
|
||
return Item;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 446 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(447);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./status.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./status.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 447 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".status__root___2rxe7 {\n align-content: center;\n border-radius: 50%;\n border-style: solid;\n border-width: 2px;\n box-sizing: border-box;\n display: flex;\n height: 23px;\n padding: 2px;\n width: 23px;\n}\n.status__root___2rxe7.status__success___2asG5 {\n border-color: #4dc89a;\n}\n.status__root___2rxe7.status__success___2asG5 svg {\n fill: #4dc89a;\n}\n.status__root___2rxe7.status__declined___2_0s0,\n.status__root___2rxe7.status__failure___1Viva,\n.status__root___2rxe7.status__killed___28pmc,\n.status__root___2rxe7.status__error___PCXjd {\n border-color: #fc4758;\n}\n.status__root___2rxe7.status__declined___2_0s0 svg,\n.status__root___2rxe7.status__failure___1Viva svg,\n.status__root___2rxe7.status__killed___28pmc svg,\n.status__root___2rxe7.status__error___PCXjd svg {\n fill: #fc4758;\n}\n.status__root___2rxe7.status__blocked___2ioEb,\n.status__root___2rxe7.status__running___1VELs,\n.status__root___2rxe7.status__started___2-FNQ {\n border-color: #fdb835;\n}\n.status__root___2rxe7.status__blocked___2ioEb svg,\n.status__root___2rxe7.status__running___1VELs svg,\n.status__root___2rxe7.status__started___2-FNQ svg {\n fill: #fdb835;\n}\n.status__root___2rxe7.status__started___2-FNQ svg,\n.status__root___2rxe7.status__running___1VELs svg {\n animation: status__spinner___3IJPx 1.2s ease infinite;\n}\n.status__root___2rxe7.status__pending___163T_,\n.status__root___2rxe7.status__skipped___3k1eY {\n border-color: #bdbdbd;\n}\n.status__root___2rxe7.status__pending___163T_ svg,\n.status__root___2rxe7.status__skipped___3k1eY svg {\n fill: #bdbdbd;\n}\n.status__root___2rxe7.status__pending___163T_ svg {\n animation: status__wrench___2K0fQ 2.5s ease infinite;\n transform-origin: center 54%;\n}\n@keyframes status__spinner___3IJPx {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n@keyframes status__wrench___2K0fQ {\n 0% {\n transform: rotate(-12deg);\n }\n 8% {\n transform: rotate(12deg);\n }\n 10% {\n transform: rotate(24deg);\n }\n 18% {\n transform: rotate(-24deg);\n }\n 20% {\n transform: rotate(-24deg);\n }\n 28% {\n transform: rotate(24deg);\n }\n 30% {\n transform: rotate(24deg);\n }\n 38% {\n transform: rotate(-24deg);\n }\n 40% {\n transform: rotate(-24deg);\n }\n 48% {\n transform: rotate(24deg);\n }\n 50% {\n transform: rotate(24deg);\n }\n 58% {\n transform: rotate(-24deg);\n }\n 60% {\n transform: rotate(-24deg);\n }\n 68% {\n transform: rotate(24deg);\n }\n 75%,\n 100% {\n transform: rotate(0);\n }\n}\n.status__label___Hs4rP {\n background-color: #4dc89a;\n border-radius: 2px;\n color: #ffffff;\n display: flex;\n padding: 10px 20px;\n text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);\n}\n.status__label___Hs4rP div {\n flex: 1;\n font-size: 15px;\n line-height: 22px;\n vertical-align: middle;\n}\n.status__label___Hs4rP.status__success___2asG5 {\n background-color: #4dc89a;\n}\n.status__label___Hs4rP.status__declined___2_0s0,\n.status__label___Hs4rP.status__failure___1Viva,\n.status__label___Hs4rP.status__killed___28pmc,\n.status__label___Hs4rP.status__error___PCXjd {\n background-color: #fc4758;\n}\n.status__label___Hs4rP.status__blocked___2ioEb,\n.status__label___Hs4rP.status__running___1VELs,\n.status__label___Hs4rP.status__started___2-FNQ {\n background-color: #fdb835;\n}\n.status__label___Hs4rP.status__pending___163T_,\n.status__label___Hs4rP.status__skipped___3k1eY {\n background-color: #bdbdbd;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "status__root___2rxe7",
|
||
"success": "status__success___2asG5",
|
||
"declined": "status__declined___2_0s0",
|
||
"failure": "status__failure___1Viva",
|
||
"killed": "status__killed___28pmc",
|
||
"error": "status__error___PCXjd",
|
||
"blocked": "status__blocked___2ioEb",
|
||
"running": "status__running___1VELs",
|
||
"started": "status__started___2-FNQ",
|
||
"spinner": "status__spinner___3IJPx",
|
||
"pending": "status__pending___163T_",
|
||
"skipped": "status__skipped___3k1eY",
|
||
"wrench": "status__wrench___2K0fQ",
|
||
"label": "status__label___Hs4rP"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 448 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var BackIcon = function (_Component) {
|
||
_inherits(BackIcon, _Component);
|
||
|
||
function BackIcon() {
|
||
_classCallCheck(this, BackIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
BackIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
||
_react2["default"].createElement("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" })
|
||
);
|
||
};
|
||
|
||
return BackIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = BackIcon;
|
||
|
||
/***/ }),
|
||
/* 449 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var BranchIcon = function (_Component) {
|
||
_inherits(BranchIcon, _Component);
|
||
|
||
function BranchIcon() {
|
||
_classCallCheck(this, BranchIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
BranchIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{ viewBox: "0 0 24 24" },
|
||
_react2["default"].createElement("path", { d: "M6,2A3,3 0 0,1 9,5C9,6.28 8.19,7.38 7.06,7.81C7.15,8.27 7.39,8.83 8,9.63C9,10.92 11,12.83 12,14.17C13,12.83 15,10.92 16,9.63C16.61,8.83 16.85,8.27 16.94,7.81C15.81,7.38 15,6.28 15,5A3,3 0 0,1 18,2A3,3 0 0,1 21,5C21,6.32 20.14,7.45 18.95,7.85C18.87,8.37 18.64,9 18,9.83C17,11.17 15,13.08 14,14.38C13.39,15.17 13.15,15.73 13.06,16.19C14.19,16.62 15,17.72 15,19A3,3 0 0,1 12,22A3,3 0 0,1 9,19C9,17.72 9.81,16.62 10.94,16.19C10.85,15.73 10.61,15.17 10,14.38C9,13.08 7,11.17 6,9.83C5.36,9 5.13,8.37 5.05,7.85C3.86,7.45 3,6.32 3,5A3,3 0 0,1 6,2M6,4A1,1 0 0,0 5,5A1,1 0 0,0 6,6A1,1 0 0,0 7,5A1,1 0 0,0 6,4M18,4A1,1 0 0,0 17,5A1,1 0 0,0 18,6A1,1 0 0,0 19,5A1,1 0 0,0 18,4M12,18A1,1 0 0,0 11,19A1,1 0 0,0 12,20A1,1 0 0,0 13,19A1,1 0 0,0 12,18Z" })
|
||
);
|
||
};
|
||
|
||
return BranchIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = BranchIcon;
|
||
|
||
/***/ }),
|
||
/* 450 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var CheckIcon = function (_Component) {
|
||
_inherits(CheckIcon, _Component);
|
||
|
||
function CheckIcon() {
|
||
_classCallCheck(this, CheckIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
CheckIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
||
_react2["default"].createElement("path", { d: "M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" })
|
||
);
|
||
};
|
||
|
||
return CheckIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = CheckIcon;
|
||
|
||
/***/ }),
|
||
/* 451 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var ClockIcon = function (_Component) {
|
||
_inherits(ClockIcon, _Component);
|
||
|
||
function ClockIcon() {
|
||
_classCallCheck(this, ClockIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
ClockIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
||
_react2["default"].createElement("path", { d: "M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z" })
|
||
);
|
||
};
|
||
|
||
return ClockIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = ClockIcon;
|
||
|
||
/***/ }),
|
||
/* 452 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var CommitIcon = function (_Component) {
|
||
_inherits(CommitIcon, _Component);
|
||
|
||
function CommitIcon() {
|
||
_classCallCheck(this, CommitIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
CommitIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M17,12C17,14.42 15.28,16.44 13,16.9V21H11V16.9C8.72,16.44 7,14.42 7,12C7,9.58 8.72,7.56 11,7.1V3H13V7.1C15.28,7.56 17,9.58 17,12M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z" })
|
||
);
|
||
};
|
||
|
||
return CommitIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = CommitIcon;
|
||
|
||
/***/ }),
|
||
/* 453 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var DeployIcon = function (_Component) {
|
||
_inherits(DeployIcon, _Component);
|
||
|
||
function DeployIcon() {
|
||
_classCallCheck(this, DeployIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
DeployIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{ className: this.props.className, viewBox: "0 0 24 24" },
|
||
_react2["default"].createElement("path", { d: "M19,18H6A4,4 0 0,1 2,14A4,4 0 0,1 6,10H6.71C7.37,7.69 9.5,6 12,6A5.5,5.5 0 0,1 17.5,11.5V12H19A3,3 0 0,1 22,15A3,3 0 0,1 19,18M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14A6,6 0 0,0 6,20H19A5,5 0 0,0 24,15C24,12.36 21.95,10.22 19.35,10.03Z" })
|
||
);
|
||
};
|
||
|
||
return DeployIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = DeployIcon;
|
||
|
||
/***/ }),
|
||
/* 454 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var ExpandIcon = function (_Component) {
|
||
_inherits(ExpandIcon, _Component);
|
||
|
||
function ExpandIcon() {
|
||
_classCallCheck(this, ExpandIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
ExpandIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z" }),
|
||
_react2["default"].createElement("path", { d: "M0-.75h24v24H0z", fill: "none" })
|
||
);
|
||
};
|
||
|
||
return ExpandIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = ExpandIcon;
|
||
|
||
/***/ }),
|
||
/* 455 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var LaunchIcon = function (_Component) {
|
||
_inherits(LaunchIcon, _Component);
|
||
|
||
function LaunchIcon() {
|
||
_classCallCheck(this, LaunchIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
LaunchIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{ className: this.props.className, viewBox: "0 0 24 24" },
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
||
_react2["default"].createElement("path", { d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" })
|
||
);
|
||
};
|
||
|
||
return LaunchIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = LaunchIcon;
|
||
|
||
/***/ }),
|
||
/* 456 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var LinkIcon = function (_Component) {
|
||
_inherits(LinkIcon, _Component);
|
||
|
||
function LinkIcon() {
|
||
_classCallCheck(this, LinkIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
LinkIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
||
_react2["default"].createElement("path", { d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z" })
|
||
);
|
||
};
|
||
|
||
return LinkIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = LinkIcon;
|
||
|
||
/***/ }),
|
||
/* 457 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var MergeIcon = function (_Component) {
|
||
_inherits(MergeIcon, _Component);
|
||
|
||
function MergeIcon() {
|
||
_classCallCheck(this, MergeIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
MergeIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{ className: this.props.className, viewBox: "0 0 24 24" },
|
||
_react2["default"].createElement("path", { d: "M5.41,21L6.12,17H2.12L2.47,15H6.47L7.53,9H3.53L3.88,7H7.88L8.59,3H10.59L9.88,7H15.88L16.59,3H18.59L17.88,7H21.88L21.53,9H17.53L16.47,15H20.47L20.12,17H16.12L15.41,21H13.41L14.12,17H8.12L7.41,21H5.41M9.53,9L8.47,15H14.47L15.53,9H9.53Z" })
|
||
);
|
||
};
|
||
|
||
return MergeIcon;
|
||
}(_react.Component);
|
||
|
||
// <svg class={this.props.className} viewBox="0 0 54.5 68">
|
||
// <path d="M20,13C20,8.6,16.4,5,12.1,5C7.7,5,4.2,8.6,4.2,13c0,3.2,1.9,6,4.7,7.2v27.1c-2.7,1.2-4.7,4-4.7,7.2c0,4.4,3.6,7.9,7.9,7.9 c4.4,0,7.9-3.6,7.9-7.9c0-3.2-1.9-6-4.7-7.2V20.2C18.1,18.9,20,16.2,20,13z M16,54.5c0,2.2-1.8,3.9-3.9,3.9c-2.2,0-3.9-1.8-3.9-3.9 c0-2.2,1.8-3.9,3.9-3.9C14.2,50.5,16,52.3,16,54.5z M12.1,16.9c-2.2,0-3.9-1.8-3.9-3.9c0-2.2,1.8-3.9,3.9-3.9C14.2,9,16,10.8,16,13 C16,15.1,14.2,16.9,12.1,16.9z"/>
|
||
// <path d="M45.3,47.3V20.8c0-6.1-5-11.1-11.1-11.1h-2.7V3.6L20.7,13l10.8,9.3v-6.1h2.7c2.6,0,4.6,2.1,4.6,4.6v26.4 c-2.7,1.2-4.7,4-4.7,7.2c0,4.4,3.6,7.9,7.9,7.9c4.4,0,7.9-3.6,7.9-7.9C50,51.3,48.1,48.5,45.3,47.3z M42.1,58.4 c-2.2,0-3.9-1.8-3.9-3.9c0-2.2,1.8-3.9,3.9-3.9c2.2,0,3.9,1.8,3.9,3.9C46,56.6,44.2,58.4,42.1,58.4z"/>
|
||
// </svg>
|
||
|
||
|
||
exports["default"] = MergeIcon;
|
||
|
||
/***/ }),
|
||
/* 458 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var PauseIcon = function (_Component) {
|
||
_inherits(PauseIcon, _Component);
|
||
|
||
function PauseIcon() {
|
||
_classCallCheck(this, PauseIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
PauseIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z" }),
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
||
);
|
||
};
|
||
|
||
return PauseIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = PauseIcon;
|
||
|
||
/***/ }),
|
||
/* 459 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var PlayIcon = function (_Component) {
|
||
_inherits(PlayIcon, _Component);
|
||
|
||
function PlayIcon() {
|
||
_classCallCheck(this, PlayIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
PlayIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M8 5v14l11-7z" }),
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
||
);
|
||
};
|
||
|
||
return PlayIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = PlayIcon;
|
||
|
||
/***/ }),
|
||
/* 460 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var CheckIcon = function (_Component) {
|
||
_inherits(CheckIcon, _Component);
|
||
|
||
function CheckIcon() {
|
||
_classCallCheck(this, CheckIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
CheckIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M19 13H5v-2h14v2z" }),
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
||
);
|
||
};
|
||
|
||
return CheckIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = CheckIcon;
|
||
|
||
/***/ }),
|
||
/* 461 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var ScheduleIcon = function (_Component) {
|
||
_inherits(ScheduleIcon, _Component);
|
||
|
||
function ScheduleIcon() {
|
||
_classCallCheck(this, ScheduleIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
ScheduleIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }),
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
||
_react2["default"].createElement("path", { d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" })
|
||
);
|
||
};
|
||
|
||
return ScheduleIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = ScheduleIcon;
|
||
|
||
/***/ }),
|
||
/* 462 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var StarIcon = function (_Component) {
|
||
_inherits(StarIcon, _Component);
|
||
|
||
function StarIcon() {
|
||
_classCallCheck(this, StarIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
StarIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 512 512"
|
||
},
|
||
this.props.filled === true ? _react2["default"].createElement("path", { d: "M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z" }) : _react2["default"].createElement("path", { d: "M458 210.409l-145.267-12.476L256 64l-56.743 133.934L54 210.409l110.192 95.524L131.161 448 256 372.686 380.83 448l-33.021-142.066L458 210.409zM272.531 345.286L256 335.312l-16.53 9.973-59.988 36.191 15.879-68.296 4.369-18.79-14.577-12.637-52.994-45.939 69.836-5.998 19.206-1.65 7.521-17.75 27.276-64.381 27.27 64.379 7.52 17.751 19.208 1.65 69.846 5.998-52.993 45.939-14.576 12.636 4.367 18.788 15.875 68.299-59.984-36.189z" })
|
||
);
|
||
};
|
||
|
||
return StarIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = StarIcon;
|
||
|
||
/***/ }),
|
||
/* 463 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var SyncIcon = function (_Component) {
|
||
_inherits(SyncIcon, _Component);
|
||
|
||
function SyncIcon() {
|
||
_classCallCheck(this, SyncIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
SyncIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{ className: this.props.className, viewBox: "0 0 24 24" },
|
||
_react2["default"].createElement("path", { d: "M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z" }),
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" })
|
||
);
|
||
};
|
||
|
||
return SyncIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = SyncIcon;
|
||
|
||
/***/ }),
|
||
/* 464 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var TagIcon = function (_Component) {
|
||
_inherits(TagIcon, _Component);
|
||
|
||
function TagIcon() {
|
||
_classCallCheck(this, TagIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
TagIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{ className: this.props.className, viewBox: "0 0 24 24" },
|
||
_react2["default"].createElement("path", { d: "M5.5,7A1.5,1.5 0 0,0 7,5.5A1.5,1.5 0 0,0 5.5,4A1.5,1.5 0 0,0 4,5.5A1.5,1.5 0 0,0 5.5,7M21.41,11.58C21.77,11.94 22,12.44 22,13C22,13.55 21.78,14.05 21.41,14.41L14.41,21.41C14.05,21.77 13.55,22 13,22C12.45,22 11.95,21.77 11.58,21.41L2.59,12.41C2.22,12.05 2,11.55 2,11V4C2,2.89 2.89,2 4,2H11C11.55,2 12.05,2.22 12.41,2.58L21.41,11.58M13,20L20,13L11.5,4.5L4.5,11.5L13,20Z" })
|
||
);
|
||
};
|
||
|
||
return TagIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = TagIcon;
|
||
|
||
/***/ }),
|
||
/* 465 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var TimelapseIcon = function (_Component) {
|
||
_inherits(TimelapseIcon, _Component);
|
||
|
||
function TimelapseIcon() {
|
||
_classCallCheck(this, TimelapseIcon);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
TimelapseIcon.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"svg",
|
||
{
|
||
className: this.props.className,
|
||
width: this.props.size || 24,
|
||
height: this.props.size || 24,
|
||
viewBox: "0 0 24 24"
|
||
},
|
||
_react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
||
_react2["default"].createElement("path", { d: "M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" })
|
||
);
|
||
};
|
||
|
||
return TimelapseIcon;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = TimelapseIcon;
|
||
|
||
/***/ }),
|
||
/* 466 */,
|
||
/* 467 */,
|
||
/* 468 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _humanizeDuration = __webpack_require__(191);
|
||
|
||
var _humanizeDuration2 = _interopRequireDefault(_humanizeDuration);
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Duration = function (_React$Component) {
|
||
_inherits(Duration, _React$Component);
|
||
|
||
function Duration() {
|
||
_classCallCheck(this, Duration);
|
||
|
||
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
||
}
|
||
|
||
Duration.prototype.render = function render() {
|
||
var _props = this.props,
|
||
start = _props.start,
|
||
finished = _props.finished;
|
||
|
||
|
||
return _react2["default"].createElement(
|
||
"time",
|
||
null,
|
||
(0, _humanizeDuration2["default"])((finished - start) * 1000)
|
||
);
|
||
};
|
||
|
||
return Duration;
|
||
}(_react2["default"].Component);
|
||
|
||
exports["default"] = Duration;
|
||
|
||
/***/ }),
|
||
/* 469 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(470);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./build_time.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./build_time.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 470 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".build_time__host___9mFjx svg {\n height: 16px;\n width: 16px;\n}\n.build_time__row___htHfU {\n display: flex;\n}\n.build_time__row___htHfU :first-child {\n align-items: center;\n display: flex;\n margin-right: 5px;\n}\n.build_time__row___htHfU :last-child {\n flex: 1;\n font-size: 14px;\n line-height: 24px;\n white-space: nowrap;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"host": "build_time__host___9mFjx",
|
||
"row": "build_time__row___htHfU"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 471 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(472);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../node_modules/css-loader/index.js??ref--2!../../../../node_modules/less-loader/dist/cjs.js!./list.less", function() {
|
||
var newContent = require("!!../../../../node_modules/css-loader/index.js??ref--2!../../../../node_modules/less-loader/dist/cjs.js!./list.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 472 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".list__text-ellipsis___dCBIv {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.list__list___1uUJa a {\n border-top: 1px solid #eceff1;\n color: #212121;\n display: block;\n text-decoration: none;\n}\n.list__list___1uUJa a:first-of-type {\n border-top-width: 0px;\n}\n.list__item___34sGO {\n display: flex;\n flex-direction: column;\n padding: 20px;\n text-decoration: none;\n position: relative;\n}\n.list__item___34sGO .list__header___3iM8V {\n display: flex;\n margin-bottom: 10px;\n}\n.list__item___34sGO .list__title___2PF1D {\n color: #212121;\n flex: 1 1 auto;\n font-size: 15px;\n line-height: 22px;\n max-width: 250px;\n padding-right: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.list__item___34sGO .list__body___3mLqY div time {\n color: #212121;\n font-size: 13px;\n}\n.list__item___34sGO .list__body___3mLqY time {\n color: #212121;\n display: inline-block;\n font-size: 13px;\n line-height: 22px;\n margin: 0px;\n padding: 0px;\n vertical-align: middle;\n}\n.list__item___34sGO .list__body___3mLqY svg {\n fill: #212121;\n line-height: 22px;\n margin-right: 10px;\n vertical-align: middle;\n}\n.list__item___34sGO .list__star___jVFss {\n position: absolute;\n bottom: 20px;\n right: 20px;\n fill: #bdbdbd;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"text-ellipsis": "list__text-ellipsis___dCBIv",
|
||
"list": "list__list___1uUJa",
|
||
"item": "list__item___34sGO",
|
||
"header": "list__header___3iM8V",
|
||
"title": "list__title___2PF1D",
|
||
"body": "list__body___3mLqY",
|
||
"star": "list__star___jVFss"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 473 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(474);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 474 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__feed___1C6mH {\n width: 300px;\n}\n.index__feed___1C6mH input {\n border: 1px solid #eceff1;\n font-size: 15px;\n height: 24px;\n line-height: 24px;\n outline: none;\n margin: 20px;\n padding: 5px;\n width: 250px;\n border-radius: 2px;\n}\n.index__feed___1C6mH ::-moz-input-placeholder {\n color: #bdbdbd;\n font-size: 15px;\n font-weight: 300;\n}\n.index__feed___1C6mH ::-webkit-input-placeholder {\n color: #bdbdbd;\n font-size: 15px;\n font-weight: 300;\n}\n.index__message___1eTd3 {\n color: #bdbdbd;\n font-size: 15px;\n margin-top: 50px;\n padding: 20px;\n text-align: center;\n}\n.index__brand___1fqCa {\n align-items: center;\n border-bottom: 1px solid #eceff1;\n box-sizing: border-box;\n display: flex;\n height: 60px;\n padding: 0px 10px;\n}\n.index__brand___1fqCa svg {\n fill: #212121;\n height: 50px;\n position: relative;\n top: 5px;\n}\n.index__Collapsible__trigger___1c0eH {\n background-color: #eceff1;\n border-radius: 2px;\n display: flex;\n padding: 10px 20px;\n text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"feed": "index__feed___1C6mH",
|
||
"message": "index__message___1eTd3",
|
||
"brand": "index__brand___1fqCa",
|
||
"Collapsible__trigger": "index__Collapsible__trigger___1c0eH"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 475 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
|
||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _propTypes = __webpack_require__(12);
|
||
|
||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Collapsible = function (_Component) {
|
||
_inherits(Collapsible, _Component);
|
||
|
||
function Collapsible(props) {
|
||
_classCallCheck(this, Collapsible);
|
||
|
||
var _this = _possibleConstructorReturn(this, (Collapsible.__proto__ || Object.getPrototypeOf(Collapsible)).call(this, props));
|
||
|
||
_this.timeout = undefined;
|
||
|
||
// Bind class methods
|
||
_this.handleTriggerClick = _this.handleTriggerClick.bind(_this);
|
||
_this.handleTransitionEnd = _this.handleTransitionEnd.bind(_this);
|
||
_this.continueOpenCollapsible = _this.continueOpenCollapsible.bind(_this);
|
||
_this.setInnerRef = _this.setInnerRef.bind(_this);
|
||
|
||
// Defaults the dropdown to be closed
|
||
if (props.open) {
|
||
_this.state = {
|
||
isClosed: false,
|
||
shouldSwitchAutoOnNextCycle: false,
|
||
height: 'auto',
|
||
transition: 'none',
|
||
hasBeenOpened: true,
|
||
overflow: props.overflowWhenOpen,
|
||
inTransition: false
|
||
};
|
||
} else {
|
||
_this.state = {
|
||
isClosed: true,
|
||
shouldSwitchAutoOnNextCycle: false,
|
||
height: 0,
|
||
transition: 'height ' + props.transitionTime + 'ms ' + props.easing,
|
||
hasBeenOpened: false,
|
||
overflow: 'hidden',
|
||
inTransition: false
|
||
};
|
||
}
|
||
return _this;
|
||
}
|
||
|
||
_createClass(Collapsible, [{
|
||
key: 'componentDidUpdate',
|
||
value: function componentDidUpdate(prevProps, prevState) {
|
||
var _this2 = this;
|
||
|
||
if (this.state.shouldOpenOnNextCycle) {
|
||
this.continueOpenCollapsible();
|
||
}
|
||
|
||
if (prevState.height === 'auto' && this.state.shouldSwitchAutoOnNextCycle === true) {
|
||
window.clearTimeout(this.timeout);
|
||
this.timeout = window.setTimeout(function () {
|
||
// Set small timeout to ensure a true re-render
|
||
_this2.setState({
|
||
height: 0,
|
||
overflow: 'hidden',
|
||
isClosed: true,
|
||
shouldSwitchAutoOnNextCycle: false
|
||
});
|
||
}, 50);
|
||
}
|
||
|
||
// If there has been a change in the open prop (controlled by accordion)
|
||
if (prevProps.open !== this.props.open) {
|
||
if (this.props.open === true) {
|
||
this.openCollapsible();
|
||
this.props.onOpening();
|
||
} else {
|
||
this.closeCollapsible();
|
||
this.props.onClosing();
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
key: 'componentWillUnmount',
|
||
value: function componentWillUnmount() {
|
||
window.clearTimeout(this.timeout);
|
||
}
|
||
}, {
|
||
key: 'closeCollapsible',
|
||
value: function closeCollapsible() {
|
||
this.setState({
|
||
shouldSwitchAutoOnNextCycle: true,
|
||
height: this.innerRef.scrollHeight,
|
||
transition: 'height ' + (this.props.transitionCloseTime ? this.props.transitionCloseTime : this.props.transitionTime) + 'ms ' + this.props.easing,
|
||
inTransition: true
|
||
});
|
||
}
|
||
}, {
|
||
key: 'openCollapsible',
|
||
value: function openCollapsible() {
|
||
this.setState({
|
||
inTransition: true,
|
||
shouldOpenOnNextCycle: true
|
||
});
|
||
}
|
||
}, {
|
||
key: 'continueOpenCollapsible',
|
||
value: function continueOpenCollapsible() {
|
||
this.setState({
|
||
height: this.innerRef.scrollHeight,
|
||
transition: 'height ' + this.props.transitionTime + 'ms ' + this.props.easing,
|
||
isClosed: false,
|
||
hasBeenOpened: true,
|
||
inTransition: true,
|
||
shouldOpenOnNextCycle: false
|
||
});
|
||
}
|
||
}, {
|
||
key: 'handleTriggerClick',
|
||
value: function handleTriggerClick(event) {
|
||
if (this.props.triggerDisabled) {
|
||
return;
|
||
}
|
||
|
||
event.preventDefault();
|
||
|
||
if (this.props.handleTriggerClick) {
|
||
this.props.handleTriggerClick(this.props.accordionPosition);
|
||
} else {
|
||
if (this.state.isClosed === true) {
|
||
this.openCollapsible();
|
||
this.props.onOpening();
|
||
} else {
|
||
this.closeCollapsible();
|
||
this.props.onClosing();
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
key: 'renderNonClickableTriggerElement',
|
||
value: function renderNonClickableTriggerElement() {
|
||
if (this.props.triggerSibling && typeof this.props.triggerSibling === 'string') {
|
||
return _react2.default.createElement(
|
||
'span',
|
||
{ className: this.props.classParentString + '__trigger-sibling' },
|
||
this.props.triggerSibling
|
||
);
|
||
} else if (this.props.triggerSibling) {
|
||
return _react2.default.createElement(this.props.triggerSibling, null);
|
||
}
|
||
|
||
return null;
|
||
}
|
||
}, {
|
||
key: 'handleTransitionEnd',
|
||
value: function handleTransitionEnd() {
|
||
// Switch to height auto to make the container responsive
|
||
if (!this.state.isClosed) {
|
||
this.setState({ height: 'auto', overflow: this.props.overflowWhenOpen, inTransition: false });
|
||
this.props.onOpen();
|
||
} else {
|
||
this.setState({ inTransition: false });
|
||
this.props.onClose();
|
||
}
|
||
}
|
||
}, {
|
||
key: 'setInnerRef',
|
||
value: function setInnerRef(ref) {
|
||
this.innerRef = ref;
|
||
}
|
||
}, {
|
||
key: 'render',
|
||
value: function render() {
|
||
var _this3 = this;
|
||
|
||
var dropdownStyle = {
|
||
height: this.state.height,
|
||
WebkitTransition: this.state.transition,
|
||
msTransition: this.state.transition,
|
||
transition: this.state.transition,
|
||
overflow: this.state.overflow
|
||
};
|
||
|
||
var openClass = this.state.isClosed ? 'is-closed' : 'is-open';
|
||
var disabledClass = this.props.triggerDisabled ? 'is-disabled' : '';
|
||
|
||
//If user wants different text when tray is open
|
||
var trigger = this.state.isClosed === false && this.props.triggerWhenOpen !== undefined ? this.props.triggerWhenOpen : this.props.trigger;
|
||
|
||
var ContentContainerElement = this.props.contentContainerTagName;
|
||
|
||
// If user wants a trigger wrapping element different than 'span'
|
||
var TriggerElement = this.props.triggerTagName;
|
||
|
||
// Don't render children until the first opening of the Collapsible if lazy rendering is enabled
|
||
var children = this.props.lazyRender && !this.state.hasBeenOpened && this.state.isClosed && !this.state.inTransition ? null : this.props.children;
|
||
|
||
// Construct CSS classes strings
|
||
var triggerClassString = this.props.classParentString + '__trigger ' + openClass + ' ' + disabledClass + ' ' + (this.state.isClosed ? this.props.triggerClassName : this.props.triggerOpenedClassName);
|
||
var parentClassString = this.props.classParentString + ' ' + (this.state.isClosed ? this.props.className : this.props.openedClassName);
|
||
var outerClassString = this.props.classParentString + '__contentOuter ' + this.props.contentOuterClassName;
|
||
var innerClassString = this.props.classParentString + '__contentInner ' + this.props.contentInnerClassName;
|
||
|
||
return _react2.default.createElement(
|
||
ContentContainerElement,
|
||
{ className: parentClassString.trim() },
|
||
_react2.default.createElement(
|
||
TriggerElement,
|
||
{
|
||
className: triggerClassString.trim(),
|
||
onClick: this.handleTriggerClick,
|
||
style: this.props.triggerStyle && this.props.triggerStyle,
|
||
onKeyPress: function onKeyPress(event) {
|
||
var key = event.key;
|
||
|
||
if (key === ' ' || key === 'Enter') {
|
||
_this3.handleTriggerClick(event);
|
||
}
|
||
},
|
||
tabIndex: this.props.tabIndex && this.props.tabIndex
|
||
},
|
||
trigger
|
||
),
|
||
this.renderNonClickableTriggerElement(),
|
||
_react2.default.createElement(
|
||
'div',
|
||
{
|
||
className: outerClassString.trim(),
|
||
style: dropdownStyle,
|
||
onTransitionEnd: this.handleTransitionEnd,
|
||
ref: this.setInnerRef
|
||
},
|
||
_react2.default.createElement(
|
||
'div',
|
||
{
|
||
className: innerClassString.trim()
|
||
},
|
||
children
|
||
)
|
||
)
|
||
);
|
||
}
|
||
}]);
|
||
|
||
return Collapsible;
|
||
}(_react.Component);
|
||
|
||
Collapsible.propTypes = {
|
||
transitionTime: _propTypes2.default.number,
|
||
transitionCloseTime: _propTypes2.default.number,
|
||
triggerTagName: _propTypes2.default.string,
|
||
easing: _propTypes2.default.string,
|
||
open: _propTypes2.default.bool,
|
||
classParentString: _propTypes2.default.string,
|
||
openedClassName: _propTypes2.default.string,
|
||
triggerStyle: _propTypes2.default.object,
|
||
triggerClassName: _propTypes2.default.string,
|
||
triggerOpenedClassName: _propTypes2.default.string,
|
||
contentOuterClassName: _propTypes2.default.string,
|
||
contentInnerClassName: _propTypes2.default.string,
|
||
accordionPosition: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
|
||
handleTriggerClick: _propTypes2.default.func,
|
||
onOpen: _propTypes2.default.func,
|
||
onClose: _propTypes2.default.func,
|
||
onOpening: _propTypes2.default.func,
|
||
onClosing: _propTypes2.default.func,
|
||
trigger: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),
|
||
triggerWhenOpen: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),
|
||
triggerDisabled: _propTypes2.default.bool,
|
||
lazyRender: _propTypes2.default.bool,
|
||
overflowWhenOpen: _propTypes2.default.oneOf(['hidden', 'visible', 'auto', 'scroll', 'inherit', 'initial', 'unset']),
|
||
triggerSibling: _propTypes2.default.oneOfType([_propTypes2.default.element, _propTypes2.default.func]),
|
||
tabIndex: _propTypes2.default.number,
|
||
contentContainerTagName: _propTypes2.default.string
|
||
};
|
||
|
||
Collapsible.defaultProps = {
|
||
transitionTime: 400,
|
||
transitionCloseTime: null,
|
||
triggerTagName: 'span',
|
||
easing: 'linear',
|
||
open: false,
|
||
classParentString: 'Collapsible',
|
||
triggerDisabled: false,
|
||
lazyRender: false,
|
||
overflowWhenOpen: 'hidden',
|
||
openedClassName: '',
|
||
triggerStyle: null,
|
||
triggerClassName: '',
|
||
triggerOpenedClassName: '',
|
||
contentOuterClassName: '',
|
||
contentInnerClassName: '',
|
||
className: '',
|
||
triggerSibling: null,
|
||
onOpen: function onOpen() {},
|
||
onClose: function onClose() {},
|
||
onOpening: function onOpening() {},
|
||
onClosing: function onClosing() {},
|
||
tabIndex: null,
|
||
contentContainerTagName: 'div'
|
||
};
|
||
|
||
exports.default = Collapsible;
|
||
|
||
|
||
|
||
/***/ }),
|
||
/* 476 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _registry = __webpack_require__(477);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _components = __webpack_require__(478);
|
||
|
||
var _index = __webpack_require__(485);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
var _props$match$params = props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo;
|
||
|
||
var slug = (0, _repository.repositorySlug)(owner, repo);
|
||
return {
|
||
loaded: ["registry", "loaded"],
|
||
registries: ["registry", "data", slug]
|
||
};
|
||
};
|
||
|
||
var RepoRegistry = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(RepoRegistry, _Component);
|
||
|
||
function RepoRegistry(props, context) {
|
||
_classCallCheck(this, RepoRegistry);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.handleDelete = _this.handleDelete.bind(_this);
|
||
_this.handleSave = _this.handleSave.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
RepoRegistry.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.registries !== nextProps.registries;
|
||
};
|
||
|
||
RepoRegistry.prototype.componentWillMount = function componentWillMount() {
|
||
var _props = this.props,
|
||
dispatch = _props.dispatch,
|
||
drone = _props.drone,
|
||
match = _props.match;
|
||
var _match$params = match.params,
|
||
owner = _match$params.owner,
|
||
repo = _match$params.repo;
|
||
|
||
dispatch(_registry.fetchRegistryList, drone, owner, repo);
|
||
};
|
||
|
||
RepoRegistry.prototype.handleSave = function handleSave(e) {
|
||
var _props2 = this.props,
|
||
dispatch = _props2.dispatch,
|
||
drone = _props2.drone,
|
||
match = _props2.match;
|
||
var _match$params2 = match.params,
|
||
owner = _match$params2.owner,
|
||
repo = _match$params2.repo;
|
||
|
||
var registry = {
|
||
address: e.detail.address,
|
||
username: e.detail.username,
|
||
password: e.detail.password
|
||
};
|
||
|
||
dispatch(_registry.createRegistry, drone, owner, repo, registry);
|
||
};
|
||
|
||
RepoRegistry.prototype.handleDelete = function handleDelete(registry) {
|
||
var _props3 = this.props,
|
||
dispatch = _props3.dispatch,
|
||
drone = _props3.drone,
|
||
match = _props3.match;
|
||
var _match$params3 = match.params,
|
||
owner = _match$params3.owner,
|
||
repo = _match$params3.repo;
|
||
|
||
dispatch(_registry.deleteRegistry, drone, owner, repo, registry.address);
|
||
};
|
||
|
||
RepoRegistry.prototype.render = function render() {
|
||
var _props4 = this.props,
|
||
registries = _props4.registries,
|
||
loaded = _props4.loaded;
|
||
|
||
|
||
if (!loaded) {
|
||
return LOADING;
|
||
}
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].root },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].left },
|
||
Object.keys(registries || {}).length === 0 ? EMPTY : undefined,
|
||
_react2["default"].createElement(
|
||
_components.List,
|
||
null,
|
||
Object.values(registries || {}).map(renderRegistry.bind(this))
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].right },
|
||
_react2["default"].createElement(_components.Form, { onsubmit: this.handleSave })
|
||
)
|
||
);
|
||
};
|
||
|
||
return RepoRegistry;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = RepoRegistry;
|
||
|
||
|
||
function renderRegistry(registry) {
|
||
return _react2["default"].createElement(_components.Item, {
|
||
name: registry.address,
|
||
ondelete: this.handleDelete.bind(this, registry)
|
||
});
|
||
}
|
||
|
||
var LOADING = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].loading },
|
||
"Loading"
|
||
);
|
||
|
||
var EMPTY = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].empty },
|
||
"There are no registry credentials for this repository."
|
||
);
|
||
|
||
/***/ }),
|
||
/* 477 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.deleteRegistry = exports.createRegistry = exports.fetchRegistryList = undefined;
|
||
|
||
var _message = __webpack_require__(67);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
/**
|
||
* Get the registry list for the named repository and
|
||
* store the results in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
*/
|
||
var fetchRegistryList = exports.fetchRegistryList = function fetchRegistryList(tree, client, owner, name) {
|
||
var slug = (0, _repository.repositorySlug)(owner, name);
|
||
|
||
tree.unset(["registry", "loaded"]);
|
||
tree.unset(["registry", "error"]);
|
||
|
||
client.getRegistryList(owner, name).then(function (results) {
|
||
var list = {};
|
||
results.map(function (registry) {
|
||
list[registry.address] = registry;
|
||
});
|
||
tree.set(["registry", "data", slug], list);
|
||
tree.set(["registry", "loaded"], true);
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Create the registry credentials for the named repository
|
||
* and if successful, store the result in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {Object} registry - The registry hostname.
|
||
*/
|
||
var createRegistry = exports.createRegistry = function createRegistry(tree, client, owner, name, registry) {
|
||
var slug = (0, _repository.repositorySlug)(owner, name);
|
||
|
||
client.createRegistry(owner, name, registry).then(function (result) {
|
||
tree.set(["registry", "data", slug, registry.address], result);
|
||
(0, _message.displayMessage)(tree, "Successfully stored the registry credentials");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to store the registry credentials");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Delete the registry credentials for the named repository
|
||
* and if successful, remove from the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {Object} registry - The registry hostname.
|
||
*/
|
||
var deleteRegistry = exports.deleteRegistry = function deleteRegistry(tree, client, owner, name, registry) {
|
||
var slug = (0, _repository.repositorySlug)(owner, name);
|
||
|
||
client.deleteRegistry(owner, name, registry).then(function (result) {
|
||
tree.unset(["registry", "data", slug, registry]);
|
||
(0, _message.displayMessage)(tree, "Successfully deleted the registry credentials");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to delete the registry credentials");
|
||
});
|
||
};
|
||
|
||
/***/ }),
|
||
/* 478 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = exports.Form = undefined;
|
||
|
||
var _form = __webpack_require__(479);
|
||
|
||
var _list = __webpack_require__(482);
|
||
|
||
exports.Form = _form.Form;
|
||
exports.List = _list.List;
|
||
exports.Item = _list.Item;
|
||
|
||
/***/ }),
|
||
/* 479 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Form = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _form = __webpack_require__(480);
|
||
|
||
var _form2 = _interopRequireDefault(_form);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Form = exports.Form = function (_Component) {
|
||
_inherits(Form, _Component);
|
||
|
||
function Form(props, context) {
|
||
_classCallCheck(this, Form);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.state = {
|
||
address: "",
|
||
username: "",
|
||
password: ""
|
||
};
|
||
|
||
_this._handleAddressChange = _this._handleAddressChange.bind(_this);
|
||
_this._handleUsernameChange = _this._handleUsernameChange.bind(_this);
|
||
_this._handlePasswordChange = _this._handlePasswordChange.bind(_this);
|
||
_this._handleSubmit = _this._handleSubmit.bind(_this);
|
||
|
||
_this.clear = _this.clear.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
Form.prototype._handleAddressChange = function _handleAddressChange(event) {
|
||
this.setState({ address: event.target.value });
|
||
};
|
||
|
||
Form.prototype._handleUsernameChange = function _handleUsernameChange(event) {
|
||
this.setState({ username: event.target.value });
|
||
};
|
||
|
||
Form.prototype._handlePasswordChange = function _handlePasswordChange(event) {
|
||
this.setState({ password: event.target.value });
|
||
};
|
||
|
||
Form.prototype._handleSubmit = function _handleSubmit() {
|
||
var onsubmit = this.props.onsubmit;
|
||
|
||
|
||
var detail = {
|
||
address: this.state.address,
|
||
username: this.state.username,
|
||
password: this.state.password
|
||
};
|
||
|
||
onsubmit({ detail: detail });
|
||
this.clear();
|
||
};
|
||
|
||
Form.prototype.clear = function clear() {
|
||
this.setState({ address: "" });
|
||
this.setState({ username: "" });
|
||
this.setState({ password: "" });
|
||
};
|
||
|
||
Form.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _form2["default"].form },
|
||
_react2["default"].createElement("input", {
|
||
type: "text",
|
||
value: this.state.address,
|
||
onChange: this._handleAddressChange,
|
||
placeholder: "Registry Address (e.g. docker.io)"
|
||
}),
|
||
_react2["default"].createElement("input", {
|
||
type: "text",
|
||
value: this.state.username,
|
||
onChange: this._handleUsernameChange,
|
||
placeholder: "Registry Username"
|
||
}),
|
||
_react2["default"].createElement("textarea", {
|
||
rows: "1",
|
||
value: this.state.password,
|
||
onChange: this._handlePasswordChange,
|
||
placeholder: "Registry Password"
|
||
}),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _form2["default"].actions },
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: this._handleSubmit },
|
||
"Save"
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
return Form;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 480 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(481);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./form.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./form.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 481 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".form__form___2lbDe input {\n border: 1px solid #eceff1;\n box-sizing: border-box;\n display: block;\n margin-bottom: 20px;\n outline: none;\n padding: 10px;\n width: 100%;\n}\n.form__form___2lbDe input:focus {\n border: 1px solid #212121;\n}\n.form__form___2lbDe textarea {\n border: 1px solid #eceff1;\n box-sizing: border-box;\n display: block;\n height: 100px;\n margin-bottom: 20px;\n outline: none;\n padding: 10px;\n width: 100%;\n}\n.form__form___2lbDe textarea:focus {\n border: 1px solid #212121;\n}\n.form__form___2lbDe .form__actions___1m4LD {\n text-align: right;\n}\n.form__form___2lbDe button {\n background: #ffffff;\n border: 1px solid #212121;\n border-radius: 2px;\n color: #212121;\n cursor: pointer;\n font-family: 'Roboto';\n font-size: 14px;\n line-height: 28px;\n outline: none;\n padding: 0px 20px;\n text-transform: uppercase;\n user-select: none;\n}\n.form__form___2lbDe ::-moz-input-placeholder {\n color: #bdbdbd;\n font-size: 15px;\n font-weight: 300;\n user-select: none;\n}\n.form__form___2lbDe ::-webkit-input-placeholder {\n color: #bdbdbd;\n font-size: 15px;\n font-weight: 300;\n user-select: none;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"form": "form__form___2lbDe",
|
||
"actions": "form__actions___1m4LD"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 482 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _list = __webpack_require__(483);
|
||
|
||
var _list2 = _interopRequireDefault(_list);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
var List = exports.List = function List(_ref) {
|
||
var children = _ref.children;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].list },
|
||
children
|
||
);
|
||
};
|
||
|
||
var Item = exports.Item = function Item(props) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].item, key: props.name },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
props.name
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: props.ondelete },
|
||
"delete"
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 483 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(484);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./list.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./list.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 484 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".list__item___1bz12 {\n border-bottom: 1px solid #eceff1;\n display: flex;\n padding: 10px 10px;\n padding-bottom: 20px;\n}\n.list__item___1bz12:last-child {\n border-bottom: 0px;\n}\n.list__item___1bz12:first-child {\n padding-top: 0px;\n}\n.list__item___1bz12 > div:first-child {\n flex: 1 1 auto;\n font-size: 15px;\n line-height: 32px;\n text-transform: lowercase;\n}\n.list__item___1bz12 > div:last-child {\n align-content: stretch;\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: right;\n}\n.list__item___1bz12 button {\n background: #ffffff;\n border: 1px solid #fc4758;\n border-radius: 2px;\n color: #fc4758;\n cursor: pointer;\n display: block;\n font-size: 13px;\n padding: 2px 10px;\n text-align: center;\n text-decoration: none;\n text-transform: uppercase;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"item": "list__item___1bz12"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 485 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(486);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 486 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__root___1Cbsr {\n display: flex;\n padding: 20px;\n}\n.index__left___2DSjH {\n flex: 1;\n margin-right: 20px;\n}\n.index__right___3Yl7V {\n border-left: 1px solid #eceff1;\n flex: 1;\n padding-left: 20px;\n padding-top: 10px;\n}\n@media (max-width: 960px) {\n .index__root___1Cbsr {\n flex-direction: column;\n }\n .index__list___3RZ0B {\n margin-right: 0px;\n }\n .index__right___3Yl7V {\n border-left: 0px;\n padding-left: 0px;\n padding-top: 20px;\n }\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "index__root___1Cbsr",
|
||
"left": "index__left___2DSjH",
|
||
"right": "index__right___3Yl7V",
|
||
"list": "index__list___3RZ0B"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 487 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _secrets = __webpack_require__(488);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _components = __webpack_require__(489);
|
||
|
||
var _index = __webpack_require__(496);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
var _props$match$params = props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo;
|
||
|
||
var slug = (0, _repository.repositorySlug)(owner, repo);
|
||
return {
|
||
loaded: ["secrets", "loaded"],
|
||
secrets: ["secrets", "data", slug]
|
||
};
|
||
};
|
||
|
||
var RepoSecrets = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(RepoSecrets, _Component);
|
||
|
||
function RepoSecrets(props, context) {
|
||
_classCallCheck(this, RepoSecrets);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.handleSave = _this.handleSave.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
RepoSecrets.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.secrets !== nextProps.secrets;
|
||
};
|
||
|
||
RepoSecrets.prototype.componentWillMount = function componentWillMount() {
|
||
var _props$match$params2 = this.props.match.params,
|
||
owner = _props$match$params2.owner,
|
||
repo = _props$match$params2.repo;
|
||
|
||
this.props.dispatch(_secrets.fetchSecretList, this.props.drone, owner, repo);
|
||
};
|
||
|
||
RepoSecrets.prototype.handleSave = function handleSave(e) {
|
||
var _props = this.props,
|
||
dispatch = _props.dispatch,
|
||
drone = _props.drone,
|
||
match = _props.match;
|
||
var _match$params = match.params,
|
||
owner = _match$params.owner,
|
||
repo = _match$params.repo;
|
||
|
||
var secret = {
|
||
name: e.detail.name,
|
||
value: e.detail.value,
|
||
event: e.detail.event
|
||
};
|
||
|
||
dispatch(_secrets.createSecret, drone, owner, repo, secret);
|
||
};
|
||
|
||
RepoSecrets.prototype.handleDelete = function handleDelete(secret) {
|
||
var _props2 = this.props,
|
||
dispatch = _props2.dispatch,
|
||
drone = _props2.drone,
|
||
match = _props2.match;
|
||
var _match$params2 = match.params,
|
||
owner = _match$params2.owner,
|
||
repo = _match$params2.repo;
|
||
|
||
dispatch(_secrets.deleteSecret, drone, owner, repo, secret.name);
|
||
};
|
||
|
||
RepoSecrets.prototype.render = function render() {
|
||
var _props3 = this.props,
|
||
secrets = _props3.secrets,
|
||
loaded = _props3.loaded;
|
||
|
||
|
||
if (!loaded) {
|
||
return LOADING;
|
||
}
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].root },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].left },
|
||
Object.keys(secrets || {}).length === 0 ? EMPTY : undefined,
|
||
_react2["default"].createElement(
|
||
_components.List,
|
||
null,
|
||
Object.values(secrets || {}).map(renderSecret.bind(this))
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].right },
|
||
_react2["default"].createElement(_components.Form, { onsubmit: this.handleSave })
|
||
)
|
||
);
|
||
};
|
||
|
||
return RepoSecrets;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = RepoSecrets;
|
||
|
||
|
||
function renderSecret(secret) {
|
||
return _react2["default"].createElement(_components.Item, {
|
||
name: secret.name,
|
||
event: secret.event,
|
||
ondelete: this.handleDelete.bind(this, secret)
|
||
});
|
||
}
|
||
|
||
var LOADING = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].loading },
|
||
"Loading"
|
||
);
|
||
|
||
var EMPTY = _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].empty },
|
||
"There are no secrets for this repository."
|
||
);
|
||
|
||
/***/ }),
|
||
/* 488 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.deleteSecret = exports.createSecret = exports.fetchSecretList = undefined;
|
||
|
||
var _message = __webpack_require__(67);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
/**
|
||
* Get the secret list for the named repository and
|
||
* store the results in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
*/
|
||
var fetchSecretList = exports.fetchSecretList = function fetchSecretList(tree, client, owner, name) {
|
||
var slug = (0, _repository.repositorySlug)(owner, name);
|
||
|
||
tree.unset(["secrets", "loaded"]);
|
||
tree.unset(["secrets", "error"]);
|
||
|
||
client.getSecretList(owner, name).then(function (results) {
|
||
var list = {};
|
||
results.map(function (secret) {
|
||
list[secret.name] = secret;
|
||
});
|
||
tree.set(["secrets", "data", slug], list);
|
||
tree.set(["secrets", "loaded"], true);
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Create the named repository secret and if successful
|
||
* store the result in the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {Object} secret - The secret object.
|
||
*/
|
||
var createSecret = exports.createSecret = function createSecret(tree, client, owner, name, secret) {
|
||
var slug = (0, _repository.repositorySlug)(owner, name);
|
||
|
||
client.createSecret(owner, name, secret).then(function (result) {
|
||
tree.set(["secrets", "data", slug, secret.name], result);
|
||
(0, _message.displayMessage)(tree, "Successfully added the secret");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to create the secret");
|
||
});
|
||
};
|
||
|
||
/**
|
||
* Delete the named repository secret from the server and
|
||
* remove from the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
* @param {string} owner - The repository owner.
|
||
* @param {string} name - The repository name.
|
||
* @param {string} secret - The secret name.
|
||
*/
|
||
var deleteSecret = exports.deleteSecret = function deleteSecret(tree, client, owner, name, secret) {
|
||
var slug = (0, _repository.repositorySlug)(owner, name);
|
||
|
||
client.deleteSecret(owner, name, secret).then(function (result) {
|
||
tree.unset(["secrets", "data", slug, secret]);
|
||
(0, _message.displayMessage)(tree, "Successfully removed the secret");
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to remove the secret");
|
||
});
|
||
};
|
||
|
||
/***/ }),
|
||
/* 489 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = exports.Form = undefined;
|
||
|
||
var _form = __webpack_require__(490);
|
||
|
||
var _list = __webpack_require__(493);
|
||
|
||
exports.Form = _form.Form;
|
||
exports.List = _list.List;
|
||
exports.Item = _list.Item;
|
||
|
||
/***/ }),
|
||
/* 490 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Form = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _events = __webpack_require__(192);
|
||
|
||
var _form = __webpack_require__(491);
|
||
|
||
var _form2 = _interopRequireDefault(_form);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Form = exports.Form = function (_Component) {
|
||
_inherits(Form, _Component);
|
||
|
||
function Form(props, context) {
|
||
_classCallCheck(this, Form);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.state = {
|
||
name: "",
|
||
value: "",
|
||
event: [_events.EVENT_PUSH, _events.EVENT_TAG, _events.EVENT_DEPLOY]
|
||
};
|
||
|
||
_this._handleNameChange = _this._handleNameChange.bind(_this);
|
||
_this._handleValueChange = _this._handleValueChange.bind(_this);
|
||
_this._handleEventChange = _this._handleEventChange.bind(_this);
|
||
_this._handleSubmit = _this._handleSubmit.bind(_this);
|
||
|
||
_this.clear = _this.clear.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
Form.prototype._handleNameChange = function _handleNameChange(event) {
|
||
this.setState({ name: event.target.value });
|
||
};
|
||
|
||
Form.prototype._handleValueChange = function _handleValueChange(event) {
|
||
this.setState({ value: event.target.value });
|
||
};
|
||
|
||
Form.prototype._handleEventChange = function _handleEventChange(event) {
|
||
var selected = this.state.event;
|
||
var index = void 0;
|
||
|
||
if (event.target.checked) {
|
||
selected.push(event.target.value);
|
||
} else {
|
||
index = selected.indexOf(event.target.value);
|
||
selected.splice(index, 1);
|
||
}
|
||
|
||
this.setState({ event: selected });
|
||
};
|
||
|
||
Form.prototype._handleSubmit = function _handleSubmit() {
|
||
var onsubmit = this.props.onsubmit;
|
||
|
||
|
||
var detail = {
|
||
name: this.state.name,
|
||
value: this.state.value,
|
||
event: this.state.event
|
||
};
|
||
|
||
onsubmit({ detail: detail });
|
||
this.clear();
|
||
};
|
||
|
||
Form.prototype.clear = function clear() {
|
||
this.setState({ name: "" });
|
||
this.setState({ value: "" });
|
||
this.setState({ event: [_events.EVENT_PUSH, _events.EVENT_TAG, _events.EVENT_DEPLOY] });
|
||
};
|
||
|
||
Form.prototype.render = function render() {
|
||
var checked = this.state.event.reduce(function (map, event) {
|
||
map[event] = true;
|
||
return map;
|
||
}, {});
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _form2["default"].form },
|
||
_react2["default"].createElement("input", {
|
||
type: "text",
|
||
name: "name",
|
||
value: this.state.name,
|
||
placeholder: "Secret Name",
|
||
onChange: this._handleNameChange
|
||
}),
|
||
_react2["default"].createElement("textarea", {
|
||
rows: "1",
|
||
name: "value",
|
||
value: this.state.value,
|
||
placeholder: "Secret Value",
|
||
onChange: this._handleValueChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Events"
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: checked[_events.EVENT_PUSH],
|
||
value: _events.EVENT_PUSH,
|
||
onChange: this._handleEventChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"push"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: checked[_events.EVENT_TAG],
|
||
value: _events.EVENT_TAG,
|
||
onChange: this._handleEventChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"tag"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: checked[_events.EVENT_PULL_REQUEST],
|
||
value: _events.EVENT_PULL_REQUEST,
|
||
onChange: this._handleEventChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"pull request"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: checked[_events.EVENT_DEPLOY],
|
||
value: _events.EVENT_DEPLOY,
|
||
onChange: this._handleEventChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"deploy"
|
||
)
|
||
)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _form2["default"].actions },
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: this._handleSubmit },
|
||
"Save"
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
return Form;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 491 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(492);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./form.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./form.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 492 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".form__form___r9iRG input {\n border: 1px solid #eceff1;\n box-sizing: border-box;\n display: block;\n margin-bottom: 20px;\n outline: none;\n padding: 10px;\n width: 100%;\n}\n.form__form___r9iRG input:focus {\n border: 1px solid #212121;\n}\n.form__form___r9iRG textarea {\n border: 1px solid #eceff1;\n box-sizing: border-box;\n display: block;\n height: 100px;\n margin-bottom: 20px;\n outline: none;\n padding: 10px;\n width: 100%;\n}\n.form__form___r9iRG textarea:focus {\n border: 1px solid #212121;\n}\n.form__form___r9iRG section {\n display: flex;\n flex: 1 1 auto;\n padding-bottom: 20px;\n}\n.form__form___r9iRG section > div {\n flex: 1;\n}\n.form__form___r9iRG section:first-child {\n padding-top: 0px;\n}\n.form__form___r9iRG section:last-child {\n border-bottom-width: 0px;\n}\n@media (max-width: 600px) {\n .form__form___r9iRG section {\n display: flex;\n flex-direction: column;\n }\n .form__form___r9iRG section h2 {\n flex: none;\n margin-bottom: 20px;\n }\n .form__form___r9iRG section > :last-child {\n padding-left: 20px;\n }\n}\n.form__form___r9iRG section h2 {\n flex: 0 0 100px;\n font-size: 15px;\n font-weight: normal;\n line-height: 26px;\n margin: 0px;\n padding: 0px;\n}\n.form__form___r9iRG section label {\n display: block;\n padding: 0px;\n}\n.form__form___r9iRG section label span {\n font-size: 15px;\n}\n.form__form___r9iRG section input[type='checkbox'] {\n width: initial;\n display: inline;\n margin: 0px 10px 0px 0px;\n}\n.form__form___r9iRG .form__actions___2sVAF {\n text-align: right;\n}\n.form__form___r9iRG button {\n background: #ffffff;\n border: 1px solid #212121;\n border-radius: 2px;\n color: #212121;\n cursor: pointer;\n font-family: 'Roboto';\n font-size: 14px;\n line-height: 28px;\n outline: none;\n padding: 0px 20px;\n text-transform: uppercase;\n user-select: none;\n}\n.form__form___r9iRG ::-moz-input-placeholder {\n color: #bdbdbd;\n font-size: 15px;\n font-weight: 300;\n user-select: none;\n}\n.form__form___r9iRG ::-webkit-input-placeholder {\n color: #bdbdbd;\n font-size: 15px;\n font-weight: 300;\n user-select: none;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"form": "form__form___r9iRG",
|
||
"actions": "form__actions___2sVAF"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 493 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _list = __webpack_require__(494);
|
||
|
||
var _list2 = _interopRequireDefault(_list);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
var List = exports.List = function List(_ref) {
|
||
var children = _ref.children;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
children
|
||
);
|
||
};
|
||
|
||
var Item = exports.Item = function Item(props) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].item, key: props.name },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
props.name,
|
||
_react2["default"].createElement(
|
||
"ul",
|
||
null,
|
||
props.event ? props.event.map(renderEvent) : null
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: props.ondelete },
|
||
"delete"
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
var renderEvent = function renderEvent(event) {
|
||
return _react2["default"].createElement(
|
||
"li",
|
||
null,
|
||
event
|
||
);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 494 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(495);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./list.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./list.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 495 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".list__item___HWtgZ {\n border-bottom: 1px solid #eceff1;\n display: flex;\n padding: 10px 10px;\n padding-bottom: 20px;\n}\n.list__item___HWtgZ:last-child {\n border-bottom: 0px;\n}\n.list__item___HWtgZ:first-child {\n padding-top: 0px;\n}\n.list__item___HWtgZ > div:first-child {\n flex: 1 1 auto;\n font-size: 15px;\n line-height: 32px;\n text-transform: lowercase;\n}\n.list__item___HWtgZ > div:last-child {\n align-content: stretch;\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: right;\n}\n.list__item___HWtgZ button {\n background: #ffffff;\n border: 1px solid #fc4758;\n border-radius: 2px;\n color: #fc4758;\n cursor: pointer;\n display: block;\n font-size: 13px;\n padding: 2px 10px;\n text-align: center;\n text-decoration: none;\n text-transform: uppercase;\n}\n.list__item___HWtgZ ul {\n line-height: 0px;\n list-style: none;\n margin: 0px;\n padding: 0px;\n}\n.list__item___HWtgZ li {\n background: #eceff1;\n border-radius: 2px;\n color: #212121;\n display: inline-block;\n font-size: 12px;\n line-height: 20px;\n margin-bottom: 2px;\n margin-right: 2px;\n padding: 0px 10px;\n text-transform: uppercase;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"item": "list__item___HWtgZ"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 496 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(497);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 497 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__root___3HU7P {\n display: flex;\n padding: 20px;\n}\n.index__left___2eSV- {\n flex: 1;\n margin-right: 20px;\n}\n.index__right___3onqf {\n border-left: 1px solid #eceff1;\n flex: 1;\n padding-left: 20px;\n padding-top: 10px;\n}\n@media (max-width: 960px) {\n .index__root___3HU7P {\n flex-direction: column;\n }\n .index__list___LEln4 {\n margin-right: 0px;\n }\n .index__right___3onqf {\n border-left: 0px;\n padding-left: 0px;\n padding-top: 20px;\n }\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "index__root___3HU7P",
|
||
"left": "index__left___2eSV-",
|
||
"right": "index__right___3onqf",
|
||
"list": "index__list___LEln4"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 498 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _visibility = __webpack_require__(499);
|
||
|
||
var _index = __webpack_require__(500);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
var _props$match$params = props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo;
|
||
|
||
var slug = (0, _repository.repositorySlug)(owner, repo);
|
||
return {
|
||
user: ["user", "data"],
|
||
repo: ["repos", "data", slug]
|
||
};
|
||
};
|
||
|
||
var Settings = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(Settings, _Component);
|
||
|
||
function Settings(props, context) {
|
||
_classCallCheck(this, Settings);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.handlePushChange = _this.handlePushChange.bind(_this);
|
||
_this.handlePullChange = _this.handlePullChange.bind(_this);
|
||
_this.handleTagChange = _this.handleTagChange.bind(_this);
|
||
_this.handleDeployChange = _this.handleDeployChange.bind(_this);
|
||
_this.handleTrustedChange = _this.handleTrustedChange.bind(_this);
|
||
_this.handleProtectedChange = _this.handleProtectedChange.bind(_this);
|
||
_this.handleVisibilityChange = _this.handleVisibilityChange.bind(_this);
|
||
_this.handleTimeoutChange = _this.handleTimeoutChange.bind(_this);
|
||
_this.handlePathChange = _this.handlePathChange.bind(_this);
|
||
_this.handleFallbackChange = _this.handleFallbackChange.bind(_this);
|
||
_this.handleChange = _this.handleChange.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
Settings.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.repo !== nextProps.repo;
|
||
};
|
||
|
||
Settings.prototype.componentWillMount = function componentWillMount() {
|
||
var _props = this.props,
|
||
drone = _props.drone,
|
||
dispatch = _props.dispatch,
|
||
match = _props.match,
|
||
repo = _props.repo;
|
||
|
||
|
||
if (!repo) {
|
||
dispatch(_repository.fetchRepository, drone, match.params.owner, match.params.repo);
|
||
}
|
||
};
|
||
|
||
Settings.prototype.render = function render() {
|
||
var repo = this.props.repo;
|
||
|
||
|
||
if (!repo) {
|
||
return undefined;
|
||
}
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].root },
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Pipeline Path"
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "text",
|
||
value: repo.config_file,
|
||
onBlur: this.handlePathChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: repo.fallback,
|
||
onChange: this.handleFallbackChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Fallback to .drone.yml if path not exists"
|
||
)
|
||
)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Repository Hooks"
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: repo.allow_push,
|
||
onChange: this.handlePushChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"push"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: repo.allow_pr,
|
||
onChange: this.handlePullChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"pull request"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: repo.allow_tags,
|
||
onChange: this.handleTagChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"tag"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: repo.allow_deploys,
|
||
onChange: this.handleDeployChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"deployment"
|
||
)
|
||
)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Project Settings"
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: repo.gated,
|
||
onChange: this.handleProtectedChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Protected"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "checkbox",
|
||
checked: repo.trusted,
|
||
onChange: this.handleTrustedChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Trusted"
|
||
)
|
||
)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Project Visibility"
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "radio",
|
||
name: "visibility",
|
||
value: "public",
|
||
checked: repo.visibility === _visibility.VISIBILITY_PUBLIC,
|
||
onChange: this.handleVisibilityChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Public"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "radio",
|
||
name: "visibility",
|
||
value: "private",
|
||
checked: repo.visibility === _visibility.VISIBILITY_PRIVATE,
|
||
onChange: this.handleVisibilityChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Private"
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"label",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "radio",
|
||
name: "visibility",
|
||
value: "internal",
|
||
checked: repo.visibility === _visibility.VISIBILITY_INTERNAL,
|
||
onChange: this.handleVisibilityChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Internal"
|
||
)
|
||
)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Timeout"
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement("input", {
|
||
type: "number",
|
||
value: repo.timeout,
|
||
onBlur: this.handleTimeoutChange
|
||
}),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
{ className: _index2["default"].minutes },
|
||
"minutes"
|
||
)
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
Settings.prototype.handlePushChange = function handlePushChange(e) {
|
||
this.handleChange("allow_push", e.target.checked);
|
||
};
|
||
|
||
Settings.prototype.handlePullChange = function handlePullChange(e) {
|
||
this.handleChange("allow_pr", e.target.checked);
|
||
};
|
||
|
||
Settings.prototype.handleTagChange = function handleTagChange(e) {
|
||
this.handleChange("allow_tag", e.target.checked);
|
||
};
|
||
|
||
Settings.prototype.handleDeployChange = function handleDeployChange(e) {
|
||
this.handleChange("allow_deploy", e.target.checked);
|
||
};
|
||
|
||
Settings.prototype.handleTrustedChange = function handleTrustedChange(e) {
|
||
this.handleChange("trusted", e.target.checked);
|
||
};
|
||
|
||
Settings.prototype.handleProtectedChange = function handleProtectedChange(e) {
|
||
this.handleChange("gated", e.target.checked);
|
||
};
|
||
|
||
Settings.prototype.handleVisibilityChange = function handleVisibilityChange(e) {
|
||
this.handleChange("visibility", e.target.value);
|
||
};
|
||
|
||
Settings.prototype.handleTimeoutChange = function handleTimeoutChange(e) {
|
||
this.handleChange("timeout", parseInt(e.target.value));
|
||
};
|
||
|
||
Settings.prototype.handlePathChange = function handlePathChange(e) {
|
||
this.handleChange("config_file", e.target.value);
|
||
};
|
||
|
||
Settings.prototype.handleFallbackChange = function handleFallbackChange(e) {
|
||
this.handleChange("fallback", e.target.checked);
|
||
};
|
||
|
||
Settings.prototype.handleChange = function handleChange(prop, value) {
|
||
var _props2 = this.props,
|
||
dispatch = _props2.dispatch,
|
||
drone = _props2.drone,
|
||
repo = _props2.repo;
|
||
|
||
var data = {};
|
||
data[prop] = value;
|
||
dispatch(_repository.updateRepository, drone, repo.owner, repo.name, data);
|
||
};
|
||
|
||
return Settings;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = Settings;
|
||
|
||
/***/ }),
|
||
/* 499 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
var VISIBILITY_PUBLIC = "public";
|
||
var VISIBILITY_PRIVATE = "private";
|
||
var VISIBILITY_INTERNAL = "internal";
|
||
|
||
exports.VISIBILITY_PUBLIC = VISIBILITY_PUBLIC;
|
||
exports.VISIBILITY_PRIVATE = VISIBILITY_PRIVATE;
|
||
exports.VISIBILITY_INTERNAL = VISIBILITY_INTERNAL;
|
||
|
||
/***/ }),
|
||
/* 500 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(501);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 501 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__root___SEuHJ {\n padding: 20px;\n}\n.index__root___SEuHJ section {\n border-bottom: 1px solid #eceff1;\n display: flex;\n flex: 1 1 auto;\n padding: 20px 10px;\n}\n.index__root___SEuHJ section > div {\n flex: 1;\n}\n.index__root___SEuHJ section:first-child {\n padding-top: 0px;\n}\n.index__root___SEuHJ section:last-child {\n border-bottom-width: 0px;\n}\n@media (max-width: 600px) {\n .index__root___SEuHJ section {\n display: flex;\n flex-direction: column;\n }\n .index__root___SEuHJ section h2 {\n flex: none;\n margin-bottom: 20px;\n }\n .index__root___SEuHJ section > :last-child {\n padding-left: 20px;\n }\n}\n.index__root___SEuHJ h2 {\n flex: 0 0 200px;\n font-size: 15px;\n font-weight: normal;\n line-height: 26px;\n margin: 0px;\n padding: 0px;\n}\n.index__root___SEuHJ label {\n display: block;\n padding: 0px;\n}\n.index__root___SEuHJ label span {\n font-size: 15px;\n}\n.index__root___SEuHJ input[type='checkbox'],\n.index__root___SEuHJ input[type='radio'] {\n margin-right: 10px;\n}\n.index__root___SEuHJ input[type='number'] {\n border: 1px solid #eceff1;\n font-size: 15px;\n padding: 5px 10px;\n width: 50px;\n}\n.index__root___SEuHJ .index__minutes___1CcPK {\n margin-left: 5px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "index__root___SEuHJ",
|
||
"minutes": "index__minutes___1CcPK"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 502 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _components = __webpack_require__(503);
|
||
|
||
var _build = __webpack_require__(129);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _index = __webpack_require__(512);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
var _props$match$params = props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo;
|
||
|
||
var slug = (0, _repository.repositorySlug)(owner, repo);
|
||
return {
|
||
repo: ["repos", "data", slug],
|
||
builds: ["builds", "data", slug],
|
||
loaded: ["builds", "loaded"],
|
||
error: ["builds", "error"]
|
||
};
|
||
};
|
||
|
||
var Main = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(Main, _Component);
|
||
|
||
function Main(props, context) {
|
||
_classCallCheck(this, Main);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.fetchNextBuildPage = _this.fetchNextBuildPage.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
Main.prototype.componentWillMount = function componentWillMount() {
|
||
this.synchronize(this.props);
|
||
};
|
||
|
||
Main.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.repo !== nextProps.repo || nextProps.builds !== undefined && this.props.builds !== nextProps.builds || this.props.error !== nextProps.error || this.props.loaded !== nextProps.loaded;
|
||
};
|
||
|
||
Main.prototype.componentWillUpdate = function componentWillUpdate(nextProps) {
|
||
if (this.props.match.url !== nextProps.match.url) {
|
||
this.synchronize(nextProps);
|
||
}
|
||
};
|
||
|
||
Main.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
|
||
if (this.props.location !== prevProps.location) {
|
||
window.scrollTo(0, 0);
|
||
}
|
||
};
|
||
|
||
Main.prototype.synchronize = function synchronize(props) {
|
||
var drone = props.drone,
|
||
dispatch = props.dispatch,
|
||
match = props.match,
|
||
repo = props.repo;
|
||
|
||
|
||
if (!repo) {
|
||
dispatch(_repository.fetchRepository, drone, match.params.owner, match.params.repo);
|
||
}
|
||
|
||
dispatch(_build.fetchBuildList, drone, match.params.owner, match.params.repo);
|
||
};
|
||
|
||
Main.prototype.fetchNextBuildPage = function fetchNextBuildPage(buildList) {
|
||
var _props = this.props,
|
||
drone = _props.drone,
|
||
dispatch = _props.dispatch,
|
||
match = _props.match;
|
||
|
||
var page = Math.floor(buildList.length / 50) + 1;
|
||
|
||
dispatch(_build.fetchBuildList, drone, match.params.owner, match.params.repo, page);
|
||
};
|
||
|
||
Main.prototype.render = function render() {
|
||
var _this2 = this;
|
||
|
||
var _props2 = this.props,
|
||
repo = _props2.repo,
|
||
builds = _props2.builds,
|
||
loaded = _props2.loaded,
|
||
error = _props2.error;
|
||
|
||
var list = Object.values(builds || {});
|
||
|
||
function renderBuild(build) {
|
||
return _react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{ to: "/" + repo.full_name + "/" + build.number, key: build.number },
|
||
_react2["default"].createElement(_components.Item, { build: build })
|
||
);
|
||
}
|
||
|
||
if (error) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Not Found"
|
||
);
|
||
}
|
||
|
||
if (!loaded && list.length === 0) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Loading"
|
||
);
|
||
}
|
||
|
||
if (!repo) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Loading"
|
||
);
|
||
}
|
||
|
||
if (list.length === 0) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Build list is empty"
|
||
);
|
||
}
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].root },
|
||
_react2["default"].createElement(
|
||
_components.List,
|
||
null,
|
||
list.sort(_build.compareBuild).map(renderBuild)
|
||
),
|
||
list.length < repo.last_build && _react2["default"].createElement(
|
||
"button",
|
||
{
|
||
onClick: function onClick() {
|
||
return _this2.fetchNextBuildPage(list);
|
||
},
|
||
className: _index2["default"].more
|
||
},
|
||
"Show more builds"
|
||
)
|
||
);
|
||
};
|
||
|
||
return Main;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = Main;
|
||
|
||
/***/ }),
|
||
/* 503 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = undefined;
|
||
|
||
var _list = __webpack_require__(504);
|
||
|
||
exports.List = _list.List;
|
||
exports.Item = _list.Item;
|
||
|
||
/***/ }),
|
||
/* 504 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _status = __webpack_require__(86);
|
||
|
||
var _status2 = _interopRequireDefault(_status);
|
||
|
||
var _status_number = __webpack_require__(505);
|
||
|
||
var _status_number2 = _interopRequireDefault(_status_number);
|
||
|
||
var _build_time = __webpack_require__(128);
|
||
|
||
var _build_time2 = _interopRequireDefault(_build_time);
|
||
|
||
var _build_event = __webpack_require__(193);
|
||
|
||
var _build_event2 = _interopRequireDefault(_build_event);
|
||
|
||
var _list = __webpack_require__(510);
|
||
|
||
var _list2 = _interopRequireDefault(_list);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var List = exports.List = function List(_ref) {
|
||
var children = _ref.children;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].list },
|
||
children
|
||
);
|
||
};
|
||
|
||
var Item = exports.Item = function (_Component) {
|
||
_inherits(Item, _Component);
|
||
|
||
function Item() {
|
||
_classCallCheck(this, Item);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Item.prototype.render = function render() {
|
||
var build = this.props.build;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].item },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].icon },
|
||
_react2["default"].createElement("img", { src: build.author_avatar })
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].body },
|
||
_react2["default"].createElement(
|
||
"h3",
|
||
null,
|
||
build.message.split("\n")[0]
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].meta },
|
||
_react2["default"].createElement(_build_event2["default"], {
|
||
link: build.link_url,
|
||
event: build.event,
|
||
commit: build.commit,
|
||
branch: build.branch,
|
||
target: build.deploy_to,
|
||
refspec: build.refspec,
|
||
refs: build.ref
|
||
})
|
||
),
|
||
_react2["default"].createElement("div", { className: _list2["default"]["break"] }),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].time },
|
||
_react2["default"].createElement(_build_time2["default"], {
|
||
start: build.started_at || build.created_at,
|
||
finish: build.finished_at
|
||
})
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].status },
|
||
_react2["default"].createElement(_status_number2["default"], { status: build.status, number: build.number }),
|
||
_react2["default"].createElement(_status2["default"], { status: build.status })
|
||
)
|
||
);
|
||
};
|
||
|
||
return Item;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 505 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _classnames = __webpack_require__(66);
|
||
|
||
var _classnames2 = _interopRequireDefault(_classnames);
|
||
|
||
var _status_number = __webpack_require__(506);
|
||
|
||
var _status_number2 = _interopRequireDefault(_status_number);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var StatusNumber = function (_Component) {
|
||
_inherits(StatusNumber, _Component);
|
||
|
||
function StatusNumber() {
|
||
_classCallCheck(this, StatusNumber);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
StatusNumber.prototype.render = function render() {
|
||
var _props = this.props,
|
||
status = _props.status,
|
||
number = _props.number;
|
||
|
||
var className = (0, _classnames2["default"])(_status_number2["default"].root, _status_number2["default"][status]);
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: className },
|
||
number
|
||
);
|
||
};
|
||
|
||
return StatusNumber;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = StatusNumber;
|
||
|
||
/***/ }),
|
||
/* 506 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(507);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./status_number.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./status_number.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 507 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".status_number__root____snZq {\n border-radius: 2px;\n border-style: solid;\n border-width: 2px;\n display: inline-block;\n font-size: 14px;\n line-height: 20px;\n min-width: 65px;\n text-align: center;\n}\n.status_number__root____snZq.status_number__success___5XCkO {\n border-color: #4dc89a;\n color: #4dc89a;\n}\n.status_number__root____snZq.status_number__declined___3hWFT,\n.status_number__root____snZq.status_number__failure___3lnOa,\n.status_number__root____snZq.status_number__killed___2Jb3o,\n.status_number__root____snZq.status_number__error___VtjOH {\n border-color: #fc4758;\n color: #fc4758;\n}\n.status_number__root____snZq.status_number__blocked___2XWJ_,\n.status_number__root____snZq.status_number__running___2pXjI,\n.status_number__root____snZq.status_number__started___aDK4f {\n border-color: #fdb835;\n color: #fdb835;\n}\n.status_number__root____snZq.status_number__pending___3_mtH,\n.status_number__root____snZq.status_number__skipped___2zOnM {\n border-color: #bdbdbd;\n color: #bdbdbd;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "status_number__root____snZq",
|
||
"success": "status_number__success___5XCkO",
|
||
"declined": "status_number__declined___3hWFT",
|
||
"failure": "status_number__failure___3lnOa",
|
||
"killed": "status_number__killed___2Jb3o",
|
||
"error": "status_number__error___VtjOH",
|
||
"blocked": "status_number__blocked___2XWJ_",
|
||
"running": "status_number__running___2pXjI",
|
||
"started": "status_number__started___aDK4f",
|
||
"pending": "status_number__pending___3_mtH",
|
||
"skipped": "status_number__skipped___2zOnM"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 508 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(509);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./build_event.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./build_event.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 509 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".build_event__text-ellipsis___CCJBy {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.build_event__host___bgenb {\n position: relative;\n}\n.build_event__host___bgenb svg {\n height: 18px;\n width: 18px;\n}\n.build_event__host___bgenb a {\n display: block;\n position: absolute;\n right: 0px;\n top: 0px;\n}\n.build_event__row___3z_Kk {\n display: flex;\n}\n.build_event__row___3z_Kk :first-child {\n align-items: center;\n display: flex;\n margin-right: 5px;\n}\n.build_event__row___3z_Kk :last-child {\n flex: 1;\n font-size: 14px;\n line-height: 24px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"text-ellipsis": "build_event__text-ellipsis___CCJBy",
|
||
"host": "build_event__host___bgenb",
|
||
"row": "build_event__row___3z_Kk"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 510 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(511);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./list.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./list.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 511 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".list__list___3UPK3 > a {\n border-bottom: 1px solid #eceff1;\n box-sizing: border-box;\n color: #212121;\n display: block;\n padding: 20px 0px;\n text-decoration: none;\n}\n.list__list___3UPK3 > a:last-child {\n border-bottom: 0px;\n}\n.list__list___3UPK3 > a a {\n display: none;\n}\n.list__item___2V8K1 {\n display: flex;\n}\n.list__item___2V8K1 .list__break___ntzE7 {\n display: none;\n}\n@media (max-width: 1100px) {\n .list__item___2V8K1 {\n flex-wrap: wrap;\n }\n .list__item___2V8K1 .list__icon___2qdw9 {\n order: 0px;\n }\n .list__item___2V8K1 .list__body___37ZTd {\n flex: 1;\n order: 1;\n }\n .list__item___2V8K1 .list__body___37ZTd h3 {\n padding-right: 20px;\n }\n .list__item___2V8K1 .list__meta___3-urI {\n border-left-width: 0px;\n margin: 0px;\n margin-right: 20px;\n margin-top: 20px;\n order: 4;\n padding: 0px;\n padding-left: 52px;\n }\n .list__item___2V8K1 .list__time___1kF1S {\n margin-top: 20px;\n order: 5;\n }\n .list__item___2V8K1 .list__status___lWuGX {\n order: 2;\n }\n .list__item___2V8K1 .list__break___ntzE7 {\n display: block;\n flex-basis: 100%;\n height: 0px;\n order: 3;\n overflow: hidden;\n width: 0px;\n }\n}\n.list__item___2V8K1 h3 {\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n display: -webkit-box;\n font-size: 15px;\n font-weight: normal;\n line-height: 22px;\n margin: 0px;\n min-height: 22px;\n overflow: hidden;\n}\n.list__item___2V8K1 em {\n font-size: 14px;\n font-style: normal;\n}\n.list__item___2V8K1 span {\n color: #bdbdbd;\n font-size: 14px;\n margin: 0px 5px;\n}\n.list__icon___2qdw9 {\n margin-left: 10px;\n margin-right: 20px;\n max-width: 22px;\n min-width: 22px;\n width: 22px;\n}\n.list__icon___2qdw9 img {\n border-radius: 50%;\n height: 22px;\n width: 22px;\n}\n.list__status___lWuGX {\n display: inline-block;\n text-align: right;\n white-space: nowrap;\n}\n.list__status___lWuGX span {\n border: 2px solid #4dc89a;\n border-radius: 2px;\n color: #4dc89a;\n display: inline-block;\n line-height: 20px;\n margin-right: 10px;\n min-width: 65px;\n text-align: center;\n}\n.list__status___lWuGX div {\n display: inline-block;\n vertical-align: middle;\n}\n.list__status___lWuGX div:last-child {\n margin-left: 20px;\n}\n.list__body___37ZTd {\n flex: 1;\n}\n.list__meta___3-urI {\n border-left: 1px solid #eceff1;\n border-right: 1px solid #eceff1;\n box-sizing: border-box;\n flex: 0 0 200px;\n margin-left: 20px;\n margin-right: 20px;\n min-width: 200px;\n padding-left: 20px;\n padding-right: 20px;\n}\n.list__time___1kF1S {\n box-sizing: border-box;\n flex: 0 0 200px;\n margin-right: 20px;\n min-width: 200px;\n padding-right: 20px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"list": "list__list___3UPK3",
|
||
"item": "list__item___2V8K1",
|
||
"break": "list__break___ntzE7",
|
||
"icon": "list__icon___2qdw9",
|
||
"body": "list__body___37ZTd",
|
||
"meta": "list__meta___3-urI",
|
||
"time": "list__time___1kF1S",
|
||
"status": "list__status___lWuGX"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 512 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(513);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 513 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__root___1Mszy {\n padding: 20px;\n}\nbutton {\n background: #ffffff;\n border: 1px solid #212121;\n border-radius: 2px;\n color: #212121;\n cursor: pointer;\n font-family: 'Roboto';\n font-size: 14px;\n line-height: 28px;\n outline: none;\n padding: 0px 20px;\n text-transform: uppercase;\n user-select: none;\n}\nbutton.index__more___1rd8z {\n margin-top: 10px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "index__root___1Mszy",
|
||
"more": "index__more___1rd8z"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 514 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.UserRepoTitle = exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _components = __webpack_require__(515);
|
||
|
||
var _breadcrumb = __webpack_require__(130);
|
||
|
||
var _breadcrumb2 = _interopRequireDefault(_breadcrumb);
|
||
|
||
var _index = __webpack_require__(524);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
return {
|
||
repos: ["repos", "data"],
|
||
loaded: ["repos", "loaded"],
|
||
error: ["repos", "error"]
|
||
};
|
||
};
|
||
|
||
var UserRepos = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(UserRepos, _Component);
|
||
|
||
function UserRepos(props, context) {
|
||
_classCallCheck(this, UserRepos);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.handleFilter = _this.handleFilter.bind(_this);
|
||
_this.renderItem = _this.renderItem.bind(_this);
|
||
_this.handleToggle = _this.handleToggle.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
UserRepos.prototype.handleFilter = function handleFilter(e) {
|
||
this.setState({
|
||
search: e.target.value
|
||
});
|
||
};
|
||
|
||
UserRepos.prototype.handleToggle = function handleToggle(repo, e) {
|
||
var _props = this.props,
|
||
dispatch = _props.dispatch,
|
||
drone = _props.drone;
|
||
|
||
if (e.target.checked) {
|
||
dispatch(_repository.enableRepository, drone, repo.owner, repo.name);
|
||
} else {
|
||
dispatch(_repository.disableRepository, drone, repo.owner, repo.name);
|
||
}
|
||
};
|
||
|
||
UserRepos.prototype.componentWillMount = function componentWillMount() {
|
||
if (!this._dispatched) {
|
||
this._dispatched = true;
|
||
this.props.dispatch(_repository.fetchRepostoryList, this.props.drone);
|
||
}
|
||
};
|
||
|
||
UserRepos.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.repos !== nextProps.repos || this.state.search !== nextState.search;
|
||
};
|
||
|
||
UserRepos.prototype.render = function render() {
|
||
var _props2 = this.props,
|
||
repos = _props2.repos,
|
||
loaded = _props2.loaded,
|
||
error = _props2.error;
|
||
var search = this.state.search;
|
||
|
||
var list = Object.values(repos || {});
|
||
|
||
if (error) {
|
||
return ERROR;
|
||
}
|
||
|
||
if (!loaded) {
|
||
return LOADING;
|
||
}
|
||
|
||
if (list.length === 0) {
|
||
return EMPTY;
|
||
}
|
||
|
||
var filter = function filter(repo) {
|
||
return !search || repo.full_name.indexOf(search) !== -1;
|
||
};
|
||
|
||
var filtered = list.filter(filter);
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].search },
|
||
_react2["default"].createElement("input", {
|
||
type: "text",
|
||
placeholder: "Search \u2026",
|
||
onChange: this.handleFilter
|
||
})
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].root },
|
||
filtered.length === 0 ? NO_MATCHES : null,
|
||
_react2["default"].createElement(
|
||
_components.List,
|
||
null,
|
||
list.filter(filter).map(this.renderItem)
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
UserRepos.prototype.renderItem = function renderItem(repo) {
|
||
return _react2["default"].createElement(_components.Item, {
|
||
key: repo.full_name,
|
||
owner: repo.owner,
|
||
name: repo.name,
|
||
active: repo.active,
|
||
link: "/" + repo.full_name,
|
||
onchange: this.handleToggle.bind(this, repo)
|
||
});
|
||
};
|
||
|
||
return UserRepos;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = UserRepos;
|
||
|
||
|
||
var LOADING = _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Loading"
|
||
);
|
||
|
||
var EMPTY = _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Your repository list is empty"
|
||
);
|
||
|
||
var NO_MATCHES = _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"No matches found"
|
||
);
|
||
|
||
var ERROR = _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Error"
|
||
);
|
||
|
||
/* eslint-disable react/jsx-key */
|
||
|
||
var UserRepoTitle = exports.UserRepoTitle = function (_Component2) {
|
||
_inherits(UserRepoTitle, _Component2);
|
||
|
||
function UserRepoTitle() {
|
||
_classCallCheck(this, UserRepoTitle);
|
||
|
||
return _possibleConstructorReturn(this, _Component2.apply(this, arguments));
|
||
}
|
||
|
||
UserRepoTitle.prototype.render = function render() {
|
||
return _react2["default"].createElement(_breadcrumb2["default"], {
|
||
elements: [_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Account"
|
||
), _breadcrumb.SEPARATOR, _react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Repositories"
|
||
)]
|
||
});
|
||
};
|
||
|
||
return UserRepoTitle;
|
||
}(_react.Component);
|
||
/* eslint-enable react/jsx-key */
|
||
|
||
/***/ }),
|
||
/* 515 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = undefined;
|
||
|
||
var _list = __webpack_require__(516);
|
||
|
||
exports.List = _list.List;
|
||
exports.Item = _list.Item;
|
||
|
||
/***/ }),
|
||
/* 516 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Item = exports.List = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _icons = __webpack_require__(40);
|
||
|
||
var _switch = __webpack_require__(517);
|
||
|
||
var _list = __webpack_require__(520);
|
||
|
||
var _list2 = _interopRequireDefault(_list);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var List = exports.List = function List(_ref) {
|
||
var children = _ref.children;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].list },
|
||
children
|
||
);
|
||
};
|
||
|
||
var Item = exports.Item = function (_Component) {
|
||
_inherits(Item, _Component);
|
||
|
||
function Item() {
|
||
_classCallCheck(this, Item);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Item.prototype.render = function render() {
|
||
var _props = this.props,
|
||
owner = _props.owner,
|
||
name = _props.name,
|
||
active = _props.active,
|
||
link = _props.link,
|
||
onchange = _props.onchange;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _list2["default"].item },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
owner,
|
||
"/",
|
||
name
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: active ? _list2["default"].active : _list2["default"].inactive },
|
||
_react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{ to: link },
|
||
_react2["default"].createElement(_icons.LaunchIcon, null)
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_switch.Switch, { onchange: onchange, checked: active })
|
||
)
|
||
);
|
||
};
|
||
|
||
Item.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
|
||
return this.props.owner !== nextProps.owner || this.props.name !== nextProps.name || this.props.active !== nextProps.active;
|
||
};
|
||
|
||
return Item;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 517 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Switch = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _switch = __webpack_require__(518);
|
||
|
||
var _switch2 = _interopRequireDefault(_switch);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Switch = exports.Switch = function (_Component) {
|
||
_inherits(Switch, _Component);
|
||
|
||
function Switch() {
|
||
_classCallCheck(this, Switch);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Switch.prototype.render = function render() {
|
||
var _props = this.props,
|
||
checked = _props.checked,
|
||
onchange = _props.onchange;
|
||
|
||
return _react2["default"].createElement(
|
||
"label",
|
||
{ className: _switch2["default"]["switch"] },
|
||
_react2["default"].createElement("input", { type: "checkbox", checked: checked, onChange: onchange })
|
||
);
|
||
};
|
||
|
||
return Switch;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 518 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(519);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./switch.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./switch.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 519 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".switch__switch___2z1nd label {\n align-items: center;\n cursor: pointer;\n display: flex;\n margin-bottom: 10px;\n}\n.switch__switch___2z1nd input[type='checkbox'] {\n -moz-appearance: none;\n -ms-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n cursor: pointer;\n height: 12px;\n margin-right: 30px;\n outline: none;\n position: relative;\n width: 12px;\n}\n.switch__switch___2z1nd input[type='checkbox']::before,\n.switch__switch___2z1nd input[type='checkbox']::after {\n content: '';\n position: absolute;\n}\n.switch__switch___2z1nd input[type='checkbox']::before {\n background-color: #e3e3e3;\n border-radius: 30px;\n height: 100%;\n transform: translate(-25%, 0);\n transition: all 0.25s ease-in-out;\n width: 250%;\n}\n.switch__switch___2z1nd input[type='checkbox']::after {\n background-color: #bdbdbd;\n border-radius: 30px;\n height: 150%;\n margin-left: 10%;\n margin-top: -25%;\n transform: translate(-60%, 0);\n transition: all 0.2s;\n width: 150%;\n}\n.switch__switch___2z1nd input[type='checkbox']:checked::after {\n background-color: #4dc89a;\n transform: translate(25%, 0);\n}\n.switch__switch___2z1nd input[type='checkbox']:checked::before {\n background-color: #87dabb;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"switch": "switch__switch___2z1nd"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 520 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(521);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./list.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./list.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 521 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".list__item___1o_O4 {\n border-bottom: 1px solid #eceff1;\n display: flex;\n padding: 10px 10px;\n}\n.list__item___1o_O4:last-child {\n border-bottom-width: 0px;\n}\n.list__item___1o_O4 > div:first-child {\n flex: 1 1 auto;\n line-height: 24px;\n}\n.list__item___1o_O4 > div:nth-child(3) {\n align-content: stretch;\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: right;\n}\n.list__item___1o_O4 a {\n margin-right: 20px;\n width: 100px;\n}\n.list__item___1o_O4 a svg {\n fill: #bdbdbd;\n height: 20px;\n width: 20px;\n}\n.list__item___1o_O4 .list__inactive___3DJnC {\n display: none;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"item": "list__item___1o_O4",
|
||
"inactive": "list__inactive___3DJnC"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 522 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(523);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./breadcrumb.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./breadcrumb.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 523 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".breadcrumb__breadcrumb___1mBbJ {\n display: inline-block;\n margin: 0px;\n padding: 0px;\n text-align: left;\n}\n.breadcrumb__breadcrumb___1mBbJ li {\n display: inline-block;\n vertical-align: middle;\n}\n.breadcrumb__breadcrumb___1mBbJ li > span,\n.breadcrumb__breadcrumb___1mBbJ li > div,\n.breadcrumb__breadcrumb___1mBbJ a,\n.breadcrumb__breadcrumb___1mBbJ a:visited,\n.breadcrumb__breadcrumb___1mBbJ a:active {\n color: #212121;\n font-size: 20px;\n text-decoration: none;\n}\n.breadcrumb__breadcrumb___1mBbJ svg {\n height: 24px;\n vertical-align: middle;\n width: 24px;\n}\n.breadcrumb__breadcrumb___1mBbJ .breadcrumb__svg___2dmyS.breadcrumb__separator___2vT02 {\n margin: 0px 5px;\n transform: rotate(270deg);\n}\n.breadcrumb__breadcrumb___1mBbJ .breadcrumb__svg___2dmyS.breadcrumb__back___e9cZX {\n margin-right: 20px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"breadcrumb": "breadcrumb__breadcrumb___1mBbJ",
|
||
"svg": "breadcrumb__svg___2dmyS",
|
||
"separator": "breadcrumb__separator___2vT02",
|
||
"back": "breadcrumb__back___e9cZX"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 524 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(525);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 525 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__root___eI-uQ {\n padding: 20px;\n}\n.index__search___2FBYq input {\n border: 0px;\n border-bottom: 1px solid #eceff1;\n box-sizing: border-box;\n font-size: 15px;\n height: 45px;\n line-height: 24px;\n outline: none;\n padding: 0px 20px;\n width: 100%;\n}\n.index__search___2FBYq ::-moz-input-placeholder {\n color: #bdbdbd;\n font-size: 15px;\n font-weight: 300;\n}\n.index__search___2FBYq ::-webkit-input-placeholder {\n color: #bdbdbd;\n font-size: 15px;\n font-weight: 300;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "index__root___eI-uQ",
|
||
"search": "index__search___2FBYq"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 526 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _users = __webpack_require__(527);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _index = __webpack_require__(528);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
return {
|
||
location: ["location"],
|
||
token: ["token"]
|
||
};
|
||
};
|
||
|
||
var Tokens = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(Tokens, _Component);
|
||
|
||
function Tokens() {
|
||
_classCallCheck(this, Tokens);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Tokens.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.location !== nextProps.location || this.props.token !== nextProps.token;
|
||
};
|
||
|
||
Tokens.prototype.componentWillMount = function componentWillMount() {
|
||
var _props = this.props,
|
||
drone = _props.drone,
|
||
dispatch = _props.dispatch;
|
||
|
||
|
||
dispatch(_users.generateToken, drone);
|
||
};
|
||
|
||
Tokens.prototype.render = function render() {
|
||
var _props2 = this.props,
|
||
location = _props2.location,
|
||
token = _props2.token;
|
||
|
||
|
||
if (!location || !token) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Loading"
|
||
);
|
||
}
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].root },
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Your Personal Token:"
|
||
),
|
||
_react2["default"].createElement(
|
||
"pre",
|
||
null,
|
||
token
|
||
),
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Example API Usage:"
|
||
),
|
||
_react2["default"].createElement(
|
||
"pre",
|
||
null,
|
||
usageWithCURL(location, token)
|
||
),
|
||
_react2["default"].createElement(
|
||
"h2",
|
||
null,
|
||
"Example CLI Usage:"
|
||
),
|
||
_react2["default"].createElement(
|
||
"pre",
|
||
null,
|
||
usageWithCLI(location, token)
|
||
)
|
||
);
|
||
};
|
||
|
||
return Tokens;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = Tokens;
|
||
|
||
|
||
var usageWithCURL = function usageWithCURL(location, token) {
|
||
return "curl -i " + location.protocol + "//" + location.host + "/api/user -H \"Authorization: Bearer " + token + "\"";
|
||
};
|
||
|
||
var usageWithCLI = function usageWithCLI(location, token) {
|
||
return "export DRONE_SERVER=" + location.protocol + "//" + location.host + "\n\t\texport DRONE_TOKEN=" + token + "\n\n\t\tdrone info";
|
||
};
|
||
|
||
/***/ }),
|
||
/* 527 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.generateToken = undefined;
|
||
|
||
var _message = __webpack_require__(67);
|
||
|
||
/**
|
||
* Generates a personal access token and stores the results in
|
||
* the state tree.
|
||
*
|
||
* @param {Object} tree - The drone state tree.
|
||
* @param {Object} client - The drone client.
|
||
*/
|
||
var generateToken = exports.generateToken = function generateToken(tree, client) {
|
||
client.getToken().then(function (token) {
|
||
tree.set(["token"], token);
|
||
})["catch"](function () {
|
||
(0, _message.displayMessage)(tree, "Failed to retrieve your personal access token");
|
||
});
|
||
};
|
||
|
||
/***/ }),
|
||
/* 528 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(529);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 529 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__root___2a6wL {\n padding: 20px;\n}\n.index__root___2a6wL pre {\n background: #eceff1;\n font-family: 'Roboto Mono', monospace;\n font-size: 12px;\n margin-bottom: 40px;\n max-width: 650px;\n padding: 20px;\n white-space: pre-line;\n word-wrap: break-word;\n}\n.index__root___2a6wL h2 {\n font-size: 15px;\n font-weight: normal;\n}\n.index__root___2a6wL h2:first-of-type {\n margin-top: 0px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "index__root___2a6wL"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 530 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Message = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _refresh = __webpack_require__(189);
|
||
|
||
var _refresh2 = _interopRequireDefault(_refresh);
|
||
|
||
var _sync = __webpack_require__(531);
|
||
|
||
var _sync2 = _interopRequireDefault(_sync);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
var Message = exports.Message = function Message() {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _sync2["default"].root },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _sync2["default"].alert },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_refresh2["default"], null)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
"Account synchronization in progress"
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 531 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(532);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./sync.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./sync.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 532 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".sync__root___1OwDb {\n box-sizing: border-box;\n margin: 50px auto;\n max-width: 400px;\n min-width: 400px;\n padding: 30px;\n}\n.sync__root___1OwDb .sync__alert___MColk {\n background: #fdb835;\n border-radius: 2px;\n color: #ffffff;\n display: flex;\n margin-bottom: 20px;\n padding: 20px;\n text-align: left;\n}\n.sync__root___1OwDb .sync__alert___MColk > :last-child {\n font-family: 'Roboto';\n font-size: 15px;\n line-height: 20px;\n padding-left: 10px;\n padding-top: 2px;\n}\n.sync__root___1OwDb svg {\n animation: sync__spinner___2h2SH 1.2s ease infinite;\n fill: #ffffff;\n height: 26px;\n width: 26px;\n}\n@keyframes sync__spinner___2h2SH {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "sync__root___1OwDb",
|
||
"alert": "sync__alert___MColk",
|
||
"spinner": "sync__spinner___2h2SH"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 533 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _breadcrumb = __webpack_require__(130);
|
||
|
||
var _breadcrumb2 = _interopRequireDefault(_breadcrumb);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Header = function (_Component) {
|
||
_inherits(Header, _Component);
|
||
|
||
function Header() {
|
||
_classCallCheck(this, Header);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Header.prototype.render = function render() {
|
||
var _props$match$params = this.props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_breadcrumb2["default"], {
|
||
elements: [_react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{ to: "/" + owner + "/" + repo, key: owner + "-" + repo },
|
||
owner,
|
||
" / ",
|
||
repo
|
||
)]
|
||
})
|
||
);
|
||
};
|
||
|
||
return Header;
|
||
}(_react.Component);
|
||
|
||
exports["default"] = Header;
|
||
|
||
/***/ }),
|
||
/* 534 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _icons = __webpack_require__(40);
|
||
|
||
var _menu = __webpack_require__(195);
|
||
|
||
var _menu2 = _interopRequireDefault(_menu);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
return {
|
||
repos: ["repos"]
|
||
};
|
||
};
|
||
|
||
var UserReposMenu = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(UserReposMenu, _Component);
|
||
|
||
function UserReposMenu(props, context) {
|
||
_classCallCheck(this, UserReposMenu);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.handleClick = _this.handleClick.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
UserReposMenu.prototype.handleClick = function handleClick() {
|
||
var _props = this.props,
|
||
dispatch = _props.dispatch,
|
||
drone = _props.drone;
|
||
|
||
dispatch(_repository.syncRepostoryList, drone);
|
||
};
|
||
|
||
UserReposMenu.prototype.render = function render() {
|
||
var loaded = this.props.repos.loaded;
|
||
|
||
var right = _react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ disabled: !loaded, onClick: this.handleClick },
|
||
_react2["default"].createElement(_icons.SyncIcon, null),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Synchronize"
|
||
)
|
||
)
|
||
);
|
||
|
||
return _react2["default"].createElement(_menu2["default"], { items: [], right: right });
|
||
};
|
||
|
||
return UserReposMenu;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = UserReposMenu;
|
||
|
||
/***/ }),
|
||
/* 535 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(536);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./menu.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./menu.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 536 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".menu__left___3FQoO {\n flex: 1;\n}\n.menu__right___1L6Gp button {\n border: 1px solid #eceff1;\n font-size: 12px;\n height: 32px;\n outline: none;\n}\n.menu__right___1L6Gp button:hover {\n border-color: #4dc89a;\n color: #4dc89a;\n cursor: pointer;\n}\n.menu__right___1L6Gp button:hover svg {\n fill: #4dc89a;\n}\n.menu__right___1L6Gp button svg,\n.menu__right___1L6Gp button span {\n display: inline-block;\n vertical-align: middle;\n}\n.menu__right___1L6Gp button svg {\n width: 24px;\n height: 24px;\n}\n.menu__right___1L6Gp button span {\n font-size: 14px;\n}\n.menu__root___3dyRB {\n padding: 20px;\n display: flex;\n flex-direction: row;\n border-bottom: 1px solid #eceff1;\n}\n.menu__root___3dyRB a {\n display: inline-block;\n vertical-align: top;\n color: #000;\n text-decoration: none;\n padding: 0 12px;\n height: 32px;\n line-height: 32px;\n margin-right: 12px;\n border-bottom: 2px solid transparent;\n}\na.menu__link-active___Pz0s5 {\n border-bottom-color: #4dc89a;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"left": "menu__left___3FQoO",
|
||
"right": "menu__right___1L6Gp",
|
||
"root": "menu__root___3dyRB",
|
||
"link-active": "menu__link-active___Pz0s5"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 537 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.BuildLogsTitle = exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _build = __webpack_require__(129);
|
||
|
||
var _status = __webpack_require__(87);
|
||
|
||
var _proc = __webpack_require__(131);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _breadcrumb = __webpack_require__(130);
|
||
|
||
var _breadcrumb2 = _interopRequireDefault(_breadcrumb);
|
||
|
||
var _components = __webpack_require__(538);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _logs = __webpack_require__(549);
|
||
|
||
var _logs2 = _interopRequireDefault(_logs);
|
||
|
||
var _index = __webpack_require__(559);
|
||
|
||
var _index2 = _interopRequireDefault(_index);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
var _props$match$params = props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo,
|
||
build = _props$match$params.build;
|
||
|
||
var slug = owner + "/" + repo;
|
||
var number = parseInt(build);
|
||
|
||
return {
|
||
repo: ["repos", "data", slug],
|
||
build: ["builds", "data", slug, number]
|
||
};
|
||
};
|
||
|
||
var BuildLogs = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(BuildLogs, _Component);
|
||
|
||
function BuildLogs(props, context) {
|
||
_classCallCheck(this, BuildLogs);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.handleApprove = _this.handleApprove.bind(_this);
|
||
_this.handleDecline = _this.handleDecline.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
BuildLogs.prototype.componentWillMount = function componentWillMount() {
|
||
this.synchronize(this.props);
|
||
};
|
||
|
||
BuildLogs.prototype.handleApprove = function handleApprove() {
|
||
var _props = this.props,
|
||
repo = _props.repo,
|
||
build = _props.build,
|
||
drone = _props.drone;
|
||
|
||
this.props.dispatch(_build.approveBuild, drone, repo.owner, repo.name, build.number);
|
||
};
|
||
|
||
BuildLogs.prototype.handleDecline = function handleDecline() {
|
||
var _props2 = this.props,
|
||
repo = _props2.repo,
|
||
build = _props2.build,
|
||
drone = _props2.drone;
|
||
|
||
this.props.dispatch(_build.declineBuild, drone, repo.owner, repo.name, build.number);
|
||
};
|
||
|
||
BuildLogs.prototype.componentWillUpdate = function componentWillUpdate(nextProps) {
|
||
if (this.props.match.url !== nextProps.match.url) {
|
||
this.synchronize(nextProps);
|
||
}
|
||
};
|
||
|
||
BuildLogs.prototype.synchronize = function synchronize(props) {
|
||
if (!props.repo) {
|
||
this.props.dispatch(_repository.fetchRepository, props.drone, props.match.params.owner, props.match.params.repo);
|
||
}
|
||
if (!props.build || !props.build.procs) {
|
||
this.props.dispatch(_build.fetchBuild, props.drone, props.match.params.owner, props.match.params.repo, props.match.params.build);
|
||
}
|
||
};
|
||
|
||
BuildLogs.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props !== nextProps;
|
||
};
|
||
|
||
BuildLogs.prototype.render = function render() {
|
||
var _props3 = this.props,
|
||
repo = _props3.repo,
|
||
build = _props3.build;
|
||
|
||
|
||
if (!build || !repo) {
|
||
return this.renderLoading();
|
||
}
|
||
|
||
if (build.status === _status.STATUS_DECLINED || build.status === _status.STATUS_ERROR) {
|
||
return this.renderError();
|
||
}
|
||
|
||
if (build.status === _status.STATUS_BLOCKED) {
|
||
return this.renderBlocked();
|
||
}
|
||
|
||
if (!build.procs) {
|
||
return this.renderLoading();
|
||
}
|
||
|
||
return this.renderSimple();
|
||
};
|
||
|
||
BuildLogs.prototype.renderLoading = function renderLoading() {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].host },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].columns },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].right },
|
||
"Loading ..."
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
BuildLogs.prototype.renderBlocked = function renderBlocked() {
|
||
var build = this.props.build;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].host },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].columns },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].right },
|
||
_react2["default"].createElement(_components.Details, { build: build })
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].left },
|
||
_react2["default"].createElement(_components.Approval, {
|
||
onapprove: this.handleApprove,
|
||
ondecline: this.handleDecline
|
||
})
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
BuildLogs.prototype.renderError = function renderError() {
|
||
var build = this.props.build;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].host },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].columns },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].right },
|
||
_react2["default"].createElement(_components.Details, { build: build })
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].left },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].logerror },
|
||
build.status === _status.STATUS_ERROR ? build.error : "Pipeline execution was declined"
|
||
)
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
BuildLogs.prototype.renderSimple = function renderSimple() {
|
||
// if (nextProps.build.procs[0].children !== undefined){
|
||
// return null;
|
||
// }
|
||
|
||
var _props4 = this.props,
|
||
repo = _props4.repo,
|
||
build = _props4.build,
|
||
match = _props4.match;
|
||
|
||
var selectedProc = match.params.proc ? (0, _proc.findChildProcess)(build.procs, match.params.proc) : build.procs[0].children[0];
|
||
var selectedProcParent = (0, _proc.findChildProcess)(build.procs, selectedProc.ppid);
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].host },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].columns },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].right },
|
||
_react2["default"].createElement(_components.Details, { build: build }),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
{ className: _index2["default"].sticky },
|
||
build.procs.map(function (rootProc) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ style: "padding-bottom: 50px;", key: rootProc.pid },
|
||
_react2["default"].createElement(_components.ProcList, {
|
||
key: rootProc.pid,
|
||
repo: repo,
|
||
build: build,
|
||
rootProc: rootProc,
|
||
selectedProc: selectedProc,
|
||
renderName: build.procs.length > 1
|
||
})
|
||
);
|
||
})
|
||
)
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].left },
|
||
selectedProc && selectedProc.error ? _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].logerror },
|
||
selectedProc.error
|
||
) : null,
|
||
selectedProcParent && selectedProcParent.error ? _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index2["default"].logerror },
|
||
selectedProcParent.error
|
||
) : null,
|
||
_react2["default"].createElement(_logs2["default"], {
|
||
match: this.props.match,
|
||
build: this.props.build,
|
||
proc: selectedProc
|
||
})
|
||
)
|
||
)
|
||
);
|
||
};
|
||
|
||
return BuildLogs;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = BuildLogs;
|
||
|
||
var BuildLogsTitle = exports.BuildLogsTitle = function (_Component2) {
|
||
_inherits(BuildLogsTitle, _Component2);
|
||
|
||
function BuildLogsTitle() {
|
||
_classCallCheck(this, BuildLogsTitle);
|
||
|
||
return _possibleConstructorReturn(this, _Component2.apply(this, arguments));
|
||
}
|
||
|
||
BuildLogsTitle.prototype.render = function render() {
|
||
var _props$match$params2 = this.props.match.params,
|
||
owner = _props$match$params2.owner,
|
||
repo = _props$match$params2.repo,
|
||
build = _props$match$params2.build;
|
||
|
||
return _react2["default"].createElement(_breadcrumb2["default"], {
|
||
elements: [_react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{ to: "/" + owner + "/" + repo, key: owner + "-" + repo },
|
||
owner,
|
||
" / ",
|
||
repo
|
||
), _breadcrumb.SEPARATOR, _react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{
|
||
to: "/" + owner + "/" + repo + "/" + build,
|
||
key: owner + "-" + repo + "-" + build
|
||
},
|
||
build
|
||
)]
|
||
});
|
||
};
|
||
|
||
return BuildLogsTitle;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 538 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.ProcListItem = exports.ProcList = exports.Details = exports.Approval = undefined;
|
||
|
||
var _approval = __webpack_require__(539);
|
||
|
||
var _details = __webpack_require__(542);
|
||
|
||
var _procs = __webpack_require__(545);
|
||
|
||
exports.Approval = _approval.Approval;
|
||
exports.Details = _details.Details;
|
||
exports.ProcList = _procs.ProcList;
|
||
exports.ProcListItem = _procs.ProcListItem;
|
||
|
||
/***/ }),
|
||
/* 539 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Approval = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _approval = __webpack_require__(540);
|
||
|
||
var _approval2 = _interopRequireDefault(_approval);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
var Approval = exports.Approval = function Approval(_ref) {
|
||
var onapprove = _ref.onapprove,
|
||
ondecline = _ref.ondecline;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _approval2["default"].root },
|
||
_react2["default"].createElement(
|
||
"p",
|
||
null,
|
||
"Pipeline execution is blocked pending administrator approval"
|
||
),
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: onapprove },
|
||
"Approve"
|
||
),
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: ondecline },
|
||
"Decline"
|
||
)
|
||
);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 540 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(541);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./approval.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./approval.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 541 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".approval__root___vfTj3 {\n background: #fdb835;\n border-radius: 2px;\n margin-bottom: 20px;\n padding: 20px;\n}\n.approval__root___vfTj3 button {\n background: rgba(255, 255, 255, 0.2);\n border: 0px;\n border-radius: 2px;\n color: #ffffff;\n cursor: pointer;\n font-size: 13px;\n line-height: 28px;\n margin-right: 10px;\n min-width: 100px;\n padding: 0px 10px;\n text-transform: uppercase;\n}\n.approval__root___vfTj3 button:focus {\n border-radius: 2px;\n outline: 1px solid #ffffff;\n}\n.approval__root___vfTj3 p {\n color: #ffffff;\n font-size: 15px;\n margin-bottom: 20px;\n margin-top: 0px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "approval__root___vfTj3"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 542 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Details = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _build_event = __webpack_require__(193);
|
||
|
||
var _build_event2 = _interopRequireDefault(_build_event);
|
||
|
||
var _build_time = __webpack_require__(128);
|
||
|
||
var _build_time2 = _interopRequireDefault(_build_time);
|
||
|
||
var _status = __webpack_require__(86);
|
||
|
||
var _details = __webpack_require__(543);
|
||
|
||
var _details2 = _interopRequireDefault(_details);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Details = exports.Details = function (_Component) {
|
||
_inherits(Details, _Component);
|
||
|
||
function Details() {
|
||
_classCallCheck(this, Details);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Details.prototype.render = function render() {
|
||
var build = this.props.build;
|
||
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _details2["default"].info },
|
||
_react2["default"].createElement(_status.StatusLabel, { status: build.status }),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
{ className: _details2["default"].message, style: { whiteSpace: "pre-line" } },
|
||
build.message
|
||
),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(_build_time2["default"], {
|
||
start: build.started_at || build.created_at,
|
||
finish: build.finished_at
|
||
})
|
||
),
|
||
_react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
_react2["default"].createElement(_build_event2["default"], {
|
||
link: build.link_url,
|
||
event: build.event,
|
||
commit: build.commit,
|
||
branch: build.branch,
|
||
target: build.deploy_to,
|
||
refspec: build.refspec,
|
||
refs: build.ref
|
||
})
|
||
)
|
||
);
|
||
};
|
||
|
||
return Details;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 543 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(544);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./details.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./details.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 544 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".details__info___30FMz section {\n border-bottom: 1px solid #eceff1;\n font-size: 14px;\n line-height: 20px;\n margin: 20px 0px;\n padding: 0px 10px;\n padding-bottom: 20px;\n}\n.details__info___30FMz section:last-of-type {\n border-bottom: 0px;\n margin-bottom: 0px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"info": "details__info___30FMz"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 545 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.ProcListItem = exports.ProcList = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _reactRouterDom = __webpack_require__(27);
|
||
|
||
var _classnames = __webpack_require__(66);
|
||
|
||
var _classnames2 = _interopRequireDefault(_classnames);
|
||
|
||
var _elapsed = __webpack_require__(546);
|
||
|
||
var _status = __webpack_require__(86);
|
||
|
||
var _status2 = _interopRequireDefault(_status);
|
||
|
||
var _procs = __webpack_require__(547);
|
||
|
||
var _procs2 = _interopRequireDefault(_procs);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var renderEnviron = function renderEnviron(data) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
data[0],
|
||
"=",
|
||
data[1]
|
||
);
|
||
};
|
||
|
||
var ProcListHolder = function ProcListHolder(_ref) {
|
||
var vars = _ref.vars,
|
||
renderName = _ref.renderName,
|
||
children = _ref.children;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _procs2["default"].list },
|
||
renderName && vars.name !== "drone" ? _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_status.StatusText, { status: vars.state, text: vars.name })
|
||
) : null,
|
||
vars.environ ? _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_status.StatusText, {
|
||
status: vars.state,
|
||
text: Object.entries(vars.environ).map(renderEnviron)
|
||
})
|
||
) : null,
|
||
children
|
||
);
|
||
};
|
||
|
||
var ProcList = exports.ProcList = function (_Component) {
|
||
_inherits(ProcList, _Component);
|
||
|
||
function ProcList() {
|
||
_classCallCheck(this, ProcList);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
ProcList.prototype.render = function render() {
|
||
var _props = this.props,
|
||
repo = _props.repo,
|
||
build = _props.build,
|
||
rootProc = _props.rootProc,
|
||
selectedProc = _props.selectedProc,
|
||
renderName = _props.renderName;
|
||
|
||
return _react2["default"].createElement(
|
||
ProcListHolder,
|
||
{ vars: rootProc, renderName: renderName },
|
||
this.props.rootProc.children.map(function (child) {
|
||
return _react2["default"].createElement(
|
||
_reactRouterDom.Link,
|
||
{
|
||
to: "/" + repo.full_name + "/" + build.number + "/" + child.pid,
|
||
key: repo.full_name + "-" + build.number + "-" + child.pid
|
||
},
|
||
_react2["default"].createElement(ProcListItem, {
|
||
key: child.pid,
|
||
name: child.name,
|
||
start: child.start_time,
|
||
finish: child.end_time,
|
||
state: child.state,
|
||
selected: child.pid === selectedProc.pid
|
||
})
|
||
);
|
||
})
|
||
);
|
||
};
|
||
|
||
return ProcList;
|
||
}(_react.Component);
|
||
|
||
var ProcListItem = exports.ProcListItem = function ProcListItem(_ref2) {
|
||
var name = _ref2.name,
|
||
start = _ref2.start,
|
||
finish = _ref2.finish,
|
||
state = _ref2.state,
|
||
selected = _ref2.selected;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: (0, _classnames2["default"])(_procs2["default"].item, selected ? _procs2["default"].selected : null) },
|
||
_react2["default"].createElement(
|
||
"h3",
|
||
null,
|
||
name
|
||
),
|
||
finish ? _react2["default"].createElement(
|
||
"time",
|
||
null,
|
||
(0, _elapsed.formatTime)(finish, start)
|
||
) : _react2["default"].createElement(_elapsed.Elapsed, { start: start }),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_status2["default"], { status: state })
|
||
)
|
||
);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 546 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.formatTime = exports.Elapsed = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Elapsed = exports.Elapsed = function (_Component) {
|
||
_inherits(Elapsed, _Component);
|
||
|
||
function Elapsed(props, context) {
|
||
_classCallCheck(this, Elapsed);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props));
|
||
|
||
_this.state = {
|
||
elapsed: 0
|
||
};
|
||
|
||
_this.tick = _this.tick.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
Elapsed.prototype.componentDidMount = function componentDidMount() {
|
||
this.timer = setInterval(this.tick, 1000);
|
||
};
|
||
|
||
Elapsed.prototype.componentWillUnmount = function componentWillUnmount() {
|
||
clearInterval(this.timer);
|
||
};
|
||
|
||
Elapsed.prototype.tick = function tick() {
|
||
var start = this.props.start;
|
||
|
||
var stop = ~~(Date.now() / 1000);
|
||
this.setState({
|
||
elapsed: stop - start
|
||
});
|
||
};
|
||
|
||
Elapsed.prototype.render = function render() {
|
||
var elapsed = this.state.elapsed;
|
||
|
||
var date = new Date(null);
|
||
date.setSeconds(elapsed);
|
||
return _react2["default"].createElement(
|
||
"time",
|
||
null,
|
||
!elapsed ? undefined : elapsed > 3600 ? date.toISOString().substr(11, 8) : date.toISOString().substr(14, 5)
|
||
);
|
||
};
|
||
|
||
return Elapsed;
|
||
}(_react.Component);
|
||
|
||
/*
|
||
* Returns the duration in hh:mm:ss format.
|
||
*
|
||
* @param {number} from - The start time in secnds
|
||
* @param {number} to - The end time in seconds
|
||
* @return {string}
|
||
*/
|
||
|
||
|
||
var formatTime = exports.formatTime = function formatTime(end, start) {
|
||
var diff = end - start;
|
||
var date = new Date(null);
|
||
date.setSeconds(diff);
|
||
|
||
return diff > 3600 ? date.toISOString().substr(11, 8) : date.toISOString().substr(14, 5);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 547 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(548);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./procs.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./procs.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 548 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".procs__list___3VmRq a {\n color: #212121;\n display: block;\n text-decoration: none;\n}\n.procs__vars___2dHa2 {\n padding: 30px 0 0 10px;\n}\n.procs__item___ZIwDZ {\n background: #ffffff;\n box-sizing: border-box;\n display: flex;\n padding: 0px 10px;\n}\n.procs__item___ZIwDZ.procs__selected___1ppPI,\n.procs__item___ZIwDZ:hover {\n background: #eceff1;\n}\n.procs__item___ZIwDZ time {\n color: #bdbdbd;\n display: inline-block;\n font-size: 13px;\n line-height: 32px;\n margin-right: 15px;\n vertical-align: middle;\n}\n.procs__item___ZIwDZ h3 {\n flex: 1 1 auto;\n font-size: 14px;\n font-weight: normal;\n line-height: 36px;\n margin: 0px;\n padding: 0px;\n vertical-align: middle;\n}\n.procs__item___ZIwDZ:last-child {\n align-items: center;\n display: flex;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"list": "procs__list___3VmRq",
|
||
"vars": "procs__vars___2dHa2",
|
||
"item": "procs__item___ZIwDZ",
|
||
"selected": "procs__selected___1ppPI"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 549 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _proc = __webpack_require__(131);
|
||
|
||
var _logs = __webpack_require__(550);
|
||
|
||
var _term = __webpack_require__(551);
|
||
|
||
var _term2 = _interopRequireDefault(_term);
|
||
|
||
var _anchor = __webpack_require__(554);
|
||
|
||
var _index = __webpack_require__(40);
|
||
|
||
var _index2 = __webpack_require__(557);
|
||
|
||
var _index3 = _interopRequireDefault(_index2);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
var _props$match$params = props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo,
|
||
build = _props$match$params.build;
|
||
|
||
var slug = (0, _repository.repositorySlug)(owner, repo);
|
||
var number = parseInt(build);
|
||
var pid = parseInt(props.proc.pid);
|
||
|
||
return {
|
||
logs: ["logs", "data", slug, number, pid, "data"],
|
||
eof: ["logs", "data", slug, number, pid, "eof"],
|
||
loading: ["logs", "data", slug, number, pid, "loading"],
|
||
error: ["logs", "data", slug, number, pid, "error"],
|
||
follow: ["logs", "follow"]
|
||
};
|
||
};
|
||
|
||
var Output = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(Output, _Component);
|
||
|
||
function Output(props, context) {
|
||
_classCallCheck(this, Output);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.handleFollow = _this.handleFollow.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
Output.prototype.componentWillMount = function componentWillMount() {
|
||
if (this.props.proc) {
|
||
this.componentWillUpdate(this.props);
|
||
}
|
||
};
|
||
|
||
Output.prototype.componentWillUpdate = function componentWillUpdate(nextProps) {
|
||
var loading = nextProps.loading,
|
||
logs = nextProps.logs,
|
||
eof = nextProps.eof,
|
||
error = nextProps.error;
|
||
|
||
var routeChange = this.props.match.url !== nextProps.match.url;
|
||
|
||
if (loading || error || logs && eof) {
|
||
return;
|
||
}
|
||
|
||
if ((0, _proc.assertProcFinished)(nextProps.proc)) {
|
||
return this.props.dispatch(_logs.fetchLogs, nextProps.drone, nextProps.match.params.owner, nextProps.match.params.repo, nextProps.build.number, nextProps.proc.pid);
|
||
}
|
||
|
||
if ((0, _proc.assertProcRunning)(nextProps.proc) && (!logs || routeChange)) {
|
||
this.props.dispatch(_logs.subscribeToLogs, nextProps.drone, nextProps.match.params.owner, nextProps.match.params.repo, nextProps.build.number, nextProps.proc);
|
||
}
|
||
};
|
||
|
||
Output.prototype.componentDidUpdate = function componentDidUpdate() {
|
||
if (this.props.follow) {
|
||
(0, _anchor.scrollToBottom)();
|
||
}
|
||
};
|
||
|
||
Output.prototype.handleFollow = function handleFollow() {
|
||
this.props.dispatch(_logs.toggleLogs, !this.props.follow);
|
||
};
|
||
|
||
Output.prototype.render = function render() {
|
||
var _props = this.props,
|
||
logs = _props.logs,
|
||
error = _props.error,
|
||
proc = _props.proc,
|
||
loading = _props.loading,
|
||
follow = _props.follow;
|
||
|
||
|
||
if (loading || !proc) {
|
||
return _react2["default"].createElement(_term2["default"].Loading, null);
|
||
}
|
||
|
||
if (error) {
|
||
return _react2["default"].createElement(_term2["default"].Error, null);
|
||
}
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_anchor.Top, null),
|
||
_react2["default"].createElement(_term2["default"], {
|
||
lines: logs || [],
|
||
exitcode: (0, _proc.assertProcFinished)(proc) ? proc.exit_code : undefined
|
||
}),
|
||
_react2["default"].createElement(_anchor.Bottom, null),
|
||
_react2["default"].createElement(Actions, {
|
||
running: (0, _proc.assertProcRunning)(proc),
|
||
following: follow,
|
||
onfollow: this.handleFollow,
|
||
onunfollow: this.handleFollow
|
||
})
|
||
);
|
||
};
|
||
|
||
return Output;
|
||
}(_react.Component)) || _class) || _class);
|
||
|
||
/**
|
||
* Component renders floating log actions. These can be used
|
||
* to follow, unfollow, scroll to top and scroll to bottom.
|
||
*/
|
||
|
||
exports["default"] = Output;
|
||
var Actions = function Actions(_ref) {
|
||
var following = _ref.following,
|
||
running = _ref.running,
|
||
onfollow = _ref.onfollow,
|
||
onunfollow = _ref.onunfollow;
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _index3["default"].actions },
|
||
running && !following ? _react2["default"].createElement(
|
||
"button",
|
||
{ onClick: onfollow, className: _index3["default"].follow },
|
||
_react2["default"].createElement(_index.PlayIcon, null)
|
||
) : null,
|
||
running && following ? _react2["default"].createElement(
|
||
"button",
|
||
{ onClick: onunfollow, className: _index3["default"].unfollow },
|
||
_react2["default"].createElement(_index.PauseIcon, null)
|
||
) : null,
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: _anchor.scrollToTop, className: _index3["default"].bottom },
|
||
_react2["default"].createElement(_index.ExpandIcon, null)
|
||
),
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: _anchor.scrollToBottom, className: _index3["default"].top },
|
||
_react2["default"].createElement(_index.ExpandIcon, null)
|
||
)
|
||
);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 550 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.toggleLogs = undefined;
|
||
exports.subscribeToLogs = subscribeToLogs;
|
||
exports.fetchLogs = fetchLogs;
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
function subscribeToLogs(tree, client, owner, repo, build, proc) {
|
||
if (subscribeToLogs.ws) {
|
||
subscribeToLogs.ws.close();
|
||
}
|
||
var slug = (0, _repository.repositorySlug)(owner, repo);
|
||
var init = { data: [] };
|
||
|
||
tree.set(["logs", "data", slug, build, proc.pid], init);
|
||
|
||
subscribeToLogs.ws = client.stream(owner, repo, build, proc.ppid, function (item) {
|
||
if (item.proc === proc.name) {
|
||
tree.push(["logs", "data", slug, build, proc.pid, "data"], item);
|
||
}
|
||
});
|
||
}
|
||
|
||
function fetchLogs(tree, client, owner, repo, build, proc) {
|
||
var slug = (0, _repository.repositorySlug)(owner, repo);
|
||
var init = {
|
||
data: [],
|
||
loading: true
|
||
};
|
||
|
||
tree.set(["logs", "data", slug, build, proc], init);
|
||
|
||
client.getLogs(owner, repo, build, proc).then(function (results) {
|
||
tree.set(["logs", "data", slug, build, proc, "data"], results || []);
|
||
tree.set(["logs", "data", slug, build, proc, "loading"], false);
|
||
tree.set(["logs", "data", slug, build, proc, "eof"], true);
|
||
})["catch"](function () {
|
||
tree.set(["logs", "data", slug, build, proc, "loading"], false);
|
||
tree.set(["logs", "data", slug, build, proc, "eof"], true);
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Toggles whether or not the browser should follow
|
||
* the logs (ie scroll to bottom).
|
||
*
|
||
* @param {boolean} follow - Follow the logs.
|
||
*/
|
||
var toggleLogs = exports.toggleLogs = function toggleLogs(tree, follow) {
|
||
tree.set(["logs", "follow"], follow);
|
||
};
|
||
|
||
/***/ }),
|
||
/* 551 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
|
||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _ansi_up = __webpack_require__(196);
|
||
|
||
var _ansi_up2 = _interopRequireDefault(_ansi_up);
|
||
|
||
var _term = __webpack_require__(552);
|
||
|
||
var _term2 = _interopRequireDefault(_term);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var formatter = new _ansi_up2["default"]();
|
||
formatter.use_classes = true;
|
||
|
||
var Term = function (_Component) {
|
||
_inherits(Term, _Component);
|
||
|
||
function Term() {
|
||
_classCallCheck(this, Term);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Term.prototype.render = function render() {
|
||
var _props = this.props,
|
||
lines = _props.lines,
|
||
exitcode = _props.exitcode;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _term2["default"].term },
|
||
lines.map(renderTermLine),
|
||
exitcode !== undefined ? renderExitCode(exitcode) : undefined
|
||
);
|
||
};
|
||
|
||
Term.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.lines !== nextProps.lines || this.props.exitcode !== nextProps.exitcode;
|
||
};
|
||
|
||
return Term;
|
||
}(_react.Component);
|
||
|
||
var TermLine = function (_Component2) {
|
||
_inherits(TermLine, _Component2);
|
||
|
||
function TermLine() {
|
||
_classCallCheck(this, TermLine);
|
||
|
||
return _possibleConstructorReturn(this, _Component2.apply(this, arguments));
|
||
}
|
||
|
||
TermLine.prototype.render = function render() {
|
||
var line = this.props.line;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _term2["default"].line, key: line.pos },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
line.pos + 1
|
||
),
|
||
_react2["default"].createElement("div", { dangerouslySetInnerHTML: { __html: this.colored } }),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
line.time || 0,
|
||
"s"
|
||
)
|
||
);
|
||
};
|
||
|
||
TermLine.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
|
||
return this.props.line.out !== nextProps.line.out;
|
||
};
|
||
|
||
_createClass(TermLine, [{
|
||
key: "colored",
|
||
get: function get() {
|
||
return formatter.ansi_to_html(this.props.line.out || "");
|
||
}
|
||
}]);
|
||
|
||
return TermLine;
|
||
}(_react.Component);
|
||
|
||
var renderTermLine = function renderTermLine(line) {
|
||
return _react2["default"].createElement(TermLine, { line: line });
|
||
};
|
||
|
||
var renderExitCode = function renderExitCode(code) {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _term2["default"].exitcode },
|
||
"exit code ",
|
||
code
|
||
);
|
||
};
|
||
|
||
var TermError = function TermError() {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _term2["default"].error },
|
||
"Oops. There was a problem loading the logs."
|
||
);
|
||
};
|
||
|
||
var TermLoading = function TermLoading() {
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: _term2["default"].loading },
|
||
"Loading ..."
|
||
);
|
||
};
|
||
|
||
Term.Line = TermLine;
|
||
Term.Error = TermError;
|
||
Term.Loading = TermLoading;
|
||
|
||
exports["default"] = Term;
|
||
|
||
/***/ }),
|
||
/* 552 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(553);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../../node_modules/less-loader/dist/cjs.js!./term.less", function() {
|
||
var newContent = require("!!../../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../../node_modules/less-loader/dist/cjs.js!./term.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 553 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".ansi-bright-black-fg,\n.ansi-black-fg {\n color: #B3B3B3;\n}\n.ansi-bright-red-fg,\n.ansi-red-fg {\n color: #fb9fb1;\n}\n.ansi-bright-green-fg,\n.ansi-green-fg {\n color: #acc267;\n}\n.ansi-bright-yellow-fg,\n.ansi-yellow-fg {\n color: #ddb26f;\n}\n.ansi-bright-blue-fg,\n.ansi-blue-fg {\n color: #6fc2ef;\n}\n.ansi-bright-magenta-fg,\n.ansi-magenta-fg {\n color: #e1a3ee;\n}\n.ansi-bright-cyan-fg,\n.ansi-cyan-fg {\n color: #12cfc0;\n}\n.ansi-bright-white-fg,\n.ansi-white-fg {\n color: #151515;\n}\n.ansi-bright-black-fg,\n.ansi-bright-red-fg,\n.ansi-bright-green-fg,\n.ansi-bright-yellow-fg,\n.ansi-bright-blue-fg,\n.ansi-bright-magenta-fg,\n.ansi-bright-cyan-fg,\n.ansi-bright-white-fg {\n font-weight: bold;\n}\n.ansi-black-bg {\n background-color: #d0d0d0;\n}\n.ansi-red-bg {\n background-color: #fb9fb1;\n}\n.ansi-green-bg {\n background-color: #acc267;\n}\n.ansi-yellow-bg {\n background-color: #ddb26f;\n}\n.ansi-blue-bg {\n background-color: #6fc2ef;\n}\n.ansi-magenta-bg {\n background-color: #e1a3ee;\n}\n.ansi-cyan-bg {\n background-color: #12cfc0;\n}\n.ansi-white-bg {\n background-color: #151515;\n}\n.ansi-bright-black-bg {\n background-color: #f5f5f5;\n}\n.ansi-bright-red-bg {\n background-color: #fb9fb1;\n}\n.ansi-bright-green-bg {\n background-color: #acc267;\n}\n.ansi-bright-yellow-bg {\n background-color: #ddb26f;\n}\n.ansi-bright-blue-bg {\n background-color: #6fc2ef;\n}\n.ansi-bright-magenta-bg {\n background-color: #e1a3ee;\n}\n.ansi-bright-cyan-bg {\n background-color: #12cfc0;\n}\n.ansi-bright-white-bg {\n background-color: #505050;\n}\n.term__term___4nYGt {\n background: #eceff1;\n border-radius: 2px;\n padding: 20px;\n}\n.term__term___4nYGt .term__exitcode___1ekZ0 {\n -moz-user-select: none;\n -webkit-user-select: none;\n color: rgba(0, 0, 0, 0.3);\n font-family: 'Roboto Mono', monospace;\n font-size: 13px;\n margin-top: 10px;\n min-width: 20px;\n padding: 0px;\n user-select: none;\n}\n.term__line___21qUE {\n color: #212121;\n display: flex;\n line-height: 19px;\n max-width: 100%;\n}\n.term__line___21qUE span,\n.term__line___21qUE div {\n font-family: 'Roboto Mono', monospace;\n font-size: 12px;\n}\n.term__line___21qUE div:first-child {\n -webkit-user-select: none;\n color: rgba(0, 0, 0, 0.3);\n min-width: 20px;\n padding-right: 20px;\n user-select: none;\n}\n.term__line___21qUE div:nth-child(2) {\n flex: 1 1 auto;\n min-width: 0px;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.term__line___21qUE div:last-child {\n -webkit-user-select: none;\n color: rgba(0, 0, 0, 0.3);\n padding-left: 20px;\n user-select: none;\n}\n.term__loading___12uXl {\n background: #eceff1;\n border-radius: 2px;\n font-family: 'Roboto Mono', monospace;\n font-size: 13px;\n padding: 20px;\n}\n.term__error___3ElTK {\n background: #eceff1;\n border-radius: 2px;\n color: #fc4758;\n font-size: 14px;\n margin-bottom: 10px;\n padding: 20px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"term": "term__term___4nYGt",
|
||
"exitcode": "term__exitcode___1ekZ0",
|
||
"line": "term__line___21qUE",
|
||
"loading": "term__loading___12uXl",
|
||
"error": "term__error___3ElTK"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 554 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.scrollToBottom = exports.scrollToTop = exports.Bottom = exports.Top = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _anchor = __webpack_require__(555);
|
||
|
||
var _anchor2 = _interopRequireDefault(_anchor);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
var Top = exports.Top = function Top() {
|
||
return _react2["default"].createElement("div", { className: _anchor2["default"].top });
|
||
};
|
||
|
||
var Bottom = exports.Bottom = function Bottom() {
|
||
return _react2["default"].createElement("div", { className: _anchor2["default"].bottom });
|
||
};
|
||
|
||
var scrollToTop = exports.scrollToTop = function scrollToTop() {
|
||
document.querySelector("." + _anchor2["default"].top).scrollIntoView();
|
||
};
|
||
|
||
var scrollToBottom = exports.scrollToBottom = function scrollToBottom() {
|
||
document.querySelector("." + _anchor2["default"].bottom).scrollIntoView();
|
||
};
|
||
|
||
/***/ }),
|
||
/* 555 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(556);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../../node_modules/less-loader/dist/cjs.js!./anchor.less", function() {
|
||
var newContent = require("!!../../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../../node_modules/less-loader/dist/cjs.js!./anchor.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 556 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".anchor__top___2DSwK,\n.anchor__bottom___3ttH3 {\n font-size: 0px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"top": "anchor__top___2DSwK",
|
||
"bottom": "anchor__bottom___3ttH3"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 557 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(558);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../../node_modules/css-loader/index.js??ref--2!../../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 558 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__loading___3LRAA {\n background: #eceff1;\n border-radius: 2px;\n font-family: 'Roboto Mono', monospace;\n font-size: 12px;\n padding: 20px;\n}\n.index__error___vXjYw {\n background: #eceff1;\n border-radius: 2px;\n color: #fc4758;\n font-size: 14px;\n margin-bottom: 10px;\n padding: 20px;\n}\n.index__actions___2DkRe {\n bottom: 30px;\n display: flex;\n flex-direction: row;\n position: fixed;\n right: 30px;\n}\n.index__actions___2DkRe button {\n align-items: center;\n background: #ffffff;\n border: 1px solid #bdbdbd;\n color: #212121;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n justify-content: center;\n margin-left: -1px;\n min-height: 32px;\n min-width: 32px;\n outline: none;\n padding: 2px;\n}\n.index__actions___2DkRe button.index__bottom___2L1Zc svg {\n transform: rotate(180deg);\n}\n.index__actions___2DkRe button.index__follow___3MeD- svg,\n.index__actions___2DkRe button.index__unfollow___30q9g svg {\n height: 18px;\n width: 18px;\n}\n.index__actions___2DkRe svg {\n fill: #212121;\n}\n.index__logactions___1JY6c {\n bottom: 30px;\n display: flex;\n position: fixed;\n right: 30px;\n}\n.index__logactions___1JY6c div {\n display: flex;\n}\n.index__logactions___1JY6c button {\n align-items: center;\n background: #ffffff;\n border: 1px solid #eceff1;\n color: #212121;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n justify-content: center;\n margin-left: -1px;\n min-height: 32px;\n min-width: 32px;\n outline: none;\n padding: 2px;\n}\n.index__logactions___1JY6c button svg {\n fill: #212121;\n}\n.index__logactions___1JY6c button.index__gotoTop___3xWjw {\n transform: rotate(180deg);\n}\n.index__logactions___1JY6c button.index__followButton___1MCzM svg {\n height: 18px;\n width: 18px;\n}\n.index__logactions___1JY6c button.index__unfollowButton___2stal svg {\n height: 18px;\n width: 18px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"loading": "index__loading___3LRAA",
|
||
"error": "index__error___vXjYw",
|
||
"actions": "index__actions___2DkRe",
|
||
"bottom": "index__bottom___2L1Zc",
|
||
"follow": "index__follow___3MeD-",
|
||
"unfollow": "index__unfollow___30q9g",
|
||
"logactions": "index__logactions___1JY6c",
|
||
"gotoTop": "index__gotoTop___3xWjw",
|
||
"followButton": "index__followButton___1MCzM",
|
||
"unfollowButton": "index__unfollowButton___2stal"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 559 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(560);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less", function() {
|
||
var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--2!../../../../../node_modules/less-loader/dist/cjs.js!./index.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 560 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".index__host___2fTuc {\n padding: 0px 20px;\n padding-bottom: 20px;\n padding-right: 0px;\n}\n.index__host___2fTuc .index__columns___3ErqP {\n display: flex;\n}\n.index__host___2fTuc .index__columns___3ErqP .index__left___1Gi1J {\n box-sizing: border-box;\n flex: 1;\n min-width: 0px;\n padding-right: 20px;\n padding-top: 20px;\n}\n.index__host___2fTuc .index__columns___3ErqP .index__right___ekZCd {\n box-sizing: border-box;\n flex: 0 0 350px;\n min-width: 0px;\n padding-right: 20px;\n padding-top: 20px;\n}\n.index__host___2fTuc .index__columns___3ErqP .index__right___ekZCd > section {\n border-top: 1px solid #eceff1;\n padding-top: 20px;\n}\nsection.index__sticky___2mc35 {\n position: sticky;\n top: 0px;\n}\nsection.index__sticky___2mc35:stuck {\n border-top-width: 0px;\n}\n.index__logerror___4zH4H {\n background: #eceff1;\n border-radius: 2px;\n color: #fc4758;\n display: block;\n font-size: 14px;\n margin-bottom: 10px;\n padding: 20px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"host": "index__host___2fTuc",
|
||
"columns": "index__columns___3ErqP",
|
||
"left": "index__left___1Gi1J",
|
||
"right": "index__right___ekZCd",
|
||
"sticky": "index__sticky___2mc35",
|
||
"logerror": "index__logerror___4zH4H"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 561 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports["default"] = undefined;
|
||
|
||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||
|
||
var _dec, _class;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _menu = __webpack_require__(197);
|
||
|
||
var _menu2 = _interopRequireDefault(_menu);
|
||
|
||
var _icons = __webpack_require__(40);
|
||
|
||
var _build = __webpack_require__(129);
|
||
|
||
var _proc = __webpack_require__(131);
|
||
|
||
var _repository = __webpack_require__(23);
|
||
|
||
var _higherOrder = __webpack_require__(16);
|
||
|
||
var _inject = __webpack_require__(22);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var binding = function binding(props, context) {
|
||
var _props$match$params = props.match.params,
|
||
owner = _props$match$params.owner,
|
||
repo = _props$match$params.repo,
|
||
build = _props$match$params.build;
|
||
|
||
var slug = (0, _repository.repositorySlug)(owner, repo);
|
||
var number = parseInt(build);
|
||
return {
|
||
repo: ["repos", "data", slug],
|
||
build: ["builds", "data", slug, number]
|
||
};
|
||
};
|
||
|
||
var BuildMenu = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) {
|
||
_inherits(BuildMenu, _Component);
|
||
|
||
function BuildMenu(props, context) {
|
||
_classCallCheck(this, BuildMenu);
|
||
|
||
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
|
||
|
||
_this.handleCancel = _this.handleCancel.bind(_this);
|
||
_this.handleRestart = _this.handleRestart.bind(_this);
|
||
return _this;
|
||
}
|
||
|
||
BuildMenu.prototype.handleRestart = function handleRestart() {
|
||
var _props = this.props,
|
||
dispatch = _props.dispatch,
|
||
drone = _props.drone,
|
||
repo = _props.repo,
|
||
build = _props.build;
|
||
|
||
dispatch(_build.restartBuild, drone, repo.owner, repo.name, build.number);
|
||
};
|
||
|
||
BuildMenu.prototype.handleCancel = function handleCancel() {
|
||
var _props2 = this.props,
|
||
dispatch = _props2.dispatch,
|
||
drone = _props2.drone,
|
||
repo = _props2.repo,
|
||
build = _props2.build,
|
||
match = _props2.match;
|
||
|
||
var proc = (0, _proc.findChildProcess)(build.procs, match.params.proc || 2);
|
||
|
||
dispatch(_build.cancelBuild, drone, repo.owner, repo.name, build.number, proc.ppid);
|
||
};
|
||
|
||
BuildMenu.prototype.render = function render() {
|
||
var build = this.props.build;
|
||
|
||
|
||
var rightSide = !build ? undefined : _react2["default"].createElement(
|
||
"section",
|
||
null,
|
||
build.status === "pending" || build.status === "running" ? _react2["default"].createElement(
|
||
"button",
|
||
{ onClick: this.handleCancel },
|
||
_react2["default"].createElement(_icons.CloseIcon, null),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Cancel"
|
||
)
|
||
) : _react2["default"].createElement(
|
||
"button",
|
||
{ onClick: this.handleRestart },
|
||
_react2["default"].createElement(_icons.RefreshIcon, null),
|
||
_react2["default"].createElement(
|
||
"span",
|
||
null,
|
||
"Restart Build"
|
||
)
|
||
)
|
||
);
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
_react2["default"].createElement(_menu2["default"], _extends({}, this.props, { right: rightSide }))
|
||
);
|
||
};
|
||
|
||
return BuildMenu;
|
||
}(_react.Component)) || _class) || _class);
|
||
exports["default"] = BuildMenu;
|
||
|
||
/***/ }),
|
||
/* 562 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.Snackbar = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _snackbar = __webpack_require__(563);
|
||
|
||
var _snackbar2 = _interopRequireDefault(_snackbar);
|
||
|
||
var _close = __webpack_require__(127);
|
||
|
||
var _close2 = _interopRequireDefault(_close);
|
||
|
||
var _reactTransitionGroup = __webpack_require__(132);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var Snackbar = exports.Snackbar = function (_React$Component) {
|
||
_inherits(Snackbar, _React$Component);
|
||
|
||
function Snackbar() {
|
||
_classCallCheck(this, Snackbar);
|
||
|
||
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
||
}
|
||
|
||
Snackbar.prototype.render = function render() {
|
||
var message = this.props.message;
|
||
|
||
|
||
var classes = [_snackbar2["default"].snackbar];
|
||
if (message) {
|
||
classes.push(_snackbar2["default"].open);
|
||
}
|
||
|
||
var content = message ? _react2["default"].createElement(
|
||
"div",
|
||
{ className: classes.join(" "), key: message },
|
||
_react2["default"].createElement(
|
||
"div",
|
||
null,
|
||
message
|
||
),
|
||
_react2["default"].createElement(
|
||
"button",
|
||
{ onClick: this.props.onClose },
|
||
_react2["default"].createElement(_close2["default"], null)
|
||
)
|
||
) : null;
|
||
|
||
return _react2["default"].createElement(
|
||
_reactTransitionGroup.CSSTransitionGroup,
|
||
{
|
||
transitionName: "slideup",
|
||
transitionEnterTimeout: 200,
|
||
transitionLeaveTimeout: 200,
|
||
transitionAppearTimeout: 200,
|
||
transitionAppear: true,
|
||
transitionEnter: true,
|
||
transitionLeave: true,
|
||
className: classes.root
|
||
},
|
||
content
|
||
);
|
||
};
|
||
|
||
return Snackbar;
|
||
}(_react2["default"].Component);
|
||
|
||
// const SnackbarContent = ({ children, ...props }) => {
|
||
// <div {...props}>{children}</div>
|
||
// }
|
||
//
|
||
// const SnackbarClose = ({ children, ...props }) => {
|
||
// <div {...props}>{children}</div>
|
||
// }
|
||
|
||
/***/ }),
|
||
/* 563 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(564);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./snackbar.less", function() {
|
||
var newContent = require("!!../../../node_modules/css-loader/index.js??ref--2!../../../node_modules/less-loader/dist/cjs.js!./snackbar.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 564 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".snackbar__root___2IjwU {\n bottom: -1000px;\n height: 0px;\n position: absolute;\n top: -1000px;\n width: 0px;\n}\n.snackbar__snackbar___2NO0G {\n align-items: stretch;\n background: #212121;\n bottom: 20px;\n box-shadow: rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n display: none;\n flex-direction: row;\n left: 20px;\n min-width: 500px;\n position: fixed;\n z-index: 2;\n}\n.snackbar__snackbar___2NO0G.snackbar__open___12iXv {\n display: flex;\n}\n.snackbar__snackbar___2NO0G > :first-child {\n color: #ffffff;\n flex: 1;\n font-size: 14px;\n line-height: 24px;\n padding: 10px 20px;\n vertical-align: middle;\n}\n.snackbar__snackbar___2NO0G button {\n background: transparent;\n border: 0px;\n cursor: pointer;\n display: flex;\n flex: 0 0 24px;\n margin: 0px;\n margin-right: 10px;\n outline: none;\n padding: 0px;\n}\n.snackbar__snackbar___2NO0G button svg {\n align-items: center;\n fill: #ffffff;\n height: 24px;\n}\n.slideup-enter {\n bottom: -50px;\n}\n.slideup-enter.slideup-enter-active {\n bottom: 20px;\n transition: bottom 200ms linear;\n}\n.slideup-leave {\n bottom: 20px;\n}\n.slideup-leave.slideup-leave-active {\n bottom: -50px;\n transition: bottom 200ms linear;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"root": "snackbar__root___2IjwU",
|
||
"snackbar": "snackbar__snackbar___2NO0G",
|
||
"open": "snackbar__open___12iXv"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 565 */,
|
||
/* 566 */,
|
||
/* 567 */,
|
||
/* 568 */,
|
||
/* 569 */,
|
||
/* 570 */,
|
||
/* 571 */,
|
||
/* 572 */,
|
||
/* 573 */,
|
||
/* 574 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
exports.__esModule = true;
|
||
exports.MenuButton = exports.CloseButton = exports.Drawer = exports.DOCK_RIGHT = exports.DOCK_LEFT = undefined;
|
||
|
||
var _react = __webpack_require__(1);
|
||
|
||
var _react2 = _interopRequireDefault(_react);
|
||
|
||
var _close = __webpack_require__(127);
|
||
|
||
var _close2 = _interopRequireDefault(_close);
|
||
|
||
var _drawer = __webpack_require__(575);
|
||
|
||
var _drawer2 = _interopRequireDefault(_drawer);
|
||
|
||
var _reactTransitionGroup = __webpack_require__(132);
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||
|
||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||
|
||
var DOCK_LEFT = exports.DOCK_LEFT = _drawer2["default"].left;
|
||
var DOCK_RIGHT = exports.DOCK_RIGHT = _drawer2["default"].right;
|
||
|
||
var Drawer = exports.Drawer = function (_Component) {
|
||
_inherits(Drawer, _Component);
|
||
|
||
function Drawer() {
|
||
_classCallCheck(this, Drawer);
|
||
|
||
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
||
}
|
||
|
||
Drawer.prototype.render = function render() {
|
||
var _props = this.props,
|
||
open = _props.open,
|
||
position = _props.position;
|
||
|
||
|
||
var classes = [_drawer2["default"].drawer];
|
||
if (open) {
|
||
classes.push(_drawer2["default"].open);
|
||
}
|
||
if (position) {
|
||
classes.push(position);
|
||
}
|
||
|
||
var child = open ? _react2["default"].createElement("div", { key: 0, onClick: this.props.onClick, className: _drawer2["default"].backdrop }) : null;
|
||
|
||
return _react2["default"].createElement(
|
||
"div",
|
||
{ className: classes.join(" ") },
|
||
_react2["default"].createElement(
|
||
_reactTransitionGroup.CSSTransitionGroup,
|
||
{
|
||
transitionName: "fade",
|
||
transitionEnterTimeout: 150,
|
||
transitionLeaveTimeout: 150,
|
||
transitionAppearTimeout: 150,
|
||
transitionAppear: true,
|
||
transitionEnter: true,
|
||
transitionLeave: true
|
||
},
|
||
child
|
||
),
|
||
_react2["default"].createElement(
|
||
"div",
|
||
{ className: _drawer2["default"].inner },
|
||
this.props.children
|
||
)
|
||
);
|
||
};
|
||
|
||
return Drawer;
|
||
}(_react.Component);
|
||
|
||
var CloseButton = exports.CloseButton = function (_Component2) {
|
||
_inherits(CloseButton, _Component2);
|
||
|
||
function CloseButton() {
|
||
_classCallCheck(this, CloseButton);
|
||
|
||
return _possibleConstructorReturn(this, _Component2.apply(this, arguments));
|
||
}
|
||
|
||
CloseButton.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"button",
|
||
{ className: _drawer2["default"].close, onClick: this.props.onClick },
|
||
_react2["default"].createElement(_close2["default"], null)
|
||
);
|
||
};
|
||
|
||
return CloseButton;
|
||
}(_react.Component);
|
||
|
||
var MenuButton = exports.MenuButton = function (_Component3) {
|
||
_inherits(MenuButton, _Component3);
|
||
|
||
function MenuButton() {
|
||
_classCallCheck(this, MenuButton);
|
||
|
||
return _possibleConstructorReturn(this, _Component3.apply(this, arguments));
|
||
}
|
||
|
||
MenuButton.prototype.render = function render() {
|
||
return _react2["default"].createElement(
|
||
"button",
|
||
{ className: _drawer2["default"].close, onClick: this.props.onClick },
|
||
"Show Menu"
|
||
);
|
||
};
|
||
|
||
return MenuButton;
|
||
}(_react.Component);
|
||
|
||
/***/ }),
|
||
/* 575 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(576);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../../../node_modules/css-loader/index.js??ref--2!../../../../node_modules/less-loader/dist/cjs.js!./drawer.less", function() {
|
||
var newContent = require("!!../../../../node_modules/css-loader/index.js??ref--2!../../../../node_modules/less-loader/dist/cjs.js!./drawer.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 576 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".drawer__backdrop___3uciL {\n background-color: rgba(0, 0, 0, 0.54);\n bottom: 0px;\n left: 0px;\n position: fixed;\n right: 0px;\n top: 0px;\n}\n.drawer__inner___3JNKh {\n background: #ffffff;\n bottom: 0px;\n box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n left: 0px;\n overflow: hidden;\n position: fixed;\n right: 0px;\n top: 0px;\n transition: left ease-in 0.15s;\n width: 300px;\n}\n.drawer__drawer___3WNMz {\n display: none;\n height: 0px;\n left: -1000px;\n position: fixed;\n top: -1000px;\n width: 0px;\n}\n.drawer__drawer___3WNMz.drawer__open___3s_xk {\n display: flex;\n}\n.drawer__drawer___3WNMz.drawer__open___3s_xk .drawer__inner___3JNKh {\n left: 0px;\n transition: left ease-in 0.15s;\n}\n.drawer__drawer___3WNMz.drawer__right___1rvUy .drawer__inner___3JNKh {\n left: auto;\n right: 0px;\n}\n.drawer__close___1fc3t {\n align-items: center;\n background: transparent;\n border: 0px;\n cursor: pointer;\n display: flex;\n margin: 0px;\n outline: none;\n padding: 10px 10px;\n text-align: right;\n width: 100%;\n}\n.drawer__close___1fc3t svg {\n fill: #eceff1;\n}\n.drawer__right___1rvUy .drawer__close___1fc3t {\n flex-direction: row-reverse;\n}\n.drawer__drawer___3WNMz ul {\n border-top: 1px solid #eceff1;\n margin: 0px;\n padding: 10px 0px;\n}\n.drawer__drawer___3WNMz ul li {\n display: block;\n margin: 0px;\n padding: 0px 10px;\n}\n.drawer__drawer___3WNMz ul a {\n color: #212121;\n display: block;\n line-height: 32px;\n padding: 0px 10px;\n text-decoration: none;\n}\n.drawer__drawer___3WNMz ul a:hover {\n background: #eceff1;\n}\n.drawer__drawer___3WNMz ul button {\n align-items: center;\n background: #ffffff;\n border: 0px;\n cursor: pointer;\n display: flex;\n margin: 0px;\n padding: 0px 10px;\n width: 100%;\n}\n.drawer__drawer___3WNMz ul button:hover {\n background: #eceff1;\n}\n.drawer__drawer___3WNMz ul button[disabled] {\n color: #bdbdbd;\n cursor: wait;\n}\n.drawer__drawer___3WNMz ul button[disabled]:hover {\n background: #eceff1;\n}\n.drawer__drawer___3WNMz ul button[disabled] svg {\n fill: #bdbdbd;\n}\n.drawer__drawer___3WNMz ul button span {\n flex: 1;\n line-height: 32px;\n padding-left: 10px;\n text-align: left;\n}\n.drawer__drawer___3WNMz ul button svg {\n display: inline-block;\n height: 22px;\n width: 22px;\n}\n.drawer__drawer___3WNMz > section:first-of-type ul {\n border-top: 0px;\n}\n.fade-enter {\n opacity: 0.01;\n}\n.fade-enter.fade-enter-active {\n opacity: 1;\n transition: opacity 150ms ease-in;\n}\n.fade-leave {\n opacity: 1;\n}\n.fade-leave.fade-leave-active {\n opacity: 0.01;\n transition: opacity 150ms ease-in;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"backdrop": "drawer__backdrop___3uciL",
|
||
"inner": "drawer__inner___3JNKh",
|
||
"drawer": "drawer__drawer___3WNMz",
|
||
"open": "drawer__open___3s_xk",
|
||
"right": "drawer__right___1rvUy",
|
||
"close": "drawer__close___1fc3t"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 577 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(578);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../node_modules/css-loader/index.js??ref--2!../../node_modules/less-loader/dist/cjs.js!./layout.less", function() {
|
||
var newContent = require("!!../../node_modules/css-loader/index.js??ref--2!../../node_modules/less-loader/dist/cjs.js!./layout.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 578 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
|
||
|
||
// module
|
||
exports.push([module.i, ".layout__title___3EiDg {\n align-items: center;\n border-bottom: 1px solid #eceff1;\n box-sizing: border-box;\n display: flex;\n height: 60px;\n padding: 0px 20px;\n}\n.layout__title___3EiDg > :first-child {\n flex: 1;\n}\n.layout__title___3EiDg .layout__avatar___2VJ7n {\n align-items: center;\n display: flex;\n}\n.layout__title___3EiDg .layout__avatar___2VJ7n img {\n border-radius: 50%;\n height: 28px;\n width: 28px;\n}\n.layout__title___3EiDg button {\n align-items: stretch;\n background: #ffffff;\n border: 0px;\n cursor: pointer;\n display: flex;\n margin: 0px;\n margin-left: 10px;\n outline: none;\n padding: 0px;\n}\n.layout__left___mXmdQ {\n border-right: 1px solid #cfd6db;\n bottom: 0px;\n box-sizing: border-box;\n left: 0px;\n overflow: hidden;\n overflow-y: auto;\n position: fixed;\n right: 0px;\n top: 0px;\n width: 300px;\n}\n.layout__center___3hMPc {\n box-sizing: border-box;\n padding-left: 300px;\n}\n.layout__login___3Aimz {\n background: #fdb835;\n box-sizing: border-box;\n color: #ffffff;\n display: block;\n font-size: 15px;\n line-height: 50px;\n margin-top: -1px;\n padding: 0px 30px;\n text-align: center;\n text-decoration: none;\n text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);\n text-transform: uppercase;\n}\n.layout__guest___EyxpH .layout__left___mXmdQ {\n display: none;\n}\n.layout__guest___EyxpH .layout__center___3hMPc {\n padding-left: 0px;\n}\n", ""]);
|
||
|
||
// exports
|
||
exports.locals = {
|
||
"title": "layout__title___3EiDg",
|
||
"avatar": "layout__avatar___2VJ7n",
|
||
"left": "layout__left___mXmdQ",
|
||
"center": "layout__center___3hMPc",
|
||
"login": "layout__login___3Aimz",
|
||
"guest": "layout__guest___EyxpH"
|
||
};
|
||
|
||
/***/ }),
|
||
/* 579 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
||
// load the styles
|
||
var content = __webpack_require__(580);
|
||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
// Prepare cssTransformation
|
||
var transform;
|
||
|
||
var options = {}
|
||
options.transform = transform
|
||
// add the styles to the DOM
|
||
var update = __webpack_require__(4)(content, options);
|
||
if(content.locals) module.exports = content.locals;
|
||
// Hot Module Replacement
|
||
if(false) {
|
||
// When the styles change, update the <style> tags
|
||
if(!content.locals) {
|
||
module.hot.accept("!!../../node_modules/css-loader/index.js??ref--2!../../node_modules/less-loader/dist/cjs.js!./drone.less", function() {
|
||
var newContent = require("!!../../node_modules/css-loader/index.js??ref--2!../../node_modules/less-loader/dist/cjs.js!./drone.less");
|
||
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
update(newContent);
|
||
});
|
||
}
|
||
// When the module is disposed, remove the <style> tags
|
||
module.hot.dispose(function() { update(); });
|
||
}
|
||
|
||
/***/ }),
|
||
/* 580 */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
exports = module.exports = __webpack_require__(3)(undefined);
|
||
// imports
|
||
exports.push([module.i, "@import url(https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,500);", ""]);
|
||
|
||
// module
|
||
exports.push([module.i, " {\n}\ndiv,\nspan {\n font-family: 'Roboto';\n font-size: 16px;\n}\nhtml,\nbody {\n margin: 0px;\n padding: 0px;\n}\n", ""]);
|
||
|
||
// exports
|
||
|
||
|
||
/***/ })
|
||
],[201]);`)
|
||
|
||
// /static/vendor.bab47468491b194ca445.js
|
||
var file1 = []byte(`!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,i,a){for(var u,c,s,f=0,l=[];r.length>f;f++)c=r[f],o[c]&&l.push(o[c][0]),o[c]=0;for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&(t[u]=i[u]);for(n&&n(r,i,a);l.length;)l.shift()();if(a)for(f=0;a.length>f;f++)s=e(e.s=a[f]);return s};var r={},o={1:0};e.e=function(t){function n(){u.onerror=u.onload=null,clearTimeout(c);var e=o[t];0!==e&&(e&&e[1](Error("Loading chunk "+t+" failed.")),o[t]=void 0)}var r=o[t];if(0===r)return new Promise(function(t){t()});if(r)return r[2];var i=new Promise(function(e,n){r=o[t]=[e,n]});r[2]=i;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,e.nc&&u.setAttribute("nonce",e.nc),u.src=e.p+""+t+".static/bundle."+{0:"3210ec51b3a117dda107"}[t]+".js";var c=setTimeout(n,12e4);return u.onerror=u.onload=n,a.appendChild(u),i},e.m=t,e.c=r,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e.oe=function(t){throw t},e(e.s=581)}([function(t,e,n){var r=n(5),o=n(32),i=n(18),a=n(19),u=n(28),c=function(t,e,n){var s,f,l,p,h=t&c.F,d=t&c.G,v=t&c.S,y=t&c.P,m=t&c.B,g=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?o:o[e]||(o[e]={}),_=b.prototype||(b.prototype={});d&&(n=e);for(s in n)f=!h&&g&&void 0!==g[s],l=(f?g:n)[s],p=m&&f?u(l,r):y&&"function"==typeof l?u(Function.call,l):l,g&&a(g,s,l,t&c.U),b[s]!=l&&i(b,s,p),y&&_[s]!=l&&(_[s]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){(function(e){!function(e,r){t.exports=r(n(12),n(118))}(0,function(t,n){function r(){return null}function o(t){var e=t.nodeName,n=t.attributes;t.attributes={},e.defaultProps&&w(t.attributes,e.defaultProps),n&&w(t.attributes,n)}function i(t,e){var n,r,o;if(e){for(o in e)if(n=B.test(o))break;if(n){r=t.attributes={};for(o in e)e.hasOwnProperty(o)&&(r[B.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=e[o])}}}function a(t,e,r){var o=e&&e._preactCompatRendered&&e._preactCompatRendered.base;o&&o.parentNode!==e&&(o=null),!o&&e&&(o=e.firstElementChild);for(var i=e.childNodes.length;i--;)e.childNodes[i]!==o&&e.removeChild(e.childNodes[i]);var a=n.render(t,e,o);return e&&(e._preactCompatRendered=a&&(a._component||{base:a})),"function"==typeof r&&r(),a&&a._component||a}function u(t,e,r,o){var i=n.h(Y,{context:t.context},e),u=a(i,r),c=u._component||u.base;return o&&o.call(c,u),c}function c(t){var e=t._preactCompatRendered&&t._preactCompatRendered.base;return!(!e||e.parentNode!==t)&&(n.render(n.h(r),t,e),!0)}function s(t){return d.bind(null,t)}function f(t,e){for(var n=e||0;t.length>n;n++){var r=t[n];Array.isArray(r)?f(r):r&&"object"==typeof r&&!m(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(t[n]=d(r.type||r.nodeName,r.props||r.attributes,r.children))}}function l(t){return"function"==typeof t&&!(t.prototype&&t.prototype.render)}function p(t){return E({displayName:t.displayName||t.name,render:function(){return t(this.props,this.context)}})}function h(t){var e=t[U];return e?!0===e?t:e:(e=p(t),Object.defineProperty(e,U,{configurable:!0,value:!0}),e.displayName=t.displayName,e.propTypes=t.propTypes,e.defaultProps=t.defaultProps,Object.defineProperty(t,U,{configurable:!0,value:e}),e)}function d(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return f(t,2),v(n.h.apply(void 0,t))}function v(t){t.preactCompatNormalized=!0,_(t),l(t.nodeName)&&(t.nodeName=h(t.nodeName));var e=t.attributes.ref,n=e&&typeof e;return!$||"string"!==n&&"number"!==n||(t.attributes.ref=g(e,$)),b(t),t}function y(t,e){for(var r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];if(!m(t))return t;var i=t.attributes||t.props,a=n.h(t.nodeName||t.type,i,t.children||i&&i.children),u=[a,e];return r&&r.length?u.push(r):e&&e.children&&u.push(e.children),v(n.cloneElement.apply(void 0,u))}function m(t){return t&&(t instanceof V||t.$$typeof===D)}function g(t,e){return e._refProxies[t]||(e._refProxies[t]=function(n){e&&e.refs&&(e.refs[t]=n,null===n&&(delete e._refProxies[t],e=null))})}function b(t){var e=t.nodeName,n=t.attributes;if(n&&"string"==typeof e){var r={};for(var o in n)r[o.toLowerCase()]=o;if(r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]),r.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var i=r.oninput||"oninput";n[i]||(n[i]=C([n[i],n[r.onchange]]),delete n[r.onchange])}}}function _(t){var e=t.attributes||(t.attributes={});Z.enumerable="className"in e,e.className&&(e.class=e.className),Object.defineProperty(e,"className",Z)}function w(t){for(var e=arguments,n=1,r=void 0;arguments.length>n;n++)if(r=e[n])for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);return t}function O(t,e){for(var n in t)if(!(n in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}function x(t){return t&&t.base||t}function P(){}function E(t){function e(t,e){S(this),L.call(this,t,e,z),M.call(this,t,e)}return t=w({constructor:e},t),t.mixins&&j(t,k(t.mixins)),t.statics&&w(e,t.statics),t.propTypes&&(e.propTypes=t.propTypes),t.defaultProps&&(e.defaultProps=t.defaultProps),t.getDefaultProps&&(e.defaultProps=t.getDefaultProps()),P.prototype=L.prototype,e.prototype=w(new P,t),e.displayName=t.displayName||"Component",e}function k(t){for(var e={},n=0;t.length>n;n++){var r=t[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(e[o]||(e[o]=[])).push(r[o])}return e}function j(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=C(e[n].concat(t[n]||K),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}function S(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||W.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function T(t,e,n){if("string"==typeof e&&(e=t.constructor.prototype[e]),"function"==typeof e)return e.apply(t,n)}function C(t,e){return function(){for(var n,r=arguments,o=this,i=0;t.length>i;i++){var a=T(o,t[i],r);if(e&&null!=a){n||(n={});for(var u in a)a.hasOwnProperty(u)&&(n[u]=a[u])}else void 0!==a&&(n=a)}return n}}function M(t,e){N.call(this,t,e),this.componentWillReceiveProps=C([N,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=C([N,R,this.render||"render",A])}function N(e){if(e){var n=e.children;if(n&&Array.isArray(n)&&1===n.length&&("string"==typeof n[0]||"function"==typeof n[0]||n[0]instanceof V)&&(e.children=n[0])&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children),q){var r="function"==typeof this?this:this.constructor,o=this.propTypes||r.propTypes,i=this.displayName||r.name;o&&t.checkPropTypes(o,e,"prop",i)}}}function R(){$=this}function A(){$===this&&($=null)}function L(t,e,r){n.Component.call(this,t,e),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},r!==z&&M.call(this,t,e)}function I(t,e){L.call(this,t,e)}t="default"in t?t.default:t;var F="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),D="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,U="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",W={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},B=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,z={},q=void 0===e||!e.env||"production"!==e.env.NODE_ENV,V=n.h("a",null).constructor;V.prototype.$$typeof=D,V.prototype.preactCompatUpgraded=!1,V.prototype.preactCompatNormalized=!1,Object.defineProperty(V.prototype,"type",{get:function(){return this.nodeName},set:function(t){this.nodeName=t},configurable:!0}),Object.defineProperty(V.prototype,"props",{get:function(){return this.attributes},set:function(t){this.attributes=t},configurable:!0});var G=n.options.event;n.options.event=function(t){return G&&(t=G(t)),t.persist=Object,t.nativeEvent=t,t};var H=n.options.vnode;n.options.vnode=function(t){if(!t.preactCompatUpgraded){t.preactCompatUpgraded=!0;var e=t.nodeName,n=t.attributes=w({},t.attributes);"function"==typeof e?(!0===e[U]||e.prototype&&"isReactComponent"in e.prototype)&&(t.children&&t.children+""==""&&(t.children=void 0),t.children&&(n.children=t.children),t.preactCompatNormalized||v(t),o(t)):(t.children&&t.children+""==""&&(t.children=void 0),t.children&&(n.children=t.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),i(t,n))}H&&H(t)};var Y=function(){};Y.prototype.getChildContext=function(){return this.props.context},Y.prototype.render=function(t){return t.children[0]};for(var $,K=[],J={map:function(t,e,n){return null==t?null:(t=J.toArray(t),n&&n!==t&&(e=e.bind(n)),t.map(e))},forEach:function(t,e,n){if(null==t)return null;t=J.toArray(t),n&&n!==t&&(e=e.bind(n)),t.forEach(e)},count:function(t){return t&&t.length||0},only:function(t){if(t=J.toArray(t),1!==t.length)throw Error("Children.only() expects only one child.");return t[0]},toArray:function(t){return null==t?[]:K.concat(t)}},Q={},X=F.length;X--;)Q[F[X]]=s(F[X]);var Z={configurable:!0,get:function(){return this.class},set:function(t){this.class=t}};return w(L.prototype=new n.Component,{constructor:L,isReactComponent:{},replaceState:function(t,e){var n=this;this.setState(t,e);for(var r in n.state)r in t||delete n.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),P.prototype=L.prototype,I.prototype=new P,I.prototype.isPureReactComponent=!0,I.prototype.shouldComponentUpdate=function(t,e){return O(this.props,t)||O(this.state,e)},{version:"15.1.0",DOM:Q,PropTypes:t,Children:J,render:a,createClass:E,createFactory:s,createElement:d,cloneElement:y,isValidElement:m,findDOMNode:x,unmountComponentAtNode:c,Component:L,PureComponent:I,unstable_renderSubtreeIntoContainer:u,__spread:w}})}).call(e,n(21))},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},,,function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(68)("wks"),o=n(44),i=n(5).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),o=n(134),i=n(33),a=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(35),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r};t.exports=n(403)(o,!0)}else t.exports=n(405)()}).call(e,n(21))},function(t,e,n){var r=n(34);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";(function(e){var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(t,e,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var o=2;r>o;o++)n[o-2]=arguments[o];if(void 0===e)throw Error("` + "`" + `warning(condition, format, ...args)` + "`" + ` requires a warning message argument");if(10>e.length||/^[s\W]*$/.test(e))throw Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var i=0,a="Warning: "+e.replace(/%s/g,function(){return n[i++]});try{throw Error(a)}catch(t){}}}),t.exports=n}).call(e,n(21))},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(407);e.root=r.root,e.branch=r.branch},function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,e,n){var r=n(10),o=n(43);t.exports=n(9)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(5),o=n(18),i=n(17),a=n(44)("src"),u=Function.toString,c=(""+u).split("toString");n(32).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(e+""))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e,n){var r=n(0),o=n(6),i=n(34),a=/"/g,u=function(t,e,n,r){var o=i(t)+"",u="<"+e;return""!==n&&(u+=" "+n+'="'+(r+"").replace(a,""")+'"'),u+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t){function e(){throw Error("setTimeout has not been defined")}function n(){throw Error("clearTimeout has not been defined")}function r(t){if(s===setTimeout)return setTimeout(t,0);if((s===e||!s)&&setTimeout)return s=setTimeout,setTimeout(t,0);try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function i(){d&&p&&(d=!1,p.length?h=p.concat(h):v=-1,h.length&&a())}function a(){if(!d){var t=r(i);d=!0;for(var e=h.length;e;){for(p=h,h=[];++v<e;)p&&p[v].run();v=-1,e=h.length}p=null,d=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var s,f,l=t.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:e}catch(t){s=e}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(t){f=n}}();var p,h=[],d=!1,v=-1;l.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;arguments.length>n;n++)e[n-1]=arguments[n];h.push(new u(t,e)),1!==h.length||d||r(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=c,l.addListener=c,l.once=c,l.off=c,l.removeListener=c,l.removeAllListeners=c,l.emit=c,l.prependListener=c,l.prependOnceListener=c,l.listeners=function(){return[]},l.binding=function(){throw Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(){throw Error("process.chdir is not supported")},l.umask=function(){return 0}},,,function(t,e,n){var r=n(59),o=n(34);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(60),o=n(43),i=n(24),a=n(33),u=n(17),c=n(134),s=Object.getOwnPropertyDescriptor;e.f=n(9)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(17),o=n(13),i=n(91)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(421);n.d(e,"BrowserRouter",function(){return r.a});var o=n(423);n.d(e,"HashRouter",function(){return o.a});var i=n(177);n.d(e,"Link",function(){return i.a});var a=n(425);n.d(e,"MemoryRouter",function(){return a.a});var u=n(427);n.d(e,"NavLink",function(){return u.a});var c=n(430);n.d(e,"Prompt",function(){return c.a});var s=n(431);n.d(e,"Redirect",function(){return s.a});var f=n(179);n.d(e,"Route",function(){return f.a});var l=n(123);n.d(e,"Router",function(){return l.a});var p=n(436);n.d(e,"StaticRouter",function(){return p.a});var h=n(437);n.d(e,"Switch",function(){return h.a});var d=n(438);n.d(e,"matchPath",function(){return d.a});var v=n(439);n.d(e,"withRouter",function(){return v.a})},function(t,e,n){var r=n(15);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";(function(e){t.exports=function(t,n,r,o,i,a,u,c){if("production"!==e.env.NODE_ENV&&void 0===n)throw Error("invariant requires an error message argument");if(!t){var s;if(void 0===n)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,o,i,a,u,c],l=0;s=Error(n.replace(/%s/g,function(){return f[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}}).call(e,n(21))},function(t){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},function(t,e,n){var r=n(0),o=n(32),i=n(6);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(28),o=n(59),i=n(13),a=n(11),u=n(108);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,d){for(var v,y,m=i(e),g=o(m),b=r(u,d,3),_=a(g.length),w=0,O=n?h(e,_):c?h(e,0):void 0;_>w;w++)if((p||w in g)&&(v=g[w],y=b(v,w,m),t))if(n)O[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:O.push(v)}else if(f)return!1;return l?-1:s||f?f:O}}},function(t,e,n){"use strict";if(n(9)){var r=n(45),o=n(5),i=n(6),a=n(0),u=n(78),c=n(114),s=n(28),f=n(51),l=n(43),p=n(18),h=n(53),d=n(35),v=n(11),y=n(160),m=n(47),g=n(33),b=n(17),_=n(61),w=n(7),O=n(13),x=n(105),P=n(48),E=n(26),k=n(49).f,j=n(107),S=n(44),T=n(8),C=n(37),M=n(69),N=n(76),R=n(110),A=n(56),L=n(73),I=n(50),F=n(109),D=n(150),U=n(10),W=n(25),B=U.f,z=W.f,q=o.RangeError,V=o.TypeError,G=o.Uint8Array,H=Array.prototype,Y=c.ArrayBuffer,$=c.DataView,K=C(0),J=C(2),Q=C(3),X=C(4),Z=C(5),tt=C(6),et=M(!0),nt=M(!1),rt=R.values,ot=R.keys,it=R.entries,at=H.lastIndexOf,ut=H.reduce,ct=H.reduceRight,st=H.join,ft=H.sort,lt=H.slice,pt=H.toString,ht=H.toLocaleString,dt=T("iterator"),vt=T("toStringTag"),yt=S("typed_constructor"),mt=S("def_constructor"),gt=u.CONSTR,bt=u.TYPED,_t=u.VIEW,wt=C(1,function(t,e){return kt(N(t,t[mt]),e)}),Ot=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),xt=!!G&&!!G.prototype.set&&i(function(){new G(1).set({})}),Pt=function(t,e){var n=d(t);if(0>n||n%e)throw q("Wrong offset!");return n},Et=function(t){if(w(t)&&bt in t)return t;throw V(t+" is not a typed array!")},kt=function(t,e){if(!(w(t)&&yt in t))throw V("It is not a typed array constructor!");return new t(e)},jt=function(t,e){return St(N(t,t[mt]),e)},St=function(t,e){for(var n=0,r=e.length,o=kt(t,r);r>n;)o[n]=e[n++];return o},Tt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Ct=function(t){var e,n,r,o,i,a,u=O(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,p=j(u);if(void 0!=p&&!x(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(l&&c>2&&(f=s(f,arguments[2],2)),e=0,n=v(u.length),o=kt(this,n);n>e;e++)o[e]=l?f(u[e],e):u[e];return o},Mt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!G&&i(function(){ht.call(new G(1))}),Rt=function(){return ht.apply(Nt?lt.call(Et(this)):Et(this),arguments)},At={copyWithin:function(t,e){return D.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return X(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(){return F.apply(Et(this),arguments)},filter:function(t){return jt(this,J(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(){return st.apply(Et(this),arguments)},lastIndexOf:function(){return at.apply(Et(this),arguments)},map:function(t){return wt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(){return ut.apply(Et(this),arguments)},reduceRight:function(){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,e=this,n=Et(e).length,r=Math.floor(n/2),o=0;r>o;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ft.call(Et(this),t)},subarray:function(t,e){var n=Et(this),r=n.length,o=m(t,r);return new(N(n,n[mt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-o))}},Lt=function(t,e){return jt(this,lt.call(Et(this),t,e))},It=function(t){Et(this);var e=Pt(arguments[1],1),n=this.length,r=O(t),o=v(r.length),i=0;if(o+e>n)throw q("Wrong length!");for(;o>i;)this[e+i]=r[i++]},Ft={entries:function(){return it.call(Et(this))},keys:function(){return ot.call(Et(this))},values:function(){return rt.call(Et(this))}},Dt=function(t,e){return w(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&+e+""==e+""},Ut=function(t,e){return Dt(t,e=g(e,!0))?l(2,t[e]):z(t,e)},Wt=function(t,e,n){return!(Dt(t,e=g(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};gt||(W.f=Ut,U.f=Wt),a(a.S+a.F*!gt,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:Wt}),i(function(){pt.call({})})&&(pt=ht=function(){return st.call(this)});var Bt=h({},At);h(Bt,Ft),p(Bt,dt,Ft.values),h(Bt,{slice:Lt,set:It,constructor:function(){},toString:pt,toLocaleString:Rt}),Tt(Bt,"buffer","b"),Tt(Bt,"byteOffset","o"),Tt(Bt,"byteLength","l"),Tt(Bt,"length","e"),B(Bt,vt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,c){c=!!c;var s=t+(c?"Clamped":"")+"Array",l="get"+t,h="set"+t,d=o[s],m=d||{},g=d&&E(d),b=!d||!u.ABV,O={},x=d&&d.prototype,j=function(t,n){var r=t._d;return r.v[l](n*e+r.o,Ot)},S=function(t,n,r){var o=t._d;c&&(r=0>(r=Math.round(r))?0:r>255?255:255&r),o.v[h](n*e+o.o,r,Ot)},T=function(t,e){B(t,e,{get:function(){return j(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};b?(d=n(function(t,n,r,o){f(t,d,s,"_d");var i,a,u,c,l=0,h=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(c=_(n))||"SharedArrayBuffer"==c))return bt in n?St(d,n):Ct.call(d,n);i=n,h=Pt(r,e);var m=n.byteLength;if(void 0===o){if(m%e)throw q("Wrong length!");if(0>(a=m-h))throw q("Wrong length!")}else if((a=v(o)*e)+h>m)throw q("Wrong length!");u=a/e}else u=y(n),a=u*e,i=new Y(a);for(p(t,"_d",{b:i,o:h,l:a,e:u,v:new $(i)});u>l;)T(t,l++)}),x=d.prototype=P(Bt),p(x,"constructor",d)):i(function(){d(1)})&&i(function(){new d(-1)})&&L(function(t){new d,new d(null),new d(1.5),new d(t)},!0)||(d=n(function(t,n,r,o){f(t,d,s);var i;return w(n)?n instanceof Y||"ArrayBuffer"==(i=_(n))||"SharedArrayBuffer"==i?void 0!==o?new m(n,Pt(r,e),o):void 0!==r?new m(n,Pt(r,e)):new m(n):bt in n?St(d,n):Ct.call(d,n):new m(y(n))}),K(g!==Function.prototype?k(m).concat(k(g)):k(m),function(t){t in d||p(d,t,m[t])}),d.prototype=x,r||(x.constructor=d));var C=x[dt],M=!!C&&("values"==C.name||void 0==C.name),N=Ft.values;p(d,yt,!0),p(x,bt,s),p(x,_t,!0),p(x,mt,d),(c?new d(1)[vt]==s:vt in x)||B(x,vt,{get:function(){return s}}),O[s]=d,a(a.G+a.W+a.F*(d!=m),O),a(a.S,s,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i(function(){m.of.call(d,1)}),s,{from:Ct,of:Mt}),"BYTES_PER_ELEMENT"in x||p(x,"BYTES_PER_ELEMENT",e),a(a.P,s,At),I(s),a(a.P+a.F*xt,s,{set:It}),a(a.P+a.F*!M,s,Ft),r||x.toString==pt||(x.toString=pt),a(a.P+a.F*i(function(){new d(1).slice()}),s,{slice:Lt}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!i(function(){x.toLocaleString.call([1,2])})),s,{toLocaleString:Rt}),A[s]=M?C:N,r||M||p(x,dt,N)}}else t.exports=function(){}},function(t,e,n){var r=n(155),o=n(0),i=n(68)("metadata"),a=i.store||(i.store=new(n(158))),u=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i};t.exports={store:a,map:u,has:function(t,e,n){var r=u(e,n,!1);return void 0!==r&&r.has(t)},get:function(t,e,n){var r=u(e,n,!1);return void 0===r?void 0:r.get(t)},set:function(t,e,n,r){u(n,r,!0).set(t,e)},keys:function(t,e){var n=u(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},key:function(t){return void 0===t||"symbol"==typeof t?t:t+""},exp:function(t){o(o.S,"Reflect",t)}}},,function(t,e,n){var r=n(44)("meta"),o=n(7),i=n(17),a=n(10).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(6)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&d.NEED&&c(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(8)("unscopables"),o=Array.prototype;void 0==o[r]&&n(18)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t){t.exports=!1},function(t,e,n){var r=n(136),o=n(92);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(35),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),0>t?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(2),o=n(137),i=n(92),a=n(91)("IE_PROTO"),u=function(){},c=function(){var t,e=n(89)("iframe"),r=i.length;for(e.style.display="none",n(93).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(136),o=n(92).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(5),o=n(10),i=n(9),a=n(8)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(28),o=n(148),i=n(105),a=n(2),u=n(11),c=n(107),s={},f={},e=t.exports=function(t,e,n,l,p){var h,d,v,y,m=p?function(){return t}:c(t),g=r(n,l,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=u(t.length);h>b;b++)if((y=e?g(a(d=t[b])[0],d[1]):g(t[b]))===s||y===f)return y}else for(v=m.call(t);!(d=v.next()).done;)if((y=o(v,g,d.value,e))===s||y===f)return y};e.BREAK=s,e.RETURN=f},function(t,e,n){var r=n(19);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(10).f,o=n(17),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(34),i=n(6),a=n(95),u="["+a+"]",c="
",s=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t,e,n){var o={},u=i(function(){return!!a[t]()||c[t]()!=c}),s=o[t]=u?e(p):a[t];n&&(o[n]=s),r(r.P+r.F*u,"String",o)},p=l.trim=function(t,e){return t=o(t)+"",1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},function(t){t.exports={}},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";function r(t,e){return e.some(function(e){return i[e](t)})}Object.defineProperty(e,"__esModule",{value:!0});var o=n(82),i={};i.array=function(t){return Array.isArray(t)},i.object=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&!(t instanceof Date)&&!(t instanceof RegExp)&&!("function"==typeof Map&&t instanceof Map)&&!("function"==typeof Set&&t instanceof Set)},i.string=function(t){return"string"==typeof t},i.number=function(t){return"number"==typeof t},i.function=function(t){return"function"==typeof t},i.primitive=function(t){return t!==Object(t)},i.splicer=function(t){return!(!i.array(t)||1>t.length)&&((1>=t.length||!isNaN(+t[1]))&&r(t[0],["number","function","object"]))};var a=["string","number","function","object"];i.path=function(t){return!(!t&&0!==t&&""!==t)&&[].concat(t).every(function(t){return r(t,a)})},i.dynamicPath=function(t){return t.some(function(t){return i.function(t)||i.object(t)})},i.monkeyPath=function(t,e){var n=[],r=t,i=void 0,a=void 0;for(i=0,a=e.length;a>i;i++){if(n.push(e[i]),"object"!=typeof r)return null;if((r=r[e[i]])instanceof o.Monkey)return n}return null},i.lazyGetter=function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return n&&n.get&&!0===n.get.isLazyGetter},i.monkeyDefinition=function(t){if(i.object(t))return i.function(t.get)&&(!t.cursors||i.object(t.cursors)&&Object.keys(t.cursors).every(function(e){return i.path(t.cursors[e])}))?"object":null;if(i.array(t)){var e=1;return i.object(t[t.length-1])&&e++,i.function(t[t.length-e])&&t.slice(0,-e).every(function(t){return i.path(t)})?"array":null}return null},i.watcherMapping=function(t){return i.object(t)&&Object.keys(t).every(function(e){return i.path(t[e])})};var u=["set","apply","push","unshift","concat","pop","shift","deepMerge","merge","splice","unset"];i.operationType=function(t){return"string"==typeof t&&!!~u.indexOf(t)},e.default=i,t.exports=e.default},function(t,e,n){var r=n(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(29),o=n(8)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return"λ"+t.map(function(t){return m.default.function(t)||m.default.object(t)?"#"+M()+"#":t}).join("λ")}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function(t,e,n){for(var r=!0;r;){var o=t,i=e,a=n;r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,i);if(void 0!==u){if("value"in u)return u.value;var c=u.get;if(void 0===c)return;return c.call(a)}var s=Object.getPrototypeOf(o);if(null===s)return;t=s,e=i,n=a,r=!0,u=s=void 0}},s=n(119),f=r(s),l=n(169),p=r(l),h=n(82),d=n(408),v=r(d),y=n(58),m=r(y),g=n(170),b=r(g),_=n(63),w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(_),O=w.arrayFrom,x=w.coercePath,P=w.deepFreeze,E=w.getIn,k=w.makeError,j=w.deepClone,S=w.deepMerge,T=w.shallowClone,C=w.shallowMerge,M=w.uniqid,N={autoCommit:!0,asynchronous:!0,immutable:!0,lazyMonkeys:!0,persistent:!0,pure:!0,validate:null,validationBehavior:"rollback"},R=function(t){function e(t,n){var r=this;if(o(this,e),c(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),1>arguments.length&&(t={}),!m.default.object(t)&&!m.default.array(t))throw k("Baobab: invalid data.",{data:t});this.options=C({},N,n),this.options.persistent||(this.options.immutable=!1,this.options.pure=!1),this._identity="[object Baobab]",this._cursors={},this._future=null,this._transaction=[],this._affectedPathsIndex={},this._monkeys={},this._previousData=null,this._data=t,this.root=new p.default(this,[],"λ"),delete this.root.release,this.options.immutable&&P(this._data),["apply","clone","concat","deepClone","deepMerge","exists","get","push","merge","pop","project","serialize","set","shift","splice","unset","unshift"].forEach(function(t){r[t]=function(){var e=this.root[t].apply(this.root,arguments);return e instanceof p.default?this:e}}),this._refreshMonkeys();var i=this.validate();if(i)throw Error("Baobab: invalid data.",{error:i})}return i(e,t),u(e,[{key:"_refreshMonkeys",value:function(t,e,n){var r=this,o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e instanceof h.MonkeyDefinition||e instanceof h.Monkey){var o=new h.Monkey(r,n,e instanceof h.Monkey?e.definition:e);return void(0,b.default)(r._monkeys,n,{type:"set",value:o},{immutable:!1,persistent:!1,pure:!1})}if(m.default.object(e))for(var i in e)t(e[i],n.concat(i))};if(arguments.length){var i=E(this._monkeys,e).data;i&&function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e instanceof h.Monkey)return e.release(),void(0,b.default)(r._monkeys,n,{type:"unset"},{immutable:!1,persistent:!1,pure:!1});if(m.default.object(e))for(var o in e)t(e[o],n.concat(o))}(i,e),"unset"!==n&&o(t,e)}else o(this._data);return this}},{key:"validate",value:function(t){var e=this.options,n=e.validate,r=e.validationBehavior;if("function"!=typeof n)return null;var o=n.call(this,this._previousData,this._data,t||[[]]);return o instanceof Error?("rollback"===r&&(this._data=this._previousData,this._affectedPathsIndex={},this._transaction=[],this._previousData=this._data),this.emit("invalid",{error:o}),o):null}},{key:"select",value:function(t){if(t=t||[],arguments.length>1&&(t=O(arguments)),!m.default.path(t))throw k("Baobab.select: invalid path.",{path:t});t=[].concat(t);var e=a(t),n=this._cursors[e];return n||(n=new p.default(this,t,e),this._cursors[e]=n),this.emit("select",{path:t,cursor:n}),n}},{key:"update",value:function(t,e){var n=this;if(t=x(t),!m.default.operationType(e.type))throw k('Baobab.update: unknown operation type "'+e.type+'".',{operation:e});var r=E(this._data,t),o=r.solvedPath,i=r.exists;if(!o)throw k("Baobab.update: could not solve the given path.",{path:o});var u=m.default.monkeyPath(this._monkeys,o);if(u&&o.length>u.length)throw k("Baobab.update: attempting to update a read-only path.",{path:o});if("unset"!==e.type||i){var c=e;if(/merge/i.test(e.type)){var s=E(this._monkeys,o).data;if(m.default.object(s)){c=T(c);var f=E(this._data,o).data;c.value=/deep/i.test(c.type)?S({},S({},f,j(s)),c.value):C({},S({},f,j(s)),c.value)}}this._transaction.length||(this._previousData=this._data);var l=(0,b.default)(this._data,o,c,this.options),p=l.data,h=l.node;if(!("data"in l))return h;var d=o.concat("push"===e.type?h.length-1:[]),v=a(d);return this._data=p,(this._affectedPathsIndex[v]=!0,this._transaction.push(C({},e,{path:d})),this._refreshMonkeys(h,o,e.type),this.emit("write",{path:d}),this.options.autoCommit)?this.options.asynchronous?(this._future||(this._future=setTimeout(function(){return n.commit()},0)),h):(this.commit(),h):h}}},{key:"commit",value:function(){if(!this._transaction.length)return this;this._future&&(this._future=clearTimeout(this._future));var t=Object.keys(this._affectedPathsIndex).map(function(t){return"λ"!==t?t.split("λ").slice(1):[]});if(this.validate(t))return this;var e=this._transaction,n=this._previousData;return this._affectedPathsIndex={},this._transaction=[],this._previousData=this._data,this.emit("update",{paths:t,currentData:this._data,transaction:e,previousData:n}),this}},{key:"getMonkey",value:function(t){t=x(t);var e=E(this._monkeys,[].concat(t)).data;return e instanceof h.Monkey?e:null}},{key:"watch",value:function(t){return new v.default(this,t)}},{key:"release",value:function(){var t=void 0;this.emit("release"),delete this.root,delete this._data,delete this._previousData,delete this._transaction,delete this._affectedPathsIndex,delete this._monkeys;for(t in this._cursors)this._cursors[t].release();delete this._cursors,this.kill()}},{key:"toJSON",value:function(){return this.serialize()}},{key:"toString",value:function(){return this._identity}}]),e}(f.default);e.default=R,R.monkey=function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];if(!e.length)throw Error("Baobab.monkey: missing definition.");return new h.MonkeyDefinition(1===e.length&&"function"!=typeof e[0]?e[0]:e)},R.dynamicNode=R.monkey,R.Cursor=p.default,R.MonkeyDefinition=h.MonkeyDefinition,R.Monkey=h.Monkey,R.type=m.default,R.helpers=w,R.VERSION="2.4.3",t.exports=e.default},function(t,e,n){"use strict";(function(t){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){var n=void 0,r=void 0;for(n=0,r=t.length;r>n;n++)if(e(t[n]))return n;return-1}function i(t){var e=Array(t.length),n=void 0,r=void 0;for(n=0,r=t.length;r>n;n++)e[n]=t[n];return e}function a(t){return i(t)}function u(t,e){return function(){t.apply(null,arguments),e.apply(null,arguments)}}function c(t){var e=t.source,n="";return t.global&&(n+="g"),t.multiline&&(n+="m"),t.ignoreCase&&(n+="i"),t.sticky&&(n+="y"),t.unicode&&(n+="u"),RegExp(e,n)}function s(e,n){if(!n||"object"!=typeof n||n instanceof Error||n instanceof _.MonkeyDefinition||n instanceof _.Monkey||"ArrayBuffer"in t&&n instanceof ArrayBuffer)return n;if(O.default.array(n)){if(e){var r=[],o=void 0,a=void 0;for(o=0,a=n.length;a>o;o++)r.push(s(!0,n[o]));return r}return i(n)}if(n instanceof Date)return new Date(n.getTime());if(n instanceof RegExp)return c(n);if(O.default.object(n)){var u={},o=void 0,a=void 0,f=void 0,l=Object.getOwnPropertyNames(n);for(o=0,a=l.length;a>o;o++)f=l[o],O.default.lazyGetter(n,f)?Object.defineProperty(u,f,{get:Object.getOwnPropertyDescriptor(n,f).get,enumerable:!0,configurable:!0}):Object.defineProperty(u,f,{value:e?s(!0,n[f]):n[f],enumerable:Object.getOwnPropertyDescriptor(n,f).enumerable,writable:!0,configurable:!0});return u}return n}function f(t){return t||0===t||""===t?t:[]}function l(t,e){var n=!0,r=void 0;if(!t)return!1;for(r in e)if(O.default.object(e[r]))n=n&&l(t[r],e[r]);else if(O.default.array(e[r]))n=n&&!!~e[r].indexOf(t[r]);else if(t[r]!==e[r])return!1;return n}function p(t,e){if(!("object"!=typeof e||null===e||e instanceof _.Monkey)&&(Object.freeze(e),t))if(Array.isArray(e)){var n=void 0,r=void 0;for(n=0,r=e.length;r>n;n++)p(!0,e[n])}else{var o=void 0,i=void 0;for(i in e)O.default.lazyGetter(e,i)||(o=e[i])&&P.call(e,i)&&"object"==typeof o&&!Object.isFrozen(o)&&p(!0,o)}}function h(t,e){if(!e)return M;var n=[],r=!0,i=t,a=void 0,u=void 0,c=void 0;for(u=0,c=e.length;c>u;u++){if(!i)return{data:void 0,solvedPath:n.concat(e.slice(u)),exists:!1};if("function"==typeof e[u]){if(!O.default.array(i))return M;if(!~(a=o(i,e[u])))return M;n.push(a),i=i[a]}else if("object"==typeof e[u]){if(!O.default.array(i))return M;if(!~(a=o(i,function(t){return l(t,e[u])})))return M;n.push(a),i=i[a]}else n.push(e[u]),r="object"==typeof i&&e[u]in i,i=i[e[u]]}return{data:i,solvedPath:n,exists:r}}function d(t,e){var n=Error(t);for(var r in e)n[r]=e[r];return n}function v(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];var o=n[0],i=void 0,a=void 0,u=void 0,c=void 0;for(a=1,u=n.length;u>a;a++){i=n[a];for(c in i)o[c]=!t||!O.default.object(i[c])||i[c]instanceof _.Monkey?i[c]:v(!0,o[c]||{},i[c])}return o}function y(t,e){var n=[];e=[].concat(e);for(var r=0,o=e.length;o>r;r++){var i=e[r];"."===i?r||(n=t.slice(0)):".."===i?n=(r?n:t).slice(0,-1):n.push(i)}return n}function m(t,e){var n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,u=void 0,c=void 0,s=void 0;for(n=0,i=t.length;i>n;n++){if(c=t[n],!c.length)return!0;for(r=0,a=e.length;a>r;r++){if(!(s=e[r])||!s.length)return!0;for(o=0,u=s.length;u>o&&s[o]==c[o];o++)if(o+1===u||o+1===c.length)return!0}}return!1}function g(t,e,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;r>a;a++)i[a-3]=arguments[a];if(void 0===n&&2===arguments.length)n=t.length-e;else if(null===n||void 0===n)n=0;else if(isNaN(+n))throw Error("argument nb "+n+" can not be parsed into a number!");return n=Math.max(0,n),O.default.function(e)&&(e=o(t,e)),O.default.object(e)&&(e=o(t,function(t){return l(t,e)})),0>e?t.slice(0,t.length+e).concat(i).concat(t.slice(t.length+e+n)):t.slice(0,e).concat(i).concat(t.slice(e+n))}Object.defineProperty(e,"__esModule",{value:!0});var b=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.arrayFrom=a,e.before=u,e.coercePath=f,e.getIn=h,e.makeError=d,e.solveRelativePath=y,e.solveUpdate=m,e.splice=g;var _=n(82),w=n(58),O=function(t){return t&&t.__esModule?t:{default:t}}(w),x=Function.prototype,P={}.hasOwnProperty,E=function(){function t(e){r(this,t),this.size=e,this.records=[]}return b(t,[{key:"get",value:function(){return this.records}},{key:"add",value:function(t){return this.records.unshift(t),this.records.length>this.size&&(this.records.length=this.size),this}},{key:"clear",value:function(){return this.records=[],this}},{key:"back",value:function(t){var e=this.records[t-1];return e&&(this.records=this.records.slice(t)),e}}]),t}();e.Archive=E;var k=s.bind(null,!1),j=s.bind(null,!0);e.shallowClone=k,e.deepClone=j;var S="function"==typeof Object.freeze,T=S?p.bind(null,!1):x,C=S?p.bind(null,!0):x;e.freeze=T,e.deepFreeze=C;var M={data:void 0,solvedPath:null,exists:!1},N=v.bind(null,!1),R=v.bind(null,!0);e.shallowMerge=N,e.deepMerge=R;var A=function(){var t=0;return function(){return t++}}();e.uniqid=A}).call(e,n(88))},function(t,e){"use strict";e.__esModule=!0;var n=(e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.hasBasename=function(t,e){return RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)});e.stripBasename=function(t,e){return n(t,e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},e.createPath=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"f",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"b",function(){return s});var r=function(t){return"/"===t.charAt(0)?t:"/"+t},o=function(t){return"/"===t.charAt(0)?t.substr(1):t},i=function(t,e){return RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},a=function(t,e){return i(t,e)?t.substr(e.length):t},u=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},c=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},s=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(t,e){var n,r;!function(){"use strict";function o(){for(var t=[],e=0;arguments.length>e;e++){var n=arguments[e];if(n){var r=typeof n;if("string"===r||"number"===r)t.push(n);else if(Array.isArray(n))t.push(o.apply(null,n));else if("object"===r)for(var a in n)i.call(n,a)&&n[a]&&t.push(a)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=o:(n=[],void 0!==(r=function(){return o}.apply(e,n))&&(t.exports=r))}()},,function(t,e,n){var r=n(5),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(24),o=n(11),i=n(47);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(29);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(7),o=n(29),i=n(8)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(8)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(2);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(18),o=n(19),i=n(6),a=n(34),u=n(8);t.exports=function(t,e,n){var c=u(t),s=n(a,c,""[t]),f=s[0],l=s[1];i(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,f),r(RegExp.prototype,c,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,n){var r=n(2),o=n(15),i=n(8)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(19),a=n(53),u=n(41),c=n(52),s=n(51),f=n(7),l=n(6),p=n(73),h=n(54),d=n(96);t.exports=function(t,e,n,v,y,m){var g=r[t],b=g,_=y?"set":"add",w=b&&b.prototype,O={},x=function(t){var e=w[t];i(w,t,"delete"==t?function(t){return!(m&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||w.forEach&&!l(function(){(new b).entries().next()}))){var P=new b,E=P[_](m?{}:-0,1)!=P,k=l(function(){P.has(1)}),j=p(function(t){new b(t)}),S=!m&&l(function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)});j||(b=e(function(e,n){s(e,b,t);var r=d(new g,e,b);return void 0!=n&&c(n,y,r[_],r),r}),b.prototype=w,w.constructor=b),(k||S)&&(x("delete"),x("has"),y&&x("get")),(S||E)&&x(_),m&&w.clear&&delete w.clear}else b=v.getConstructor(e,t,y,_),a(b.prototype,n),u.NEED=!0;return h(b,t),O[t]=b,o(o.G+o.W+o.F*(b!=g),O),m||v.setStrong(b,t,y),b}},function(t,e,n){for(var r,o=n(5),i=n(18),a=n(44),u=a("typed_array"),c=a("view"),s=!(!o.ArrayBuffer||!o.DataView),f=s,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");9>l;)(r=o[p[l++]])?(i(r.prototype,u,!0),i(r.prototype,c,!0)):f=!1;t.exports={ABV:s,CONSTR:f,TYPED:u,VIEW:c}},function(t,e,n){"use strict";t.exports=n(45)||!n(6)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(5)[t]})},function(t,e,n){"use strict";var r=n(0);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(0),o=n(15),i=n(28),a=n(52);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,u,c=arguments[1];return o(this),e=void 0!==c,e&&o(c),void 0==t?new this:(n=[],e?(r=0,u=i(c,arguments[2],2),a(t,!1,function(t){n.push(u(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(58),u=r(a),c=n(170),s=r(c),f=n(63);e.MonkeyDefinition=function t(e){var n=this;o(this,t);var r=u.default.monkeyDefinition(e);if(!r)throw(0,f.makeError)("Baobab.monkey: invalid definition.",{definition:e});if("object"===(this.type=r))this.getter=e.get,this.projection=e.cursors||{},this.paths=Object.keys(this.projection).map(function(t){return n.projection[t]}),this.options=e.options||{};else{var i=1,a={};u.default.object(e[e.length-1])&&(i++,a=e[e.length-1]),this.getter=e[e.length-i],this.projection=e.slice(0,-i),this.paths=this.projection,this.options=a}this.paths=this.paths.map(function(t){return[].concat(t)}),this.hasDynamicPaths=this.paths.some(u.default.dynamicPath)},e.Monkey=function(){function t(e,n,r){var i=this;o(this,t),this.tree=e,this.path=n,this.definition=r;var a=r.projection,u=f.solveRelativePath.bind(null,n.slice(0,-1));"object"===r.type?(this.projection=Object.keys(a).reduce(function(t,e){return t[e]=u(a[e]),t},{}),this.depPaths=Object.keys(this.projection).map(function(t){return i.projection[t]})):(this.projection=a.map(u),this.depPaths=this.projection),this.state={killed:!1},this.writeListener=function(t){var e=t.data.path;if(!i.state.killed){(0,f.solveUpdate)([e],i.relatedPaths())&&i.update()}},this.recursiveListener=function(t){var e=t.data,n=e.monkey,r=e.path;if(!i.state.killed&&i!==n){(0,f.solveUpdate)([r],i.relatedPaths(!1))&&i.update()}},this.tree.on("write",this.writeListener),this.tree.on("_monkey",this.recursiveListener),this.update()}return i(t,[{key:"relatedPaths",value:function(){var t=this,e=0>=arguments.length||void 0===arguments[0]||arguments[0],n=void 0;return n=this.definition.hasDynamicPaths?this.depPaths.map(function(e){return(0,f.getIn)(t.tree._data,e).solvedPath}):this.depPaths,e&&this.depPaths.some(function(e){return!!u.default.monkeyPath(t.tree._monkeys,e)})?n.reduce(function(e,n){var r=u.default.monkeyPath(t.tree._monkeys,n);return e.concat(r?(0,f.getIn)(t.tree._monkeys,r).data.relatedPaths():[n])},[]):n}},{key:"update",value:function(){var t=this.tree.project(this.projection),e=function(t,e,n){var r=null,o=!1;return function(){return o||(r=e.getter.apply(t,"object"===e.type?[n]:n),t.options.immutable&&!1!==e.options.immutable&&(0,f.deepFreeze)(r),o=!0),r}}(this.tree,this.definition,t);if(e.isLazyGetter=!0,this.tree.options.lazyMonkeys)this.tree._data=(0,s.default)(this.tree._data,this.path,{type:"monkey",value:e},this.tree.options).data;else{var n=(0,s.default)(this.tree._data,this.path,{type:"set",value:e(),options:{mutableLeaf:!this.definition.options.immutable}},this.tree.options);"data"in n&&(this.tree._data=n.data)}return this.tree.emit("_monkey",{monkey:this,path:this.path}),this}},{key:"release",value:function(){this.tree.off("write",this.writeListener),this.tree.off("_monkey",this.recursiveListener),this.state.killed=!0,delete this.projection,delete this.depPaths,delete this.tree}}]),t}()},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(14),u=n.n(a),c=n(31),s=n.n(c),f=n(1),l=n.n(f),p=n(12),h=n.n(p),d=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=i=o(this,t.call.apply(t,[this].concat(c))),i.state={match:i.computeMatch(i.props.history.location.pathname)},a=n,o(i,a)}return i(e,t),e.prototype.getChildContext=function(){return{router:d({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,n=e.children,r=e.history;s()(null==n||1===l.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){u()(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?l.a.Children.only(t):null},e}(l.a.Component);v.propTypes={history:h.a.object.isRequired,children:h.a.node},v.contextTypes={router:h.a.object},v.childContextTypes={router:h.a.object.isRequired},e.a=v},function(t,e,n){"use strict";var r=n(428),o=n.n(r),i={},a=0,u=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=i[n]||(i[n]={});if(r[t])return r[t];var u=[],c=o()(t,u,e),s={re:c,keys:u};return 1e4>a&&(r[t]=s,a++),s};e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,c=n.strict,s=void 0!==c&&c,f=n.sensitive,l=void 0!==f&&f,p=u(o,{end:a,strict:s,sensitive:l}),h=p.re,d=p.keys,v=h.exec(t);if(!v)return null;var y=v[0],m=v.slice(1),g=t===y;return a&&!g?null:{path:o,url:"/"===o&&""===y?"/":y,isExact:g,params:d.reduce(function(t,e,n){return t[e.name]=m[n],t},{})}}},function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c});var r=n(174),o=n(175),i=n(65),a=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(t,e,n,o){var u=void 0;"string"==typeof t?(u=Object(i.d)(t),u.state=e):(u=a({},t),void 0===u.pathname&&(u.pathname=""),u.search?"?"!==u.search.charAt(0)&&(u.search="?"+u.search):u.search="",u.hash?"#"!==u.hash.charAt(0)&&(u.hash="#"+u.hash):u.hash="",void 0!==e&&void 0===u.state&&(u.state=e));try{u.pathname=decodeURI(u.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+u.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(u.key=n),o?u.pathname?"/"!==u.pathname.charAt(0)&&(u.pathname=Object(r.default)(u.pathname,o.pathname)):u.pathname=o.pathname:u.pathname||(u.pathname="/"),u},c=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Object(o.default)(t.state,e.state)}},,,function(t){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,n){var r=n(7),o=n(5).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(5),o=n(32),i=n(45),a=n(135),u=n(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(68)("keys"),o=n(44);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(5).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(7),o=n(2),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(28)(Function.call,n(25).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(7),o=n(94).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){"use strict";var r=n(35),o=n(34);t.exports=function(t){var e=o(this)+"",n="",i=r(t);if(0>i||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},function(t){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||22025.465794806718>e(10)||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}:e},function(t,e,n){var r=n(35),o=n(34);t.exports=function(t){return function(e,n){var i,a,u=o(e)+"",c=r(n),s=u.length;return 0>c||c>=s?t?"":void 0:(i=u.charCodeAt(c),55296>i||i>56319||c+1===s||56320>(a=u.charCodeAt(c+1))||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(45),o=n(0),i=n(19),a=n(18),u=n(17),c=n(56),s=n(102),f=n(54),l=n(26),p=n(8)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,m,g){s(n,e,v);var b,_,w,O=function(t){if(!h&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",P="values"==y,E=!1,k=t.prototype,j=k[p]||k["@@iterator"]||y&&k[y],S=j||O(y),T=y?P?O("entries"):S:void 0,C="Array"==e?k.entries||j:j;if(C&&(w=l(C.call(new t)))!==Object.prototype&&w.next&&(f(w,x,!0),r||u(w,p)||a(w,p,d)),P&&j&&"values"!==j.name&&(E=!0,S=function(){return j.call(this)}),r&&!g||!h&&!E&&k[p]||a(k,p,S),c[e]=S,c[x]=d,y)if(b={values:P?S:O("values"),keys:m?S:O("keys"),entries:T},g)for(_ in b)_ in k||i(k,_,b[_]);else o(o.P+o.F*(h||E),e,b);return b}},function(t,e,n){"use strict";var r=n(48),o=n(43),i=n(54),a={};n(18)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(72),o=n(34);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return o(t)+""}},function(t,e,n){var r=n(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(56),o=n(8)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(10),o=n(43);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(61),o=n(8)("iterator"),i=n(56);t.exports=n(32).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(293);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(13),o=n(47),i=n(11);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,s=void 0===c?n:o(c,n);s>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(42),o=n(151),i=n(56),a=n(24);t.exports=n(101)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return t&&t.length>n?"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]]):(this._t=void 0,o(1))},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r,o,i,a=n(28),u=n(141),c=n(93),s=n(89),f=n(5),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){u("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete m[t]},"process"==n(29)(l)?r=function(t){l.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){var r=n(5),o=n(111).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(29)(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(s)};else if(i){var f=!0,l=document.createTextNode("");new i(s).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(u&&u.resolve){var p=u.resolve();n=function(){p.then(s)}}else n=function(){o.call(r,s)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(15);t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t,e,n){var r,o,i,a=Array(n),u=8*n-e-1,c=(1<<u)-1,s=c>>1,f=23===e?D(2,-24)-D(2,-77):0,l=0,p=0>t||0===t&&0>1/t?1:0;for(t=F(t),t!=t||t===L?(o=t!=t?1:0,r=c):(r=U(W(t)/B),1>t*(i=D(2,-r))&&(r--,i*=2),t+=1>r+s?f*D(2,1-s):f/i,2>t*i||(r++,i/=2),c>r+s?1>r+s?(o=t*D(2,s-1)*D(2,e),r=0):(o=(t*i-1)*D(2,e),r+=s):(o=0,r=c));e>=8;a[l++]=255&o,o/=256,e-=8);for(r=r<<e|o,u+=e;u>0;a[l++]=255&r,r/=256,u-=8);return a[--l]|=128*p,a}function o(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,s=t[c--],f=127&s;for(s>>=7;u>0;f=256*f+t[c],c--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=e;u>0;r=256*r+t[c],c--,u-=8);if(0===f)f=1-a;else{if(f===i)return r?NaN:s?-L:L;r+=D(2,e),f-=a}return(s?-1:1)*r*D(2,f-e)}function i(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function u(t){return[255&t,t>>8&255]}function c(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function s(t){return r(t,52,8)}function f(t){return r(t,23,4)}function l(t,e,n){k(t[T],e,{get:function(){return this[n]}})}function p(t,e,n,r){var o=+n,i=P(o);if(i+e>t[q])throw A(C);var a=t[z]._b,u=i+t[V],c=a.slice(u,u+e);return r?c:c.reverse()}function h(t,e,n,r,o,i){var a=+n,u=P(a);if(u+e>t[q])throw A(C);for(var c=t[z]._b,s=u+t[V],f=r(+o),l=0;e>l;l++)c[s+l]=f[i?l:e-l-1]}var d=n(5),v=n(9),y=n(45),m=n(78),g=n(18),b=n(53),_=n(6),w=n(51),O=n(35),x=n(11),P=n(160),E=n(49).f,k=n(10).f,j=n(109),S=n(54),T="prototype",C="Wrong index!",M=d.ArrayBuffer,N=d.DataView,R=d.Math,A=d.RangeError,L=d.Infinity,I=M,F=R.abs,D=R.pow,U=R.floor,W=R.log,B=R.LN2,z=v?"_b":"buffer",q=v?"_l":"byteLength",V=v?"_o":"byteOffset";if(m.ABV){if(!_(function(){M(1)})||!_(function(){new M(-1)})||_(function(){return new M,new M(1.5),new M(NaN),"ArrayBuffer"!=M.name})){M=function(t){return w(this,M),new I(P(t))};for(var G,H=M[T]=I[T],Y=E(I),$=0;Y.length>$;)(G=Y[$++])in M||g(M,G,I[G]);y||(H.constructor=M)}var K=new N(new M(2)),J=N[T].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||b(N[T],{setInt8:function(t,e){J.call(this,t,e<<24>>24)},setUint8:function(t,e){J.call(this,t,e<<24>>24)}},!0)}else M=function(t){w(this,M,"ArrayBuffer");var e=P(t);this._b=j.call(Array(e),0),this[q]=e},N=function(t,e,n){w(this,N,"DataView"),w(t,M,"DataView");var r=t[q],o=O(e);if(0>o||o>r)throw A("Wrong offset!");if(n=void 0===n?r-o:x(n),o+n>r)throw A("Wrong length!");this[z]=t,this[V]=o,this[q]=n},v&&(l(M,"byteLength","_l"),l(N,"buffer","_b"),l(N,"byteLength","_l"),l(N,"byteOffset","_o")),b(N[T],{getInt8:function(t){return p(this,1,t)[0]<<24>>24},getUint8:function(t){return p(this,1,t)[0]},getInt16:function(t){var e=p(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=p(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return i(p(this,4,t,arguments[1]))},getUint32:function(t){return i(p(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(p(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(p(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){h(this,1,t,a,e)},setUint8:function(t,e){h(this,1,t,a,e)},setInt16:function(t,e){h(this,2,t,u,e,arguments[2])},setUint16:function(t,e){h(this,2,t,u,e,arguments[2])},setInt32:function(t,e){h(this,4,t,c,e,arguments[2])},setUint32:function(t,e){h(this,4,t,c,e,arguments[2])},setFloat32:function(t,e){h(this,4,t,f,e,arguments[2])},setFloat64:function(t,e){h(this,8,t,s,e,arguments[2])}});S(M,"ArrayBuffer"),S(N,"DataView"),g(N[T],m.VIEW,!0),e.ArrayBuffer=M,e.DataView=N},function(t){"use strict";function e(t){return function(){return t}}var n=function(){};n.thatReturns=e,n.thatReturnsFalse=e(!1),n.thatReturnsTrue=e(!0),n.thatReturnsNull=e(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},function(t,e,n){"use strict";(function(e){function n(t,e,n,o,i,a,u,c){if(r(e),!t){var s;if(void 0===e)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,o,i,a,u,c],l=0;s=Error(e.replace(/%s/g,function(){return f[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(){};"production"!==e.env.NODE_ENV&&(r=function(t){if(void 0===t)throw Error("invariant requires an error message argument")}),t.exports=n}).call(e,n(21))},function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function r(){}function o(t,e){var n,o,i,a,u=L;for(a=arguments.length;a-- >2;)A.push(arguments[a]);for(e&&null!=e.children&&(A.length||A.push(e.children),delete e.children);A.length;)if((o=A.pop())&&void 0!==o.pop)for(a=o.length;a--;)A.push(o[a]);else"boolean"==typeof o&&(o=null),(i="function"!=typeof t)&&(null==o?o="":"number"==typeof o?o+="":"string"!=typeof o&&(i=!1)),i&&n?u[u.length-1]+=o:u===L?u=[o]:u.push(o),n=i;var c=new r;return c.nodeName=t,c.children=u,c.attributes=null==e?void 0:e,c.key=null==e?void 0:e.key,void 0!==R.vnode&&R.vnode(c),c}function i(t,e){for(var n in e)t[n]=e[n];return t}function a(t,e){return o(t.nodeName,i(i({},t.attributes),e),arguments.length>2?[].slice.call(arguments,2):t.children)}function u(t){!t._dirty&&(t._dirty=!0)&&1==D.push(t)&&(R.debounceRendering||I)(c)}function c(){var t,e=D;for(D=[];t=e.pop();)t._dirty&&S(t)}function s(t,e,n){return"string"==typeof e||"number"==typeof e?void 0!==t.splitText:"string"==typeof e.nodeName?!t._componentConstructor&&f(t,e.nodeName):n||t._componentConstructor===e.nodeName}function f(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function l(t){var e=i({},t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===e[r]&&(e[r]=n[r]);return e}function p(t,e){var n=e?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t);return n.normalizedNodeName=t,n}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function d(t,e,n,r,o){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)n&&n(null),r&&r(t);else if("class"!==e||o)if("style"===e){if(r&&"string"!=typeof r&&"string"!=typeof n||(t.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(t.style[i]="");for(var i in r)t.style[i]="number"==typeof r[i]&&!1===F.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===e)r&&(t.innerHTML=r.__html||"");else if("o"==e[0]&&"n"==e[1]){var a=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),r?n||t.addEventListener(e,y,a):t.removeEventListener(e,y,a),(t._listeners||(t._listeners={}))[e]=r}else if("list"!==e&&"type"!==e&&!o&&e in t)v(t,e,null==r?"":r),null!=r&&!1!==r||t.removeAttribute(e);else{var u=o&&e!==(e=e.replace(/^xlink\:?/,""));null==r||!1===r?u?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof r&&(u?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),r):t.setAttribute(e,r))}else t.className=r||""}function v(t,e,n){try{t[e]=n}catch(t){}}function y(t){return this._listeners[t.type](R.event&&R.event(t)||t)}function m(){for(var t;t=U.pop();)R.afterMount&&R.afterMount(t),t.componentDidMount&&t.componentDidMount()}function g(t,e,n,r,o,i){W++||(B=null!=o&&void 0!==o.ownerSVGElement,z=null!=t&&!("__preactattr_"in t));var a=b(t,e,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--W||(z=!1,i||m()),a}function b(t,e,n,r,o){var i=t,a=B;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||o)?t.nodeValue!=e&&(t.nodeValue=e):(i=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(i,t),w(t,!0))),i.__preactattr_=!0,i;var u=e.nodeName;if("function"==typeof u)return T(t,e,n,r);if(B="svg"===u||"foreignObject"!==u&&B,u+="",(!t||!f(t,u))&&(i=p(u,B),t)){for(;t.firstChild;)i.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(i,t),w(t,!0)}var c=i.firstChild,s=i.__preactattr_,l=e.children;if(null==s){s=i.__preactattr_={};for(var h=i.attributes,d=h.length;d--;)s[h[d].name]=h[d].value}return!z&&l&&1===l.length&&"string"==typeof l[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=l[0]&&(c.nodeValue=l[0]):(l&&l.length||null!=c)&&_(i,l,n,r,z||null!=s.dangerouslySetInnerHTML),x(i,e.attributes,s),B=a,i}function _(t,e,n,r,o){var i,a,u,c,f,l=t.childNodes,p=[],d={},v=0,y=0,m=l.length,g=0,_=e?e.length:0;if(0!==m)for(var O=0;m>O;O++){var x=l[O],P=x.__preactattr_,E=_&&P?x._component?x._component.__key:P.key:null;null!=E?(v++,d[E]=x):(P||(void 0!==x.splitText?!o||x.nodeValue.trim():o))&&(p[g++]=x)}if(0!==_)for(var O=0;_>O;O++){c=e[O],f=null;var E=c.key;if(null!=E)v&&void 0!==d[E]&&(f=d[E],d[E]=void 0,v--);else if(!f&&g>y)for(i=y;g>i;i++)if(void 0!==p[i]&&s(a=p[i],c,o)){f=a,p[i]=void 0,i===g-1&&g--,i===y&&y++;break}f=b(f,c,n,r),u=l[O],f&&f!==t&&f!==u&&(null==u?t.appendChild(f):f===u.nextSibling?h(u):t.insertBefore(f,u))}if(v)for(var O in d)void 0!==d[O]&&w(d[O],!1);for(;g>=y;)void 0!==(f=p[g--])&&w(f,!1)}function w(t,e){var n=t._component;n?C(n):(null!=t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),!1!==e&&null!=t.__preactattr_||h(t),O(t))}function O(t){for(t=t.lastChild;t;){var e=t.previousSibling;w(t,!0),t=e}}function x(t,e,n){var r;for(r in n)e&&null!=e[r]||null==n[r]||d(t,r,n[r],n[r]=void 0,B);for(r in e)"children"===r||"innerHTML"===r||r in n&&e[r]===("value"===r||"checked"===r?t[r]:n[r])||d(t,r,n[r],n[r]=e[r],B)}function P(t){var e=t.constructor.name;(q[e]||(q[e]=[])).push(t)}function E(t,e,n){var r,o=q[t.name];if(t.prototype&&t.prototype.render?(r=new t(e,n),M.call(r,e,n)):(r=new M(e,n),r.constructor=t,r.render=k),o)for(var i=o.length;i--;)if(o[i].constructor===t){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function k(t,e,n){return this.constructor(t,n)}function j(t,e,n,r,o){t._disable||(t._disable=!0,(t.__ref=e.ref)&&delete e.ref,(t.__key=e.key)&&delete e.key,!t.base||o?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(e,r),r&&r!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=r),t.prevProps||(t.prevProps=t.props),t.props=e,t._disable=!1,0!==n&&(1!==n&&!1===R.syncComponentUpdates&&t.base?u(t):S(t,1,o)),t.__ref&&t.__ref(t))}function S(t,e,n,r){if(!t._disable){var o,a,u,c=t.props,s=t.state,f=t.context,p=t.prevProps||c,h=t.prevState||s,d=t.prevContext||f,v=t.base,y=t.nextBase,b=v||y,_=t._component,O=!1;if(v&&(t.props=p,t.state=h,t.context=d,2!==e&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(c,s,f)?O=!0:t.componentWillUpdate&&t.componentWillUpdate(c,s,f),t.props=c,t.state=s,t.context=f),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!O){o=t.render(c,s,f),t.getChildContext&&(f=i(i({},f),t.getChildContext()));var x,P,k=o&&o.nodeName;if("function"==typeof k){var T=l(o);a=_,a&&a.constructor===k&&T.key==a.__key?j(a,T,1,f,!1):(x=a,t._component=a=E(k,T,f),a.nextBase=a.nextBase||y,a._parentComponent=t,j(a,T,0,f,!1),S(a,1,n,!0)),P=a.base}else u=b,x=_,x&&(u=t._component=null),(b||1===e)&&(u&&(u._component=null),P=g(u,o,f,n||!v,b&&b.parentNode,!0));if(b&&P!==b&&a!==_){var M=b.parentNode;M&&P!==M&&(M.replaceChild(P,b),x||(b._component=null,w(b,!1)))}if(x&&C(x),t.base=P,P&&!r){for(var N=t,A=t;A=A._parentComponent;)(N=A).base=P;P._component=N,P._componentConstructor=N.constructor}}if(!v||n?U.unshift(t):O||(t.componentDidUpdate&&t.componentDidUpdate(p,h,d),R.afterUpdate&&R.afterUpdate(t)),null!=t._renderCallbacks)for(;t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);W||r||m()}}function T(t,e,n,r){for(var o=t&&t._component,i=o,a=t,u=o&&t._componentConstructor===e.nodeName,c=u,s=l(e);o&&!c&&(o=o._parentComponent);)c=o.constructor===e.nodeName;return o&&c&&(!r||o._component)?(j(o,s,3,n,r),t=o.base):(i&&!u&&(C(i),t=a=null),o=E(e.nodeName,s,n),t&&!o.nextBase&&(o.nextBase=t,a=null),j(o,s,1,n,r),t=o.base,a&&t!==a&&(a._component=null,w(a,!1))),t}function C(t){R.beforeUnmount&&R.beforeUnmount(t);var e=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?C(n):e&&(e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),t.nextBase=e,h(e),P(t),O(e)),t.__ref&&t.__ref(null)}function M(t,e){this._dirty=!0,this.context=e,this.props=t,this.state=this.state||{}}function N(t,e,n){return g(n,t,{},!1,e,!1)}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"h",function(){return o}),n.d(e,"createElement",function(){return o}),n.d(e,"cloneElement",function(){return a}),n.d(e,"Component",function(){return M}),n.d(e,"render",function(){return N}),n.d(e,"rerender",function(){return c}),n.d(e,"options",function(){return R});var R={},A=[],L=[],I="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,F=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,D=[],U=[],W=0,B=!1,z=!1,q={};i(M.prototype,{setState:function(t,e){var n=this.state;this.prevState||(this.prevState=i({},n)),i(n,"function"==typeof t?t(n,this.props):t),e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),u(this)},forceUpdate:function(t){t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),S(this,2)},render:function(){}}),e.default={h:o,createElement:o,cloneElement:a,Component:M,render:N,rerender:c,options:R}},function(t,e){(function(){"use strict";function n(t,e){var n,r={};for(n in t)r[n]=t[n];for(n in e)r[n]=e[n];return r}function r(t){return t&&"object"==typeof t&&!Array.isArray(t)&&!(t instanceof Function)&&!(t instanceof RegExp)}function o(t,e,n){var r,o,i,a;for(o in t)e.call(n||null,o,t[o]);if(Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(t),i=0,a=r.length;a>i;i++)e.call(n||null,r[i],t[r[i]])}function i(t,e){t=t||[];var n,r,o=[];for(r=0,n=t.length;n>r;r++)t[r].fn!==e&&o.push(t[r]);return o}var a={once:"boolean",scope:"object"},u=0,c=function(){this._enabled=!0,this.unbindAll()};c.prototype.unbindAll=function(){return this._handlers={},this._handlersAll=[],this._handlersComplex=[],this},c.prototype.on=function(t,e,n){var i,c,s,f,l,p,h;if(r(t))return o(t,function(t,n){this.on(t,n,e)},this),this;for("function"==typeof t&&(n=e,e=t,t=null),l=[].concat(t),i=0,c=l.length;c>i;i++){if(f=l[i],h={order:u++,fn:e},"string"==typeof f||"symbol"==typeof f)this._handlers[f]||(this._handlers[f]=[]),p=this._handlers[f],h.type=f;else if(f instanceof RegExp)p=this._handlersComplex,h.pattern=f;else{if(null!==f)throw Error("Emitter.on: invalid event.");p=this._handlersAll}for(s in n||{})a[s]&&(h[s]=n[s]);p.push(h)}return this},c.prototype.once=function(){var t=Array.prototype.slice.call(arguments),e=t.length-1;return r(t[e])&&t.length>1?t[e]=n(t[e],{once:!0}):t.push({once:!0}),this.on.apply(this,t)},c.prototype.off=function(t,e){var n,a,u,c;if(1===arguments.length&&"function"==typeof t){e=arguments[0];for(u in this._handlers)this._handlers[u]=i(this._handlers[u],e),0===this._handlers[u].length&&delete this._handlers[u];this._handlersAll=i(this._handlersAll,e),this._handlersComplex=i(this._handlersComplex,e)}else if(1!==arguments.length||"string"!=typeof t&&"symbol"!=typeof t)if(2===arguments.length){var s=[].concat(t);for(n=0,a=s.length;a>n;n++)c=s[n],this._handlers[c]=i(this._handlers[c],e),0===(this._handlers[c]||[]).length&&delete this._handlers[c]}else r(t)&&o(t,this.off,this);else delete this._handlers[t];return this},c.prototype.listeners=function(t){var e,n,r,o=this._handlersAll||[],i=!1;if(!t)throw Error("Emitter.listeners: no event provided.");for(o=o.concat(this._handlers[t]||[]),n=0,r=this._handlersComplex.length;r>n;n++)e=this._handlersComplex[n],~t.search(e.pattern)&&(i=!0,o.push(e));return this._handlersAll.length||i?o.sort(function(t,e){return t.order-e.order}):o.slice(0)},c.prototype.emit=function(t,e){if(!this._enabled)return this;if(r(t))return o(t,this.emit,this),this;var n,i,a,u,c,s,f,l,p=[].concat(t),h=[];for(c=0,f=p.length;f>c;c++){for(a=this.listeners(p[c]),s=0,l=a.length;l>s;s++)u=a[s],n={type:p[c],target:this},arguments.length>1&&(n.data=e),u.fn.call("scope"in u?u.scope:this,n),u.once&&h.push(u);for(s=h.length-1;s>=0;s--)i=h[s].type?this._handlers[h[s].type]:h[s].pattern?this._handlersComplex:this._handlersAll,i.splice(i.indexOf(h[s]),1)}return this},c.prototype.kill=function(){this.unbindAll(),this._handlers=null,this._handlersAll=null,this._handlersComplex=null,this._enabled=!1,this.unbindAll=this.on=this.once=this.off=this.emit=this.listeners=Function.prototype},c.prototype.disable=function(){return this._enabled=!1,this},c.prototype.enable=function(){return this._enabled=!0,this},c.version="3.1.1",void 0!==t&&t.exports&&(e=t.exports=c),e.Emitter=c}).call(this)},function(t,e,n){"use strict";function r(t,e){return"prop type ` + "`" + `"+t+"` + "`" + ` is invalid; it must be "+e+"."}Object.defineProperty(e,"__esModule",{value:!0});var o=n(62),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={baobab:function(t,e){if(e in t)return t[e]instanceof i.default?void 0:Error(r(e,"a Baobab tree"))}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(174),a=r(i),u=n(175),c=r(u),s=n(64);e.createLocation=function(t,e,n,r){var i=void 0;"string"==typeof t?(i=(0,s.parsePath)(t),i.state=e):(i=o({},t),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,c.default)(t.state,e.state)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(14),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){var t=null,e=function(e){return(0,o.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,i){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,i):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}}},function(t,e,n){"use strict";e.a=n(83).a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(14),u=n.n(a),c=n(31),s=n.n(c),f=n(1),l=n.n(f),p=n(12),h=n.n(p),d=n(84),v=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y=function(t){return 0===l.a.Children.count(t)},m=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=i=o(this,t.call.apply(t,[this].concat(c))),i.state={match:i.computeMatch(i.props,i.context.router)},a=n,o(i,a)}return i(e,t),e.prototype.getChildContext=function(){return{router:v({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var n=t.computedMatch,r=t.location,o=t.path,i=t.strict,a=t.exact,u=t.sensitive;if(n)return n;s()(e,"You should not use <Route> or withRouter() outside a <Router>");var c=e.route,f=(r||c.location).pathname;return o?Object(d.a)(f,{path:o,strict:i,exact:a,sensitive:u}):c.match},e.prototype.componentWillMount=function(){u()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),u()(!(this.props.component&&this.props.children&&!y(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),u()(!(this.props.render&&this.props.children&&!y(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){u()(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),u()(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,r=e.component,o=e.render,i=this.context.router,a=i.history,u=i.route,c=i.staticContext,s=this.props.location||u.location,f={match:t,location:s,history:a,staticContext:c};return r?t?l.a.createElement(r,f):null:o?t?o(f):null:n?"function"==typeof n?n(f):y(n)?null:l.a.Children.only(n):null},e}(l.a.Component);m.propTypes={computedMatch:h.a.object,path:h.a.string,exact:h.a.bool,strict:h.a.bool,sensitive:h.a.bool,component:h.a.func,render:h.a.func,children:h.a.oneOfType([h.a.func,h.a.node]),location:h.a.object},m.contextTypes={router:h.a.shape({history:h.a.object.isRequired,route:h.a.object.isRequired,staticContext:h.a.object})},m.childContextTypes={router:h.a.object.isRequired},e.a=m},function(t,e,n){"use strict";var r=n(14),o=n.n(r);e.a=function(){var t=null,e=function(e){return o()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,i){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}}},,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(565),i=r(o);t.exports={TransitionGroup:r(n(198)).default,CSSTransitionGroup:i.default}},function(t,e,n){"use strict";(function(t){function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(202),n(399),n(400),t._babelPolyfill)throw Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,n(88))},function(t,e,n){t.exports=!n(9)&&!n(6)(function(){return 7!=Object.defineProperty(n(89)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){e.f=n(8)},function(t,e,n){var r=n(17),o=n(24),i=n(69)(!1),a=n(91)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(10),o=n(2),i=n(46);t.exports=n(9)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(24),o=n(49).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){"use strict";var r=n(46),o=n(70),i=n(60),a=n(13),u=n(59),c=Object.assign;t.exports=!c||n(6)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t){for(var e=a(t),n=arguments.length,c=1,s=o.f,f=i.f;n>c;)for(var l,p=u(arguments[c++]),h=s?r(p).concat(s(p)):r(p),d=h.length,v=0;d>v;)f.call(p,l=h[v++])&&(e[l]=p[l]);return e}:c},function(t,e,n){"use strict";var r=n(15),o=n(7),i=n(141),a=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;e>o;o++)r[o]="a["+o+"]";u[e]=Function("F,a","return new F("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),u=function(){var r=n.concat(a.call(arguments));return this instanceof u?c(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(5).parseInt,o=n(55).trim,i=n(95),a=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(t+"",3);return r(n,e>>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(5).parseFloat,o=n(55).trim;t.exports=1/r(n(95)+"-0")!=-1/0?function(t){var e=o(t+"",3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(29);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(7),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:Math.log(1+t)}},function(t,e,n){var r=n(98),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),c=o(2,-126),s=function(t){return t+1/i-1/i};t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),f=r(t);return c>o?f*s(o/c/a)*c*a:(e=(1+a/i)*o,n=e-(e-o),n>u||n!=n?f*(1/0):f*n)}},function(t,e,n){var r=n(2);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(15),o=n(13),i=n(59),a=n(11);t.exports=function(t,e,n,u,c){r(e);var s=o(t),f=i(s),l=a(s.length),p=c?l-1:0,h=c?-1:1;if(2>n)for(;;){if(p in f){u=f[p],p+=h;break}if(p+=h,c?0>p:p>=l)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:l>p;p+=h)p in f&&(u=e(u,f[p],p,s));return u}},function(t,e,n){"use strict";var r=n(13),o=n(47),i=n(11);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),c=o(e,a),s=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===s?a:o(s,a))-c,a-u),l=1;for(u>c&&c+f>u&&(l=-1,c+=f-1,u+=f-1);f-- >0;)c in n?n[u]=n[c]:delete n[u],u+=l,c+=l;return n}},function(t){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(9)&&"g"!=/./g.flags&&n(10).f(RegExp.prototype,"flags",{configurable:!0,get:n(74)})},function(t){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(2),o=n(7),i=n(113);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(156),o=n(57);t.exports=n(77)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(10).f,o=n(48),i=n(53),a=n(28),u=n(51),c=n(52),s=n(101),f=n(151),l=n(50),p=n(9),h=n(41).fastKey,d=n(57),v=p?"_s":"size",y=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,s){var f=t(function(t,r){u(t,f,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&c(r,n,t[s],t)});return i(f.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=d(this,e),r=y(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(d(this,e),t)}}),p&&r(f.prototype,"size",{get:function(){return d(this,e)[v]}}),f},def:function(t,e,n){var r,o,i=y(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,e,n){s(t,e,function(t,n){this._t=d(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?f(0,n.k):"values"==e?f(0,n.v):f(0,[n.k,n.v]):(t._t=void 0,f(1))},n?"entries":"values",!n,!0),l(e)}}},function(t,e,n){"use strict";var r=n(156),o=n(57);t.exports=n(77)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(37)(0),i=n(19),a=n(41),u=n(139),c=n(159),s=n(7),f=n(6),l=n(57),p=a.getWeak,h=Object.isExtensible,d=c.ufstore,v={},y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(s(t)){var e=p(t);return!0===e?d(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(l(this,"WeakMap"),t,e)}},g=t.exports=n(77)("WeakMap",y,m,c,!0,!0);f(function(){return 7!=(new g).set((Object.freeze||Object)(v),7).get(v)})&&(r=c.getConstructor(y,"WeakMap"),u(r.prototype,m),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=g.prototype,n=e[t];i(e,t,function(e,o){if(s(e)&&!h(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){"use strict";var r=n(53),o=n(41).getWeak,i=n(2),a=n(7),u=n(51),c=n(52),s=n(37),f=n(17),l=n(57),p=s(5),h=s(6),d=0,v=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},m=function(t,e){return p(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var s=t(function(t,r){u(t,s,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=r&&c(r,n,t[i],t)});return r(s.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(l(this,e)).delete(t):n&&f(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(l(this,e)).has(t):n&&f(n,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(35),o=n(11);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(49),o=n(70),i=n(2),a=n(5).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";function r(t,e,n,s,f,l,p,h){for(var d,v,y=f,m=0,g=!!p&&u(p,h,3);s>m;){if(m in n){if(d=g?g(n[m],m,e):n[m],v=!1,i(d)&&(v=d[c],v=void 0!==v?!!v:o(d)),v&&l>0)y=r(t,e,d,a(d.length),y,l-1)-1;else{if(y>=9007199254740991)throw TypeError();t[y]=d}y++}m++}return y}var o=n(71),i=n(7),a=n(11),u=n(28),c=n(8)("isConcatSpreadable");t.exports=r},function(t,e,n){var r=n(11),o=n(97),i=n(34);t.exports=function(t,e,n,a){var u=i(t)+"",c=u.length,s=void 0===n?" ":n+"",f=r(e);if(c>=f||""==s)return u;var l=f-c,p=o.call(s,Math.ceil(l/s.length));return p.length>l&&(p=p.slice(0,l)),a?p+u:u+p}},function(t,e,n){var r=n(46),o=n(24),i=n(60).f;t.exports=function(t){return function(e){for(var n,a=o(e),u=r(a),c=u.length,s=0,f=[];c>s;)i.call(a,n=u[s++])&&f.push(t?[n,a[n]]:a[n]);return f}}},function(t,e,n){var r=n(61),o=n(166);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,n){var r=n(52);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t){t.exports=Math.scale||function(t,e,n,r,o){return 0===arguments.length||t!=t||e!=e||n!=n||r!=r||o!=o?NaN:t===1/0||t===-1/0?t:(t-e)*(o-r)/(n-e)+r}},function(t,e,n){"use strict";(function(e){var r=n(115),o=r;if("production"!==e.env.NODE_ENV){var i=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});try{throw Error(i)}catch(t){}};o=function(t,e){if(void 0===e)throw Error("` + "`" + `warning(condition, format, ...args)` + "`" + ` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];i.apply(void 0,[e].concat(r))}}}t.exports=o}).call(e,n(21))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){if(!e)throw(0,v.makeError)("Baobab.Cursor."+t+": cannot use "+t+" on an unresolved dynamic path.",{path:e})}function u(t,e){y.prototype[t]=function(n,r){if(arguments.length>2)throw(0,v.makeError)("Baobab.Cursor."+t+": too many arguments.");if(1!==arguments.length||m[t]||(r=n,n=[]),n=(0,v.coercePath)(n),!d.default.path(n))throw(0,v.makeError)("Baobab.Cursor."+t+": invalid path.",{path:n});if(e&&!e(r))throw(0,v.makeError)("Baobab.Cursor."+t+": invalid value.",{path:n,value:r});if(!this.solvedPath)throw(0,v.makeError)("Baobab.Cursor."+t+": the dynamic path of the cursor cannot be solved.",{path:this.path});return this.tree.update(this.solvedPath.concat(n),{type:t,value:r})}}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function(t,e,n){for(var r=!0;r;){var o=t,i=e,a=n;r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,i);if(void 0!==u){if("value"in u)return u.value;var c=u.get;if(void 0===c)return;return c.call(a)}var s=Object.getPrototypeOf(o);if(null===s)return;t=s,e=i,n=a,r=!0,u=s=void 0}},f=n(119),l=r(f),p=n(82),h=n(58),d=r(h),v=n(63),y=function(t){function e(t,n,r){var i=this;o(this,e),s(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),n=n||[],this._identity="[object Cursor]",this._archive=null,this.tree=t,this.path=n,this.hash=r,this.state={killed:!1,recording:!1,undoing:!1},this._dynamicPath=d.default.dynamicPath(this.path),this._monkeyPath=d.default.monkeyPath(this.tree._monkeys,this.path),this.solvedPath=this._dynamicPath?(0,v.getIn)(this.tree._data,this.path).solvedPath:this.path,this._writeHandler=function(t){var e=t.data;!i.state.killed&&(0,v.solveUpdate)([e.path],i._getComparedPaths())&&(i.solvedPath=(0,v.getIn)(i.tree._data,i.path).solvedPath)};var a=function(t){var e=i,n=Object.defineProperties({},{previousData:{get:function(){return(0,v.getIn)(t,e.solvedPath).data},configurable:!0,enumerable:!0},currentData:{get:function(){return e.get()},configurable:!0,enumerable:!0}});return i.state.recording&&!i.state.undoing&&i.archive.add(n.previousData),i.state.undoing=!1,i.emit("update",n)};this._updateHandler=function(t){if(!i.state.killed){var e=t.data,n=e.paths,r=e.previousData,o=a.bind(i,r),u=i._getComparedPaths();return(0,v.solveUpdate)(n,u)?o():void 0}};var u=!1;this._lazyBind=function(){if(!u)return u=!0,i._dynamicPath&&i.tree.on("write",i._writeHandler),i.tree.on("update",i._updateHandler)},this._dynamicPath?this._lazyBind():(this.on=(0,v.before)(this._lazyBind,this.on.bind(this)),this.once=(0,v.before)(this._lazyBind,this.once.bind(this)))}return i(e,t),c(e,[{key:"_getComparedPaths",value:function(){return[this.solvedPath].concat(this._monkeyPath?(0,v.getIn)(this.tree._monkeys,this._monkeyPath).data.relatedPaths():[])}},{key:"isRoot",value:function(){return!this.path.length}},{key:"isLeaf",value:function(){return d.default.primitive(this._get().data)}},{key:"isBranch",value:function(){return!this.isRoot()&&!this.isLeaf()}},{key:"root",value:function(){return this.tree.select()}},{key:"select",value:function(t){return arguments.length>1&&(t=(0,v.arrayFrom)(arguments)),this.tree.select(this.path.concat(t))}},{key:"up",value:function(){return this.isRoot()?null:this.tree.select(this.path.slice(0,-1))}},{key:"down",value:function(){if(a("down",this.solvedPath),!(this._get().data instanceof Array))throw Error("Baobab.Cursor.down: cannot go down on a non-list type.");return this.tree.select(this.solvedPath.concat(0))}},{key:"left",value:function(){a("left",this.solvedPath);var t=+this.solvedPath[this.solvedPath.length-1];if(isNaN(t))throw Error("Baobab.Cursor.left: cannot go left on a non-list type.");return t?this.tree.select(this.solvedPath.slice(0,-1).concat(t-1)):null}},{key:"right",value:function(){a("right",this.solvedPath);var t=+this.solvedPath[this.solvedPath.length-1];if(isNaN(t))throw Error("Baobab.Cursor.right: cannot go right on a non-list type.");return t+1===this.up()._get().data.length?null:this.tree.select(this.solvedPath.slice(0,-1).concat(t+1))}},{key:"leftmost",value:function(){a("leftmost",this.solvedPath);var t=+this.solvedPath[this.solvedPath.length-1];if(isNaN(t))throw Error("Baobab.Cursor.leftmost: cannot go left on a non-list type.");return this.tree.select(this.solvedPath.slice(0,-1).concat(0))}},{key:"rightmost",value:function(){a("rightmost",this.solvedPath);var t=+this.solvedPath[this.solvedPath.length-1];if(isNaN(t))throw Error("Baobab.Cursor.rightmost: cannot go right on a non-list type.");var e=this.up()._get().data;return this.tree.select(this.solvedPath.slice(0,-1).concat(e.length-1))}},{key:"map",value:function(t,e){a("map",this.solvedPath);var n=this._get().data,r=arguments.length;if(!d.default.array(n))throw Error("baobab.Cursor.map: cannot map a non-list type.");return n.map(function(o,i){return t.call(r>1?e:this,this.select(i),i,n)},this)}},{key:"_get",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!d.default.path(t))throw(0,v.makeError)("Baobab.Cursor.getters: invalid path.",{path:t});return this.solvedPath?(0,v.getIn)(this.tree._data,this.solvedPath.concat(t)):{data:void 0,solvedPath:null,exists:!1}}},{key:"exists",value:function(t){return t=(0,v.coercePath)(t),arguments.length>1&&(t=(0,v.arrayFrom)(arguments)),this._get(t).exists}},{key:"get",value:function(t){t=(0,v.coercePath)(t),arguments.length>1&&(t=(0,v.arrayFrom)(arguments));var e=this._get(t),n=e.data;return this.tree.emit("get",{data:n,solvedPath:e.solvedPath,path:this.path.concat(t)}),n}},{key:"clone",value:function(){var t=this.get.apply(this,arguments);return(0,v.shallowClone)(t)}},{key:"deepClone",value:function(){var t=this.get.apply(this,arguments);return(0,v.deepClone)(t)}},{key:"serialize",value:function(t){if(t=(0,v.coercePath)(t),arguments.length>1&&(t=(0,v.arrayFrom)(arguments)),!d.default.path(t))throw(0,v.makeError)("Baobab.Cursor.getters: invalid path.",{path:t});if(this.solvedPath){var e=this.solvedPath.concat(t),n=(0,v.deepClone)((0,v.getIn)(this.tree._data,e).data),r=(0,v.getIn)(this.tree._monkeys,e).data;return function t(e,n){if(d.default.object(n)&&d.default.object(e))for(var r in n)n[r]instanceof p.Monkey?delete e[r]:t(e[r],n[r])}(n,r),n}}},{key:"project",value:function(t){if(d.default.object(t)){var e={};for(var n in t)e[n]=this.get(t[n]);return e}if(d.default.array(t)){for(var e=[],r=0,o=t.length;o>r;r++)e.push(this.get(t[r]));return e}throw(0,v.makeError)("Baobab.Cursor.project: wrong projection.",{projection:t})}},{key:"startRecording",value:function(t){if(1>(t=t||1/0))throw(0,v.makeError)("Baobab.Cursor.startRecording: invalid max records.",{value:t});return this.state.recording=!0,this.archive?this:(this._lazyBind(),this.archive=new v.Archive(t),this)}},{key:"stopRecording",value:function(){return this.state.recording=!1,this}},{key:"undo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(!this.state.recording)throw Error("Baobab.Cursor.undo: cursor is not recording.");var e=this.archive.back(t);if(!e)throw Error("Baobab.Cursor.undo: cannot find a relevant record.");return this.state.undoing=!0,this.set(e),this}},{key:"hasHistory",value:function(){return!(!this.archive||!this.archive.get().length)}},{key:"getHistory",value:function(){return this.archive?this.archive.get():[]}},{key:"clearHistory",value:function(){return this.archive&&this.archive.clear(),this}},{key:"release",value:function(){this._dynamicPath&&this.tree.off("write",this._writeHandler),this.tree.off("update",this._updateHandler),this.hash&&delete this.tree._cursors[this.hash],delete this.tree,delete this.path,delete this.solvedPath,delete this.archive,this.kill(),this.state.killed=!0}},{key:"toJSON",value:function(){return this.serialize()}},{key:"toString",value:function(){return this._identity}}]),e}(l.default);e.default=y,"function"==typeof Symbol&&void 0!==Symbol.iterator&&(y.prototype[Symbol.iterator]=function(){var t=this._get().data;if(!d.default.array(t))throw Error("baobab.Cursor.@@iterate: cannot iterate a non-list type.");var e=0,n=this,r=t.length;return{next:function(){return r>e?{value:n.select(e++)}:{done:!0}}}});var m={unset:!0,pop:!0,shift:!0};u("set"),u("unset"),u("apply",d.default.function),u("push"),u("concat",d.default.array),u("unshift"),u("pop"),u("shift"),u("splice",d.default.splicer),u("merge",d.default.object),u("deepMerge",d.default.object),t.exports=e.default},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);t.length>e;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e,n){return(0,c.makeError)('Baobab.update: cannot apply the "'+t+'" on a non '+e+" (path: /"+n.join("/")+").",{path:n})}function i(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n.type,s=n.value,f=n.options,l=void 0===f?{}:f,p={root:t},h=["root"].concat(r(e)),d=[],v=p,y=void 0,m=void 0,g=void 0;for(y=0,m=h.length;m>y;y++){if(g=h[y],y>0&&d.push(g),y===m-1){if("set"===a){if(i.pure&&v[g]===s)return{node:v[g]};u.default.lazyGetter(v,g)?Object.defineProperty(v,g,{value:s,enumerable:!0,configurable:!0}):v[g]=i.persistent&&!l.mutableLeaf?(0,c.shallowClone)(s):s}else if("monkey"===a)Object.defineProperty(v,g,{get:s,enumerable:!0,configurable:!0});else if("apply"===a){var b=s(v[g]);if(i.pure&&v[g]===b)return{node:v[g]};u.default.lazyGetter(v,g)?Object.defineProperty(v,g,{value:b,enumerable:!0,configurable:!0}):v[g]=i.persistent?(0,c.shallowClone)(b):b}else if("push"===a){if(!u.default.array(v[g]))throw o("push","array",d);i.persistent?v[g]=v[g].concat([s]):v[g].push(s)}else if("unshift"===a){if(!u.default.array(v[g]))throw o("unshift","array",d);i.persistent?v[g]=[s].concat(v[g]):v[g].unshift(s)}else if("concat"===a){if(!u.default.array(v[g]))throw o("concat","array",d);i.persistent?v[g]=v[g].concat(s):v[g].push.apply(v[g],s)}else if("splice"===a){if(!u.default.array(v[g]))throw o("splice","array",d);i.persistent?v[g]=c.splice.apply(null,[v[g]].concat(s)):v[g].splice.apply(v[g],s)}else if("pop"===a){if(!u.default.array(v[g]))throw o("pop","array",d);i.persistent?v[g]=(0,c.splice)(v[g],-1,1):v[g].pop()}else if("shift"===a){if(!u.default.array(v[g]))throw o("shift","array",d);i.persistent?v[g]=(0,c.splice)(v[g],0,1):v[g].shift()}else if("unset"===a)u.default.object(v)?delete v[g]:u.default.array(v)&&v.splice(g,1);else if("merge"===a){if(!u.default.object(v[g]))throw o("merge","object",d);v[g]=i.persistent?(0,c.shallowMerge)({},v[g],s):(0,c.shallowMerge)(v[g],s)}else if("deepMerge"===a){if(!u.default.object(v[g]))throw o("deepMerge","object",d);v[g]=i.persistent?(0,c.deepMerge)({},v[g],s):(0,c.deepMerge)(v[g],s)}i.immutable&&!l.mutableLeaf&&(0,c.deepFreeze)(v);break}u.default.primitive(v[g])?v[g]={}:i.persistent&&(v[g]=(0,c.shallowClone)(v[g])),i.immutable&&m>0&&(0,c.freeze)(v),v=v[g]}return u.default.lazyGetter(v,g)?{data:p.root}:{data:p.root,node:v[g]}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var a=n(58),u=function(t){return t&&t.__esModule?t:{default:t}}(a),c=n(63);t.exports=e.default},function(t,e){"use strict";function n(t,e){return function n(){for(var r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];return e>o.length?function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return n.apply(null,o.concat(e))}:t.apply(null,o)}}function r(t,e,n){return"function"==typeof t&&(t=t(e,n)),t}Object.defineProperty(e,"__esModule",{value:!0}),e.curry=n,e.solveMapping=r},function(t,e,n){(function(n){var r,o,i;!function(n,a){o=[e],r=a,void 0!==(i="function"==typeof r?r.apply(e,o):r)&&(t.exports=i)}(0,function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();t.default=function(){function t(n,r,o){e(this,t),this.server=n||"",this.token=r,this.csrf=o}return r(t,[{key:"getRepoList",value:function(t){return this._get("/api/user/repos?"+o(t))}},{key:"getRepo",value:function(t,e){return this._get("/api/repos/"+t+"/"+e)}},{key:"activateRepo",value:function(t,e){return this._post("/api/repos/"+t+"/"+e)}},{key:"updateRepo",value:function(t,e,n){return this._patch("/api/repos/"+t+"/"+e,n)}},{key:"deleteRepo",value:function(t,e){return this._delete("/api/repos/"+t+"/"+e)}},{key:"getBuildList",value:function(t,e,n){return this._get("/api/repos/"+t+"/"+e+"/builds?"+o(n))}},{key:"getBuild",value:function(t,e,n){return this._get("/api/repos/"+t+"/"+e+"/builds/"+n)}},{key:"getBuildFeed",value:function(t){return this._get("/api/user/feed?"+o(t))}},{key:"cancelBuild",value:function(t,e,n,r){return this._delete("/api/repos/"+t+"/"+e+"/builds/"+n+"/"+r)}},{key:"approveBuild",value:function(t,e,n){return this._post("/api/repos/"+t+"/"+e+"/builds/"+n+"/approve")}},{key:"declineBuild",value:function(t,e,n){return this._post("/api/repos/"+t+"/"+e+"/builds/"+n+"/decline")}},{key:"restartBuild",value:function(t,e,n,r){return this._post("/api/repos/"+t+"/"+e+"/builds/"+n+"?"+o(r))}},{key:"getLogs",value:function(t,e,n,r){return this._get("/api/repos/"+t+"/"+e+"/logs/"+n+"/"+r)}},{key:"getArtifact",value:function(t,e,n,r,o){return this._get("/api/repos/"+t+"/"+e+"/files/"+n+"/"+r+"/"+o+"?raw=true")}},{key:"getArtifactList",value:function(t,e,n){return this._get("/api/repos/"+t+"/"+e+"/files/"+n)}},{key:"getSecretList",value:function(t,e){return this._get("/api/repos/"+t+"/"+e+"/secrets")}},{key:"createSecret",value:function(t,e,n){return this._post("/api/repos/"+t+"/"+e+"/secrets",n)}},{key:"deleteSecret",value:function(t,e,n){return this._delete("/api/repos/"+t+"/"+e+"/secrets/"+n)}},{key:"getRegistryList",value:function(t,e){return this._get("/api/repos/"+t+"/"+e+"/registry")}},{key:"createRegistry",value:function(t,e,n){return this._post("/api/repos/"+t+"/"+e+"/registry",n)}},{key:"deleteRegistry",value:function(t,e,n){return this._delete("/api/repos/"+t+"/"+e+"/registry/"+n)}},{key:"getSelf",value:function(){return this._get("/api/user")}},{key:"getToken",value:function(){return this._post("/api/user/token")}},{key:"on",value:function(t){return this._subscribe("/stream/events",t,{reconnect:!0})}},{key:"stream",value:function(t,e,n,r,o){return this._subscribe("/stream/logs/"+t+"/"+e+"/"+n+"/"+r,o,{reconnect:!1})}},{key:"_get",value:function(t){return this._request("GET",t,null)}},{key:"_post",value:function(t,e){return this._request("POST",t,e)}},{key:"_patch",value:function(t,e){return this._request("PATCH",t,e)}},{key:"_delete",value:function(t){return this._request("DELETE",t,null)}},{key:"_subscribe",value:function(t,e,n){var r=o({access_token:this.token});t=this.server?this.server+t:t,t=this.token?t+"?"+r:t;var i=new EventSource(t);return i.onmessage=function(t){var n=JSON.parse(t.data);e(n)},n.reconnect||(i.onerror=function(t){"eof"===t.data&&i.close()}),i}},{key:"_request",value:function(t,e,n){var r=""+this.server+e,o=new XMLHttpRequest;return o.open(t,r,!0),this.token&&o.setRequestHeader("Authorization","Bearer "+this.token),"GET"!==t&&this.csrf&&o.setRequestHeader("X-CSRF-TOKEN",this.csrf),new Promise(function(t,e){o.onload=function(){if(4===o.readyState){if(o.status>=300){var n={status:o.status,message:o.response};return this.onerror&&this.onerror(n),void e(n)}var r=o.getResponseHeader("Content-Type");t(r&&r.startsWith("application/json")?JSON.parse(o.response):o.response)}}.bind(this),o.onerror=function(t){e(t)},n?(o.setRequestHeader("Content-Type","application/json"),o.send(JSON.stringify(n))):o.send()}.bind(this))}}],[{key:"fromEnviron",value:function(){return new t(n&&n.env&&n.env.DRONE_SERVER,n&&n.env&&n.env.DRONE_TOKEN,n&&n.env&&n.env.DRONE_CSRF)}},{key:"fromWindow",value:function(){return new t(window&&window.DRONE_SERVER,window&&window.DRONE_TOKEN,window&&window.DRONE_CSRF)}}]),t}();var o=t.encodeQueryString=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t?Object.keys(t).sort().map(function(e){var n=t[e];return encodeURIComponent(e)+"="+encodeURIComponent(n)}).join("&"):""}})}).call(e,n(21))},function(t,e,n){"use strict";function r(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?i(e,t)+"["+r+"]":i(e,t)+"["+i(r,t)+"]="+i(n,t)};case"bracket":return function(e,n){return null===n?i(e,t):i(e,t)+"[]="+i(n,t)};default:return function(e,n){return null===n?i(e,t):i(e,t)+"="+i(n,t)}}}function o(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e)return void(r[t]=n);void 0===r[t]&&(r[t]={}),r[t][e[1]]=n};case"bracket":return function(t,n,r){return e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0===r[t]?void(r[t]=[n]):void(r[t]=[].concat(r[t],n)):void(r[t]=n)};default:return function(t,e,n){if(void 0===n[t])return void(n[t]=e);n[t]=[].concat(n[t],e)}}}function i(t,e){return e.encode?e.strict?u(t):encodeURIComponent(t):t}function a(t){return Array.isArray(t)?t.sort():"object"==typeof t?a(Object.keys(t)).sort(function(t,e){return+t-+e}).map(function(e){return t[e]}):t}var u=n(413),c=n(414),s=n(415);e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t,e){e=c({arrayFormat:"none"},e);var n=o(e),r=Object.create(null);return"string"!=typeof t?r:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),o=e.shift(),i=e.length>0?e.join("="):void 0;i=void 0===i?null:s(i),n(s(o),i,r)}),Object.keys(r).sort().reduce(function(t,e){var n=r[e];return t[e]=n&&"object"==typeof n&&!Array.isArray(n)?a(n):n,t},Object.create(null))):r},e.stringify=function(t,e){e=c({encode:!0,strict:!0,arrayFormat:"none"},e);var n=r(e);return t?Object.keys(t).sort().map(function(r){var o=t[r];if(void 0===o)return"";if(null===o)return i(r,e);if(Array.isArray(o)){var a=[];return o.slice().forEach(function(t){void 0!==t&&a.push(n(r,t,a.length))}),a.join("&")}return i(r,e)+"="+i(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e){"use strict";function n(t){return"/"===t.charAt(0)}function r(t,e){for(var n=e,r=n+1,o=t.length;o>r;n+=1,r+=1)t[n]=t[r];t.pop()}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),c=a||u;if(t&&n(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var s=void 0;if(i.length){var f=i[i.length-1];s="."===f||".."===f||""===f}else s=!1;for(var l=0,p=i.length;p>=0;p--){var h=i[p];"."===h?r(i,p):".."===h?(r(i,p),l++):l&&(r(i,p),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o},function(t,e){"use strict";function n(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,r){return n(t,e[r])});var o=void 0===t?"undefined":r(t);if(o!==(void 0===e?"undefined":r(e)))return!1;if("object"===o){var i=t.valueOf(),a=e.valueOf();if(i!==t||a!==e)return n(i,a);var u=Object.keys(t);return u.length===Object.keys(e).length&&u.every(function(r){return n(t[r],e[r])})}return!1}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=n},function(t,e){"use strict";e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},e.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(1),c=n.n(u),s=n(12),f=n.n(s),l=n(31),p=n.n(l),h=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},v=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=r=i(this,t.call.apply(t,[this].concat(c))),r.handleClick=function(t){if(r.props.onClick&&r.props.onClick(t),!t.defaultPrevented&&0===t.button&&!r.props.target&&!d(t)){t.preventDefault();var e=r.context.router.history,n=r.props,o=n.replace,i=n.to;o?e.replace(i):e.push(i)}},a=n,i(r,a)}return a(e,t),e.prototype.render=function(){var t=this.props,e=t.to,n=t.innerRef,o=r(t,["replace","to","innerRef"]);p()(this.context.router,"You should not use <Link> outside a <Router>");var i=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return c.a.createElement("a",h({},o,{onClick:this.handleClick,href:i,ref:n}))},e}(c.a.Component);v.propTypes={onClick:f.a.func,target:f.a.string,replace:f.a.bool,to:f.a.oneOfType([f.a.string,f.a.object]).isRequired,innerRef:f.a.oneOfType([f.a.string,f.a.func])},v.defaultProps={replace:!1},v.contextTypes={router:f.a.shape({history:f.a.shape({push:f.a.func.isRequired,replace:f.a.func.isRequired,createHref:f.a.func.isRequired}).isRequired}).isRequired},e.a=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(14),u=n.n(a),c=n(1),s=n.n(c),f=n(12),l=n.n(f),p=n(426),h=n.n(p),d=n(83),v=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=i=o(this,t.call.apply(t,[this].concat(c))),i.history=h()(i.props),a=n,o(i,a)}return i(e,t),e.prototype.componentWillMount=function(){u()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use ` + "`" + `import { Router }` + "`" + ` instead of ` + "`" + `import { MemoryRouter as Router }` + "`" + `.")},e.prototype.render=function(){return s.a.createElement(d.a,{history:this.history,children:this.props.children})},e}(s.a.Component);v.propTypes={initialEntries:l.a.array,initialIndex:l.a.number,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node},e.a=v},function(t,e,n){"use strict";e.a=n(124).a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(1),u=n.n(a),c=n(12),s=n.n(c),f=n(31),l=n.n(f),p=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){l()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(u.a.Component);p.propTypes={when:s.a.bool,message:s.a.oneOfType([s.a.func,s.a.string]).isRequired},p.defaultProps={when:!0},p.contextTypes={router:s.a.shape({history:s.a.shape({block:s.a.func.isRequired}).isRequired}).isRequired},e.a=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(1),u=n.n(a),c=n(12),s=n.n(c),f=n(14),l=n.n(f),p=n(31),h=n.n(p),d=n(432),v=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){h()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=Object(d.a)(t.to),n=Object(d.a)(this.props.to);if(Object(d.b)(e,n))return void l()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"');this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,r=e.to;n?t.push(r):t.replace(r)},e.prototype.render=function(){return null},e}(u.a.Component);v.propTypes={push:s.a.bool,from:s.a.string,to:s.a.oneOfType([s.a.string,s.a.object]).isRequired},v.defaultProps={push:!1},v.contextTypes={router:s.a.shape({history:s.a.shape({push:s.a.func.isRequired,replace:s.a.func.isRequired}).isRequired,staticContext:s.a.object}).isRequired},e.a=v},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return i}),n.d(e,"c",function(){return a}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"f",function(){return s}),n.d(e,"d",function(){return f});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},i=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},u=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},c=function(){return-1===window.navigator.userAgent.indexOf("Trident")},s=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},f=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(14),c=n.n(u),s=n(31),f=n.n(s),l=n(1),p=n.n(l),h=n(12),d=n.n(h),v=n(64),y=(n.n(v),n(83)),m=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=function(t){var e=t.pathname,n=void 0===e?"/":e,r=t.search,o=void 0===r?"":r,i=t.hash,a=void 0===i?"":i;return{pathname:n,search:"?"===o?"":o,hash:"#"===a?"":a}},b=function(t,e){return t?m({},e,{pathname:Object(v.addLeadingSlash)(t)+e.pathname}):e},_=function(t,e){if(!t)return e;var n=Object(v.addLeadingSlash)(t);return 0!==e.pathname.indexOf(n)?e:m({},e,{pathname:e.pathname.substr(n.length)})},w=function(t){return"string"==typeof t?Object(v.parsePath)(t):g(t)},O=function(t){return"string"==typeof t?t:Object(v.createPath)(t)},x=function(t){return function(){f()(!1,"You cannot %s with <StaticRouter>",t)}},P=function(){},E=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=r=i(this,t.call.apply(t,[this].concat(c))),r.createHref=function(t){return Object(v.addLeadingSlash)(r.props.basename+O(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=b(n,w(t)),o.url=O(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=b(n,w(t)),o.url=O(o.location)},r.handleListen=function(){return P},r.handleBlock=function(){return P},a=n,i(r,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.componentWillMount=function(){c()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use ` + "`" + `import { Router }` + "`" + ` instead of ` + "`" + `import { StaticRouter as Router }` + "`" + `.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=t.location,o=r(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:_(e,w(n)),push:this.handlePush,replace:this.handleReplace,go:x("go"),goBack:x("goBack"),goForward:x("goForward"),listen:this.handleListen,block:this.handleBlock};return p.a.createElement(y.a,m({},o,{history:i}))},e}(p.a.Component);E.propTypes={basename:d.a.string,context:d.a.object.isRequired,location:d.a.oneOfType([d.a.string,d.a.object])},E.defaultProps={basename:"",location:"/"},E.childContextTypes={router:d.a.object.isRequired},e.a=E},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(1),u=n.n(a),c=n(12),s=n.n(c),f=n(14),l=n.n(f),p=n(31),h=n.n(p),d=n(84),v=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.componentWillMount=function(){h()(this.context.router,"You should not use <Switch> outside a <Router>")},e.prototype.componentWillReceiveProps=function(t){l()(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),l()(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,r=void 0,o=void 0;return u.a.Children.forEach(e,function(e){if(u.a.isValidElement(e)){var i=e.props,a=i.path,c=i.exact,s=i.strict,f=i.sensitive,l=i.from,p=a||l;null==r&&(o=e,r=p?Object(d.a)(n.pathname,{path:p,exact:c,strict:s,sensitive:f}):t.match)}}),r?u.a.cloneElement(o,{location:n,computedMatch:r}):null},e}(u.a.Component);v.contextTypes={router:s.a.shape({route:s.a.object.isRequired}).isRequired},v.propTypes={children:s.a.node,location:s.a.object},e.a=v},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var o=n(1),i=n.n(o),a=n(12),u=n.n(a),c=n(440),s=n.n(c),f=n(124),l=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(t){var e=function(e){var n=e.wrappedComponentRef,o=r(e,["wrappedComponentRef"]);return i.a.createElement(f.a,{render:function(e){return i.a.createElement(t,l({},o,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:u.a.func},s()(e,t)}},function(t,e,n){"use strict";function r(){return c[c.length-1]}function o(){document.title=r()}function i(){var t=r();return c=[],t}e.__esModule=!0,e.flushTitle=i;var a=n(1),u=function(t){return t&&t.__esModule?t:{default:t}}(a),c=[],s=u.default.PropTypes;e.default=u.default.createClass({displayName:"Title",propTypes:{render:(0,s.oneOfType)([s.string,s.func]).isRequired},getInitialState:function(){return{index:c.push("")-1}},componentWillUnmount:function(){c.pop()},componentDidMount:o,componentDidUpdate:o,render:function(){var t=this.props.render;return c[this.state.index]="function"==typeof t?t(c[this.state.index-1]||""):t,this.props.children||null}})},function(t,e,n){!function(e,r){t.exports=r(n(1))}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(2);Object.defineProperty(e,"connectScreenSize",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(3),f=r(s),l=n(4),p=r(l);e.default=function(t){return function(e){var n=function(){var e=this;this.computeScreenSizeProps=function(e){return t(p.default.getScreenSize(),e)},this.updateComputedProps=function(){e.setState({computedProps:e.computeScreenSizeProps(e.props)})}};return function(t){function r(t){o(this,r);var e=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t));return n.call(e),e.state={computedProps:e.computeScreenSizeProps(t)},e}return a(r,t),c(r,[{key:"componentDidMount",value:function(){this.unsubscribe=p.default.subscribe(this.updateComputedProps)}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"render",value:function(){return f.default.createElement(e,u({},this.props,this.state.computedProps))}}]),r}(f.default.PureComponent)}}},function(t){t.exports=n(1)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(i),u=function(){function t(){r(this,t),this.listeners=[],this.setup()}return o(t,[{key:"getScreenSize",value:function(){return this.screenSize}},{key:"bootstrap",value:function(t){var e=this;this.mediaQueryLists={},Object.keys(a.default).forEach(function(n){e.mediaQueryLists[a.default[n]]=t(n)}),Object.keys(i.greaterThanMedias).forEach(function(t){e.mediaQueryLists[a.default[t]].addListener(function(){return e.update()})}),this.update()}},{key:"setup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.mobile,n=t.tablet,r=e,o=!r&&n,i=!r&&!o;this.screenSize={mobile:r,"> mobile":o||i,small:o,"> small":i,medium:i,"> medium":i,large:!1,"> large":!1}}},{key:"update",value:function(){var t=this;this.screenSize=Object.assign({},this.screenSize),Object.keys(this.screenSize).forEach(function(e){t.screenSize[e]=t.mediaQueryLists[e].matches}),this.listeners.forEach(function(t){return t()})}},{key:"subscribe",value:function(t){var e=this;return this.listeners.push(t),function(){e.listeners.splice(e.listeners.indexOf(t),1)}}}]),t}(),c=new u;"undefined"!=typeof window&&void 0!==window.matchMedia&&c.bootstrap(window.matchMedia),e.default=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=(Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t})({},e.greaterThanMedias={"(min-width: 601px)":"> mobile","(min-width: 961px)":"> small","(min-width: 1281px)":"> medium","(min-width: 1921px)":"> large"},e.strictMedias={"(max-width: 600px)":"mobile","(max-width: 960px) and (min-width: 601px)":"small","(max-width: 1280px) and (min-width: 961px)":"medium","(max-width: 1920px) and (min-width: 1281px)":"large"})}])})},,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.YEAR=e.MONTH=e.WEEK=e.DAY=e.HOUR=e.MINUTE=void 0;var c=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(1),p=r(l),h=n(466),d=r(h),v=n(467),y=r(v),m=e.MINUTE=60,g=e.HOUR=60*m,b=e.DAY=24*g,_=e.WEEK=7*b,w=e.MONTH=30*b,O=e.YEAR=365*b,x=function(t){function e(){var t,n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),r.isStillMounted=!1,r.tick=function(t){if(r.isStillMounted&&r.props.live){var e=(0,y.default)(r.props.date).valueOf();if(e){var n=r.props.now(),o=Math.round(Math.abs(n-e)/1e3),i=m>o?1e3:g>o?1e3*m:b>o?1e3*g:0,a=Math.min(Math.max(i,1e3*r.props.minPeriod),1e3*r.props.maxPeriod);a&&(r.timeoutId=setTimeout(r.tick,a)),t||r.forceUpdate()}}},o=n,a(r,o)}return u(e,t),f(e,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.props.live&&this.tick(!0)}},{key:"componentDidUpdate",value:function(t){this.props.live===t.live&&this.props.date===t.date||(!this.props.live&&this.timeoutId&&clearTimeout(this.timeoutId),this.tick())}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0)}},{key:"render",value:function(){var t=this.props,e=t.date,n=t.component,r=t.title,i=t.now,a=o(t,["date","formatter","component","live","minPeriod","maxPeriod","title","now"]),u=(0,y.default)(e).valueOf();if(!u)return null;var f=i(),l=Math.round(Math.abs(f-u)/1e3),h=f>u?"ago":"from now",v=m>l?[Math.round(l),"second"]:g>l?[Math.round(l/m),"minute"]:b>l?[Math.round(l/g),"hour"]:_>l?[Math.round(l/b),"day"]:w>l?[Math.round(l/_),"week"]:O>l?[Math.round(l/w),"month"]:[Math.round(l/O),"year"],x=s(v,2),P=x[0],E=x[1],k=void 0===r?"string"==typeof e?e:(0,y.default)(e).toISOString().substr(0,16).replace("T"," "):r;"time"===n&&(a.dateTime=(0,y.default)(e).toISOString());var j=d.default.bind(null,P,E,h);return p.default.createElement(n,c({},a,{title:k}),this.props.formatter(P,E,h,u,j))}}]),e}(l.Component);x.displayName="TimeAgo",x.defaultProps={live:!0,component:"time",minPeriod:0,maxPeriod:1/0,formatter:d.default,now:function(){return Date.now()}},e.default=x},function(t,e,n){var r;!function(){function o(t){var e=function(t,n){return i(t,u({},e,n||{}))};return u(e,{language:"en",delimiter:", ",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}function i(t,e){var n,r,o;t=Math.abs(t);var i=e.languages[e.language]||p[e.language];if(!i)throw Error("No language "+i+".");var u,c,s,f=[];for(n=0,r=e.units.length;r>n;n++)u=e.units[n],c=e.unitMeasures[u],s=n+1===r?t/c:Math.floor(t/c),f.push({unitCount:s,unitName:u}),t-=s*c;var l=0;for(n=0;f.length>n;n++)if(f[n].unitCount){l=n;break}if(e.round){var h,d;for(n=f.length-1;n>=0&&(o=f[n],o.unitCount=Math.round(o.unitCount),0!==n);n--)d=f[n-1],h=e.unitMeasures[d.unitName]/e.unitMeasures[o.unitName],(o.unitCount%h==0||e.largest&&n-l>e.largest-1)&&(d.unitCount+=o.unitCount/h,o.unitCount=0)}var v=[];for(n=0,f.length;r>n&&(o=f[n],o.unitCount&&v.push(a(o.unitCount,o.unitName,i,e)),v.length!==e.largest);n++);return v.length?e.conjunction&&1!==v.length?2===v.length?v.join(e.conjunction):v.length>2?v.slice(0,-1).join(e.delimiter)+(e.serialComma?",":"")+e.conjunction+v.slice(-1):void 0:v.join(e.delimiter):a(0,e.units[e.units.length-1],i,e)}function a(t,e,n,r){var o;o=void 0===r.decimal?n.decimal:r.decimal;var i,a=(""+t).replace(".",o),u=n[e];return i="function"==typeof u?u(t):u,a+r.spacer+i}function u(t){for(var e,n=1;arguments.length>n;n++){e=arguments[n];for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}return t}function c(t){return 1===t?0:Math.floor(t)!==t?1:2>t%10||t%10>4||t%100>=10?3:2}function s(t){return 1===t?0:Math.floor(t)!==t?1:2>t%10||t%10>4||t%100>10&&20>t%100?3:2}function f(t){return Math.floor(t)!==t?2:t%100>=5&&20>=t%100||t%10>=5&&9>=t%10||t%10==0?0:t%10==1?1:t>1?2:0}function l(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&10>t%100?1:2}var p={ar:{y:function(t){return 1===t?"سنة":"سنوات"},mo:function(t){return 1===t?"شهر":"أشهر"},w:function(t){return 1===t?"أسبوع":"أسابيع"},d:function(t){return 1===t?"يوم":"أيام"},h:function(t){return 1===t?"ساعة":"ساعات"},m:function(t){return 1===t?"دقيقة":"دقائق"},s:function(t){return 1===t?"ثانية":"ثواني"},ms:function(t){return 1===t?"جزء من الثانية":"أجزاء من الثانية"},decimal:","},ca:{y:function(t){return"any"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"os")},w:function(t){return"setman"+(1===t?"a":"es")},d:function(t){return"di"+(1===t?"a":"es")},h:function(t){return"hor"+(1===t?"a":"es")},m:function(t){return"minut"+(1===t?"":"s")},s:function(t){return"segon"+(1===t?"":"s")},ms:function(t){return"milisegon"+(1===t?"":"s")},decimal:","},cs:{y:function(t){return["rok","roku","roky","let"][c(t)]},mo:function(t){return["měsíc","měsíce","měsíce","měsíců"][c(t)]},w:function(t){return["týden","týdne","týdny","týdnů"][c(t)]},d:function(t){return["den","dne","dny","dní"][c(t)]},h:function(t){return["hodina","hodiny","hodiny","hodin"][c(t)]},m:function(t){return["minuta","minuty","minuty","minut"][c(t)]},s:function(t){return["sekunda","sekundy","sekundy","sekund"][c(t)]},ms:function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][c(t)]},decimal:","},da:{y:"år",mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uge"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"e")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minut"+(1===t?"":"ter")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},de:{y:function(t){return"Jahr"+(1===t?"":"e")},mo:function(t){return"Monat"+(1===t?"":"e")},w:function(t){return"Woche"+(1===t?"":"n")},d:function(t){return"Tag"+(1===t?"":"e")},h:function(t){return"Stunde"+(1===t?"":"n")},m:function(t){return"Minute"+(1===t?"":"n")},s:function(t){return"Sekunde"+(1===t?"":"n")},ms:function(t){return"Millisekunde"+(1===t?"":"n")},decimal:","},en:{y:function(t){return"year"+(1===t?"":"s")},mo:function(t){return"month"+(1===t?"":"s")},w:function(t){return"week"+(1===t?"":"s")},d:function(t){return"day"+(1===t?"":"s")},h:function(t){return"hour"+(1===t?"":"s")},m:function(t){return"minute"+(1===t?"":"s")},s:function(t){return"second"+(1===t?"":"s")},ms:function(t){return"millisecond"+(1===t?"":"s")},decimal:"."},es:{y:function(t){return"año"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"es")},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"día"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milisegundo"+(1===t?"":"s")},decimal:","},fi:{y:function(t){return 1===t?"vuosi":"vuotta"},mo:function(t){return 1===t?"kuukausi":"kuukautta"},w:function(t){return"viikko"+(1===t?"":"a")},d:function(t){return"päivä"+(1===t?"":"ä")},h:function(t){return"tunti"+(1===t?"":"a")},m:function(t){return"minuutti"+(1===t?"":"a")},s:function(t){return"sekunti"+(1===t?"":"a")},ms:function(t){return"millisekunti"+(1===t?"":"a")},decimal:","},fr:{y:function(t){return"an"+(2>t?"":"s")},mo:"mois",w:function(t){return"semaine"+(2>t?"":"s")},d:function(t){return"jour"+(2>t?"":"s")},h:function(t){return"heure"+(2>t?"":"s")},m:function(t){return"minute"+(2>t?"":"s")},s:function(t){return"seconde"+(2>t?"":"s")},ms:function(t){return"milliseconde"+(2>t?"":"s")},decimal:","},gr:{y:function(t){return 1===t?"χρόνος":"χρόνια"},mo:function(t){return 1===t?"μήνας":"μήνες"},w:function(t){return 1===t?"εβδομάδα":"εβδομάδες"},d:function(t){return 1===t?"μέρα":"μέρες"},h:function(t){return 1===t?"ώρα":"ώρες"},m:function(t){return 1===t?"λεπτό":"λεπτά"},s:function(t){return 1===t?"δευτερόλεπτο":"δευτερόλεπτα"},ms:function(t){return 1===t?"χιλιοστό του δευτερολέπτου":"χιλιοστά του δευτερολέπτου"},decimal:","},hu:{y:"év",mo:"hónap",w:"hét",d:"nap",h:"óra",m:"perc",s:"másodperc",ms:"ezredmásodperc",decimal:","},id:{y:"tahun",mo:"bulan",w:"minggu",d:"hari",h:"jam",m:"menit",s:"detik",ms:"milidetik",decimal:"."},is:{y:"ár",mo:function(t){return"mánuð"+(1===t?"ur":"ir")},w:function(t){return"vik"+(1===t?"a":"ur")},d:function(t){return"dag"+(1===t?"ur":"ar")},h:function(t){return"klukkutím"+(1===t?"i":"ar")},m:function(t){return"mínút"+(1===t?"a":"ur")},s:function(t){return"sekúnd"+(1===t?"a":"ur")},ms:function(t){return"millisekúnd"+(1===t?"a":"ur")},decimal:"."},it:{y:function(t){return"ann"+(1===t?"o":"i")},mo:function(t){return"mes"+(1===t?"e":"i")},w:function(t){return"settiman"+(1===t?"a":"e")},d:function(t){return"giorn"+(1===t?"o":"i")},h:function(t){return"or"+(1===t?"a":"e")},m:function(t){return"minut"+(1===t?"o":"i")},s:function(t){return"second"+(1===t?"o":"i")},ms:function(t){return"millisecond"+(1===t?"o":"i")},decimal:","},ja:{y:"年",mo:"月",w:"週",d:"日",h:"時間",m:"分",s:"秒",ms:"ミリ秒",decimal:"."},ko:{y:"년",mo:"개월",w:"주일",d:"일",h:"시간",m:"분",s:"초",ms:"밀리 초",decimal:"."},lt:{y:function(t){return t%10==0||t%100>=10&&20>=t%100?"metų":"metai"},mo:function(t){return["mėnuo","mėnesiai","mėnesių"][l(t)]},w:function(t){return["savaitė","savaitės","savaičių"][l(t)]},d:function(t){return["diena","dienos","dienų"][l(t)]},h:function(t){return["valanda","valandos","valandų"][l(t)]},m:function(t){return["minutė","minutės","minučių"][l(t)]},s:function(t){return["sekundė","sekundės","sekundžių"][l(t)]},ms:function(t){return["milisekundė","milisekundės","milisekundžių"][l(t)]},decimal:","},ms:{y:"tahun",mo:"bulan",w:"minggu",d:"hari",h:"jam",m:"minit",s:"saat",ms:"milisaat",decimal:"."},nl:{y:"jaar",mo:function(t){return 1===t?"maand":"maanden"},w:function(t){return 1===t?"week":"weken"},d:function(t){return 1===t?"dag":"dagen"},h:"uur",m:function(t){return 1===t?"minuut":"minuten"},s:function(t){return 1===t?"seconde":"seconden"},ms:function(t){return 1===t?"milliseconde":"milliseconden"},decimal:","},no:{y:"år",mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uke"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"er")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minutt"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},pl:{y:function(t){return["rok","roku","lata","lat"][s(t)]},mo:function(t){return["miesiąc","miesiąca","miesiące","miesięcy"][s(t)]},w:function(t){return["tydzień","tygodnia","tygodnie","tygodni"][s(t)]},d:function(t){return["dzień","dnia","dni","dni"][s(t)]},h:function(t){return["godzina","godziny","godziny","godzin"][s(t)]},m:function(t){return["minuta","minuty","minuty","minut"][s(t)]},s:function(t){return["sekunda","sekundy","sekundy","sekund"][s(t)]},ms:function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][s(t)]},decimal:","},pt:{y:function(t){return"ano"+(1===t?"":"s")},mo:function(t){return 1!==t?"meses":"mês"},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"dia"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milissegundo"+(1===t?"":"s")},decimal:","},ru:{y:function(t){return["лет","год","года"][f(t)]},mo:function(t){return["месяцев","месяц","месяца"][f(t)]},w:function(t){return["недель","неделя","недели"][f(t)]},d:function(t){return["дней","день","дня"][f(t)]},h:function(t){return["часов","час","часа"][f(t)]},m:function(t){return["минут","минута","минуты"][f(t)]},s:function(t){return["секунд","секунда","секунды"][f(t)]},ms:function(t){return["миллисекунд","миллисекунда","миллисекунды"][f(t)]},decimal:","},uk:{y:function(t){return["років","рік","роки"][f(t)]},mo:function(t){return["місяців","місяць","місяці"][f(t)]},w:function(t){return["неділь","неділя","неділі"][f(t)]},d:function(t){return["днів","день","дні"][f(t)]},h:function(t){return["годин","година","години"][f(t)]},m:function(t){return["хвилин","хвилина","хвилини"][f(t)]},s:function(t){return["секунд","секунда","секунди"][f(t)]},ms:function(t){return["мілісекунд","мілісекунда","мілісекунди"][f(t)]},decimal:","},sv:{y:"år",mo:function(t){return"månad"+(1===t?"":"er")},w:function(t){return"veck"+(1===t?"a":"or")},d:function(t){return"dag"+(1===t?"":"ar")},h:function(t){return"timm"+(1===t?"e":"ar")},m:function(t){return"minut"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},tr:{y:"yıl",mo:"ay",w:"hafta",d:"gün",h:"saat",m:"dakika",s:"saniye",ms:"milisaniye",decimal:","},vi:{y:"năm",mo:"tháng",w:"tuần",d:"ngày",h:"giờ",m:"phút",s:"giây",ms:"mili giây",decimal:","},zh_CN:{y:"年",mo:"个月",w:"周",d:"天",h:"小时",m:"分钟",s:"秒",ms:"毫秒",decimal:"."},zh_TW:{y:"年",mo:"個月",w:"周",d:"天",h:"小時",m:"分鐘",s:"秒",ms:"毫秒",decimal:"."}},h=o({});h.getSupportedLanguages=function(){var t=[];for(var e in p)p.hasOwnProperty(e)&&t.push(e);return t},h.humanizer=o,void 0!==(r=function(){return h}.call(e,n,e,t))&&(t.exports=r)}()},,,,,function(t,e){var n,r,o;!function(i,a){r=[e],n=a,void 0!==(o="function"==typeof n?n.apply(e,r):n)&&(t.exports=o)}(0,function(t){"use strict";function e(t){for(var e=[],n=1;arguments.length>n;n++)e[n-1]=arguments[n];var r=t.raw[0],o=/^\s+|\s+\n|\s+#[\s\S]+?\n/gm,i=r.replace(o,"");return RegExp(i,"m")}var n=function(){function t(){this.VERSION="2.0.2",this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.htmlFormatter={transform:function(t,e){var n=t.text;if(0===n.length)return n;if(e._escape_for_html&&(n=e.old_escape_for_html(n)),!t.bright&&null===t.fg&&null===t.bg)return n;var r=[],o=[],i=t.fg,a=t.bg;null===i&&t.bright&&(i=e.ansi_colors[1][7]),e._use_classes?(i&&("truecolor"!==i.class_name?o.push(i.class_name+"-fg"):r.push("color:rgb("+i.rgb.join(",")+")")),a&&("truecolor"!==a.class_name?o.push(a.class_name+"-bg"):r.push("background-color:rgb("+a.rgb.join(",")+")"))):(i&&r.push("color:rgb("+i.rgb.join(",")+")"),a&&r.push("background-color:rgb("+a.rgb+")"));var u="",c="";return o.length&&(u=' class="'+o.join(" ")+'"'),r.length&&(c=' style="'+r.join(";")+'"'),"<span"+u+c+">"+n+"</span>"},compose:function(t){return t.join("")}},this.textFormatter={transform:function(t){return t.text},compose:function(t){return t.join("")}},this.setup_256_palette(),this._use_classes=!1,this._escape_for_html=!0,this.bright=!1,this.fg=this.bg=null,this._buffer=""}return Object.defineProperty(t.prototype,"use_classes",{get:function(){return this._use_classes},set:function(t){this._use_classes=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"escape_for_html",{get:function(){return this._escape_for_html},set:function(t){this._escape_for_html=t},enumerable:!0,configurable:!0}),t.prototype.setup_256_palette=function(){var t=this;this.palette_256=[],this.ansi_colors.forEach(function(e){e.forEach(function(e){t.palette_256.push(e)})});for(var e=[0,95,135,175,215,255],n=0;6>n;++n)for(var r=0;6>r;++r)for(var o=0;6>o;++o){var i={rgb:[e[n],e[r],e[o]],class_name:"truecolor"};this.palette_256.push(i)}for(var a=8,u=0;24>u;++u,a+=10){this.palette_256.push({rgb:[a,a,a],class_name:"truecolor"})}},t.prototype.old_escape_for_html=function(t){return t.replace(/[&<>]/gm,function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":void 0})},t.prototype.old_linkify=function(t){return t.replace(/(https?:\/\/[^\s]+)/gm,function(t){return'<a href="'+t+'">'+t+"</a>"})},t.prototype.detect_incomplete_ansi=function(t){return!/.*?[\x40-\x7e]/.test(t)},t.prototype.detect_incomplete_link=function(t){for(var e=!1,n=t.length-1;n>0;n--)if(/\s|\x1B/.test(t[n])){e=!0;break}if(!e)return/(https?:\/\/[^\s]+)/.test(t)?0:-1;var r=t.substr(n+1,4);return 0===r.length?-1:0==="http".indexOf(r)?n+1:void 0},t.prototype.ansi_to=function(t,e){var n=this._buffer+t;this._buffer="";var r=n.split(/\x1B\[/);1===r.length&&r.push(""),this.handle_incomplete_sequences(r);for(var o=this.with_state(r.shift()),i=Array(r.length),a=0,u=r.length;u>a;++a)i[a]=e.transform(this.process_ansi(r[a]),this);return o.text.length>0&&i.unshift(e.transform(o,this)),e.compose(i,this)},t.prototype.ansi_to_html=function(t){return this.ansi_to(t,this.htmlFormatter)},t.prototype.ansi_to_text=function(t){return this.ansi_to(t,this.textFormatter)},t.prototype.with_state=function(t){return{bright:this.bright,fg:this.fg,bg:this.bg,text:t}},t.prototype.handle_incomplete_sequences=function(t){var e=t[t.length-1];e.length>0&&this.detect_incomplete_ansi(e)?(this._buffer="["+e,t.pop(),t.push("")):(""===e.slice(-1)&&(this._buffer="",t.pop(),t.push(e.substr(0,e.length-1))),2===t.length&&""===t[1]&&""===t[0].slice(-1)&&(this._buffer="",e=t.shift(),t.unshift(e.substr(0,e.length-1))))},t.prototype.process_ansi=function(t){this._sgr_regex||(this._sgr_regex=(v=["\n ^ # beginning of line\n ([!<-?]?) # a private-mode char (!, <, =, >, ?)\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n ([sS]*) # any text following this CSI sequence\n "],v.raw=["\n ^ # beginning of line\n ([!\\x3c-\\x3f]?) # a private-mode char (!, <, =, >, ?)\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n ([\\s\\S]*) # any text following this CSI sequence\n "],e(v)));var n=t.match(this._sgr_regex);if(!n)return this.with_state(t);var r=n[4];if(""!==n[1]||"m"!==n[3])return this.with_state(r);for(var o=n[2].split(";");o.length>0;){var i=o.shift(),a=parseInt(i,10);if(isNaN(a)||0===a)this.fg=this.bg=null,this.bright=!1;else if(1===a)this.bright=!0;else if(22===a)this.bright=!1;else if(39===a)this.fg=null;else if(49===a)this.bg=null;else if(a>=30&&38>a){var u=this.bright?1:0;this.fg=this.ansi_colors[u][a-30]}else if(a>=90&&98>a)this.fg=this.ansi_colors[1][a-90];else if(a>=40&&48>a)this.bg=this.ansi_colors[0][a-40];else if(a>=100&&108>a)this.bg=this.ansi_colors[1][a-100];else if((38===a||48===a)&&o.length>0){var c=38===a,s=o.shift();if("5"===s&&o.length>0){var f=parseInt(o.shift(),10);0>f||f>255||(c?this.fg=this.palette_256[f]:this.bg=this.palette_256[f])}if("2"===s&&o.length>2){var l=parseInt(o.shift(),10),p=parseInt(o.shift(),10),h=parseInt(o.shift(),10);if(!(0>l||l>255||0>p||p>255||0>h||h>255)){var d={rgb:[l,p,h],class_name:"truecolor"};c?this.fg=d:this.bg=d}}}}return this.with_state(r);var v},t}();Object.defineProperty(t,"__esModule",{value:!0}),t.default=n})},,function(t,e,n){"use strict";(function(r){function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var c=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=n(566),f=o(s),l=n(1),p=o(l),h=n(12),d=o(h),v=n(14),y=o(v),m=n(567),g={component:d.default.any,childFactory:d.default.func,children:d.default.node},b={component:"span",childFactory:function(t){return t}},_=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this,n,r));return o.performAppear=function(t,e){o.currentlyTransitioningKeys[t]=!0,e.componentWillAppear?e.componentWillAppear(o._handleDoneAppearing.bind(o,t,e)):o._handleDoneAppearing(t,e)},o._handleDoneAppearing=function(t,e){e.componentDidAppear&&e.componentDidAppear(),delete o.currentlyTransitioningKeys[t];var n=(0,m.getChildMapping)(o.props.children);n&&n.hasOwnProperty(t)||o.performLeave(t,e)},o.performEnter=function(t,e){o.currentlyTransitioningKeys[t]=!0,e.componentWillEnter?e.componentWillEnter(o._handleDoneEntering.bind(o,t,e)):o._handleDoneEntering(t,e)},o._handleDoneEntering=function(t,e){e.componentDidEnter&&e.componentDidEnter(),delete o.currentlyTransitioningKeys[t];var n=(0,m.getChildMapping)(o.props.children);n&&n.hasOwnProperty(t)||o.performLeave(t,e)},o.performLeave=function(t,e){o.currentlyTransitioningKeys[t]=!0,e.componentWillLeave?e.componentWillLeave(o._handleDoneLeaving.bind(o,t,e)):o._handleDoneLeaving(t,e)},o._handleDoneLeaving=function(t,e){e.componentDidLeave&&e.componentDidLeave(),delete o.currentlyTransitioningKeys[t];var n=(0,m.getChildMapping)(o.props.children);n&&n.hasOwnProperty(t)?o.keysToEnter.push(t):o.setState(function(e){var n=c({},e.children);return delete n[t],{children:n}})},o.childRefs=Object.create(null),o.state={children:(0,m.getChildMapping)(n.children)},o}return u(e,t),e.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},e.prototype.componentDidMount=function(){var t=this.state.children;for(var e in t)t[e]&&this.performAppear(e,this.childRefs[e])},e.prototype.componentWillReceiveProps=function(t){var e=(0,m.getChildMapping)(t.children),n=this.state.children;this.setState({children:(0,m.mergeChildMappings)(n,e)});for(var r in e){var o=n&&n.hasOwnProperty(r);!e[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var i in n){var a=e&&e.hasOwnProperty(i);!n[i]||a||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}},e.prototype.componentDidUpdate=function(){var t=this,e=this.keysToEnter;this.keysToEnter=[],e.forEach(function(e){return t.performEnter(e,t.childRefs[e])});var n=this.keysToLeave;this.keysToLeave=[],n.forEach(function(e){return t.performLeave(e,t.childRefs[e])})},e.prototype.render=function(){var t=this,e=[];for(var n in this.state.children)!function(n){var o=t.state.children[n];if(o){var i="string"!=typeof o.ref,a=t.props.childFactory(o),u=function(e){t.childRefs[n]=e};"production"!==r.env.NODE_ENV&&(0,y.default)(i,"string refs are not supported on children of TransitionGroup and will be ignored. Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute"),a===o&&i&&(u=(0,f.default)(o.ref,u)),e.push(p.default.cloneElement(a,{key:n,ref:u}))}}(n);var o=c({},this.props);return delete o.transitionLeave,delete o.transitionName,delete o.transitionAppear,delete o.transitionEnter,delete o.childFactory,delete o.transitionLeaveTimeout,delete o.transitionEnterTimeout,delete o.transitionAppearTimeout,delete o.component,p.default.createElement(this.props.component,o,e)},e}(p.default.Component);_.displayName="TransitionGroup",_.propTypes="production"!==r.env.NODE_ENV?g:{},_.defaultProps=b,e.default=_,t.exports=e.default}).call(e,n(21))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=!("undefined"==typeof window||!window.document||!window.document.createElement),t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return Error(e+" must be a number (in milliseconds)")}return null}}e.__esModule=!0,e.nameShape=void 0,e.transitionTimeout=o;var i=n(1),a=(r(i),n(12)),u=r(a);e.nameShape=u.default.oneOfType([u.default.string,u.default.shape({enter:u.default.string,leave:u.default.string,active:u.default.string}),u.default.shape({enter:u.default.string,enterActive:u.default.string,leave:u.default.string,leaveActive:u.default.string,appear:u.default.string,appearActive:u.default.string})])},,function(t,e,n){n(203),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(283),n(284),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(110),n(307),n(308),n(152),n(309),n(310),n(311),n(312),n(313),n(155),n(157),n(158),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),t.exports=n(32)},function(t,e,n){"use strict";var r=n(5),o=n(17),i=n(9),a=n(0),u=n(19),c=n(41).KEY,s=n(6),f=n(68),l=n(54),p=n(44),h=n(8),d=n(135),v=n(90),y=n(204),m=n(71),g=n(2),b=n(24),_=n(33),w=n(43),O=n(48),x=n(138),P=n(25),E=n(10),k=n(46),j=P.f,S=E.f,T=x.f,C=r.Symbol,M=r.JSON,N=M&&M.stringify,R=h("_hidden"),A=h("toPrimitive"),L={}.propertyIsEnumerable,I=f("symbol-registry"),F=f("symbols"),D=f("op-symbols"),U=Object.prototype,W="function"==typeof C,B=r.QObject,z=!B||!B.prototype||!B.prototype.findChild,q=i&&s(function(){return 7!=O(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=j(U,e);r&&delete U[e],S(t,e,n),r&&t!==U&&S(U,e,r)}:S,V=function(t){var e=F[t]=O(C.prototype);return e._k=t,e},G=W&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},H=function(t,e,n){return t===U&&H(D,e,n),g(t),e=_(e,!0),g(n),o(F,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=O(n,{enumerable:w(0,!1)})):(o(t,R)||S(t,R,w(1,{})),t[R][e]=!0),q(t,e,n)):S(t,e,n)},Y=function(t,e){g(t);for(var n,r=y(e=b(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},$=function(t,e){return void 0===e?O(t):Y(O(t),e)},K=function(t){var e=L.call(this,t=_(t,!0));return!(this===U&&o(F,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,R)&&this[R][t])||e)},J=function(t,e){if(t=b(t),e=_(e,!0),t!==U||!o(F,e)||o(D,e)){var n=j(t,e);return!n||!o(F,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=T(b(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==R||e==c||r.push(e);return r},X=function(t){for(var e,n=t===U,r=T(n?D:b(t)),i=[],a=0;r.length>a;)!o(F,e=r[a++])||n&&!o(U,e)||i.push(F[e]);return i};W||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(D,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),q(this,t,w(1,n))};return i&&z&&q(U,t,{configurable:!0,set:e}),V(t)},u(C.prototype,"toString",function(){return this._k}),P.f=J,E.f=H,n(49).f=x.f=Q,n(60).f=K,n(70).f=X,i&&!n(45)&&u(U,"propertyIsEnumerable",K,!0),d.f=function(t){return V(h(t))}),a(a.G+a.W+a.F*!W,{Symbol:C});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=k(h.store),nt=0;et.length>nt;)v(et[nt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=C(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!W,"Object",{create:$,defineProperty:H,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:X}),M&&a(a.S+a.F*(!W||s(function(){var t=C();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,N.apply(M,r)}}}),C.prototype[A]||n(18)(C.prototype,A,C.prototype.valueOf),l(C,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(46),o=n(70),i=n(60);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(48)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(9),"Object",{defineProperty:n(10).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(9),"Object",{defineProperties:n(137)})},function(t,e,n){var r=n(24),o=n(25).f;n(36)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){var r=n(13),o=n(26);n(36)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(13),o=n(46);n(36)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){n(36)("getOwnPropertyNames",function(){return n(138).f})},function(t,e,n){var r=n(7),o=n(41).onFreeze;n(36)("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(7),o=n(41).onFreeze;n(36)("seal",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(7),o=n(41).onFreeze;n(36)("preventExtensions",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(7);n(36)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(7);n(36)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(7);n(36)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(139)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(220)})},function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(94).set})},function(t,e,n){"use strict";var r=n(61),o={};o[n(8)("toStringTag")]="z",o+""!="[object z]"&&n(19)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(140)})},function(t,e,n){var r=n(10).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(9)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(7),o=n(26),i=n(8)("hasInstance"),a=Function.prototype;i in a||n(10).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(142);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(143);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(5),o=n(17),i=n(29),a=n(96),u=n(33),c=n(6),s=n(49).f,f=n(25).f,l=n(10).f,p=n(55).trim,h=r.Number,d=h,v=h.prototype,y="Number"==i(n(48)(v)),m="trim"in String.prototype,g=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():p(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,c=e.slice(2),s=0,f=c.length;f>s;s++)if(48>(a=c.charCodeAt(s))||a>o)return NaN;return parseInt(c,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=1>arguments.length?0:t,n=this;return n instanceof h&&(y?c(function(){v.valueOf.call(n)}):"Number"!=i(n))?a(new d(g(e)),n,h):g(e)};for(var b,_=n(9)?s(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(d,b=_[w])&&!o(h,b)&&l(h,b,f(d,b));h.prototype=v,v.constructor=h,n(19)(r,"Number",h)}},function(t,e,n){"use strict";var r=n(0),o=n(35),i=n(144),a=n(97),u=1..toFixed,c=Math.floor,s=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,e){for(var n=-1,r=e;6>++n;)r+=t*s[n],s[n]=r%1e7,r=c(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=s[e],s[e]=c(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==s[t]){var n=s[t]+"";e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)},v=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(6)(function(){u.call({})})),"Number",{toFixed:function(t){var e,n,r,u,c=i(this,f),s=o(t),y="",m="0";if(0>s||s>20)throw RangeError(f);if(c!=c)return"NaN";if(-1e21>=c||c>=1e21)return c+"";if(0>c&&(y="-",c=-c),c>1e-21)if(e=v(c*d(2,69,1))-69,n=0>e?c*d(2,-e,1):c/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(0,n),r=s;r>=7;)l(1e7,0),r-=7;for(l(d(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<<r),l(1,1),p(2),m=h()}else l(0,n),l(1<<-e,0),m=h()+a.call("0",s);return s>0?(u=m.length,m=y+(u>s?m.slice(0,u-s)+"."+m.slice(u-s):"0."+a.call("0",s-u)+m)):m=y+m,m}})},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(144),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(5).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(145)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(145),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&9007199254740991>=i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(143);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(142);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(146),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return 1>(t=+t)?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?0>t?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=n(0),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&0>1/o(-0)),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(98);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(99);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(147)})},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(){for(var t,e,n=0,r=0,i=arguments.length,a=0;i>r;)t=o(arguments[r++]),t>a?(e=a/t,n=n*e*e+1,a=t):t>0?(e=t/a,n+=e*e):n+=t;return a===1/0?1/0:a*Math.sqrt(n)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(6)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(146)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(98)})},function(t,e,n){var r=n(0),o=n(99),i=Math.exp;r(r.S+r.F*n(6)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return 1>Math.abs(t=+t)?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(99),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(47),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(){for(var t,e=[],n=arguments.length,r=0;n>r;){if(t=+arguments[r++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");e.push(65536>t?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return e.join("")}})},function(t,e,n){var r=n(0),o=n(24),i=n(11);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],u=0;n>u;)a.push(e[u++]+""),r>u&&a.push(arguments[u]+"");return a.join("")}})},function(t,e,n){"use strict";n(55)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(100)(!0);n(101)(String,"String",function(t){this._t=t+"",this._i=0},function(){var t,e=this._t,n=this._i;return e.length>n?(t=r(e,n),this._i+=t.length,{value:t,done:!1}):{value:void 0,done:!0}})},function(t,e,n){"use strict";var r=n(0),o=n(100)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(11),i=n(103),a="".endsWith;r(r.P+r.F*n(104)("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),u=void 0===n?r:Math.min(o(n),r),c=t+"";return a?a.call(e,c,u):e.slice(u-c.length,u)===c}})},function(t,e,n){"use strict";var r=n(0),o=n(103);r(r.P+r.F*n(104)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(97)})},function(t,e,n){"use strict";var r=n(0),o=n(11),i=n(103),a="".startsWith;r(r.P+r.F*n(104)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=t+"";return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(20)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(20)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(20)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(20)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(20)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(20)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(20)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(20)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(20)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(20)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(20)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(20)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(20)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(13),i=n(33);r(r.P+r.F*n(6)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(){var t=o(this),e=i(t);return"number"!=typeof e||isFinite(e)?t.toISOString():null}})},function(t,e,n){var r=n(0),o=n(282);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(6),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=0>e?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(19)(r,"toString",function(){var t=i.call(this);return t===t?o.call(this):"Invalid Date"})},function(t,e,n){var r=n(8)("toPrimitive"),o=Date.prototype;r in o||n(18)(o,r,n(285))},function(t,e,n){"use strict";var r=n(2),o=n(33);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(71)})},function(t,e,n){"use strict";var r=n(28),o=n(0),i=n(13),a=n(148),u=n(105),c=n(11),s=n(106),f=n(107);o(o.S+o.F*!n(73)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,m=0,g=f(p);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==g||h==Array&&u(g))for(e=c(p.length),n=new h(e);e>m;m++)s(n,m,y?v(p[m],m):p[m]);else for(l=g.call(p),n=new h;!(o=l.next()).done;m++)s(n,m,y?a(l,v,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(0),o=n(106);r(r.S+r.F*n(6)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(24),i=[].join;r(r.P+r.F*(n(59)!=Object||!n(30)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(93),i=n(29),a=n(47),u=n(11),c=[].slice;r(r.P+r.F*n(6)(function(){o&&c.call(o)}),"Array",{slice:function(t,e){var n=u(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var o=a(t,n),s=a(e,n),f=u(s-o),l=Array(f),p=0;f>p;p++)l[p]="String"==r?this.charAt(o+p):this[o+p];return l}})},function(t,e,n){"use strict";var r=n(0),o=n(15),i=n(13),a=n(6),u=[].sort,c=[1,2,3];r(r.P+r.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!n(30)(u)),"Array",{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(37)(0);r(r.P+r.F*!n(30)([].forEach,!0),"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(7),o=n(71),i=n(8)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(37)(1);r(r.P+r.F*!n(30)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(37)(2);r(r.P+r.F*!n(30)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(37)(3);r(r.P+r.F*!n(30)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(37)(4);r(r.P+r.F*!n(30)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(149);r(r.P+r.F*!n(30)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(149);r(r.P+r.F*!n(30)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(69)(!1),i=[].indexOf,a=!!i&&0>1/[1].indexOf(1,-0);r(r.P+r.F*(a||!n(30)(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(24),i=n(35),a=n(11),u=[].lastIndexOf,c=!!u&&0>1/[1].lastIndexOf(1,-0);r(r.P+r.F*(c||!n(30)(u)),"Array",{lastIndexOf:function(t){if(c)return u.apply(this,arguments)||0;var e=o(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),0>r&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(150)}),n(42)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(109)}),n(42)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(37)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(42)("find")},function(t,e,n){"use strict";var r=n(0),o=n(37)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(42)(i)},function(t,e,n){n(50)("Array")},function(t,e,n){var r=n(5),o=n(96),i=n(10).f,a=n(49).f,u=n(72),c=n(74),s=r.RegExp,f=s,l=s.prototype,p=/a/g,h=/a/g,d=new s(p)!==p;if(n(9)&&(!d||n(6)(function(){return h[n(8)("match")]=!1,s(p)!=p||s(h)==h||"/a/i"!=s(p,"i")}))){s=function(t,e){var n=this instanceof s,r=u(t),i=void 0===e;return!n&&r&&t.constructor===s&&i?t:o(d?new f(r&&!i?t.source:t,e):f((r=t instanceof s)?t.source:t,r&&i?c.call(t):e),n?this:l,s)};for(var v=a(f),y=0;v.length>y;)!function(t){t in s||i(s,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})}(v[y++]);l.constructor=s,s.prototype=l,n(19)(r,"RegExp",s)}n(50)("RegExp")},function(t,e,n){"use strict";n(152);var r=n(2),o=n(74),i=n(9),a=/./.toString,u=function(t){n(19)(RegExp.prototype,"toString",t,!0)};n(6)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&u(function(){return a.call(this)})},function(t,e,n){n(75)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):RegExp(n)[e](r+"")},n]})},function(t,e,n){n(75)("replace",2,function(t,e,n){return[function(r,o){"use strict";var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(i+"",r,o)},n]})},function(t,e,n){n(75)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):RegExp(n)[e](r+"")},n]})},function(t,e,n){n(75)("split",2,function(t,e,r){"use strict";var o=n(72),i=r,a=[].push,u="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[u]||2!="ab".split(/(?:ab)*/)[u]||4!=".".split(/(.?)(.?)/)[u]||".".split(/()()/)[u]>1||"".split(/.?/)[u]){var c=void 0===/()??/.exec("")[1];r=function(t,e){var n=this+"";if(void 0===t&&0===e)return[];if(!o(t))return i.call(n,t,e);var r,s,f,l,p,h=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,y=void 0===e?4294967295:e>>>0,m=RegExp(t.source,d+"g");for(c||(r=RegExp("^"+m.source+"$(?!\\s)",d));(s=m.exec(n))&&((f=s.index+s[0][u])<=v||(h.push(n.slice(v,s.index)),!c&&s[u]>1&&s[0].replace(r,function(){for(p=1;arguments[u]-2>p;p++)void 0===arguments[p]&&(s[p]=void 0)}),s[u]>1&&n[u]>s.index&&a.apply(h,s.slice(1)),l=s[0][u],v=f,y>h[u]));)m.lastIndex===s.index&&m.lastIndex++;return v===n[u]?!l&&m.test("")||h.push(""):h.push(n.slice(v)),h[u]>y?h.slice(0,y):h}}else"0".split(void 0,0)[u]&&(r=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(n,o){var i=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,o):r.call(i+"",n,o)},r]})},function(t,e,n){"use strict";var r,o,i,a,u=n(45),c=n(5),s=n(28),f=n(61),l=n(0),p=n(7),h=n(15),d=n(51),v=n(52),y=n(76),m=n(111).set,g=n(112)(),b=n(113),_=n(153),w=n(154),O=c.TypeError,x=c.process,P=c.Promise,E="process"==f(x),k=function(){},j=o=b.f,S=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n(8)("species")]=function(t){t(k,k)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),T=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},C=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,a=o?e.ok:e.fail,u=e.resolve,c=e.reject,s=e.domain;try{a?(o||(2==t._h&&R(t),t._h=1),!0===a?n=r:(s&&s.enter(),n=a(r),s&&s.exit()),n===e.promise?c(O("Promise-chain cycle")):(i=T(n))?i.call(n,u,c):u(n)):c(r)}catch(t){c(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){m.call(c,function(){var e,n,r,o=t._v,i=N(t);if(i&&(e=_(function(){E?x.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=E||N(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},N=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!N(e.promise))return!1;return!0},R=function(t){m.call(c,function(){var e;E?x.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),C(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=T(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(L,r,1),s(A,r,1))}catch(t){A.call(r,t)}}):(n._v=t,n._s=1,C(n,!1))}catch(t){A.call({_w:n,_d:!1},t)}}};S||(P=function(t){d(this,P,"Promise","_h"),h(t),r.call(this);try{t(s(L,this,1),s(A,this,1))}catch(t){A.call(this,t)}},r=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(53)(P.prototype,{then:function(t,e){var n=j(y(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?x.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(L,t,1),this.reject=s(A,t,1)},b.f=j=function(t){return t===P||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!S,{Promise:P}),n(54)(P,"Promise"),n(50)("Promise"),a=n(32).Promise,l(l.S+l.F*!S,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!S),"Promise",{resolve:function(t){return w(u&&this===a?P:this,t)}}),l(l.S+l.F*!(S&&n(73)(function(t){P.all(t).catch(k)})),"Promise",{all:function(t){var e=this,n=j(e),r=n.resolve,o=n.reject,i=_(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=j(e),r=n.reject,o=_(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(159),o=n(57);n(77)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(78),i=n(114),a=n(2),u=n(47),c=n(11),s=n(7),f=n(5).ArrayBuffer,l=n(76),p=i.ArrayBuffer,h=i.DataView,d=o.ABV&&f.isView,v=p.prototype.slice,y=o.VIEW;r(r.G+r.W+r.F*(f!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||s(t)&&y in t}}),r(r.P+r.U+r.F*n(6)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var n=a(this).byteLength,r=u(t,n),o=u(void 0===e?n:e,n),i=new(l(this,p))(c(o-r)),s=new h(this),f=new h(i),d=0;o>r;)f.setUint8(d++,s.getUint8(r++));return i}}),n(50)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(78).ABV,{DataView:n(114).DataView})},function(t,e,n){n(38)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(38)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(0),o=n(15),i=n(2),a=(n(5).Reflect||{}).apply,u=Function.apply;r(r.S+r.F*!n(6)(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var r=o(t),c=i(n);return a?a(r,e,c):u.call(r,e,c)}})},function(t,e,n){var r=n(0),o=n(48),i=n(15),a=n(2),u=n(7),c=n(6),s=n(140),f=(n(5).Reflect||{}).construct,l=c(function(){function t(){}return!(f(function(){},[],t)instanceof t)}),p=!c(function(){f(function(){})});r(r.S+r.F*(l||p),"Reflect",{construct:function(t,e){i(t),a(e);var n=3>arguments.length?t:i(arguments[2]);if(p&&!l)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var c=n.prototype,h=o(u(c)?c:Object.prototype),d=Function.apply.call(t,h,e);return u(d)?d:h}})},function(t,e,n){var r=n(10),o=n(0),i=n(2),a=n(33);o(o.S+o.F*n(6)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(25).f,i=n(2);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(2),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(102)(i,"Object",function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){function r(t,e){var n,u,f=3>arguments.length?t:arguments[2];return s(t)===f?t[e]:(n=o.f(t,e))?a(n,"value")?n.value:void 0!==n.get?n.get.call(f):void 0:c(u=i(t))?r(u,e,f):void 0}var o=n(25),i=n(26),a=n(17),u=n(0),c=n(7),s=n(2);u(u.S,"Reflect",{get:r})},function(t,e,n){var r=n(25),o=n(0),i=n(2);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(0),o=n(26),i=n(2);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(2),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(161)})},function(t,e,n){var r=n(0),o=n(2),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var c,p,h=4>arguments.length?t:arguments[3],d=i.f(f(t),e);if(!d){if(l(p=a(t)))return r(p,e,n,h);d=s(0)}return u(d,"value")?!(!1===d.writable||!l(h))&&(c=i.f(h,e)||s(0),c.value=n,o.f(h,e,c),!0):void 0!==d.set&&(d.set.call(h,n),!0)}var o=n(10),i=n(25),a=n(26),u=n(17),c=n(0),s=n(43),f=n(2),l=n(7);c(c.S,"Reflect",{set:r})},function(t,e,n){var r=n(0),o=n(94);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var r=n(0),o=n(69)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(42)("includes")},function(t,e,n){"use strict";var r=n(0),o=n(162),i=n(13),a=n(11),u=n(15),c=n(108);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return u(t),e=a(r.length),n=c(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(42)("flatMap")},function(t,e,n){"use strict";var r=n(0),o=n(162),i=n(13),a=n(11),u=n(35),c=n(108);r(r.P,"Array",{flatten:function(){var t=arguments[0],e=i(this),n=a(e.length),r=c(e,0);return o(r,e,e,n,0,void 0===t?1:u(t)),r}}),n(42)("flatten")},function(t,e,n){"use strict";var r=n(0),o=n(100)(!0);r(r.P,"String",{at:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(163);r(r.P,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(163);r(r.P,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";n(55)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(55)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){"use strict";var r=n(0),o=n(34),i=n(11),a=n(72),u=n(74),c=RegExp.prototype,s=function(t,e){this._r=t,this._s=e};n(102)(s,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){if(o(this),!a(t))throw TypeError(t+" is not a regexp!");var e=this+"",n="flags"in c?t.flags+"":u.call(t),r=RegExp(t.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=i(t.lastIndex),new s(r,e)}})},function(t,e,n){n(90)("asyncIterator")},function(t,e,n){n(90)("observable")},function(t,e,n){var r=n(0),o=n(161),i=n(24),a=n(25),u=n(106);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),c=a.f,s=o(r),f={},l=0;s.length>l;)void 0!==(n=c(r,e=s[l++]))&&u(f,e,n);return f}})},function(t,e,n){var r=n(0),o=n(164)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){var r=n(0),o=n(164)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";var r=n(0),o=n(13),i=n(15),a=n(10);n(9)&&r(r.P+n(79),"Object",{__defineGetter__:function(t,e){a.f(o(this),t,{get:i(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(0),o=n(13),i=n(15),a=n(10);n(9)&&r(r.P+n(79),"Object",{__defineSetter__:function(t,e){a.f(o(this),t,{set:i(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(0),o=n(13),i=n(33),a=n(26),u=n(25).f;n(9)&&r(r.P+n(79),"Object",{__lookupGetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=u(n,r))return e.get}while(n=a(n))}})},function(t,e,n){"use strict";var r=n(0),o=n(13),i=n(33),a=n(26),u=n(25).f;n(9)&&r(r.P+n(79),"Object",{__lookupSetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=u(n,r))return e.set}while(n=a(n))}})},function(t,e,n){var r=n(0);r(r.P+r.R,"Map",{toJSON:n(165)("Map")})},function(t,e,n){var r=n(0);r(r.P+r.R,"Set",{toJSON:n(165)("Set")})},function(t,e,n){n(80)("Map")},function(t,e,n){n(80)("Set")},function(t,e,n){n(80)("WeakMap")},function(t,e,n){n(80)("WeakSet")},function(t,e,n){n(81)("Map")},function(t,e,n){n(81)("Set")},function(t,e,n){n(81)("WeakMap")},function(t,e,n){n(81)("WeakSet")},function(t,e,n){var r=n(0);r(r.G,{global:n(5)})},function(t,e,n){var r=n(0);r(r.S,"System",{global:n(5)})},function(t,e,n){var r=n(0),o=n(29);r(r.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,n){var r=n(0),o=180/Math.PI;r(r.S,"Math",{degrees:function(t){return t*o}})},function(t,e,n){var r=n(0),o=n(167),i=n(147);r(r.S,"Math",{fscale:function(t,e,n,r,a){return i(o(t,e,n,r,a))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{iaddh:function(t,e,n,r){var o=t>>>0,i=e>>>0,a=n>>>0;return i+(r>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{isubh:function(t,e,n,r){var o=t>>>0,i=e>>>0,a=n>>>0;return i-(r>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},function(t,e,n){var r=n(0);r(r.S,"Math",{imulh:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r,a=n>>16,u=r>>16,c=(a*i>>>0)+(o*i>>>16);return a*u+(c>>16)+((o*u>>>0)+(65535&c)>>16)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,n){var r=n(0),o=Math.PI/180;r(r.S,"Math",{radians:function(t){return t*o}})},function(t,e,n){var r=n(0);r(r.S,"Math",{scale:n(167)})},function(t,e,n){var r=n(0);r(r.S,"Math",{umulh:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r,a=n>>>16,u=r>>>16,c=(a*i>>>0)+(o*i>>>16);return a*u+(c>>>16)+((o*u>>>0)+(65535&c)>>>16)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,n){"use strict";var r=n(0),o=n(32),i=n(5),a=n(76),u=n(154);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(0),o=n(113),i=n(153);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){var r=n(39),o=n(2),i=r.key,a=r.set;r.exp({defineMetadata:function(t,e,n,r){a(t,e,o(n),i(r))}})},function(t,e,n){var r=n(39),o=n(2),i=r.key,a=r.map,u=r.store;r.exp({deleteMetadata:function(t,e){var n=3>arguments.length?void 0:i(arguments[2]),r=a(o(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var c=u.get(e);return c.delete(n),!!c.size||u.delete(e)}})},function(t,e,n){var r=n(39),o=n(2),i=n(26),a=r.has,u=r.get,c=r.key,s=function(t,e,n){if(a(t,e,n))return u(t,e,n);var r=i(e);return null!==r?s(t,r,n):void 0};r.exp({getMetadata:function(t,e){return s(t,o(e),3>arguments.length?void 0:c(arguments[2]))}})},function(t,e,n){var r=n(157),o=n(166),i=n(39),a=n(2),u=n(26),c=i.keys,s=i.key,f=function(t,e){var n=c(t,e),i=u(t);if(null===i)return n;var a=f(i,e);return a.length?n.length?o(new r(n.concat(a))):a:n};i.exp({getMetadataKeys:function(t){return f(a(t),2>arguments.length?void 0:s(arguments[1]))}})},function(t,e,n){var r=n(39),o=n(2),i=r.get,a=r.key;r.exp({getOwnMetadata:function(t,e){return i(t,o(e),3>arguments.length?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(39),o=n(2),i=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(t){return i(o(t),2>arguments.length?void 0:a(arguments[1]))}})},function(t,e,n){var r=n(39),o=n(2),i=n(26),a=r.has,u=r.key,c=function(t,e,n){if(a(t,e,n))return!0;var r=i(e);return null!==r&&c(t,r,n)};r.exp({hasMetadata:function(t,e){return c(t,o(e),3>arguments.length?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(39),o=n(2),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,e){return i(t,o(e),3>arguments.length?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(39),o=n(2),i=n(15),a=r.key,u=r.set;r.exp({metadata:function(t,e){return function(n,r){u(t,e,(void 0!==r?o:i)(n),a(r))}}})},function(t,e,n){var r=n(0),o=n(112)(),i=n(5).process,a="process"==n(29)(i);r(r.G,{asap:function(t){var e=a&&i.domain;o(e?e.bind(t):t)}})},function(t,e,n){"use strict";var r=n(0),o=n(5),i=n(32),a=n(112)(),u=n(8)("observable"),c=n(15),s=n(2),f=n(51),l=n(53),p=n(18),h=n(52),d=h.RETURN,v=function(t){return null==t?void 0:c(t)},y=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},g=function(t){m(t)||(t._o=void 0,y(t))},b=function(t,e){s(t),this._c=void 0,this._o=t,t=new _(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:c(n),this._c=n)}catch(e){return void t.error(e)}m(this)&&y(this)};b.prototype=l({},{unsubscribe:function(){g(this)}});var _=function(t){this._s=t};_.prototype=l({},{next:function(t){var e=this._s;if(!m(e)){var n=e._o;try{var r=v(n.next);if(r)return r.call(n,t)}catch(t){try{g(e)}finally{throw t}}}},error:function(t){var e=this._s;if(m(e))throw t;var n=e._o;e._o=void 0;try{var r=v(n.error);if(!r)throw t;t=r.call(n,t)}catch(t){try{y(e)}finally{throw t}}return y(e),t},complete:function(t){var e=this._s;if(!m(e)){var n=e._o;e._o=void 0;try{var r=v(n.complete);t=r?r.call(n,t):void 0}catch(t){try{y(e)}finally{throw t}}return y(e),t}}});var w=function(t){f(this,w,"Observable","_f")._f=c(t)};l(w.prototype,{subscribe:function(t){return new b(t,this._f)},forEach:function(t){var e=this;return new(i.Promise||o.Promise)(function(n,r){c(t);var o=e.subscribe({next:function(e){try{return t(e)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n})})}}),l(w,{from:function(t){var e="function"==typeof this?this:w,n=v(s(t)[u]);if(n){var r=s(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return a(function(){if(!n){try{if(h(t,!1,function(t){if(e.next(t),n)return d})===d)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=Array(e);e>t;)n[t]=arguments[t++];return new("function"==typeof this?this:w)(function(t){var e=!1;return a(function(){if(!e){for(var r=0;n.length>r;++r)if(t.next(n[r]),e)return;t.complete()}}),function(){e=!0}})}}),p(w.prototype,u,function(){return this}),r(r.G,{Observable:w}),n(50)("Observable")},function(t,e,n){var r=n(5),o=n(0),i=r.navigator,a=[].slice,u=!!i&&/MSIE .\./.test(i.userAgent),c=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*u,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){var r=n(0),o=n(111);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(110),o=n(46),i=n(19),a=n(5),u=n(18),c=n(56),s=n(8),f=s("iterator"),l=s("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),v=0;d.length>v;v++){var y,m=d[v],g=h[m],b=a[m],_=b&&b.prototype;if(_&&(_[f]||u(_,f,p),_[l]||u(_,l,m),c[m]=p,g))for(y in r)_[y]||i(_,y,r[y],!0)}},function(t,e,n){(function(e){!function(e){"use strict";function n(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype);return a._invoke=s(t,n,new h(r||[])),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function n(e,o,i,a){var u=r(t[e],t,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&g.call(s,"__await")?Promise.resolve(s.__await).then(function(t){n("next",t,i,a)},function(t){n("throw",t,i,a)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},a)}a(u.arg)}function o(t,e){function r(){return new Promise(function(r,o){n(t,e,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof e.process&&e.process.domain&&(n=e.process.domain.bind(n));var i;this._invoke=o}function s(t,e,n){var o=E;return function(i,a){if(o===j)throw Error("Generator is already running");if(o===S){if("throw"===i)throw a;return v()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=f(u,n);if(c){if(c===T)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===E)throw o=S,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=j;var s=r(t,e,n);if("normal"===s.type){if(o=n.done?S:k,s.arg===T)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=S,n.method="throw",n.arg=s.arg)}}}function f(t,e){var n=t.iterator[e.method];if(n===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,f(t,e),"throw"===e.method))return T;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,T;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,T):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,T)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function d(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=y,e.done=!0,e};return r.next=r}}return{next:v}}function v(){return{value:y,done:!0}}var y,m=Object.prototype,g=m.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",O=b.toStringTag||"@@toStringTag",x="object"==typeof t,P=e.regeneratorRuntime;if(P)return void(x&&(t.exports=P));P=e.regeneratorRuntime=x?t.exports:{},P.wrap=n;var E="suspendedStart",k="suspendedYield",j="executing",S="completed",T={},C={};C[_]=function(){return this};var M=Object.getPrototypeOf,N=M&&M(M(d([])));N&&N!==m&&g.call(N,_)&&(C=N);var R=a.prototype=o.prototype=Object.create(C);i.prototype=R.constructor=a,a.constructor=i,a[O]=i.displayName="GeneratorFunction",P.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},P.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,O in t||(t[O]="GeneratorFunction")),t.prototype=Object.create(R),t},P.awrap=function(t){return{__await:t}},u(c.prototype),c.prototype[w]=function(){return this},P.AsyncIterator=c,P.async=function(t,e,r,o){var i=new c(n(t,e,r,o));return P.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},u(R),R[O]="Generator",R[_]=function(){return this},R.toString=function(){return"[object Generator]"},P.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},P.values=d,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=y),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(this.prev>=o.tryLoc){var a=g.call(o,"catchLoc"),u=g.call(o,"finallyLoc");if(a&&u){if(o.catchLoc>this.prev)return e(o.catchLoc,!0);if(o.finallyLoc>this.prev)return e(o.finallyLoc)}else if(a){if(o.catchLoc>this.prev)return e(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(this.prev>=r.tryLoc&&g.call(r,"finallyLoc")&&r.finallyLoc>this.prev){var o=r;break}}!o||"break"!==t&&"continue"!==t||o.tryLoc>e||e>o.finallyLoc||(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,T):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),T},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),T}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:d(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=y),T}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,n(88))},function(t,e,n){n(401),t.exports=n(32).RegExp.escape},function(t,e,n){var r=n(0),o=n(402)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return o(t)}})},function(t){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return(e+"").replace(t,n)}}},function(t,e,n){"use strict";(function(e){var r=n(115),o=n(116),i=n(168),a=n(117),u=n(404);t.exports=function(t,n){function c(t){var e=t&&(E&&t[E]||t[k]);if("function"==typeof e)return e}function s(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e}function f(t){this.message=t,this.stack=""}function l(t){function r(r,s,l,p,h,d,v){if(p=p||j,d=d||l,v!==a)if(n)o(!1,"Calling PropTypes validators directly is not supported by the ` + "`" + `prop-types` + "`" + ` package. Use ` + "`" + `PropTypes.checkPropTypes()` + "`" + ` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var y=p+":"+l;!u[y]&&3>c&&(i(!1,"You are manually calling a React.PropTypes validation function for the ` + "`" + `%s` + "`" + ` prop on ` + "`" + `%s` + "`" + `. This is deprecated and will throw in the standalone ` + "`" + `prop-types` + "`" + ` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",d,p),u[y]=!0,c++)}return null==s[l]?r?new f(null===s[l]?"The "+h+" ` + "`" + `"+d+"` + "`" + ` is marked as required in ` + "`" + `"+p+"` + "`" + `, but its value is ` + "`" + `null` + "`" + `.":"The "+h+" ` + "`" + `"+d+"` + "`" + ` is marked as required in ` + "`" + `"+p+"` + "`" + `, but its value is ` + "`" + `undefined` + "`" + `."):null:t(s,l,p,h,d)}if("production"!==e.env.NODE_ENV)var u={},c=0;var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function p(t){function e(e,n,r,o,i){var a=e[n];if(w(a)!==t)return new f("Invalid "+o+" ` + "`" + `"+i+"` + "`" + ` of type ` + "`" + `"+O(a)+"` + "`" + ` supplied to ` + "`" + `"+r+"` + "`" + `, expected ` + "`" + `"+t+"` + "`" + `.");return null}return l(e)}function h(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property ` + "`" + `"+i+"` + "`" + ` of component ` + "`" + `"+r+"` + "`" + ` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u)){return new f("Invalid "+o+" ` + "`" + `"+i+"` + "`" + ` of type ` + "`" + `"+w(u)+"` + "`" + ` supplied to ` + "`" + `"+r+"` + "`" + `, expected an array.")}for(var c=0;u.length>c;c++){var s=t(u,c,r,o,i+"["+c+"]",a);if(s instanceof Error)return s}return null}return l(e)}function d(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||j;return new f("Invalid "+o+" ` + "`" + `"+i+"` + "`" + ` of type ` + "`" + `"+P(e[n])+"` + "`" + ` supplied to ` + "`" + `"+r+"` + "`" + `, expected instance of ` + "`" + `"+a+"` + "`" + `.")}return null}return l(e)}function v(t){function n(e,n,r,o,i){for(var a=e[n],u=0;t.length>u;u++)if(s(a,t[u]))return null;return new f("Invalid "+o+" ` + "`" + `"+i+"` + "`" + ` of value ` + "`" + `"+a+"` + "`" + ` supplied to ` + "`" + `"+r+"` + "`" + `, expected one of "+JSON.stringify(t)+".")}return Array.isArray(t)?l(n):("production"!==e.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)}function y(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property ` + "`" + `"+i+"` + "`" + ` of component ` + "`" + `"+r+"` + "`" + ` has invalid PropType notation inside objectOf.");var u=e[n],c=w(u);if("object"!==c)return new f("Invalid "+o+" ` + "`" + `"+i+"` + "`" + ` of type ` + "`" + `"+c+"` + "`" + ` supplied to ` + "`" + `"+r+"` + "`" + `, expected an object.");for(var s in u)if(u.hasOwnProperty(s)){var l=t(u,s,r,o,i+"."+s,a);if(l instanceof Error)return l}return null}return l(e)}function m(t){function n(e,n,r,o,i){for(var u=0;t.length>u;u++){if(null==(0,t[u])(e,n,r,o,i,a))return null}return new f("Invalid "+o+" ` + "`" + `"+i+"` + "`" + ` supplied to ` + "`" + `"+r+"` + "`" + `.")}if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var o=0;t.length>o;o++){var u=t[o];if("function"!=typeof u)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",x(u),o),r.thatReturnsNull}return l(n)}function g(t){function e(e,n,r,o,i){var u=e[n],c=w(u);if("object"!==c)return new f("Invalid "+o+" ` + "`" + `"+i+"` + "`" + ` of type ` + "`" + `"+c+"` + "`" + ` supplied to ` + "`" + `"+r+"` + "`" + `, expected ` + "`" + `object` + "`" + `.");for(var s in t){var l=t[s];if(l){var p=l(u,s,r,o,i+"."+s,a);if(p)return p}}return null}return l(e)}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||t(e))return!0;var n=c(e);if(!n)return!1;var r,o=n.call(e);if(n!==e.entries){for(;!(r=o.next()).done;)if(!b(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!b(i[1]))return!1}return!0;default:return!1}}function _(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function w(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":_(e,t)?"symbol":e}function O(t){if(void 0===t||null===t)return""+t;var e=w(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=O(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function P(t){return t.constructor&&t.constructor.name?t.constructor.name:j}var E="function"==typeof Symbol&&Symbol.iterator,k="@@iterator",j="<<anonymous>>",S={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:function(){return l(r.thatReturnsNull)}(),arrayOf:h,element:function(){function e(e,n,r,o,i){var a=e[n];if(!t(a)){return new f("Invalid "+o+" ` + "`" + `"+i+"` + "`" + ` of type ` + "`" + `"+w(a)+"` + "`" + ` supplied to ` + "`" + `"+r+"` + "`" + `, expected a single ReactElement.")}return null}return l(e)}(),instanceOf:d,node:function(){function t(t,e,n,r,o){return b(t[e])?null:new f("Invalid "+r+" ` + "`" + `"+o+"` + "`" + ` supplied to ` + "`" + `"+n+"` + "`" + `, expected a ReactNode.")}return l(t)}(),objectOf:y,oneOf:v,oneOfType:m,shape:g};return f.prototype=Error.prototype,S.checkPropTypes=u,S.PropTypes=S,S}}).call(e,n(21))},function(t,e,n){"use strict";(function(e){function r(t,n,r,c,s){if("production"!==e.env.NODE_ENV)for(var f in t)if(t.hasOwnProperty(f)){var l;try{o("function"==typeof t[f],"%s: %s type ` + "`" + `%s` + "`" + ` is invalid; it must be a function, usually from React.PropTypes.",c||"React class",r,f),l=t[f](n,f,c,r,null,a)}catch(t){l=t}if(i(!l||l instanceof Error,"%s: type specification of %s ` + "`" + `%s` + "`" + ` is invalid; the type checker function must return ` + "`" + `null` + "`" + ` or an ` + "`" + `Error` + "`" + ` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",r,f,typeof l),l instanceof Error&&!(l.message in u)){u[l.message]=!0;var p=s?s():"";i(!1,"Failed %s type: %s%s",r,l.message,null!=p?p:"")}}}if("production"!==e.env.NODE_ENV)var o=n(116),i=n(168),a=n(117),u={};t.exports=r}).call(e,n(21))},function(t,e,n){"use strict";var r=n(115),o=n(116),i=n(117);t.exports=function(){function t(t,e,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the ` + "`" + `prop-types` + "`" + ` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=r,n.PropTypes=n,n}},,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t){return t.name||t.displayName||"Component"}function c(t,e){throw _('baobab-react/higher-order.branch: given cursors mapping is invalid (check the "'+t+'" component).',{mapping:e})}function s(t,e){if(!(t instanceof y.default))throw _("baobab-react/higher-order.root: given tree is not a Baobab.",{target:t});if("function"!=typeof e)throw Error("baobab-react/higher-order.root: given target is not a valid React component.");var n=u(e),r=function(n){function r(){return o(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,n),p(r,[{key:"getChildContext",value:function(){return{tree:t}}},{key:"render",value:function(){return d.default.createElement(e,this.props)}}]),r}(d.default.Component);return r.displayName="Rooted"+n,r.childContextTypes={tree:b.default.baobab},r}function f(t,e){if("function"!=typeof e)throw Error("baobab-react/higher-order.branch: given target is not a valid React component.");var n=u(e);w(t)||"function"==typeof t||c(n,t);var r=function(r){function u(e,r){o(this,u);var a=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e,r));if(t){var s=(0,m.solveMapping)(t,e,r);s||c(n,s),a.watcher=a.context.tree.watch(s),a.state=a.watcher.get()}return a}return a(u,r),p(u,[{key:"getDecoratedComponentInstance",value:function(){return this.decoratedComponentInstance}},{key:"handleChildRef",value:function(t){this.decoratedComponentInstance=t}}]),p(u,[{key:"componentWillMount",value:function(){var t=this;if(this.dispatcher=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];return e.apply(void 0,[t.context.tree].concat(r))},this.watcher){this.watcher.on("update",function(){t.watcher&&t.setState(t.watcher.get())})}}},{key:"render",value:function(){return d.default.createElement(e,l({},this.props,{dispatch:this.dispatcher},this.state,{ref:this.handleChildRef.bind(this)}))}},{key:"componentWillUnmount",value:function(){this.watcher&&(this.watcher.release(),this.watcher=null)}},{key:"componentWillReceiveProps",value:function(e){if(this.watcher&&"function"==typeof t){var r=(0,m.solveMapping)(t,e,this.context);r||c(n,r),this.watcher.refresh(r),this.setState(this.watcher.get())}}}]),u}(d.default.Component);return r.displayName="Branched"+n,r.contextTypes={tree:b.default.baobab},r}Object.defineProperty(e,"__esModule",{value:!0}),e.branch=e.root=void 0;var l=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(1),d=r(h),v=n(62),y=r(v),m=n(171),g=n(120),b=r(g),_=y.default.helpers.makeError,w=y.default.type.object,O=(0,m.curry)(s,2),x=(0,m.curry)(f,2);e.root=O,e.branch=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(t,e,n){for(var r=!0;r;){var o=t,i=e,a=n;r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,i);if(void 0!==u){if("value"in u)return u.value;var c=u.get;if(void 0===c)return;return c.call(a)}var s=Object.getPrototypeOf(o);if(null===s)return;t=s,e=i,n=a,r=!0,u=s=void 0}},c=n(119),s=r(c),f=n(169),l=r(f),p=n(58),h=r(p),d=n(63);e.default=function(t){function e(t,n){var r=this;o(this,e),u(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.tree=t,this.mapping=null,this.state={killed:!1},this.refresh(n),this.handler=function(t){if(!r.state.killed){var e=r.getWatchedPaths();return(0,d.solveUpdate)(t.data.paths,e)?r.emit("update"):void 0}},this.tree.on("update",this.handler)}return i(e,t),a(e,[{key:"getWatchedPaths",value:function(){var t=this;return Object.keys(this.mapping).map(function(e){var n=t.mapping[e];return n instanceof l.default?n.solvedPath:t.mapping[e]}).reduce(function(e,n){if(n=[].concat(n),h.default.dynamicPath(n)&&(n=(0,d.getIn)(t.tree._data,n).solvedPath),!n)return e;var r=h.default.monkeyPath(t.tree._monkeys,n);return e.concat(r?(0,d.getIn)(t.tree._monkeys,r).data.relatedPaths():[n])},[])}},{key:"getCursors",value:function(){var t=this,e={};return Object.keys(this.mapping).forEach(function(n){var r=t.mapping[n];e[n]=r instanceof l.default?r:t.tree.select(r)}),e}},{key:"refresh",value:function(t){if(!h.default.watcherMapping(t))throw(0,d.makeError)("Baobab.watch: invalid mapping.",{mapping:t});this.mapping=t;var e={};for(var n in t)e[n]=t[n]instanceof l.default?t[n].path:t[n];this.get=this.tree.project.bind(this.tree,e)}},{key:"release",value:function(){this.tree.off("update",this.handler),this.state.killed=!0,this.kill()}}]),e}(s.default),t.exports=e.default},,,,,function(t){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t){"use strict";function e(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;10>n;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t){for(var i,a,u=e(t),c=1;arguments.length>c;c++){i=Object(arguments[c]);for(var s in i)r.call(i,s)&&(u[s]=i[s]);if(n){a=n(i);for(var f=0;a.length>f;f++)o.call(i,a[f])&&(u[a[f]]=i[a[f]])}}return u}},function(t){"use strict";function e(t,n){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;n=n||1;var r=t.slice(0,n),o=t.slice(n);return Array.prototype.concat.call([],e(r),e(o))}function n(t){try{return decodeURIComponent(t)}catch(i){for(var n=t.match(o),r=1;n.length>r;r++)t=e(n,r).join(""),n=t.match(o);return t}}function r(t){for(var e={"%FE%FF":"<22><>","%FF%FE":"<22><>"},r=i.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch(t){var o=n(r[0]);o!==r[0]&&(e[r[0]]=o)}r=i.exec(t)}e["%C2"]="<22>";for(var a=Object.keys(e),u=0;a.length>u;u++){var c=a[u];t=t.replace(RegExp(c,"g"),e[c])}return t}var o=RegExp("%[a-f0-9]{2}","gi"),i=RegExp("(%[a-f0-9]{2})+","gi");t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected ` + "`" + `encodedURI` + "`" + ` to be of type ` + "`" + `string` + "`" + `, got ` + "`" + `"+typeof t+"` + "`" + `");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return r(t)}}},,,,,,function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(14),u=n.n(a),c=n(1),s=n.n(c),f=n(12),l=n.n(f),p=n(422),h=n.n(p),d=n(123),v=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=i=o(this,t.call.apply(t,[this].concat(c))),i.history=h()(i.props),a=n,o(i,a)}return i(e,t),e.prototype.componentWillMount=function(){u()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use ` + "`" + `import { Router }` + "`" + ` instead of ` + "`" + `import { BrowserRouter as Router }` + "`" + `.")},e.prototype.render=function(){return s.a.createElement(d.a,{history:this.history,children:this.props.children})},e}(s.a.Component);v.propTypes={basename:l.a.string,forceRefresh:l.a.bool,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node},e.a=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(14),u=r(a),c=n(31),s=r(c),f=n(121),l=n(64),p=n(122),h=r(p),d=n(176),v=function(){try{return window.history.state||{}}catch(t){return{}}};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(d.canUseDOM,"Browser history needs a DOM");var e=window.history,n=(0,d.supportsHistory)(),r=!(0,d.supportsPopStateOnHashChange)(),a=t.forceRefresh,c=void 0!==a&&a,p=t.getUserConfirmation,y=void 0===p?d.getConfirmation:p,m=t.keyLength,g=void 0===m?6:m,b=t.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(t.basename)):"",_=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname,a=o.search,c=o.hash,s=i+a+c;return(0,u.default)(!b||(0,l.hasBasename)(s,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+s+'" to begin with "'+b+'".'),b&&(s=(0,l.stripBasename)(s,b)),(0,f.createLocation)(s,r,n)},w=function(){return Math.random().toString(36).substr(2,g)},O=(0,h.default)(),x=function(t){i(z,t),z.length=e.length,O.notifyListeners(z.location,z.action)},P=function(t){(0,d.isExtraneousPopstateEvent)(t)||j(_(t.state))},E=function(){j(_(v()))},k=!1,j=function(t){if(k)k=!1,x();else{O.confirmTransitionTo(t,"POP",y,function(e){e?x({action:"POP",location:t}):S(t)})}},S=function(t){var e=z.location,n=C.indexOf(e.key);-1===n&&(n=0);var r=C.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(k=!0,A(o))},T=_(v()),C=[T.key],M=function(t){return b+(0,l.createPath)(t)},N=function(t,r){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,f.createLocation)(t,r,w(),z.location);O.confirmTransitionTo(i,"PUSH",y,function(t){if(t){var r=M(i),o=i.key,a=i.state;if(n)if(e.pushState({key:o,state:a},null,r),c)window.location.href=r;else{var s=C.indexOf(z.location.key),f=C.slice(0,-1===s?0:s+1);f.push(i.key),C=f,x({action:"PUSH",location:i})}else(0,u.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},R=function(t,r){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,f.createLocation)(t,r,w(),z.location);O.confirmTransitionTo(i,"REPLACE",y,function(t){if(t){var r=M(i),o=i.key,a=i.state;if(n)if(e.replaceState({key:o,state:a},null,r),c)window.location.replace(r);else{var s=C.indexOf(z.location.key);-1!==s&&(C[s]=i.key),x({action:"REPLACE",location:i})}else(0,u.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},A=function(t){e.go(t)},L=function(){return A(-1)},I=function(){return A(1)},F=0,D=function(t){F+=t,1===F?((0,d.addEventListener)(window,"popstate",P),r&&(0,d.addEventListener)(window,"hashchange",E)):0===F&&((0,d.removeEventListener)(window,"popstate",P),r&&(0,d.removeEventListener)(window,"hashchange",E))},U=!1,W=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=O.setPrompt(t);return U||(D(1),U=!0),function(){return U&&(U=!1,D(-1)),e()}},B=function(t){var e=O.appendListener(t);return D(1),function(){D(-1),e()}},z={length:e.length,action:"POP",location:T,createHref:M,push:N,replace:R,go:A,goBack:L,goForward:I,block:W,listen:B};return z}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(14),u=n.n(a),c=n(1),s=n.n(c),f=n(12),l=n.n(f),p=n(424),h=n.n(p),d=n(123),v=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=i=o(this,t.call.apply(t,[this].concat(c))),i.history=h()(i.props),a=n,o(i,a)}return i(e,t),e.prototype.componentWillMount=function(){u()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use ` + "`" + `import { Router }` + "`" + ` instead of ` + "`" + `import { HashRouter as Router }` + "`" + `.")},e.prototype.render=function(){return s.a.createElement(d.a,{history:this.history,children:this.props.children})},e}(s.a.Component);v.propTypes={basename:l.a.string,getUserConfirmation:l.a.func,hashType:l.a.oneOf(["hashbang","noslash","slash"]),children:l.a.node},e.a=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(14),a=r(i),u=n(31),c=r(u),s=n(121),f=n(64),l=n(122),p=r(l),h=n(176),d={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,f.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:f.stripLeadingSlash,decodePath:f.addLeadingSlash},slash:{encodePath:f.addLeadingSlash,decodePath:f.addLeadingSlash}},v=function(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},y=function(t){return window.location.hash=t},m=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0>e?0:e)+"#"+t)};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(h.canUseDOM,"Hash history needs a DOM");var e=window.history,n=(0,h.supportsGoWithoutReloadUsingHash)(),r=t.getUserConfirmation,i=void 0===r?h.getConfirmation:r,u=t.hashType,l=void 0===u?"slash":u,g=t.basename?(0,f.stripTrailingSlash)((0,f.addLeadingSlash)(t.basename)):"",b=d[l],_=b.encodePath,w=b.decodePath,O=function(){var t=w(v());return(0,a.default)(!g||(0,f.hasBasename)(t,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+g+'".'),g&&(t=(0,f.stripBasename)(t,g)),(0,s.createLocation)(t)},x=(0,p.default)(),P=function(t){o(G,t),G.length=e.length,x.notifyListeners(G.location,G.action)},E=!1,k=null,j=function(){var t=v(),e=_(t);if(t!==e)m(e);else{var n=O(),r=G.location;if(!E&&(0,s.locationsAreEqual)(r,n))return;if(k===(0,f.createPath)(n))return;k=null,S(n)}},S=function(t){if(E)E=!1,P();else{x.confirmTransitionTo(t,"POP",i,function(e){e?P({action:"POP",location:t}):T(t)})}},T=function(t){var e=G.location,n=R.lastIndexOf((0,f.createPath)(e));-1===n&&(n=0);var r=R.lastIndexOf((0,f.createPath)(t));-1===r&&(r=0);var o=n-r;o&&(E=!0,F(o))},C=v(),M=_(C);C!==M&&m(M);var N=O(),R=[(0,f.createPath)(N)],A=function(t){return"#"+_(g+(0,f.createPath)(t))},L=function(t,e){(0,a.default)(void 0===e,"Hash history cannot push state; it is ignored");var n=(0,s.createLocation)(t,void 0,void 0,G.location);x.confirmTransitionTo(n,"PUSH",i,function(t){if(t){var e=(0,f.createPath)(n),r=_(g+e);if(v()!==r){k=e,y(r);var o=R.lastIndexOf((0,f.createPath)(G.location)),i=R.slice(0,-1===o?0:o+1);i.push(e),R=i,P({action:"PUSH",location:n})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),P()}})},I=function(t,e){(0,a.default)(void 0===e,"Hash history cannot replace state; it is ignored");var n=(0,s.createLocation)(t,void 0,void 0,G.location);x.confirmTransitionTo(n,"REPLACE",i,function(t){if(t){var e=(0,f.createPath)(n),r=_(g+e);v()!==r&&(k=e,m(r));var o=R.indexOf((0,f.createPath)(G.location));-1!==o&&(R[o]=e),P({action:"REPLACE",location:n})}})},F=function(t){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},D=function(){return F(-1)},U=function(){return F(1)},W=0,B=function(t){W+=t,1===W?(0,h.addEventListener)(window,"hashchange",j):0===W&&(0,h.removeEventListener)(window,"hashchange",j)},z=!1,q=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=x.setPrompt(t);return z||(B(1),z=!0),function(){return z&&(z=!1,B(-1)),e()}},V=function(t){var e=x.appendListener(t);return B(1),function(){B(-1),e()}},G={length:e.length,action:"POP",location:N,createHref:A,push:L,replace:I,go:F,goBack:D,goForward:U,block:q,listen:V};return G}},function(t,e,n){"use strict";e.a=n(178).a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(14),u=r(a),c=n(64),s=n(121),f=n(122),l=r(f),p=function(t,e,n){return Math.min(Math.max(t,e),n)};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,a=t.initialIndex,f=void 0===a?0:a,h=t.keyLength,d=void 0===h?6:h,v=(0,l.default)(),y=function(t){i(T,t),T.length=T.entries.length,v.notifyListeners(T.location,T.action)},m=function(){return Math.random().toString(36).substr(2,d)},g=p(f,0,r.length-1),b=r.map(function(t){return"string"==typeof t?(0,s.createLocation)(t,void 0,m()):(0,s.createLocation)(t,void 0,t.key||m())}),_=c.createPath,w=function(t,n){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,s.createLocation)(t,n,m(),T.location);v.confirmTransitionTo(r,"PUSH",e,function(t){if(t){var e=T.index,n=e+1,o=T.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),y({action:"PUSH",location:r,index:n,entries:o})}})},O=function(t,n){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,s.createLocation)(t,n,m(),T.location);v.confirmTransitionTo(r,"REPLACE",e,function(t){t&&(T.entries[T.index]=r,y({action:"REPLACE",location:r}))})},x=function(t){var n=p(T.index+t,0,T.entries.length-1),r=T.entries[n];v.confirmTransitionTo(r,"POP",e,function(t){t?y({action:"POP",location:r,index:n}):y()})},P=function(){return x(-1)},E=function(){return x(1)},k=function(t){var e=T.index+t;return e>=0&&T.entries.length>e},j=function(){return v.setPrompt(arguments.length>0&&void 0!==arguments[0]&&arguments[0])},S=function(t){return v.appendListener(t)},T={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:_,push:w,replace:O,go:x,goBack:P,goForward:E,canGo:k,block:j,listen:S};return T}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var o=n(1),i=n.n(o),a=n(12),u=n.n(a),c=n(179),s=n(177),f=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(t){var e=t.to,n=t.exact,o=t.strict,a=t.location,u=t.activeClassName,p=t.className,h=t.activeStyle,d=t.style,v=t.isActive,y=t.ariaCurrent,m=r(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return i.a.createElement(c.a,{path:"object"===(void 0===e?"undefined":l(e))?e.pathname:e,exact:n,strict:o,location:a,children:function(t){var n=t.location,r=t.match,o=!!(v?v(r,n):r);return i.a.createElement(s.a,f({to:e,className:o?[p,u].filter(function(t){return t}).join(" "):p,style:o?f({},d,h):d,"aria-current":o&&y},m))}})};p.propTypes={to:s.a.propTypes.to,exact:u.a.bool,strict:u.a.bool,location:u.a.object,activeClassName:u.a.string,className:u.a.string,activeStyle:u.a.object,style:u.a.object,isActive:u.a.func,ariaCurrent:u.a.oneOf(["page","step","location","true"])},p.defaultProps={activeClassName:"active",ariaCurrent:"true"},e.a=p},function(t,e,n){function r(t,e){for(var n,r=[],o=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=g.exec(t));){var f=n[0],l=n[1],p=n.index;if(a+=t.slice(i,p),i=p+f.length,l)a+=l[1];else{var h=t[i],d=n[2],v=n[3],y=n[4],m=n[5],b=n[6],_=n[7];a&&(r.push(a),a="");var w=null!=d&&null!=h&&h!==d,O="+"===b||"*"===b,x="?"===b||"*"===b,P=n[2]||u,E=y||m;r.push({name:v||o++,prefix:d||"",delimiter:P,optional:x,repeat:O,partial:w,asterisk:!!_,pattern:E?s(E):_?".*":"[^"+c(P)+"]+?"})}}return t.length>i&&(a+=t.substr(i)),a&&r.push(a),r}function o(t,e){return u(r(t,e))}function i(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function a(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function u(t){for(var e=Array(t.length),n=0;t.length>n;n++)"object"==typeof t[n]&&(e[n]=RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",u=n||{},c=r||{},s=c.pretty?i:encodeURIComponent,f=0;t.length>f;f++){var l=t[f];if("string"!=typeof l){var p,h=u[l.name];if(null==h){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(m(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received ` + "`" + `'+JSON.stringify(h)+"` + "`" + `");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;h.length>d;d++){if(p=s(h[d]),!e[f].test(p))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received ` + "`" + `'+JSON.stringify(p)+"` + "`" + `");o+=(0===d?l.prefix:l.delimiter)+p}}else{if(p=l.asterisk?a(h):s(h),!e[f].test(p))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+p+'"');o+=l.prefix+p}}else o+=l}return o}}function c(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function l(t){return t.sensitive?"":"i"}function p(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;n.length>r;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,e)}function h(t,e,n){for(var r=[],o=0;t.length>o;o++)r.push(y(t[o],e,n).source);return f(RegExp("(?:"+r.join("|")+")",l(n)),e)}function d(t,e,n){return v(r(t,n),e,n)}function v(t,e,n){m(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,i="",a=0;t.length>a;a++){var u=t[a];if("string"==typeof u)i+=c(u);else{var s=c(u.prefix),p="(?:"+u.pattern+")";e.push(u),u.repeat&&(p+="(?:"+s+p+")*"),p=u.optional?u.partial?s+"("+p+")?":"(?:"+s+"("+p+"))?":s+"("+p+")",i+=p}}var h=c(n.delimiter||"/"),d=i.slice(-h.length)===h;return r||(i=(d?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=o?"$":r&&d?"":"(?="+h+"|$)",f(RegExp("^"+i,l(n)),e)}function y(t,e,n){return m(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?p(t,e):m(t)?h(t,e,n):d(t,e,n)}var m=n(429);t.exports=y,t.exports.parse=r,t.exports.compile=o,t.exports.tokensToFunction=u,t.exports.tokensToRegExp=v;var g=RegExp("(\\\\.)|([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))","g")},function(t){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){"use strict";e.a=n(180).a},function(t,e,n){"use strict";e.a=n(181).a},function(t,e,n){"use strict";var r=(n(433),n(434),n(435),n(85));n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});n(65)},function(t,e,n){"use strict";var r=n(14),o=(n.n(r),n(31));n.n(o),n(85),n(65),n(125),n(182),"function"==typeof Symbol&&Symbol,Object},function(t,e,n){"use strict";var r=n(14),o=(n.n(r),n(31));n.n(o),n(85),n(65),n(125),n(182),Object},function(t,e,n){"use strict";var r=n(14);n.n(r),n(65),n(85),n(125),"function"==typeof Symbol&&Symbol,Object},function(t,e,n){"use strict";e.a=n(183).a},function(t,e,n){"use strict";e.a=n(184).a},function(t,e,n){"use strict";e.a=n(84).a},function(t,e,n){"use strict";e.a=n(185).a},function(t){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,c=u&&u(Object);t.exports=function t(s,f,l){if("string"!=typeof f){if(c){var p=u(f);p&&p!==c&&t(s,p,l)}var h=o(f);i&&(h=h.concat(i(f)));for(var d=0;h.length>d;++d){var v=h[d];if(!(e[v]||n[v]||l&&l[v])){var y=a(f,v);try{r(s,v,y)}catch(t){}}}return s}return s}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){"use strict";function n(t,e,n){return 1!==t&&(e+="s"),t+" "+e+" "+n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);t.length>e;e++)n[e]=t[e];return n}return Array.from(t)}function r(t){return Array.isArray(t)?t:Array.from(t)}function o(t){var e=new Date(t);if(!Number.isNaN(e.valueOf()))return e;var o=(t+"").match(/\d+/g);if(null!=o&&o.length>2){var i=o.map(function(t){return parseInt(t)}),a=r(i),u=a[0],c=a[1],s=a.slice(2),f=[u,c-1].concat(n(s));return new Date(Date.UTC.apply(Date,n(f)))}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";(function(r){function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var c=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=n(1),f=o(s),l=n(12),p=o(l),h=n(198),d=o(h),v=n(568),y=o(v),m=n(200),g={transitionName:m.nameShape.isRequired,transitionAppear:p.default.bool,transitionEnter:p.default.bool,transitionLeave:p.default.bool,transitionAppearTimeout:(0,m.transitionTimeout)("Appear"),transitionEnterTimeout:(0,m.transitionTimeout)("Enter"),transitionLeaveTimeout:(0,m.transitionTimeout)("Leave")},b={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},_=function(t){function e(){var n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=r=a(this,t.call.apply(t,[this].concat(c))),r._wrapChild=function(t){return f.default.createElement(y.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},t)},o=n,a(r,o)}return u(e,t),e.prototype.render=function(){return f.default.createElement(d.default,c({},this.props,{childFactory:this._wrapChild}))},e}(f.default.Component);_.displayName="CSSTransitionGroup",_.propTypes="production"!==r.env.NODE_ENV?g:{},_.defaultProps=b,e.default=_,t.exports=e.default}).call(e,n(21))},function(t){t.exports=function(){for(var t=arguments.length,e=[],n=0;t>n;n++)e[n]=arguments[n];if(e=e.filter(function(t){return null!=t}),0!==e.length)return 1===e.length?e[0]:e.reduce(function(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}})}},function(t,e,n){"use strict";function r(t){if(!t)return t;var e={};return i.Children.map(t,function(t){return t}).forEach(function(t){e[t.key]=t}),e}function o(t,e){function n(n){return e.hasOwnProperty(n)?e[n]:t[n]}t=t||{},e=e||{};var r={},o=[];for(var i in t)e.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a=void 0,u={};for(var c in e){if(r.hasOwnProperty(c))for(a=0;r[c].length>a;a++){var s=r[c][a];u[r[c][a]]=n(s)}u[c]=n(c)}for(a=0;o.length>a;a++)u[o[a]]=n(o[a]);return u}e.__esModule=!0,e.getChildMapping=r,e.mergeChildMappings=o;var i=n(1)},function(t,e,n){"use strict";(function(r){function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){return x.length?x.forEach(function(n){return t.addEventListener(n,e,!1)}):setTimeout(e,0),function(){x.length&&x.forEach(function(n){return t.removeEventListener(n,e,!1)})}}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(569),l=o(f),p=n(571),h=o(p),d=n(572),v=o(d),y=n(573),m=n(1),g=o(m),b=n(12),_=o(b),w=n(1),O=n(200),x=[];y.transitionEnd&&x.push(y.transitionEnd),y.animationEnd&&x.push(y.animationEnd);var P={children:_.default.node,name:O.nameShape.isRequired,appear:_.default.bool,enter:_.default.bool,leave:_.default.bool,appearTimeout:_.default.number,enterTimeout:_.default.number,leaveTimeout:_.default.number},E=function(t){function e(){var n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),s=0;u>s;s++)c[s]=arguments[s];return n=r=a(this,t.call.apply(t,[this].concat(c))),r.componentWillAppear=function(t){r.props.appear?r.transition("appear",t,r.props.appearTimeout):t()},r.componentWillEnter=function(t){r.props.enter?r.transition("enter",t,r.props.enterTimeout):t()},r.componentWillLeave=function(t){r.props.leave?r.transition("leave",t,r.props.leaveTimeout):t()},o=n,a(r,o)}return u(e,t),e.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},e.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(t){clearTimeout(t)}),this.classNameAndNodeQueue.length=0},e.prototype.transition=function(t,e,n){var r=(0,w.findDOMNode)(this);if(!r)return void(e&&e());var o=this.props.name[t]||this.props.name+"-"+t,i=this.props.name[t+"Active"]||o+"-active",a=null,u=void 0;(0,l.default)(r,o),this.queueClassAndNode(i,r);var s=function(t){t&&t.target!==r||(clearTimeout(a),u&&u(),(0,h.default)(r,o),(0,h.default)(r,i),u&&u(),e&&e())};n?(a=setTimeout(s,n),this.transitionTimeouts.push(a)):y.transitionEnd&&(u=c(r,s))},e.prototype.queueClassAndNode=function(t,e){var n=this;this.classNameAndNodeQueue.push({className:t,node:e}),this.rafHandle||(this.rafHandle=(0,v.default)(function(){return n.flushClassNameAndNodeQueue()}))},e.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(t){(0,l.default)(t.node,t.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},e.prototype.render=function(){var t=s({},this.props);return delete t.name,delete t.appear,delete t.enter,delete t.leave,delete t.appearTimeout,delete t.enterTimeout,delete t.leaveTimeout,delete t.children,g.default.cloneElement(g.default.Children.only(this.props.children),t)},e}(g.default.Component);E.displayName="CSSTransitionGroupChild",E.propTypes="production"!==r.env.NODE_ENV?P:{},e.default=E,t.exports=e.default}).call(e,n(21))},function(t,e,n){"use strict";function r(t,e){t.classList?t.classList.add(e):(0,i.default)(t)||(t.className=t.className+" "+e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var o=n(570),i=function(t){return t&&t.__esModule?t:{default:t}}(o);t.exports=e.default},function(t,e){"use strict";function n(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+t.className+" ").indexOf(" "+e+" ")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e.default},function(t){"use strict";t.exports=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}},function(t,e,n){"use strict";function r(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-l)),r=setTimeout(t,n);return l=e,r}Object.defineProperty(e,"__esModule",{value:!0});var o=n(199),i=function(t){return t&&t.__esModule?t:{default:t}}(o),a=["","webkit","moz","o","ms"],u="clearTimeout",c=r,s=void 0,f=function(t,e){return t+(t?e[0].toUpperCase()+e.substr(1):e)+"AnimationFrame"};i.default&&a.some(function(t){var e=f(t,"request");if(e in window)return u=f(t,"cancel"),c=function(t){return window[e](t)}});var l=(new Date).getTime();s=function(t){return c(t)},s.cancel=function(t){window[u]&&"function"==typeof window[u]&&window[u](t)},e.default=s,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationEnd=e.animationDelay=e.animationTiming=e.animationDuration=e.animationName=e.transitionEnd=e.transitionDuration=e.transitionDelay=e.transitionTiming=e.transitionProperty=e.transform=void 0;var r=n(199),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i="transform",a=void 0,u=void 0,c=void 0,s=void 0,f=void 0,l=void 0,p=void 0,h=void 0,d=void 0,v=void 0,y=void 0;if(o.default){var m=function(){for(var t=document.createElement("div").style,e={O:function(t){return"o"+t.toLowerCase()},Moz:function(t){return t.toLowerCase()},Webkit:function(t){return"webkit"+t},ms:function(t){return"MS"+t}},n=Object.keys(e),r=void 0,o=void 0,i="",a=0;n.length>a;a++){var u=n[a];if(u+"TransitionProperty"in t){i="-"+u.toLowerCase(),r=e[u]("TransitionEnd"),o=e[u]("AnimationEnd");break}}return!r&&"transitionProperty"in t&&(r="transitionend"),!o&&"animationName"in t&&(o="animationend"),t=null,{animationEnd:o,transitionEnd:r,prefix:i}}();a=m.prefix,e.transitionEnd=u=m.transitionEnd,e.animationEnd=c=m.animationEnd,e.transform=i=a+"-"+i,e.transitionProperty=s=a+"-transition-property",e.transitionDuration=f=a+"-transition-duration",e.transitionDelay=p=a+"-transition-delay",e.transitionTiming=l=a+"-transition-timing-function",e.animationName=h=a+"-animation-name",e.animationDuration=d=a+"-animation-duration",e.animationTiming=v=a+"-animation-delay",e.animationDelay=y=a+"-animation-timing-function"}e.transform=i,e.transitionProperty=s,e.transitionTiming=l,e.transitionDelay=p,e.transitionDuration=f,e.transitionEnd=u,e.animationName=h,e.animationDuration=d,e.animationTiming=v,e.animationDelay=y,e.animationEnd=c,e.default={transform:i,end:u,property:s,timing:l,delay:p,duration:f}},,,,,,,,function(t,e,n){n(196),n(133),n(62),n(582),n(66),n(172),n(191),n(118),n(585),n(173),n(586),n(27),n(187),n(190),n(186),t.exports=n(132)},function(t,e,n){t.exports={higherOrder:n(16),mixins:n(583),PropTypes:n(120).default}},function(t,e,n){var r=n(584);e.root=r.root,e.branch=r.branch},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return(t.constructor||{}).displayName||"Component"}Object.defineProperty(e,"__esModule",{value:!0}),e.branch=e.root=void 0;var i=n(120),a=r(i),u=n(171),c=n(62),s=r(c),f=s.default.helpers.makeError,l={propTypes:{tree:a.default.baobab},childContextTypes:{tree:a.default.baobab},getChildContext:function(){return{tree:this.props.tree}}},p={contextTypes:{tree:a.default.baobab},getInitialState:function(){var t=o(this);if(this.cursors){this.__cursorsMapping=this.cursors;var e=(0,u.solveMapping)(this.__cursorsMapping,this.props,this.context);if(!e)throw f('baobab-react/mixins.branch: given mapping is invalid (check the "'+t+'" component).',{mapping:e});return this.__watcher=this.context.tree.watch(e),this.__watcher.get()}return null},componentWillMount:function(){var t=this;if(this.dispatch=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];return e.apply(void 0,[t.context.tree].concat(r))},this.__watcher){this.__watcher.on("update",function(){t.__watcher&&t.setState(t.__watcher.get())})}},componentWillUnmount:function(){this.__watcher&&(this.__watcher.release(),this.__watcher=null)},componentWillReceiveProps:function(t){if(this.__watcher&&"function"==typeof this.__cursorsMapping){var e=o(this),n=(0,u.solveMapping)(this.__cursorsMapping,t,this.context);if(!n)throw f('baobab-react/mixins.branch: given mapping is invalid (check the "'+e+'" component).',{mapping:n});this.__watcher.refresh(n),this.setState(this.__watcher.get())}}};e.root=l,e.branch=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function r(){return null}function o(t){var e=t.nodeName,n=t.attributes;t.attributes={},e.defaultProps&&w(t.attributes,e.defaultProps),n&&w(t.attributes,n)}function i(t,e){var n,r,o;if(e){for(o in e)if(n=G.test(o))break;if(n){r=t.attributes={};for(o in e)e.hasOwnProperty(o)&&(r[G.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=e[o])}}}function a(t,e,n){var r=e&&e._preactCompatRendered&&e._preactCompatRendered.base;r&&r.parentNode!==e&&(r=null),!r&&e&&(r=e.firstElementChild);for(var o=e.childNodes.length;o--;)e.childNodes[o]!==r&&e.removeChild(e.childNodes[o]);var i=Object(U.render)(t,e,r);return e&&(e._preactCompatRendered=i&&(i._component||{base:i})),"function"==typeof n&&n(),i&&i._component||i}function u(t,e,n,r){var o=Object(U.h)(Q,{context:t.context},e),i=a(o,n),u=i._component||i.base;return r&&r.call(u,i),u}function c(t){var e=t._preactCompatRendered&&t._preactCompatRendered.base;return!(!e||e.parentNode!==t)&&(Object(U.render)(Object(U.h)(r),t,e),!0)}function s(t){return d.bind(null,t)}function f(t,e){for(var n=e||0;t.length>n;n++){var r=t[n];Array.isArray(r)?f(r):r&&"object"==typeof r&&!m(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(t[n]=d(r.type||r.nodeName,r.props||r.attributes,r.children))}}function l(t){return"function"==typeof t&&!(t.prototype&&t.prototype.render)}function p(t){return E({displayName:t.displayName||t.name,render:function(){return t(this.props,this.context)}})}function h(t){var e=t[q];return e?!0===e?t:e:(e=p(t),Object.defineProperty(e,q,{configurable:!0,value:!0}),e.displayName=t.displayName,e.propTypes=t.propTypes,e.defaultProps=t.defaultProps,Object.defineProperty(t,q,{configurable:!0,value:e}),e)}function d(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return f(t,2),v(U.h.apply(void 0,t))}function v(t){t.preactCompatNormalized=!0,_(t),l(t.nodeName)&&(t.nodeName=h(t.nodeName));var e=t.attributes.ref,n=e&&typeof e;return!X||"string"!==n&&"number"!==n||(t.attributes.ref=g(e,X)),b(t),t}function y(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];if(!m(t))return t;var o=t.attributes||t.props,i=Object(U.h)(t.nodeName||t.type,o,t.children||o&&o.children),a=[i,e];return n&&n.length?a.push(n):e&&e.children&&a.push(e.children),v(U.cloneElement.apply(void 0,a))}function m(t){return t&&(t instanceof $||t.$$typeof===z)}function g(t,e){return e._refProxies[t]||(e._refProxies[t]=function(n){e&&e.refs&&(e.refs[t]=n,null===n&&(delete e._refProxies[t],e=null))})}function b(t){var e=t.nodeName,n=t.attributes;if(n&&"string"==typeof e){var r={};for(var o in n)r[o.toLowerCase()]=o;if(r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]),r.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var i=r.oninput||"oninput";n[i]||(n[i]=C([n[i],n[r.onchange]]),delete n[r.onchange])}}}function _(t){var e=t.attributes||(t.attributes={});rt.enumerable="className"in e,e.className&&(e.class=e.className),Object.defineProperty(e,"className",rt)}function w(t){for(var e=arguments,n=1,r=void 0;arguments.length>n;n++)if(r=e[n])for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);return t}function O(t,e){for(var n in t)if(!(n in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}function x(t){return t&&t.base||t}function P(){}function E(t){function e(t,e){S(this),L.call(this,t,e,H),M.call(this,t,e)}return t=w({constructor:e},t),t.mixins&&j(t,k(t.mixins)),t.statics&&w(e,t.statics),t.propTypes&&(e.propTypes=t.propTypes),t.defaultProps&&(e.defaultProps=t.defaultProps),t.getDefaultProps&&(e.defaultProps=t.getDefaultProps()),P.prototype=L.prototype,e.prototype=w(new P,t),e.displayName=t.displayName||"Component",e}function k(t){for(var e={},n=0;t.length>n;n++){var r=t[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(e[o]||(e[o]=[])).push(r[o])}return e}function j(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=C(e[n].concat(t[n]||Z),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}function S(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||V.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function T(t,e,n){if("string"==typeof e&&(e=t.constructor.prototype[e]),"function"==typeof e)return e.apply(t,n)}function C(t,e){return function(){for(var n,r=arguments,o=this,i=0;t.length>i;i++){var a=T(o,t[i],r);if(e&&null!=a){n||(n={});for(var u in a)a.hasOwnProperty(u)&&(n[u]=a[u])}else void 0!==a&&(n=a)}return n}}function M(t,e){N.call(this,t,e),this.componentWillReceiveProps=C([N,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=C([N,R,this.render||"render",A])}function N(t){if(t){var e=t.children;if(e&&Array.isArray(e)&&1===e.length&&("string"==typeof e[0]||"function"==typeof e[0]||e[0]instanceof $)&&(t.children=e[0])&&"object"==typeof t.children&&(t.children.length=1,t.children[0]=t.children),Y){var n="function"==typeof this?this:this.constructor,r=this.propTypes||n.propTypes,o=this.displayName||n.name;r&&D.a.checkPropTypes(r,t,"prop",o)}}}function R(){X=this}function A(){X===this&&(X=null)}function L(t,e,n){U.Component.call(this,t,e),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},n!==H&&M.call(this,t,e)}function I(t,e){L.call(this,t,e)}n.d(e,"version",function(){return W}),n.d(e,"DOM",function(){return et}),n.d(e,"Children",function(){return tt}),n.d(e,"render",function(){return a}),n.d(e,"createClass",function(){return E}),n.d(e,"createFactory",function(){return s}),n.d(e,"createElement",function(){return d}),n.d(e,"cloneElement",function(){return y}),n.d(e,"isValidElement",function(){return m}),n.d(e,"findDOMNode",function(){return x}),n.d(e,"unmountComponentAtNode",function(){return c}),n.d(e,"Component",function(){return L}),n.d(e,"PureComponent",function(){return I}),n.d(e,"unstable_renderSubtreeIntoContainer",function(){return u}),n.d(e,"__spread",function(){return w});var F=n(12),D=n.n(F),U=n(118);n.d(e,"PropTypes",function(){return D.a});var W="15.1.0",B="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,q="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",V={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},G=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,H={},Y=void 0===t||!t.env||"production"!==t.env.NODE_ENV,$=Object(U.h)("a",null).constructor;$.prototype.$$typeof=z,$.prototype.preactCompatUpgraded=!1,$.prototype.preactCompatNormalized=!1,Object.defineProperty($.prototype,"type",{get:function(){return this.nodeName},set:function(t){this.nodeName=t},configurable:!0}),Object.defineProperty($.prototype,"props",{get:function(){return this.attributes},set:function(t){this.attributes=t},configurable:!0});var K=U.options.event;U.options.event=function(t){return K&&(t=K(t)),t.persist=Object,t.nativeEvent=t,t};var J=U.options.vnode;U.options.vnode=function(t){if(!t.preactCompatUpgraded){t.preactCompatUpgraded=!0;var e=t.nodeName,n=t.attributes=w({},t.attributes);"function"==typeof e?(!0===e[q]||e.prototype&&"isReactComponent"in e.prototype)&&(t.children&&t.children+""==""&&(t.children=void 0),t.children&&(n.children=t.children),t.preactCompatNormalized||v(t),o(t)):(t.children&&t.children+""==""&&(t.children=void 0),t.children&&(n.children=t.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),i(t,n))}J&&J(t)};var Q=function(){};Q.prototype.getChildContext=function(){return this.props.context},Q.prototype.render=function(t){return t.children[0]};for(var X,Z=[],tt={map:function(t,e,n){return null==t?null:(t=tt.toArray(t),n&&n!==t&&(e=e.bind(n)),t.map(e))},forEach:function(t,e,n){if(null==t)return null;t=tt.toArray(t),n&&n!==t&&(e=e.bind(n)),t.forEach(e)},count:function(t){return t&&t.length||0},only:function(t){if(t=tt.toArray(t),1!==t.length)throw Error("Children.only() expects only one child.");return t[0]},toArray:function(t){return null==t?[]:Z.concat(t)}},et={},nt=B.length;nt--;)et[B[nt]]=s(B[nt]);var rt={configurable:!0,get:function(){return this.class},set:function(t){this.class=t}};w(L.prototype=new U.Component,{constructor:L,isReactComponent:{},replaceState:function(t,e){var n=this;this.setState(t,e);for(var r in n.state)r in t||delete n.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),P.prototype=L.prototype,I.prototype=new P,I.prototype.isPureReactComponent=!0,I.prototype.shouldComponentUpdate=function(t,e){return O(this.props,t)||O(this.state,e)},e.default={version:W,DOM:et,PropTypes:D.a,Children:tt,render:a,createClass:E,createFactory:s,createElement:d,cloneElement:y,isValidElement:m,findDOMNode:x,unmountComponentAtNode:c,Component:L,PureComponent:I,unstable_renderSubtreeIntoContainer:u,__spread:w}}.call(e,n(21))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(178);n.d(e,"MemoryRouter",function(){return r.a});var o=n(180);n.d(e,"Prompt",function(){return o.a});var i=n(181);n.d(e,"Redirect",function(){return i.a});var a=n(124);n.d(e,"Route",function(){return a.a});var u=n(83);n.d(e,"Router",function(){return u.a});var c=n(183);n.d(e,"StaticRouter",function(){return c.a});var s=n(184);n.d(e,"Switch",function(){return s.a});var f=n(84);n.d(e,"matchPath",function(){return f.a});var l=n(185);n.d(e,"withRouter",function(){return l.a})}]);`)
|
||
|
||
// /favicon.png
|
||
var file2 = []byte{
|
||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
|
||
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20,
|
||
0x08, 0x03, 0x00, 0x00, 0x00, 0x44, 0xa4, 0x8a, 0xc6, 0x00, 0x00, 0x00,
|
||
0x04, 0x67, 0x41, 0x4d, 0x41, 0x00, 0x00, 0xb1, 0x8f, 0x0b, 0xfc, 0x61,
|
||
0x05, 0x00, 0x00, 0x00, 0x20, 0x63, 0x48, 0x52, 0x4d, 0x00, 0x00, 0x7a,
|
||
0x26, 0x00, 0x00, 0x80, 0x84, 0x00, 0x00, 0xfa, 0x00, 0x00, 0x00, 0x80,
|
||
0xe8, 0x00, 0x00, 0x75, 0x30, 0x00, 0x00, 0xea, 0x60, 0x00, 0x00, 0x3a,
|
||
0x98, 0x00, 0x00, 0x17, 0x70, 0x9c, 0xba, 0x51, 0x3c, 0x00, 0x00, 0x01,
|
||
0x9b, 0x50, 0x4c, 0x54, 0x45, 0x00, 0x00, 0x00, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25, 0x27, 0x28, 0x25,
|
||
0x27, 0x28, 0x25, 0x27, 0x28, 0xff, 0xff, 0xff, 0x48, 0xe1, 0xab, 0xb1,
|
||
0x00, 0x00, 0x00, 0x87, 0x74, 0x52, 0x4e, 0x53, 0x00, 0x00, 0x04, 0x1d,
|
||
0x40, 0x62, 0x79, 0x85, 0x7a, 0x63, 0x42, 0x1e, 0x05, 0x12, 0x56, 0xa6,
|
||
0xdc, 0xf5, 0xfe, 0xf6, 0xde, 0xaa, 0x5a, 0x14, 0x08, 0xc4, 0xf9, 0xfa,
|
||
0xc8, 0x5b, 0x09, 0x1b, 0x99, 0xf7, 0x9f, 0x26, 0xbb, 0xc0, 0x2a, 0x1f,
|
||
0xbe, 0xc3, 0x22, 0x0d, 0x0f, 0x6e, 0xfb, 0x72, 0x28, 0x86, 0xc2, 0xda,
|
||
0xf8, 0x89, 0x23, 0xd7, 0xca, 0x1c, 0xd9, 0x24, 0x69, 0xb1, 0x13, 0x1a,
|
||
0xa9, 0x6a, 0xb0, 0xcf, 0x35, 0xa0, 0xd3, 0xc6, 0xe0, 0x5d, 0x3a, 0x52,
|
||
0xb2, 0xbc, 0xbd, 0x07, 0xaf, 0x98, 0x06, 0xe3, 0x01, 0x03, 0x27, 0xe7,
|
||
0x02, 0xb3, 0x93, 0x0e, 0x0a, 0x8d, 0xb4, 0x4b, 0xf3, 0x41, 0xf0, 0xf1,
|
||
0x3b, 0x59, 0xb9, 0xd2, 0xf4, 0x0b, 0xab, 0xfd, 0x94, 0x10, 0x17, 0x3c,
|
||
0x8a, 0x2f, 0x47, 0x11, 0xad, 0x54, 0xed, 0xb8, 0xd0, 0xce, 0x64, 0xe9,
|
||
0xcd, 0x45, 0x19, 0x76, 0x16, 0x49, 0x78, 0x92, 0x95, 0x83, 0x2c, 0xe7,
|
||
0x0e, 0x85, 0x7c, 0x00, 0x00, 0x00, 0x01, 0x62, 0x4b, 0x47, 0x44, 0x88,
|
||
0x6b, 0x66, 0x16, 0x5a, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45,
|
||
0x07, 0xe1, 0x04, 0x1d, 0x17, 0x27, 0x00, 0x85, 0x93, 0x4c, 0x95, 0x00,
|
||
0x00, 0x01, 0xca, 0x49, 0x44, 0x41, 0x54, 0x38, 0xcb, 0xad, 0x93, 0xe9,
|
||
0x57, 0xda, 0x40, 0x14, 0xc5, 0x73, 0x83, 0xd4, 0xd6, 0x85, 0xcd, 0x2d,
|
||
0xa8, 0x60, 0xa1, 0xa2, 0x6d, 0x41, 0xeb, 0x1a, 0x57, 0xd2, 0xd6, 0xaa,
|
||
0x55, 0x0b, 0xc4, 0xd6, 0x82, 0x58, 0x5c, 0xa8, 0x1b, 0x28, 0x2a, 0xee,
|
||
0x1b, 0xda, 0xbd, 0xcd, 0xbf, 0xdd, 0xcc, 0x8c, 0x24, 0x01, 0xe1, 0x4b,
|
||
0x4f, 0x7f, 0x9f, 0xe6, 0xdd, 0x77, 0x4f, 0xf2, 0xce, 0x9b, 0x3b, 0x1c,
|
||
0xf7, 0xdf, 0x00, 0x78, 0x53, 0x85, 0xf9, 0x41, 0x65, 0xe5, 0xc3, 0x47,
|
||
0x55, 0xd5, 0x35, 0xc0, 0xbd, 0x76, 0xad, 0xc5, 0x6a, 0xb3, 0x3b, 0x14,
|
||
0x15, 0x47, 0x5d, 0x7d, 0x43, 0x63, 0x53, 0xa1, 0x05, 0x82, 0xc5, 0xd9,
|
||
0xac, 0x18, 0x68, 0x69, 0x75, 0xb9, 0x75, 0x0b, 0xd0, 0xf6, 0xd8, 0xae,
|
||
0x14, 0xe1, 0xf1, 0x56, 0xe7, 0x1d, 0xc0, 0x93, 0x76, 0xa5, 0x04, 0xbe,
|
||
0x0e, 0xe6, 0x00, 0x3a, 0x9f, 0x2a, 0x25, 0x79, 0xf6, 0x9c, 0x3a, 0xe0,
|
||
0xb7, 0x2a, 0x65, 0x68, 0x08, 0x80, 0x7c, 0xa0, 0xab, 0xa5, 0x9c, 0xa1,
|
||
0xfb, 0x85, 0xfa, 0x09, 0xf4, 0xd8, 0x94, 0xb2, 0xd4, 0x77, 0xa8, 0x86,
|
||
0x5e, 0x83, 0xd0, 0x6c, 0xeb, 0xeb, 0xeb, 0x1f, 0x30, 0x08, 0x83, 0xe0,
|
||
0xc4, 0x21, 0xbd, 0x1c, 0x76, 0x8d, 0xb8, 0xdd, 0x6d, 0x16, 0xa7, 0x43,
|
||
0x53, 0x46, 0xc7, 0xb8, 0x71, 0x7d, 0x82, 0x60, 0x27, 0x78, 0x49, 0xe2,
|
||
0xf1, 0xf2, 0x95, 0xbe, 0xb0, 0xd7, 0xdc, 0x84, 0x56, 0xbc, 0x11, 0x31,
|
||
0x39, 0x35, 0x3d, 0x3d, 0x35, 0x09, 0xd3, 0x5b, 0x4d, 0x9c, 0xe0, 0x66,
|
||
0xb4, 0xff, 0xcf, 0x62, 0x8e, 0xce, 0x6b, 0x9b, 0xc3, 0xbb, 0xba, 0xbc,
|
||
0x3a, 0xc3, 0x85, 0xc2, 0xed, 0x94, 0x88, 0x57, 0x92, 0xe7, 0x99, 0x38,
|
||
0x2f, 0x07, 0xde, 0x47, 0x98, 0x1a, 0x0e, 0x71, 0xb2, 0x20, 0x08, 0x32,
|
||
0xe1, 0x03, 0xc4, 0x05, 0x66, 0x58, 0x10, 0x51, 0x43, 0x25, 0xb5, 0x27,
|
||
0x93, 0x55, 0x7e, 0xe4, 0x09, 0x51, 0xc4, 0x16, 0x99, 0x61, 0x31, 0x86,
|
||
0x28, 0x95, 0xe2, 0xec, 0xb6, 0x20, 0x5a, 0x43, 0xc1, 0xe0, 0xd2, 0xa7,
|
||
0x40, 0xc2, 0xc9, 0x0c, 0xce, 0xc4, 0xf2, 0xca, 0x6a, 0x50, 0xa5, 0xe2,
|
||
0xce, 0x10, 0xf0, 0x11, 0xd9, 0xbe, 0x06, 0x57, 0x92, 0x1c, 0x92, 0x2e,
|
||
0x7c, 0x5e, 0x27, 0x87, 0x8d, 0xcd, 0x3b, 0x03, 0xb6, 0x3c, 0xa4, 0xde,
|
||
0x96, 0x78, 0x73, 0x2a, 0x9d, 0x4e, 0x99, 0xf9, 0x04, 0x9b, 0x36, 0xec,
|
||
0xcf, 0x07, 0x62, 0x67, 0x97, 0xd4, 0x99, 0xbd, 0x7d, 0x1c, 0x64, 0xb3,
|
||
0x07, 0xf0, 0x1f, 0x76, 0xd3, 0xc8, 0x6c, 0xe9, 0x89, 0x39, 0xea, 0xa7,
|
||
0x97, 0xb7, 0x74, 0x2c, 0x45, 0xa3, 0x27, 0x55, 0xa7, 0x6c, 0xb9, 0xd6,
|
||
0x65, 0x43, 0xe6, 0xce, 0xce, 0xa9, 0x96, 0x4e, 0x5d, 0x5c, 0x5c, 0x26,
|
||
0xd9, 0xa8, 0x57, 0x31, 0x43, 0x6e, 0x11, 0x1f, 0xdf, 0x28, 0xba, 0xe9,
|
||
0xd1, 0x6c, 0x41, 0xae, 0xc1, 0x5f, 0xe7, 0x0a, 0xfa, 0x37, 0x9b, 0x45,
|
||
0x4f, 0x03, 0xf1, 0xdb, 0xd6, 0x8c, 0xd6, 0x4e, 0x7b, 0xc5, 0x12, 0x4f,
|
||
0xe7, 0xcb, 0xd7, 0x4b, 0x9a, 0x95, 0x4c, 0xee, 0x74, 0x4d, 0xb8, 0xd7,
|
||
0xa7, 0x2b, 0xff, 0xf6, 0xfd, 0xc7, 0xcf, 0x5f, 0xbf, 0x67, 0xff, 0xc8,
|
||
0xa5, 0xda, 0xff, 0xcc, 0x5f, 0x4e, 0xb8, 0x02, 0xd5, 0x51, 0x53, 0x4c,
|
||
0xb0, 0x00, 0x00, 0x00, 0x25, 0x74, 0x45, 0x58, 0x74, 0x64, 0x61, 0x74,
|
||
0x65, 0x3a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x00, 0x32, 0x30, 0x31,
|
||
0x37, 0x2d, 0x30, 0x34, 0x2d, 0x32, 0x39, 0x54, 0x32, 0x33, 0x3a, 0x33,
|
||
0x39, 0x3a, 0x30, 0x30, 0x2b, 0x30, 0x32, 0x3a, 0x30, 0x30, 0x6c, 0xd5,
|
||
0xdf, 0x57, 0x00, 0x00, 0x00, 0x25, 0x74, 0x45, 0x58, 0x74, 0x64, 0x61,
|
||
0x74, 0x65, 0x3a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x00, 0x32, 0x30,
|
||
0x31, 0x37, 0x2d, 0x30, 0x34, 0x2d, 0x32, 0x39, 0x54, 0x32, 0x33, 0x3a,
|
||
0x33, 0x39, 0x3a, 0x30, 0x30, 0x2b, 0x30, 0x32, 0x3a, 0x30, 0x30, 0x1d,
|
||
0x88, 0x67, 0xeb, 0x00, 0x00, 0x00, 0x57, 0x7a, 0x54, 0x58, 0x74, 0x52,
|
||
0x61, 0x77, 0x20, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x20, 0x74,
|
||
0x79, 0x70, 0x65, 0x20, 0x69, 0x70, 0x74, 0x63, 0x00, 0x00, 0x78, 0x9c,
|
||
0xe3, 0xf2, 0x0c, 0x08, 0x71, 0x56, 0x28, 0x28, 0xca, 0x4f, 0xcb, 0xcc,
|
||
0x49, 0xe5, 0x52, 0x00, 0x03, 0x23, 0x0b, 0x2e, 0x63, 0x0b, 0x13, 0x23,
|
||
0x13, 0x4b, 0x93, 0x14, 0x03, 0x13, 0x20, 0x44, 0x80, 0x34, 0xc3, 0x64,
|
||
0x03, 0x23, 0xb3, 0x54, 0x20, 0xcb, 0xd8, 0xd4, 0xc8, 0xc4, 0xcc, 0xc4,
|
||
0x1c, 0xc4, 0x07, 0xcb, 0x80, 0x48, 0xa0, 0x4a, 0x2e, 0x00, 0xea, 0x17,
|
||
0x11, 0x74, 0xf2, 0x42, 0x35, 0x95, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45,
|
||
0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
|
||
}
|
||
|
||
// /index.html
|
||
var file3 = []byte(`<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<!-- drone:version -->
|
||
<!-- drone:user -->
|
||
<!-- drone:csrf -->
|
||
<!-- drone:docs -->
|
||
<link rel="shortcut icon" href="/favicon.png"></head>
|
||
<body>
|
||
<script type="text/javascript" src="/static/vendor.bab47468491b194ca445.js"></script><script type="text/javascript" src="/static/bundle.3210ec51b3a117dda107.js"></script></body>
|
||
</html>
|
||
`)
|